vendor: 6,123 bytes, lines 1-10
1/*! 2 * Viewer.js v1.5.0 3 * https://fengyuanchen.github.io/viewerjs 4 * 5 * Copyright 2015-present Chen Fengyuan 6 * Released under the MIT license 7 * 8 * Date: 2019-11-23T05:10:26.193Z 9 */ 10!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Viewer=e()}(this,(function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function i(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function n(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function o(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?n(Object(o),!0).forEach((function(e){i(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var s={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,zoom:null,zoomed:null},a="undefined"!=typeof window&&void 0!==window.document,r=a?window:{},h=!!a&&"ontouchstart"in r.document.documentElement,c=!!a&&"PointerEvent"in r,l="viewer",d="move",u="switch",m="zoom",f="".concat(l,"-active"),g="".concat(l,"-close"),p="".concat(l,"-fade"),v="".concat(l,"-fixed"),w="".concat(l,"-fullscreen"),b="".concat(l,"-fullscreen-exit"),y="".concat(l,"-hide"),C="".concat(l,"-hide-md-down"),E="".concat(l,"-hide-sm-down"),x="".concat(l,"-hide-xs-down"),S="".concat(l,"-in"),T="".concat(l,"-invisible"),k="".concat(l,"-loading"),z="".concat(l,"-move"),I="".concat(l,"-open"),D="".concat(l,"-show"),L="".concat(l,"-transition"),O="click",M="dblclick",A="dragstart",q="hidden",N="hide",R="keydown",P="load",W=c?"pointerdown":h?"touchstart":"mousedown",U=c?"pointermove":h?"touchmove":"mousemove",F=c?"pointerup pointercancel":h?"touchend touchcancel":"mouseup",Y="ready",X="resize",B="show",j="shown",H="transitionend",V="view",_="viewed",$="wheel",K="zoom",Z="zoomed",G="".concat(l,"Action"),J=/\s\s*/,Q=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function tt(t){return"string"==typeof t}var et=Number.isNaN||r.isNaN;function it(t){return"number"==typeof t&&!et(t)}function nt(t){return void 0===t}function ot(e){return"object"===t(e)&&null!==e}var st=Object.prototype.hasOwnProperty;function at(t){if(!ot(t))return!1;try{var e=t.constructor,i=e.prototype;return e&&i&&st.call(i,"isPrototypeOf")}catch(t){return!1}}function rt(t){return"function"==typeof t}function ht(t,e){if(t&&rt(e))if(Array.isArray(t)||it(t.length)){var i,n=t.length;for(i=0;i<n&&!1!==e.call(t,t[i],i,t);i+=1);}else ot(t)&&Object.keys(t).forEach((function(i){e.call(t,t[i],i,t)}));return t}var ct=Object.assign||function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return ot(t)&&i.length>0&&i.forEach((function(e){ot(e)&&Object.keys(e).forEach((function(i){t[i]=e[i]}))})),t},lt=/^(?:width|height|left|top|marginLeft|marginTop)$/;function dt(t,e){var i=t.style;ht(e,(function(t,e){lt.test(e)&&it(t)&&(t+="px"),i[e]=t}))}function ut(t,e){return!(!t||!e)&&(t.classList?t.classList.contains(e):t.className.indexOf(e)>-1)}function mt(t,e){if(t&&e)if(it(t.length))ht(t,(function(t){mt(t,e)}));else if(t.classList)t.classList.add(e);else{var i=t.className.trim();i?i.indexOf(e)<0&&(t.className="".concat(i," ").concat(e)):t.className=e}}function ft(t,e){t&&e&&(it(t.length)?ht(t,(function(t){ft(t,e)})):t.classList?t.classList.remove(e):t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function gt(t,e,i){e&&(it(t.length)?ht(t,(function(t){gt(t,e,i)})):i?mt(t,e):ft(t,e))}var pt=/([a-z\d])([A-Z])/g;function vt(t){return t.replace(pt,"$1-$2").toLowerCase()}function wt(t,e){return ot(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(vt(e)))}function bt(t,e,i){ot(i)?t[e]=i:t.dataset?t.dataset[e]=i:t.setAttribute("data-".concat(vt(e)),i)}var yt=function(){var t=!1;if(a){var e=!1,i=function(){},n=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});r.addEventListener("test",i,n),r.removeEventListener("test",i,n)}return t}();function Ct(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=i;e.trim().split(J).forEach((function(e){if(!yt){var s=t.listeners;s&&s[e]&&s[e][i]&&(o=s[e][i],delete s[e][i],0===Object.keys(s[e]).length&&delete s[e],0===Object.keys(s).length&&delete t.listeners)}t.removeEventListener(e,o,n)}))}function Et(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=i;e.trim().split(J).forEach((function(e){if(n.once&&!yt){var s=t.listeners,a=void 0===s?{}:s;o=function(){delete a[e][i],t.removeEventListener(e,o,n);for(var s=arguments.length,r=Array(s),h=0;h<s;h++)r[h]=arguments[h];i.apply(t,r)},a[e]||(a[e]={}),a[e][i]&&t.removeEventListener(e,a[e][i],n),a[e][i]=o,t.listeners=a}t.addEventListener(e,o,n)}))}function xt(t,e,i){var n;return rt(Event)&&rt(CustomEvent)?n=new CustomEvent(e,{detail:i,bubbles:!0,cancelable:!0}):(n=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,i),t.dis
10patchEvent(n)}function St(t){var e=t.rotate,i=t.scaleX,n=t.scaleY,o=t.translateX,s=t.translateY,a=[];it(o)&&0!==o&&a.push("translateX(".concat(o,"px)")),it(s)&&0!==s&&a.push("translateY(".concat(s,"px)")),it(e)&&0!==e&&a.push("rotate(".concat(e,"deg)")),it(i)&&1!==i&&a.push("scaleX(".concat(i,")")),it(n)&&1!==n&&a.push("scaleY(".concat(n,")"));var r=a.length?a.join(" "):"none";return{WebkitTransform:r,msTransform:r,transform:r}}var Tt=r.navigator&&/(Macintosh|iPhone|iPod|iPad).*AppleWebKit/i.test(r.navigator.userAgent);function kt(t,e){var i=document.createElement("img");if(t.naturalWidth&&!Tt)return e(t.naturalWidth,t.naturalHeight),i;var n=document.body||document.documentElement;return i.onload=function(){e(i.width,i.height),Tt||n.removeChild(i)},i.src=t.src,Tt||(i.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",n.appendChild(i)),i}function zt(t){switch(t){case 2:return x;case 3:return E;case 4:return C;default:return""}}function It(t,e){var i=t.pageX,n=t.pageY,s={endX:i,endY:n};return e?s:o({timeStamp:Date.now(),startX:i,startY:n},s)}var Dt={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var t,e=this.options,i=this.parent;e.inline&&(t={width:Math.max(i.offsetWidth,e.minWidth),height:Math.max(i.offsetHeight,e.minHeight)},this.parentData=t),!this.fulled&&t||(t=this.containerData),this.viewerData=ct({},t)},renderViewer:function(){this.options.inline&&!this.fulled&&dt(this.viewer,this.viewerData)},initList:function(){var t=this,e=this.element,i=this.options,n=this.list,o=[];n.innerHTML="",ht(this.images,(function(e,s){var a=e.src,r=e.alt||function(t){return tt(t)?decodeURIComponent(t.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}(a),h=i.url;if(tt(h)?h=e.getAttribute(h):rt(h)&&(h=h.call(t,e)),a||h){var c=document.createElement("li"),l=document.createElement("img");l.src=a||h,l.alt=r,l.setAttribute("data-index",s),l.setAttribute("data-original-url",h||a),l.setAttribute("data-viewer-action","view"),l.setAttribute("role","button"),c.appendChild(l),n.appendChild(c),o.push(c)}})),this.items=o,ht(o,(function(e){var n=e.firstElementChild;bt(n,"filled",!0),i.loading&&mt(e,k),Et(n,P,(function(n){i.loading&&ft(e,k),t.loadImage(n)}),{once:!0})})),i.transition&&Et(e,_,(function(){mt(n,L)}),{once:!0})},renderList:function(t){var e=t||this.index,i=this.items[e].offsetWidth||30,n=i+1;dt(this.list,ct({width:n*this.length},St({translateX:(this.viewerData.width-i)/2-n*e})))},resetList:function(){var t=this.list;t.innerHTML="",ft(t,L),dt(t,St({translateX:0}))},initImage:function(t){var e,i=this,n=this.options,o=this.image,s=this.viewerData,a=this.footer.offsetHeight,r=s.width,h=Math.max(s.height-a,a),c=this.imageData||{};this.imageInitializing={abort:function(){e.onload=null}},e=kt(o,(function(e,o){var s=e/o,a=r,l=h;i.imageInitializing=!1,h*s>r?l=r/s:a=h*s;var d={naturalWidth:e,naturalHeight:o,aspectRatio:s,ratio:(a=Math.min(.9*a,e))/e,width:a,height:l=Math.min(.9*l,o),left:(r-a)/2,top:(h-l)/2},u=ct({},d);n.rotatable&&(d.rotate=c.rotate||0,u.rotate=0),n.scalable&&(d.scaleX=c.scaleX||1,d.scaleY=c.scaleY||1,u.scaleX=1,u.scaleY=1),i.imageData=d,i.initialImageData=u,t&&t()}))},renderImage:function(t){var e=this,i=this.image,n=this.imageData;if(dt(i,ct({width:n.width,height:n.height,marginLeft:n.left,marginTop:n.top},St(n))),t)if((this.viewing||this.zooming)&&this.options.transition){var o=function(){e.imageRendering=!1,t()};this.imageRendering={abort:function(){Ct(i,H,o)}},Et(i,H,o,{once:!0})}else t()},resetImage:function(){if(this.viewing||this.viewed){var t=this.image;this.viewing&&this.viewing.abort(),t.parentNode.removeChild(t),this.image=null}}},Lt={bind:function(){var t=this.options,e=this.viewer,i=this.canvas,n=this.element.ownerDocument;Et(e,O,this.onClick=this.click.bind(this)),Et(e,A,this.onDragStart=this.dragstart.bind(this)),Et(i,W,this.onPointerDown=this.pointerdown.bind(this)),Et(n,U,this.onPointerMove=this.pointermove.bind(this)),Et(n,F,this.onPointerUp=this.pointerup.bind(this)),Et(n,R,this.onKeyDown=this.keydown.bind(this)),Et(window,X,this.onResize=this.resize.bind(this)),t.zoomable&&t.zoomOnWheel&&Et(e,$,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleOnDblclick&&Et(i,M,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var t=this.options,e=this.viewer,i=this.canvas,n=this.element.ownerDocument;Ct(e,O,this.onClick),Ct(e,A,this.onDragStart),Ct(i,W,this.onPointerDown),Ct(n,U,this.onPointerMove),Ct(n,F,this.onPointerUp),Ct(n,R,this.onKeyDown),Ct(window,X,this.onResize),t.zoomable&&t.zoomOnWheel&&Ct(e,$,this.onWheel,{passive:!1,capture:!0}),t.toggleOnDblclick&&Ct(i,M,this.onDblclick)}},Ot={click:function(t){var e=t.target,i=this.options,n=this.imageData,o=wt(e,G);switch(h&&t.isTrusted&&e===this.canvas&&clearTimeout(this.clickCanvasTimeout),o){case"mix":this.played?this.stop():i.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.hide();break;case"view":this.view(wt(e,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(i.loop);break;case"play":this.play(i.fullscreen);break;case"next":this.next(i.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-n.scaleX||-1);break;
10case"flip-vertical":this.scaleY(-n.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(t){t.preventDefault(),this.viewed&&t.target===this.image&&(h&&t.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle())},load:function(){var t=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var e=this.element,i=this.options,n=this.image,o=this.index,s=this.viewerData;ft(n,T),i.loading&&ft(this.canvas,k),n.style.cssText="height:0;"+"margin-left:".concat(s.width/2,"px;")+"margin-top:".concat(s.height/2,"px;")+"max-width:none!important;position:absolute;width:0;",this.initImage((function(){gt(n,z,i.movable),gt(n,L,i.transition),t.renderImage((function(){t.viewed=!0,t.viewing=!1,rt(i.viewed)&&Et(e,_,i.viewed,{once:!0}),xt(e,_,{originalImage:t.images[o],index:o,image:n})}))}))},loadImage:function(t){var e=t.target,i=e.parentNode,n=i.offsetWidth||30,o=i.offsetHeight||50,s=!!wt(e,"filled");kt(e,(function(t,i){var a=t/i,r=n,h=o;o*a>n?s?r=o*a:h=n/a:s?h=n/a:r=o*a,dt(e,ct({width:r,height:h},St({translateX:(n-r)/2,translateY:(o-h)/2})))}))},keydown:function(t){var e=this.options;if(this.fulled&&e.keyboard)switch(t.keyCode||t.which||t.charCode){case 27:this.played?this.stop():e.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.prev(e.loop);break;case 38:t.preventDefault(),this.zoom(e.zoomRatio,!0);break;case 39:this.next(e.loop);break;case 40:t.preventDefault(),this.zoom(-e.zoomRatio,!0);break;case 48:case 49:t.ctrlKey&&(t.preventDefault(),this.toggle())}},dragstart:function(t){"img"===t.target.tagName.toLowerCase()&&t.preventDefault()},pointerdown:function(t){var e=this.options,i=this.pointers,n=t.buttons,o=t.button;if(!(!this.viewed||this.showing||this.viewing||this.hiding||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(it(n)&&1!==n||it(o)&&0!==o||t.ctrlKey))){t.preventDefault(),t.changedTouches?ht(t.changedTouches,(function(t){i[t.identifier]=It(t)})):i[t.pointerId||0]=It(t);var s=!!e.movable&&d;e.zoomOnTouch&&e.zoomable&&Object.keys(i).length>1?s=m:e.slideOnTouch&&("touch"===t.pointerType||"touchstart"===t.type)&&this.isSwitchable()&&(s=u),!e.transition||s!==d&&s!==m||ft(this.image,L),this.action=s}},pointermove:function(t){var e=this.pointers,i=this.action;this.viewed&&i&&(t.preventDefault(),t.changedTouches?ht(t.changedTouches,(function(t){ct(e[t.identifier]||{},It(t,!0))})):ct(e[t.pointerId||0]||{},It(t,!0)),this.change(t))},pointerup:function(t){var e,i=this,n=this.options,o=this.action,s=this.pointers;t.changedTouches?ht(t.changedTouches,(function(t){e=s[t.identifier],delete s[t.identifier]})):(e=s[t.pointerId||0],delete s[t.pointerId||0]),o&&(t.preventDefault(),!n.transition||o!==d&&o!==m||mt(this.image,L),this.action=!1,h&&o!==m&&e&&Date.now()-e.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),n.toggleOnDblclick&&this.viewed&&t.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout((function(){xt(i.image,M)}),50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout((function(){i.imageClicked=!1}),500)):(this.imageClicked=!1,n.backdrop&&"static"!==n.backdrop&&t.target===this.canvas&&(this.clickCanvasTimeout=setTimeout((function(){xt(i.canvas,O)}),50)))))},resize:function(){var t=this;if(this.isShown&&!this.hiding&&(this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage((function(){t.renderImage()})),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement))return void this.stop();ht(this.player.getElementsByTagName("img"),(function(e){Et(e,P,t.loadImage.bind(t),{once:!0}),xt(e,P)}))}},wheel:function(t){var e=this;if(this.viewed&&(t.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout((function(){e.wheeling=!1}),50);var i=Number(this.options.zoomRatio)||.1,n=1;t.deltaY?n=t.deltaY>0?1:-1:t.wheelDelta?n=-t.wheelDelta/120:t.detail&&(n=t.detail>0?1:-1),this.zoom(-n*i,!0,t)}}},Mt={show:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.element,i=this.options;if(i.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(t),this;if(rt(i.show)&&Et(e,B,i.show,{once:!0}),!1===xt(e,B)||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var n=this.viewer;if(ft(n,y),i.transition&&!t){var o=this.shown.bind(this);this.transitioning={abort:function(){Ct(n,H,o),ft(n,S)}},mt(n,L),n.initialOffsetWidth=n.offsetWidth,Et(n,H,o,{once:!0}),mt(n,S)}else mt(n,S),this.shown();return this},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.element,i=this.options;if(i.inline||this.hiding||!this.isShown&&!this.showing)return this;if(rt(i.hide)&&Et(e,N,i.hide,{once:!0}),!1===xt(e,N))return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var n=this.viewer;if(i.transition&&!t){var o=this.hidden.bind(this),s=function(){setTimeout((function(){Et(n,H,o,{once:!0}),ft(n,S)}),0)};this.transitioning={abort:function(){this.viewed?Ct(this.image,H,s):Ct(n,H,o)}},this.viewed&&ut(this.image,L)?(Et(this.image,H,s,{once:!0}),this.zoomTo(0,!1,!1,!0)):s()}else ft(n,S),this.hidden();return this},view:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.initialViewIndex;if(e=Number(e)||0,this.hiding||this.played||e<0||e>=this.length||this.viewed&&e===this.index)return this;if(!this.isShown)return this.index=e,this.show();this.viewing&&this.viewing.abort();var i=this.element,n=this.options,o=this.title,s=this.canvas,a=this.items[e],r=a.querySelector("img"),h=wt(r,"originalUrl"),c=r.getAttribute("alt"),l=document.createElement("img");if(l.src=h,l.alt=c,rt(n.view)&&Et(i,V,n.view,{once:!0}),!1===xt(i,V,{originalImage:this.images[e],index:e,image:l})||!this.isShown||this.hiding||this.played)return this;this.image=l,ft(this.items[this.index],f),mt(a,f),this.viewed=!1,this.index=e,this.imageData={},mt(l,T),n.loading&&mt(s,k),s.innerHTML="",s.appendChild(l),this.renderList(),o.innerHTML="";var d,u=function(){var e,i=t.imageData,s=Array.isArray(n.title)?n.title[1]:n.title;o.innerHTML=tt(e=rt(s)?s.call(t,l,i):"".concat(c," (").concat(i.naturalWi
10dth," Ã ").concat(i.naturalHeight,")"))?e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):e};return Et(i,_,u,{once:!0}),this.viewing={abort:function(){Ct(i,_,u),l.complete?this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort():(l.src="",Ct(l,P,d),this.timeout&&clearTimeout(this.timeout))}},l.complete?this.load():(Et(l,P,d=this.load.bind(this),{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout((function(){ft(l,T),t.timeout=!1}),1e3)),this},prev:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.index-1;return e<0&&(e=t?this.length-1:0),this.view(e),this},next:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.length-1,i=this.index+1;return i>e&&(i=t?0:e),this.view(i),this},move:function(t,e){var i=this.imageData;return this.moveTo(nt(t)?t:i.left+Number(t),nt(e)?e:i.top+Number(e)),this},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.imageData;if(t=Number(t),e=Number(e),this.viewed&&!this.played&&this.options.movable){var n=!1;it(t)&&(i.left=t,n=!0),it(e)&&(i.top=e,n=!0),n&&this.renderImage()}return this},zoom:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this.imageData;return t=(t=Number(t))<0?1/(1-t):1+t,this.zoomTo(n.width*t/n.naturalWidth,e,i),this},zoomTo:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=this.element,a=this.options,r=this.pointers,h=this.imageData,c=h.width,l=h.height,d=h.left,u=h.top,m=h.naturalWidth,f=h.naturalHeight;if(it(t=Math.max(0,t))&&this.viewed&&!this.played&&(o||a.zoomable)){if(!o){var g=Math.max(.01,a.minZoomRatio),p=Math.min(100,a.maxZoomRatio);t=Math.min(Math.max(t,g),p)}n&&t>.95&&t<1.05&&(t=1);var v=m*t,w=f*t,b=v-c,y=w-l,C=c/m;if(rt(a.zoom)&&Et(s,K,a.zoom,{once:!0}),!1===xt(s,K,{ratio:t,oldRatio:C,originalEvent:n}))return this;if(this.zooming=!0,n){var E=function(t){var e=t.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}(this.viewer),x=r&&Object.keys(r).length?function(t){var e=0,i=0,n=0;return ht(t,(function(t){var o=t.startX,s=t.startY;e+=o,i+=s,n+=1})),{pageX:e/=n,pageY:i/=n}}(r):{pageX:n.pageX,pageY:n.pageY};h.left-=b*((x.pageX-E.left-d)/c),h.top-=y*((x.pageY-E.top-u)/l)}else h.left-=b/2,h.top-=y/2;h.width=v,h.height=w,h.ratio=t,this.renderImage((function(){e.zooming=!1,rt(a.zoomed)&&Et(s,Z,a.zoomed,{once:!0}),xt(s,Z,{ratio:t,oldRatio:C,originalEvent:n})})),i&&this.tooltip()}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t)),this},rotateTo:function(t){var e=this.imageData;return it(t=Number(t))&&this.viewed&&!this.played&&this.options.rotatable&&(e.rotate=t,this.renderImage()),this},scaleX:function(t){return this.scale(t,this.imageData.scaleY),this},scaleY:function(t){return this.scale(this.imageData.scaleX,t),this},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.imageData;if(t=Number(t),e=Number(e),this.viewed&&!this.played&&this.options.scalable){var n=!1;it(t)&&(i.scaleX=t,n=!0),it(e)&&(i.scaleY=e,n=!0),n&&this.renderImage()}return this},play:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isShown||this.played)return this;var i=this.options,n=this.player,o=this.loadImage.bind(this),s=[],a=0,r=0;if(this.played=!0,this.onLoadWhenPlay=o,e&&this.requestFullscreen(),mt(n,D),ht(this.items,(function(t,e){var h=t.querySelector("img"),c=document.createElement("img");c.src=wt(h,"originalUrl"),c.alt=h.getAttribute("alt"),a+=1,mt(c,p),gt(c,L,i.transition),ut(t,f)&&(mt(c,S),r=e),s.push(c),Et(c,P,o,{once:!0}),n.appendChild(c)})),it(i.interval)&&i.interval>0){var h=function e(){t.playing=setTimeout((function(){ft(s[r],S),mt(s[r=(r+=1)<a?r:0],S),e()}),i.interval)};a>1&&h()}return this},stop:function(){var t=this;if(!this.played)return this;var e=this.player;return this.played=!1,clearTimeout(this.playing),ht(e.getElementsByTagName("img"),(function(e){Ct(e,P,t.onLoadWhenPlay)})),ft(e,D),e.innerHTML="",this.exitFullscreen(),this},full:function(){var t=this,e=this.options,i=this.viewer,n=this.image,o=this.list;return!this.isShown||this.played||this.fulled||!e.inline||(this.fulled=!0,this.open(),mt(this.button,b),e.transition&&(ft(o,L),this.viewed&&ft(n,L)),mt(i,v),i.setAttribute("style",""),dt(i,{zIndex:e.zIndex}),this.initContainer(),this.viewerData=ct({},this.containerData),this.renderList(),this.viewed&&this.initImage((function(){t.renderImage((function(){e.transition&&setTimeout((function(){mt(n,L),mt(o,L)}),0)}))}))),this},exit:function(){var t=this,e=this.options,i=this.viewer,n=this.image,o=this.list;return this.isShown&&!this.played&&this.fulled&&e.inline?(this.fulled=!1,this.close(),ft(this.button,b),e.transition&&(ft(o,L),this.viewed&&ft(n,L)),ft(i,v),dt(i,{zIndex:e.zIndexInline}),this.viewerData=ct({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage((function(){t.renderImage((function(){e.transition&&setTimeout((function(){mt(n,L),mt(o,L)}),0)}))})),this):this},tooltip:function(){var t=this,e=this.options,i=this.tooltipBox,n=this.imageData;return this.viewed&&!this.played&&e.tooltip?(i.textContent="".concat(Math.round(100*n.ratio),"%"),this.tooltipping?clearTimeout(this.tooltipping):e.transition?(this.fading&&xt(i,H),mt(i,D),mt(i,p),mt(i,L),i.initialOffsetWidth=i.offsetWidth,mt(i,S)):mt(i,D),this.tooltipping=setTimeout((function(){e.transition?(Et(i,H,(function(){ft(i,D),ft(i,p),ft(i,L),t.fading=!1}),{once:!0}),ft(i,S),t.fading=!0):ft(i,D),t.tooltipping=!1}),1e3),this):this},toggle:function(){return 1===this.imageData.ratio?this.zoomTo(this.initialImageData.ratio,!0):this.zoomTo(1,!0),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=ct({},this.initialImageData),this.renderImage()),this},update:function(){var t=this.element,e=this.options,i=this.isImg;if(i&&!t.parentNode)return this.destroy();var n=[];if(ht(i?[t]:t.querySelectorAll("img"),(function(t){e.filter?e.filter(t)&&n.push(t):n.push(t)})),!n.length)return this;if(this.images=n,this.length=n.length,this.ready){var o=[];if(ht(this.items,(function(t,e){var i=t.querySelector("img"),s=n[e];s&&i?s.src!==i.src&&o.push(e):o.push(e)})),dt(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var s=o.indexOf(this.index);s>=0?(this.viewed=!1,this.view(Math.max(this.index-(s+1),0))):mt(this.items[this.index],f)}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var t=this.element,e=this.options;return t[l]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),e.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):e.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),e.inline||Ct(t,O,this.onStart),t[l]=void 0,this):this}},At={open:function(){var t=this.body;mt(t,I),t.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyPaddingRight)||0),"px")},close:function(){var t=this.body;ft(t,I),t.style.paddingRight=this.initialBodyPaddingRight},shown:function(){var t=this.element,e=this.options;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,rt(e.shown)&&Et(t,j,e.shown,{once:!0}),!1!==xt(t,j)&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var t=this.element,e=this.options;this.fulled=!1,this.viewed=!1,this.isShown=!1,this.close(),this.unbind(),mt(this.viewer,y),this.resetList(),this.resetImage(),this.hiding=!1,this.destroyed||(rt(e.hidden)&&Et(t,q,e.hidden,{once:!0}),xt(t,q))},requestFullscreen:function(){var t=this.element.ownerDocument;if(this.fulled&&!(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)){var e=t.documentElement;e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()}},exitFullscreen:function(){var t=this.element.ownerDocument;this.fulled&&(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)&&(t.exitFullscreen?t.exitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen())},change:function(t){var e=this.options,i=this.pointers,n=i[Object.keys(i)[0]],s=n.endX-n.startX,a=n.endY-n.startY;switch(this.action){case d:this.move(s,a);break;case m:this.zoom(function(t){var e=o({},t),i=[];return ht(t,(function(t,n){delete e[n],ht(e,(function(e){var n=Math.abs(t.startX-e.startX),o=Math.abs(t.startY-e.startY),s=Math.abs(t.endX-e.endX),a=Math.abs(t.endY-e.endY),r=Math.sqrt(n*n+o*o),h=(Math.sqrt(s*s+a*a)-r)/r;i.push(h)}))})),i.sort((function(t,e){return Math.abs(t)<Math.abs(e)})),i[0]}(i),!1,t);break;case u:this.action="switched";var r=Math.abs(s);r>1&&r>Math.abs(a)&&(this.pointers={},s>1?this.prev(e.loop):s<-1&&this.next(e.loop))}ht(i,(function(t){t.startX=t.endX,t.startY=t.endY}))},isSwitchable:function(){var t=this.imageData,e=this.viewerData;return this.length>1&&t.left>=0&&t.top>=0&&t.width<=e.width&&t.height<=e.height}},qt=r.Viewer,Nt=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e||1!==e.nodeType)throw Error("The first argument is required and must be an element.");this.element=e,this.options=ct({},s,at(i)&&i),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.init()}var i,n,o;return i=t,o=[{key:"noConflict",value:function(){return window.Viewer=qt,t}},{key:"setDefaults",value:function(t){ct(s,at(t)&&t)}}],(n=[{key:"init",value:function(){var t=this,e=this.element,i=this.options;if(!e[l]){e[l]=this;var n="img"===e.tagName.toLowerCase(),o=[];ht(n?[e]:e.querySelectorAll("img"),(function(e){rt(i.filter)?i.filter.call(t,e)&&o.push(e):o.push(e)})),this.isImg=n,this.length=o.length,this.images=o;var s=e.ownerDocument,a=s.body||s.documentElement;if(this.body=a,this.scrollbarWidth=window.innerWidth-s.documentElement.clientWidth,this.initialBodyPaddingRight=window.getComputedStyle(a).paddingRight,nt(document.createElement(l).style.transition)&&(i.transition=!1),i.inline){var r=0,h=function(){var e;(r+=1)===t.length&&(t.initializing=!1,t.delaying={abort:function(){clearTimeout(e)}},e=setTimeout((function(){t.delaying=!1,t.build()}),0))};this.initializing={abort:function(){ht(o,(function(t){t.complete||Ct(t,P,h)}))}},ht(o,(function(t){t.complete?h():Et(t,P,h,{once:!0})}))}else Et(e,O,this.onStart=function(e){var n=e.target;"img"!==n.tagName.toLowerCase()||rt(i.filter)&&!i.filter.call(t,n)||t.view(t.images.indexOf(n))})}}},{key:"build",value:function(){if(!this.ready){var t=this.element,e=this.options,i=t.parentNode,n=document.createElement("div");n.innerHTML='<div class="viewer-container" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list"></ul></div></div><div class="viewer-tooltip"></div><div role="button" class="viewer-button" data-viewer-action="mix"></div><div class="viewer-player"></div></div>';var o=n.querySelector(".viewer-container"),s=o.querySelector(".viewer-title"),a=o.querySelector(".viewer-toolbar"),r=o.querySelector(".viewer-navbar"),h=o.querySelector(".viewer-button"),c=o.querySelector(".viewer-canvas");if(this.parent=i,this.viewer=o,this.title=s,this.toolbar=a,this.navbar=r,this.button=h,this.canvas=c,this.footer=o.querySelector(".viewer-footer"),this.tooltipBox=o.querySelector(".viewer-tooltip"),this.player=o.querySelector(".viewer-player"),this.list=o.querySelector(".viewer-list"),mt(s,e.title?zt(Array.isArray(e.title)?e.title[0]:e.title):y),mt(r,e.navbar?zt(e.navbar):y),gt(h,y,!e.button),e.backdrop&&(mt(o,"".concat(l,"-backdrop")),e.inline||"static"===e.backdrop||bt(c,G,"hide")),tt(e.className)&&e.className&&e.className.split(J).forEach((function(t){mt(o,t)})),e.toolbar){var d=document.createElement("ul"),u=at(e.toolbar),m=Q.slice(0,3),f=Q.slice(7,9),b=Q.slice(9);u||mt(a,zt(e.toolbar)),ht(u?e.toolbar:Q,(function(t,i){var n=u&&at(t),o=u?vt(i):t,s=n&&!nt(t.show)?t.show:t;if(s&&(e.zoomable||-1===m.indexOf(o))&&(e.rotatable||-1===f.indexOf(o))&&(e.scalable||-1===b.indexOf(o))){var a=n&&!nt(t.size)?t.size:t,r=n&&!nt(t.click)?t.click:t,h=document.createElement("li");h.setAttribute("role","button"),mt(h,"".concat(l,"-").concat(o)),rt(r)||bt(h,G,o),it(s)&&mt(h,zt(s)),-1!==["small","large"].indexOf(a)?mt(h,"".concat(l,"-").concat(a)):"play"===o&&mt(h,"".concat(l,"-large")),rt(r)&&Et(h,O,r),d.appendChild(h)}})),a.appendChild(d)}else mt(a,y);if(!e.rotatable){var C=a.querySelectorAll('li[class*="rotate"]');mt(C,T),ht(C,(function(t){a.appendChild(t)}))}
10if(e.inline)mt(h,w),dt(o,{zIndex:e.zIndexInline}),"static"===window.getComputedStyle(i).position&&dt(i,{position:"relative"}),i.insertBefore(o,t.nextSibling);else{mt(h,g),mt(o,v),mt(o,p),mt(o,y),dt(o,{zIndex:e.zIndex});var E=e.container;tt(E)&&(E=t.ownerDocument.querySelector(E)),E||(E=this.body),E.appendChild(o)}e.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,rt(e.ready)&&Et(t,Y,e.ready,{once:!0}),!1!==xt(t,Y)?this.ready&&e.inline&&this.view(this.index):this.ready=!1}}}])&&e(i.prototype,n),o&&e(i,o),t}();return ct(Nt.prototype,Dt,Lt,Ot,Mt,At),Nt}));const NotificationSingletonService={showSuccessMessage:(t,e=!1)=>{ifmEventBridge("ifm-show-notification",{type:"success",message:t,options:{multiple:!e}})},showSuccessMessageWithCustomTimeout:(t,e)=>{ifmEventBridge("ifm-show-notification",{type:"success",message:t,options:{autoClose:e}})},showErrorMessageWithCustomTimeout:(t,e)=>{ifmEventBridge("ifm-show-notification",{type:"error",message:t,options:{autoClose:e}})},showErrorMessage:(t,e=!1,i)=>{if(i){const i=setInterval((()=>{ifmEventBridge("ifm-show-notification",{type:"error",message:t,options:{multiple:!e}}),document.querySelector(".Toastify__toast-container")&&clearInterval(i)}),300)}else ifmEventBridge("ifm-show-notification",{type:"error",message:t,options:{multiple:!e}})},showErrorMessageAsKiller:t=>{ifmEventBridge("ifm-show-notification",{type:"error",message:t,options:{multiple:!1}})},showWarningMessage:t=>{ifmEventBridge("ifm-show-notification",{type:"warning",message:t})},showUnauthorizedMessage:t=>{ifmEventBridge("ifm-show-notification",{type:"unauthorized",message:t})},closeAllNotifications:()=>{ifmEventBridge("ifm-close-notification")}};class UsercentricsConsentLoader{static bannerClass="ifm-cookie-consent";static bannerAcceptClass="ifm-cookie-consent--accept";static bannerMoreClass="ifm-cookie-consent--more";static isBodyListenerAttached=!1;static maxConsentRetries=5;static consentRetryThrottle=50;static loadedOptions=[];options={bannerSuffix:"",consentId:"",scriptTagId:""};constructor(t){this.options=t,UsercentricsConsentLoader.loadedOptions.push(this)}addScriptTagOnce(){if(!this.isScriptTagPresent()){const t=document.createElement("script");return t.id=this.options.scriptTagId,document.body.appendChild(t),this.executeCallback(),!0}throw Error("ScriptTag was already present on page")}executeCallback(){const{callback:t}=this.options;t&&"function"==typeof t&&t()}isScriptTagPresent(){const{scriptTagId:t}=this.options;return Array.from(document.querySelectorAll("script")).some((e=>
10t&&e.id===t))}async getConsent(t=0){const e=window.UC_UI||null;if(!e?.getServicesFullInfo)return await new Promise(((e,i)=>{t<UsercentricsConsentLoader.maxConsentRetries?setTimeout((()=>e(this.getConsent(t++))),UsercentricsConsentLoader.consentRetryThrottle):i(Error("Usercentrics not available"))}));try{const t=(await e.getServicesFullInfo()).find((t=>t.id===this.options.consentId));return{success:!0,status:t?.consent?.status||!1}}catch(t){throw new IfmError("Could not fetch UC service info","UsercentricsConsentLoader:getConsent",t).log()}}showConsentBanner(){const t=document.querySelectorAll(`.${UsercentricsConsentLoader.bannerClass}${this.options.bannerSuffix}`);for(const e of t)e.classList.remove("hidden")}hideConsentBanner(){const t=document.querySelectorAll(`.${UsercentricsConsentLoader.bannerClass}${this.options.bannerSuffix}`);for(const e of t)e.classList.add("hidden")}async processConsent(){const t=await this.getConsent();if(t.success&&t.status)return this.hideConsentBanner(),!!this.options.scriptTagId&&this.addScriptTagOnce();this.showConsentBanner()}async setConsent(t){const e=window.UC_UI||null;if(!e?.acceptService||!e.rejectService)return;const i=t?e.acceptService:e.rejectService;try{await i(this.options.consentId)}catch(t){new IfmError("Could not change UC service consent","UsercentricsConsentLoader:setConsent",t).log(
10)}await this.processConsent()}static getParent(t,e){return t.parentElement&&"HTML"!=t.parentElement.tagName.toUpperCase()?t.parentElement.matches(e)?t.parentElement:this.getParent(t.parentElement,e):null}static getBannerSuffix(t){let e="";return t.classList.forEach((t=>{t.includes(this.bannerClass+"--")&&(e=t.replace(this.bannerClass,""))})),e}static registerEvents(){this.isBodyListenerAttached=!0,document.addEventListener("click",(t=>{if(!(t.target instanceof HTMLElement))return;const e=this.getParent(t.target,"."+this.bannerClass);if(!e)return;const i=this.getBannerSuffix(e);if(!i&&""!==i)return;const n=this.loadedOptions.find((t=>t.options.bannerSuffix===i));t.target.classList.contains(this.bannerAcceptClass)&&n.setConsent(!0),t.target.classList.contains(this.bannerMoreClass)&&UC_UI.showSecondLayer()}))}static async init(t){let e=this.loadedOptions.find((e=>e.options.consentId===t.consentId));e||(e=new UsercentricsConsentLoader(t));const i=await e.processConsent();if(this.isBodyListenerAttached||(this.registerEvents(),window.addEventListener("UC_UI_CMP_EVENT",(t=>{checkConsentOnUcStatusChange(e,t)}))),i)return i}}async function checkConsentOnUcStatusChange(t,e){if(!t||!e?.detail?.type||"CMP_SHOWN"===e.detail.type)return;const i=window.UC_UI||null;if(i)try{const e=(await i.getServicesFullInfo()).find((e=>e.id===t.options.consentId));if(e?.consent?.status)return t.hideConsentBanner(),void(t.isScriptTagPresent()||t.addScriptTagOnce());location.reload()}catch(t){throw new IfmError("Could not fetch UC service info","UsercentricsConsentLoader:checkConsentOnUcStatusChange",t).log()}}function checkFormValidity(t){const e=t.closest("form");setTimeout((()=>{e.reportValidity()}),500)}function openImageWithLegendModal(t,e,i){const n=new CustomEvent("open-image-with-legend-modal",{detail:{modalId:t,imageUrlMap:e,content:i}});document.dispatchEvent(n)}function openSelectorModal(t){const e=window["modalConfig_"+t],i=new CustomEvent("open-selector-modal",{detail:e});document.dispatchEvent(i)}function debounce(t,e,i){var n;return function(){var o=this,s=arguments,a=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(o,s)}),e),a&&t.apply(o,s)}}function ready(t){document.addEventListener("DOMContentLoaded",t)}function activateViewerLightbox(){document.querySelectorAll("[data-viewer]").forEach((t=>{new Viewer(t,{navbar:!1,toolbar:{zoomOut:1,zoomIn:1},movable:!0,zoomable:!0,minZoomRatio:.5,maxZoomRatio:2,title:!1,transition:!0,url:function(t){return t.getAttribute("data-image-src")},container:".overlays .ifm"})}))}function changeSrc(){document.querySelectorAll(".ifm-faq .zoomable-image").forEach((t=>{t.src=t.src.replace("medium","original")}))}!function(){"use strict";function t(t){const e=t.contentDocument||t.contentWindow?.document;e&&(t.style.height=e.body.scrollHeight+"px")}window.addEventListener("load",(function(){const e=document.querySelectorAll(".animation-embed iframe");e&&e.forEach((function(e){t(e)}))})),document.addEventListener("DOMContentLoaded",(function(){const e=document.querySelectorAll(".animation-embed iframe");e&&e.forEach((function(e){t(e),e.onload=function(){t(e);const i=e.contentDocument||e.contentWindow?.document;if(!i)return;new MutationObserver((function(i){i.forEach((function(){t(e)}))})).observe(i.body,{attributes:!0,childList:!0,subtree:!0})}}))})),window.onresize=function(){const e=document.querySelectorAll(".animation-embed iframe");e&&e.forEach((e=>t(e)))}}(),window.ifmEventBridge=function(t,e){try{const i=e?new CustomEvent(t,{detail:e}):new CustomEvent(t);document.dispatchEvent(i)}catch(e){console.warn("Error with custom event '"+t+"'",e)}},ready((function(){document.querySelectorAll("[data-viewer]").forEach((function(t){const e=t.getAttribute("data-viewer-src");new Viewer(t,{navbar:!1,toolbar:!1,movable:!1,zoomable:!1,title:!1,url:function(t){return t.src.replace(t.src,e)},container:".overlays .ifm"})}))})),window.addEventListener("load",(function(){document.querySelectorAll("img.zoomable-image").forEach((t=>{const e=document.createElement("div");e.classList.add("viewer"),e.setAttribute("data-viewer",""),e.setAttribute("data-viewer-src",""),t.parentNode.replaceChild(e,t),e.appendChild(t),activateViewerLightbox(),changeSrc()}))}));
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.