vendor: 4,861 bytes, lines 1-7
1/* @license GPL-2.0-or-later https://git.drupalcode.org/project/once/-/raw/v1.0.1/LICENSE.md */ 2/*! @drupal/once - v1.0.1 - 2021-06-12 */ 3var once=function(){"use strict";var n=/[\11\12\14\15\40]+/,e="data-once",t=document;function r(n,t,r){return n[t+"Attribute"](e,r)}function o(e){if("string"!=typeof e)throw new TypeError("once ID must be a string");if(""===e||n.test(e))throw new RangeError("once ID must not be empty or contain spaces");return'[data-once~="'+e+'"]'}function u(n){if(!(n instanceof Element))throw new TypeError("The element must be an instance of Element");return!0}function i(n,e){void 0===e&&(e=t);var r=n;if(null===n)r=[];else{if(!n)throw new TypeError("Selector must not be empty");"string"!=typeof n||e!==t&&!u(e)?n instanceof Element&&(r=[n]):r=e.querySelectorAll(n)}return Array.prototype.slice.call(r)}function c(n,e,t){return e.filter((function(e){var r=u(e)&&e.matches(n);return r&&t&&t(e),r}))}function f(e,t){var o=t.add,u=t.remove,i=[];r(e,"has")&&r(e,"get").trim().split(n).forEach((function(n){i.indexOf(n)<0&&n!==u&&i.push(n)})),o&&i.push(o);var c=i.join(" ");r(e,""===c?"remove":"set",c)}function a(n,e,t){return c(":not("+o(n)+")",i(e,t),(function(e){return f(e,{add:n})}))}return a.remove=function(n,e,t){return c(o(n),i(e,t),(function(e){return f(e,{remove:n})}))},a.filter=function(n,e,t){return c(o(n),i(e,t))},a.find=function(n,e){return i(n?o(n):"[data-once]",e)},a}(); 4 5; 6/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 7window.drupalTranslations={"strings":{"":{"Good to see that you are interested in our content. However, independent information is not free. You may copy our articles for personal use only. This way you will not violate our Terms and Conditions. Questions? Send an email to:":"Goed om te zien dat je ge\u00efnteresseerd bent in onze content. Onafhankelijke informatie is alleen niet gratis. Je mag onze artikelen uitsluitend kopi\u00ebren voor persoonlijk gebruik. Zo zal je geen inbreuk maken op onze Algemene Voorwaarden. Vragen? Stuur een e-mail naar:","Add NTvG to your homescreen":"Voeg NTvG toe aan je startscherm","Provides instant and easy access to our articles.":"Zo heb je altijd, snel en gemakkelijk toegang tot onze artikelen.","Close":"Sluiten","Don\u0027t ask again":"Niet meer vragen","Not now":"Niet nu","Add":"Toevoegen","Tap on the share icon":"Druk op het deel icoon","Tap on the \u0027Add to homescreen\u0027 button":"Druk op de \u0027Zet op beginscherm\u0027 knop","No results found":"Geen resultaat gevonden","Dismiss":"Afsluiten","Loading...":"Bezig met laden...","Find the tour here later":"Vind de rondleiding hier later terug","Previous":"Vorige","Next":"Volgende","Open in new tab":"In nieuw tabblad openen","Download":"Downloaden","Copy to clipboard":"Kopieer naar klembord","Copied to clipboard":"Gekopieerd naar klembord","Examples of questions you can ask":"Voorbeelden van vragen die je kan stellen","When asking a question, you agree with the \u003Ca href=\u0022\/general\/ask-ntvg-tos\u0022 target=\u0022_blank\u0022\u003Eterms and conditions\u003C\/a\u003E.":"Bij het stellen van een vraag ga je akkoord met de \u003Ca href=\u0022https:\/\/www.ntvg.nl\/general\/ask-ntvg-tos\u0022 target=\u0022_blank\u0022\u003Ealgemene voorwaarden\u003C\/a\u003E.","An AJAX HTTP error occurred.":"Er is een AJAX HTTP fout opgetreden.","HTTP Result Code: !status":"HTTP-resultaatcode: !status","An AJAX HTTP request terminated abnormally.":"Een AJAX HTTP-aanvraag is onverwacht afgebroken","Debugging information follows.":"Debug informatie volgt.","Path: !uri":"Pad: !uri","StatusText: !statusText":"Statustekst: !statusText","ResponseText: !responseText":"Antwoordtekst: !responseText","ReadyState: !readyState":"ReadyState: !readyState","CustomMessage: !customMessage":"CustomMessage: !customMessage","Please wait...":"Even geduld...","The response failed verification so will not be processed.":"Het antwoord kon niet geverifieerd worden en zal daarom niet worden verwerkt.","The callback URL is not local and not trusted: !url":"De callback-URL is niet lokaal en vertrouwd: !url","Changed":"Gewijzigd","An error occurred during the execution of the Ajax response: !error":"Er is een fout opgetreden bij het uitvoeren van een Ajax-verzoek: !error","The following files could not be loaded: @dependencies":"De volgende bestanden konden niet geladen worden: @dependencies","Processing...":"Bezig...","Hide":"Verbergen","Show":"Weergeven","List additional actions":"Aanvullende acties weergeven","New revision":"Nieuwe revisie","No revision":"Geen revisie","Needs to be updated":"Moet worden bijgewerkt","Does not need to be updated":"Hoeft niet te worden bijgewerkt","Flag other translations as outdated":"Markeer andere vertalingen als verouderd","Do not flag other translations as outdated":"Markeer andere vertalingen niet als verouderd","Edit":"Be
7werken","Edit machine name":"Machinenaam bewerken","Status message":"Statusbericht","Error message":"Foutmelding","Warning message":"Waarschuwingsbericht","Show row weights":"Gewicht van rijen tonen","Hide row weights":"Gewicht van rij verbergen","Drag to re-order":"Slepen om de volgorde te wijzigen","You have unsaved changes.":"Er zijn niet-opgeslagen wijzigingen.","Change order":"Volgorde wijzigen","Move in any direction":"In elke richting bewegen","Show all columns":"Alle kolommen tonen","Hide lower priority columns":"Kolommen met een lagere prioriteit verbergen","Show table cells that were hidden to make the table fit within a small screen.":"Toon de tabelcellen die verborgen werden om de tabel te laten passen op een klein scherm.","Select all rows in this table":"Selecteer alle regels van deze tabel","Deselect all rows in this table":"De-selecteer alle regels van deze tabel","(active tab)":"(actieve tabblad)","1 block is available in the modified list.\u0003@count blocks are available in the modified list.":"1 blok beschikbaar in de lijst met wijzigingen.\u0003@count blokken beschikbaar in de lijst met wijzigingen.","Not restricted":"Geen beperking","Restricted to certain pages":"Beperkt tot bepaalde pagina\u0027s","The block cannot be placed in this region.":"Het blok kan niet worden geplaatst in dit gebied.","Please provide a name for the button group.":"Voer een naam voor de knoppengroep in.","Button group name":"Knopgroepnaam","Apply":"Toepassen","Cancel":"Annuleren","Editing the name of the new button group in a dialog.":"De naam van een nieuwe knoppengroep in een dialoogvenster bewerken.","Editing the name of the \u0022@groupName\u0022 button group in a dialog.":"De naam van de knoppengroep \u0027@groupName\u0027 in een dialoogvenster bewerken.","Place a button to create a new button group.":"Plaats een knop om een nieuwe knopgroep aan te maken.","New group":"Nieuwe groep","Add a CKEditor button group to the end of this row.":"Een CKEditor-knoppengroep aan het einde van deze regel toevoegen.","Add group":"Groep toevoegen","Uploads disabled":"Uploads uitgeschakeld","Uploads enabled, max size: @size @dimensions":"Uploads ingeschakeld, maximale grootte: @size @dimensions","Edit media":"Media bewerken","Rich Text Editor, !label field":"Opgemaakte tekst-editor, veld !label","No styles configured":"Geen stijlen ingesteld","@count styles configured":"@count stijlen ingesteld","Image":"Afbeelding","Link":"Link","Unlink":"Link verwijderen","Edit Link":"Link bewerken","Embedded media":"Ingesloten media","Caption":"Onderschrift","Enter caption here":"Bijschrift hier invoeren","Insert from Media Library":"Invoegen uit de Mediabibliotheek","@groupName button group in position @position of @positionCount in row @row of @rowCount.":"Knopgroep @groupName in positie @position van @positionCount in rij @row van @rowCount.","Press the down arrow key to create a new row.":"Gebruik de \u0027pijl naar beneden\u0027-toets voor het aanmaken van een nieuwe rij.","button":"knop","@name @type.":"@name @type.","Press the down arrow key to activate.":"Druk op de toets \u0027pijl omlaag\u0027 om te activeren.","@name @type in position @position of @positionCount in @groupName button group in row @row of @rowCount.":"@type @name in positie @position van @positionCount in @groupName knopgroep in rij @row van @rowCount.","Press the down arrow key to create a new button group in a new row.":"Druk op de toets \u0027pijl omlaag\u0027 om een nieuwe knopgroep aan te maken in een nieuwe rij.","This is the last group. Move the button forward to create a new group.":"Dit is de laatste groep. Verplaats de knop vooruit om een nieuwe groep aan te maken.","The \u0022@name\u0022 button is currently enabled.":"De knop \u0027@name\u0027 is momenteel ingeschakeld.","Use the keyboard arrow keys to change the position of this button.":"Gebruik de pijltoetsen om de positie van deze knop te veranderen.","Press the up arrow key on the top row to disable the button.":"Gebruik de toets \u0027omhoog\u0027 in de bovenste regel om de knop uit te schakelen.","The \u0022@name\u0022 button is currently disabled.":"De knop \u0027@name\u0027 is momenteel uitgeschakeld.","Use the down arrow key to move this button into the active toolbar.":"Gebruik de toets \u0027omlaag\u0027 om de knop naar de actieve werkbalk te verplaatsen.","This @name is currently enabled.":"Deze @name is momenteel ingeschakeld.","Use the keyboard arrow keys to change the position of this separator.":"Gebruik de pijltoetsen van het toetsenbord om de knopscheider te verplaatsen.","Separators are used to visually split individual buttons.":"Knopscheiders worden gebruikt om knoppen visueel te scheiden.","This @name is currently disabled.":"Deze @name is momenteel uitgeschakeld.","Use the down arrow key to move this separator into the active toolbar.":"Gebruik de toets \u0027omlaag\u0027 om de knopscheider naar de actieve werkbalk te verplaatsen.","You may add multiple separators to each button group.":"Er kunnen meerdere knopscheiders in \u00e9\u00e9n knoppengroep worden gebruikt.","Hide group names":"Groepsnamen verbergen","Show group names":"Groepsnamen weergeven","Preview failed":"Voorbeeld mislukt","An error occurred while trying to preview the media. Please save your work and reload this page.":"Er ging iets fout bij het voorvertonen van de media. Sla uw werk op en herlaad deze pagina alstublieft.","Media widget":"Media widget","Insert Media":"Media toevoegen","Drupal Media toolbar":"Media-werkbalk","Not all functionality may be available because some information could not be retrieved.":"Wellicht is niet alle functionaliteit beschikbaar omdat bepaalde informatie niet opgehaald kon worden.","Save":"Opslaan","Alternative text override":"Alternatieve tekst overschrijven","Default alternative text:":"Standaard alternatieve tekst:","Override media image alternative text":"Alternatieve tekst van afbeelding overschrijven","Link media":"Media linken","Enter media caption":"Onderschrift voor media invoegen","Caption media":"Media onderschrift","Toggle caption off":"Onderschrift uitschakelen","Toggle caption on":"Onderschrift inschakelen","An error occurred while trying to preview the media. Save your work and reload this page.":"Er is een fout opgetreden tijdens de voorbeeldweergave van de media. Sla het werk op en laad deze pagina opnieuw.","Decorative image":"Decoratieve afbeelding","Button @name has been copied to the active toolbar.":"De knop @name is toegevoegd aan de actieve werkbalk.","Button @name has been removed from the active toolbar.":"De knop @name is verwijderd van de actieve werkbalk.","Button @name has been moved to the active toolbar.":"De knop @name is naar de actieve werkbalk verplaatst.","Divider":"Scheiding","Wrapping":"Omsluiten","Press the down arrow key to use this divider in the active button list":"Type het pijltje naar beneden om deze afscheiding in te voegen in de actieve knoppenlijst","Press the down arrow key to activate":"Type het pijltje naar beneden om in te schakelen","Press the up arrow key to deactivate. Use the right and left arrow keys to move position":"Type het pijltje omhoog om uit te schakelen. Gebruik de pijltjes rechts en links om te verplaatsen","Available buttons":"Beschikbare knoppen","Button divider":"Knoppenscheiding","Active toolbar":"Actieve werkbalk","Images can only be uploaded.":"Afbeeldingen kunnen alleen worden ge\u00fcpload.","Images can only be added by URL.":"Afbeeldingen kunnen alleen worden toegevoegd via een URL.","One style configured\u0003@count styles configured":"Een stijl ingesteld\u0003@count stijlen ingesteld","Open":"Open","@action @title configuration options":"@action @title configuratie-instellingen","Tabbing is no longer constrained by the C
7ontextual module.":"Gebruik van tab-toets is niet langer beperkt tot de contextuele links.","Tabbing is constrained to a set of @contextualsCount and the edit mode toggle.":"Gebruik van de tab-toets is beperkt tot een set van @contextualsCount en het wisselen van de bewerkenmodus.","Press the esc key to exit.":"Druk op de ESC-toets om af te sluiten.","@count contextual link\u0003@count contextual links":"@count contextuele link\u0003@count contextuele links","Changing the text format to %text_format will permanently remove content that is not allowed in that text format.\u003Cbr\u003E\u003Cbr\u003ESave your changes before switching the text format to avoid losing data.":"Wijzigen van de tekstopmaak naar %text_format zal inhoud die niet toegestaan is in die opmaak permanent verwijderen.\u003Cbr\u003E\u003Cbr\u003ESla uw wijzigingen op voordat u de tekstopmaak omschakelt, om gegevensverlies te voorkomen.","Change text format?":"Tekstopmaak aanpassen?","Continue":"Doorgaan","The selected file %filename cannot be uploaded. Only files with the following extensions are allowed: %extensions.":"Het bestand %filename kan niet ge\u00fcpload worden. Alleen bestanden met de volgende extensies zijn toegestaan: %extensions.","Enabled":"Ingeschakeld","Disabled":"Uitgeschakeld","Based on the text editor configuration, these tags have automatically been added: \u003Cstrong\u003E@tag-list\u003C\/strong\u003E.":"Op basis van de configuratie van de teksteditor zijn de volgende elementen automatisch toegevoegd: \u003Cstrong\u003E@tag-list\u003C\/strong\u003E.","Hide description":"Beschrijving verbergen","Show description":"Beschrijving tonen","Changes made in this table will not be saved until the form is submitted.":"Wijzigingen in deze tabel worden pas opgeslagen wanneer het formulier wordt ingediend.","Done":"Gereed","Prev":"Vorige","Today":"Vandaag","Jan":"jan","Feb":"feb","Mar":"mrt","Apr":"apr","May":"mei","Jun":"jun","Jul":"jul","Aug":"aug","Sep":"sep","Oct":"okt","Nov":"nov","Dec":"dec","Sunday":"zondag","Monday":"maandag","Tuesday":"dinsdag","Wednesday":"woensdag","Thursday":"donderdag","Friday":"vrijdag","Saturday":"zaterdag","Sun":"zo","Mon":"ma","Tue":"di","Wed":"wo","Thu":"do","Fri":"vr","Sat":"za","Su":"zo","Mo":"ma","Tu":"di","We":"wo","Th":"do","Fr":"vr","Sa":"za","mm\/dd\/yy":"mm\/dd\/jj","By @name on @date":"Door @name op @date","By @name":"Door @name","Authored on @date":"Aangemaakt op @date","Not published":"Niet gepubliceerd","All @count items selected":"Alle @count items geselecteerd","Zero items selected":"Geen items geselecteerd","Select all media":"Selecteer alle media","Show media item weights":"Toon gewicht van media-items","Hide media item weights":"Gewicht van media-items verbergen","Not in menu":"Niet in een menu","Collapse sidebar":"Zijbalk inklappen","Expand sidebar":"Zijbalk uitklappen","Collapse":"Inklappen","Extend":"Uitbreiding","Requires a title":"Een titel is verplicht","Don\u0027t display post information":"Geen berichtinformatie weergeven","Not promoted":"Niet aangeraden","Leave preview?":"Voorbeeldweergave verlaten?","Leave preview":"Voorbeeldweergave verlaten","Leaving the preview will cause unsaved changes to be lost. Are you sure you want to leave the preview?":"Het verlaten van de voorbeeldweergave betekent dat nog niet opgeslagen wijzigingen verloren gaan. Weet u zeker dat u de voorbeeldweergave wilt verlaten?","CTRL+Left click will prevent this dialog from showing and proceed to the clicked link.":"CTRL+klik om deze dialoog over te slaan en direct naar de link te gaan.","Alias: @alias":"Alias: @alias","No alias":"Geen alias","!modules modules are available in the modified list.":"!modules modules zijn beschikbaar in de aangepaste lijst.","Hide summary":"Samenvatting verbergen","Edit summary":"Samenvatting bewerken","Home":"Home","The toolbar cannot be set to a horizontal orientation when it is locked.":"Als de werkbalk geblokkeerd is kan deze niet op horizontale ori\u00ebntatie gezet worden.","Horizontal orientation":"Horizontale ori\u00ebntatie","Vertical orientation":"Verticale ori\u00ebntatie","@label":"@label","Tray orientation changed to @orientation.":"Ori\u00ebntatie van de lade aangepast naar @orientation.","closed":"gesloten","opened":"geopend","Tray \u0022@tray\u0022 @action.":"Lade \u0027@tray\u0027 @action.","Tray @action.":"Lade @action.","This permission is inherited from the authenticated user role."
7:"Dit toegangsrecht is overgenomen van de rol \u0027geverifieerde gebruiker\u0027.","Remove group":"Groep verwijderen","Apply (all displays)":"Toepassen (alle weergaven)","Revert to default":"Terugzetten naar standaard","Apply (this display)":"Toepassen (deze weergave)","No items selected":"Geen items geselecteerd","1 item selected\u0003@count items selected":"1 item geselecteerd\u0003@count items geselecteerd","Select All":"Selecteer alle","Details":"Details","Restricted":"Beperkt","Title":"Titel","CSS classes":"CSS-klassen","ID":"ID","Advanced":"Uitgebreid","Open in new window":"Open in nieuw venster","File":"Bestand","Edit File":"Bestand bewerken","Crop image":"Afbeelding bijsnijden","Crop image (cropping applied)":"Afbeelding bijsnijden (uitsnede toegepast)","Cropping applied.":"Uitsnede toegepast.","Soft limit reached.":"Zachte limiet bereikt.","Add above":"Boven toevoegen","Automatic alias":"Automatische alias","Scheduled for publishing":"Gepland voor publiceren","Scheduled for unpublishing":"Gepland voor depubliceren","Not scheduled":"Niet ingepland","Publishing enabled":"Publicatie ingeschakeld","Unpublishing enabled":"Depublicatie ingeschakeld","Included in sitemap variants: ":"Opgenomen in de sitemapvarianten: ","Insert this token into your form":"Plaats deze token in uw formulier","First click a text field to insert your tokens into.":"Klik eerst een tekstveld aan om uw tokens in te plaatsen.","Selected 1 item\u0003Selected @count items":"1 item geselecteerd\u0003@count items geselecteerd","%d word(s) entered":"%d woord(en) ingevoerd","%d character(s) entered":"%d teken(s) ingevoerd","%d word(s) remaining":"%d woord(en) over","%d character(s) remaining":"%d teken(s) over","Select date":"Selecteer datum","Toggle details widget state.":"Widget detailstatus schakelen.","Collapse all":"Alles inklappen","Expand all":"Alles uitklappen","All details have been expanded.":"Alle details zijn uitgeklapt.","All details have been collapsed.":"Alle details zijn ingeklapt.","item":"item","items":"items","Hide sidebar panel":"Zijbalkpaneel verbergen","Show sidebar panel":"Zijbalkpaneel tonen"},"Long month name":{"January":"januari","February":"februari","March":"maart","April":"april","May":"mei","June":"juni","July":"juli","August":"augustus","September":"september","October":"oktober","November":"november","December":"december"}},"pluralFormula":{"1":0,"default":1}};; 8window.Drupal={behaviors:{},locale:{}};(function(Drupal,drupalSettings,drupalTranslations,console,Proxy,Reflect){Drupal.throwError=function(error){setTimeout(()=>{throw error;},0);};Drupal.attachBehaviors=function(context,settings){context=context||document;settings=settings||drupalSettings;const behaviors=Drupal.behaviors;Object.keys(behaviors||{}).forEach((i)=>{if(typeof behaviors[i].attach==='function')try{behaviors[i].attach(context,settings);}catch(e){Drupal.throwError(e);}});};Drupal.detachBehaviors=function(context,settings,trigger){context=context||document;settings=settings||drupalSettings;trigger=trigger||'unload';const behaviors=Drupal.behaviors;Object.keys(behaviors||{}).forEach((i)=>{if(typeof behaviors[i].detach==='function')try{behaviors[i].detach(context,settings,trigger);}catch(e){Drupal.throwError(e);}});};Drupal.checkPlain=function(str){str=str.toString().replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"').replace(/'/g,''');return str;};Drupal.formatString=function(str,args){const processedArgs={};Object.keys(args||{}).forEach((key)=>{switch(key.charAt(0)){case '@':processedArgs[key]=Drupal.checkPlain(args[key]);break;case '!':processedArgs[key]=args[key];break;default:processedArgs[key]=Drupal.theme('placeholder',args[key]);break;}});return Drupal.stringReplace(str,processedArgs,null);};Drupal.stringReplace=function(str,args,keys){if(str.length===0)return str;if(!Array.isArray(keys)){keys=Object.keys(args||{});keys.sort((a,b)=>a.length-b.length);}if(keys.length===0)return str;const key=keys.pop();const fragments=str.split(key);if(keys.length){for(let i=0;i<fragments.length;i++)fragments[i]=Drupal.stringReplace(fragments[i],args,keys.slice(0));}return fragments.join(args[key]);};Drupal.t=function(str,args,options){options=options||{};options.context=options.context||'';if(drupalTranslations?.strings?.[options.context]?.[str])str=drupalTranslations.strings[options.context][str];if(args)str=Drupal.formatString(str,args);return str;};Drupal.url=function(path){return drupalSettings.path.baseUrl+drupalSettings.path.pathPrefix+path;};Drupal.url.toAbsolute=function(url){const urlParsingNode=document.createElement('a');try{url=decodeURIComponent(url);}catch(e){}urlParsingNode.setAttribute('href',url);return urlParsingNode.href;};Drupal.url.isLocal=function(url){let absoluteUrl=Drupal.url.toAbsolute(url);let {protocol}=window.location;if(protocol==='http:'&&absoluteUrl.startsWith('https:'))protocol='https:';let baseUrl=`${protocol}//${window.location.host}${drupalSettings.path.baseUrl.slice(0,-1)}`;try{absoluteUrl=decodeURIComponent(absoluteUrl);}catch(e){}try{baseUrl=decodeURIComponent(baseUrl);}catch(e){}return absoluteUrl===baseUrl||absoluteUrl.startsWith(`${baseUrl}/`);};Drupal.formatPlural=function(count,singular,plural,args,options){args=args||{};args['@count']=count;const pluralDelimiter=drupalSettings.pluralDelimiter;const translations=Drupal.t(singular+pluralDelimiter+plural,args,options).split(pluralDelimiter);let index=0;
8if(drupalTranslations?.pluralFormula)index=count in drupalTranslations.pluralFormula?drupalTranslations.pluralFormula[count]:drupalTranslations.pluralFormula.default;else{if(args['@count']!==1)index=1;}return translations[index];};Drupal.encodePath=function(item){return window.encodeURIComponent(item).replace(/%2F/g,'/');};Drupal.deprecationError=({message})=>{if(drupalSettings.suppressDeprecationErrors===false&&console?.warn)console.warn(`[Deprecation] ${message}`);};Drupal.deprecatedProperty=({target,deprecatedProperty,message})=>{if(!Proxy||!Reflect)return target;return new Proxy(target,{get:(target,key,...rest)=>{if(key===deprecatedProperty)Drupal.deprecationError({message});return Reflect.get(target,key,...rest);}});};Drupal.theme=function(func,...args){if(typeof Drupal.theme?.[func]==='function')return Drupal.theme[func](...args);Drupal.throwError(new TypeError(`Drupal.theme.${func} must be function type.`));};Drupal.theme.placeholder=function(str){return `<em class="placeholder">${Drupal.checkPlain(str)}</em>`;};Drupal.elementIsVisible=function(elem){return !!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length);};Drupal.elementIsHidden=function(elem){return !Drupal.elementIsVisible(elem);};})(Drupal,window.drupalSettings,window.drupalTranslations,window.console,window.Proxy,window.Reflect);; 9if(window.jQuery)jQuery.noConflict();document.documentElement.className+=' js';(function(Drupal,drupalSettings){const domReady=(callback)=>{const listener=()=>{callback();document.removeEventListener('DOMContentLoaded',listener);};if(document.readyState!=='loading')setTimeout(callback,0);else document.addEventListener('DOMContentLoaded',listener);};domReady(()=>{Drupal.attachBehaviors(document,drupalSettings);});})(Drupal,window.drupalSettings);; 10/* @license MIT https://raw.githubusercontent.com/focus-trap/tabbable/v6.3.0/LICENSE */ 11/*! 12* tabbable 6.3.0 13* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 14*/ 15!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):(t="undefined"!=typeof globalThis?globalThis:t||self,function(){var n=t.tabbable,o=t.tabbable={};e(o),o.noConflict=function(){return t.tabbable=n,o}}())}(this,(function(t){"use strict";var e=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],n=e.join(","),o="undefined"==typeof Element,r=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,i=!o&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return null==t?void 0:t.ownerDocument},a=function(t,e){var n;void 0===e&&(e=!0);var o=null==t||null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"inert");return""===o||"true"===o||e&&t&&a(t.parentNode)},l=function(t,e,o){if(a(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(n));return e&&r.call(t,n)&&i.unshift(t),i=i.filter(o)},u=function(t,e,o){for(var i=[],l=Array.from(t);l.length;){var c=l.shift();if(!a(c,!1))if("SLOT"===c.tagName){var d=c.assignedElements(),f=d.length?d:c.children,s=u(f,!0,o);o.flatten?i.push.apply(i,s):i.push({scopeParent:c,candidates:s})}else{r.call(c,n)&&o.filter(c)&&(e||!t.includes(c))&&i.push(c);var p=c.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(c),h=!a(p,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(c));if(p&&h){var v=u(!0===p?c.children:p.children,!0,o);o.flatten?i.push.apply(i,v):i.push({scopeParent:c,candidates:v})}else l.unshift.apply(l,c.children)}}return i},c=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},d=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){var e,n=null==t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return""===n||"true"===n}(t))&&!c(t)?0:t.tabIndex},f=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},s=function(t){return"INPUT"===t.tagName},p=function(t){return function(t){return s(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||i(t),o=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=o(window.CSS.escape(t.name));else try{e=o(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var r=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!r||r===t}(t)},h=function(t){var e=t.getBoundingClientRect(),n=e.width,o=e.height;return 0===n&&0===o},v=function(t,e){var n=e.displayCheck,o=e.getShadowRoot;if("full-native"===n&&"checkVisibility"in t)return!t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(t).visibility)return!0;var a=r.call(t,"details>summary:first-of-type")?t.parentElement:t;if(r.call(a,"details:not([open]) *"))return!0;
vendor: 4,400 bytes, lines 15-56
15if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return h(t)}else{if("function"==typeof o){for(var l=t;t;){var u=t.parentElement,c=i(t);if(u&&!u.shadowRoot&&!0===o(u))return h(t);t=t.assignedSlot?t.assignedSlot:u||c===t.ownerDocument?u:c.host}t=l}if(function(t){var e,n,o,r,a=t&&i(t),l=null===(e=a)||void 0===e?void 0:e.host,u=!1;if(a&&a!==t)for(u=!!(null!==(n=l)&&void 0!==n&&null!==(o=n.ownerDocument)&&void 0!==o&&o.contains(l)||null!=t&&null!==(r=t.ownerDocument)&&void 0!==r&&r.contains(t));!u&&l;){var c,d,f;u=!(null===(d=l=null===(c=a=i(l))||void 0===c?void 0:c.host)||void 0===d||null===(f=d.ownerDocument)||void 0===f||!f.contains(l))}return u}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}return!1},b=function(t,e){return!(e.disabled||a(e)||function(t){return s(t)&&"hidden"===t.type}(e)||v(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var o=e.children.item(n);if("LEGEND"===o.tagName)return!!r.call(e,"fieldset[disabled] *")||!o.contains(t)}return!0}e=e.parentElement}return!1}(e))},y=function(t,e){return!(p(e)||d(e)<0||!b(t,e))},m=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},g=function(t){var e=[],n=[];return t.forEach((function(t,o){var r=!!t.scopeParent,i=r?t.scopeParent:t,a=function(t,e){var n=d(t);return n<0&&e&&!c(t)?0:n}(i,r),l=r?g(t.candidates):i;0===a?r?e.push.apply(e,l):e.push(i):n.push({documentOrder:o,tabIndex:a,item:t,isScope:r,content:l})})),n.sort(f).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(e)},w=e.concat("iframe").join(",");t.focusable=function(t,e){return(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:b.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):l(t,e.includeContainer,b.bind(null,e))},t.getTabIndex=d,t.isFocusable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==r.call(t,w)&&b(e,t)},t.isTabbable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==r.call(t,n)&&y(e,t)},t.tabbable=function(t,e){var n;return n=(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:y.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:m}):l(t,e.includeContainer,y.bind(null,e)),g(n)}})); 16 17; 18/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 19!function(){"use strict";const t=window.localStorage,e="alerts-closed";function n(n){const c=n.getAttribute("data-alert");n.querySelector("[data-alert-close]").addEventListener("click",()=>{!function(n){if(o(n))return;const r=i();r.push(n),t.setItem(e,r.join(","))}(c),r(n)}),o(c)?r(n):function(t){t.removeAttribute("hidden")}(n)}function o(t){return-1!==i().indexOf(t)}function i(){const n=t.getItem(e);return n?n.split(","):[]}function r(t){t.setAttribute("hidden","")}window.addEventListener("load",function(){document.querySelectorAll("[data-alert]").forEach(n)})}(); 20; 21/* @license MIT https://raw.githubusercontent.com/davidjbradshaw/iframe-resizer/master/LICENSE */ 22/* 23 * File: iframeResizer.js 24 * Desc: Force iframes to size to content. 25 * Requires: iframeResizer.contentWindow.js to be loaded into the target frame. 26 * Doc: https://iframe-resizer.com 27 * Author: David J. Bradshaw - [email protected] 28 */ 29 30console.info(` 31IFRAME-RESIZER 32 33Iframe-Resizer 5 is now available via the following two packages: 34 35 * @iframe-resizer/parent 36 * @iframe-resizer/child 37 38Additionally their are also new versions of iframe-resizer for React, Vue, and jQuery. 39 40Version 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events. 41 42Please see https://iframe-resizer.com/upgrade for more details. 43`) 44 45// eslint-disable-next-line sonarjs/cognitive-complexity, no-shadow-restricted-names 46;(function (undefined) { 47 if (typeof window === 'undefined') return // don't run for server side render 48 49 // var VERSION = '4.3.11' 50 51 var count = 0, 52 destroyObserver, 53 logEnabled = false, 54 hiddenCheckEnabled = false, 55 msgHeader = 'message', 56 msgHeaderLen = msgHeader.length,
57 msgId = '[iFrameSizer]', // Must match iframe msg ID 58 msgIdLen = msgId.length, 59 pagePosition = null, 60 requestAnimationFrame = window.requestAnimationFrame, 61 resetRequiredMethods = Object.freeze({ 62 max: 1, 63 scroll: 1, 64 bodyScroll: 1, 65 documentElementScroll: 1 66 }), 67 settings = {}, 68 timer = null, 69 defaults = Object.freeze({ 70 autoResize: true, 71 bodyBackground: null, 72 bodyMargin: null, 73 bodyMarginV1: 8, 74 bodyPadding: null, 75 checkOrigin: true, 76 inPageLinks: false, 77 enablePublicMethods: true, 78 heightCalculationMethod: 'bodyOffset', 79 id: 'iFrameResizer', 80 interval: 32, 81 license: '1jqr0si6pnt', 82 log: false, 83 maxHeight: Infinity, 84 maxWidth: Infinity, 85 minHeight: 0, 86 minWidth: 0, 87 mouseEvents: true, 88 resizeFrom: 'parent', 89 scrolling: false, 90 sizeHeight: true, 91 sizeWidth: false, 92 warningTimeout: 5000, 93 tolerance: 0, 94 widthCalculationMethod: 'scroll', 95 onClose: function () { 96 return true 97 }, 98 onClosed: function () {}, 99 onInit: function () {}, 100 onMessage: function () { 101 warn('onMessage function not defined') 102 }, 103 onMouseEnter: function () {}, 104 onMouseLeave: function () {}, 105 onResized: function () {}, 106 onScroll: function () { 107 return true 108 } 109 }) 110 111 function getMutationObserver() { 112 return ( 113 window.MutationObserver || 114 window.WebKitMutationObserver || 115 window.MozMutationObserver 116 ) 117 } 118 119 function addEventListener(el, evt, func) { 120 el.addEventListener(evt, func, false) 121 } 122 123 function removeEventListener(el, evt, func) { 124 el.removeEventListener(evt, func, false) 125 } 126 127 function setupRequestAnimationFrame() { 128 var vendors = ['moz', 'webkit', 'o', 'ms'] 129 var x 130 131 // Remove vendor prefixing if prefixed and break early if not 132 for (x = 0; x < vendors.length && !requestAnimationFrame; x += 1) { 133 requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame'] 134 } 135 136 if (requestAnimationFrame) { 137 // Firefox extension content-scripts have a globalThis object that is not the same as window. 138 // Binding `requestAnimationFrame` to window allows the function to work and prevents errors 139 // being thrown when run in that context, and should be a no-op in every other context. 140 requestAnimationFrame = requestAnimationFrame.bind(window) 141 } else { 142 log('setup', 'RequestAnimationFrame not supported') 143 } 144 } 145 146 function getMyID(iframeId) { 147 var retStr = 'Host page: ' + iframeId 148 149 if (window.top !== window.self) { 150 retStr = 151 window.parentIFrame && window.parentIFrame.getId 152 ? window.parentIFrame.getId() + ': ' + iframeId 153 : 'Nested host page: ' + iframeId 154 } 155 156 return retStr 157 } 158 159 function formatLogHeader(iframeId) { 160 return msgId + '[' + getMyID(iframeId) + ']' 161 } 162 163 function isLogEnabled(iframeId) { 164 return settings[iframeId] ? settings[iframeId].log : logEnabled 165 } 166 167 function log(iframeId, msg) { 168 output('log', iframeId, msg, isLogEnabled(iframeId)) 169 } 170 171 function info(iframeId, msg) { 172 output('info', iframeId, msg, isLogEnabled(iframeId)) 173 } 174 175 function warn(iframeId, msg) { 176 output('warn', iframeId, msg, true) 177 } 178 179 function output(type, iframeId, msg, enabled) { 180 if (true === enabled && 'object' === typeof window.console) { 181 // eslint-disable-next-line no-console 182 console[type](formatLogHeader(iframeId), msg) 183 } 184 } 185 186 function iFrameListener(event) { 187 function resizeIFrame() { 188 function resize() { 189 setSize(messageData) 190 setPagePosition(iframeId) 191 on('onResized', messageData) 192 } 193 194 ensureInRange('Height') 195 ensureInRange('Width') 196 197 syncResize(resize, messageData, 'init') 198 } 199 200 function processMsg() { 201 var data = msg.slice(msgIdLen).split(':') 202 var height = data[1] ? parseInt(data[1], 10) : 0 203 var iframe = settings[data[0]] && settings[data[0]].iframe 204 var compStyle = getComputedStyle(iframe) 205 206 return { 207 iframe: iframe, 208 id: data[0], 209 height: height + getPaddingEnds(compStyle) + getBorderEnds(compStyle), 210 width: data[2], 211 type: data[3] 212 } 213 } 214 215 function getPaddingEnds(compStyle) { 216 if (compStyle.boxSizing !== 'border-box') { 217 return 0 218 } 219 var top = compStyle.paddingTop ? parseInt(compStyle.paddingTop, 10) : 0 220 var bot = compStyle.paddingBottom 221 ? parseInt(compStyle.paddingBottom, 10) 222 : 0 223 return top + bot 224 } 225 226 function getBorderEnds(compStyle) { 227 if (compStyle.boxSizing !== 'border-box') { 228 return 0 229 } 230 var top = compStyle.borderTopWidth 231 ? parseInt(compStyle.borderTopWidth, 10) 232 : 0 233 var bot = compStyle.borderBottomWidth 234 ? parseInt(compStyle.borderBottomWidth, 10) 235 : 0 236 return top + bot 237 } 238 239 function ensureInRange(Dimension) { 240 var max = Number(settings[iframeId]['max' + Dimension]), 241 min = Number(settings[iframeId]['min' + Dimension]), 242 dimension = Dimension.toLowerCase(), 243 size = Number(messageData[dimension]) 244 245 log(iframeId, 'Checking ' + dimension + ' is in range ' + min + '-' + max) 246 247 if (size < min) { 248 size = min 249 log(iframeId, 'Set ' + dimension + ' to min value') 250 } 251 252 if (size > max) { 253 size = max 254 log(iframeId, 'Set ' + dimension + ' to max value') 255 } 256 257 messageData[dimension] = '' + size 258 } 259 260 function isMessageFromIFrame() { 261 function checkAllowedOrigin() { 262 function checkList() { 263 var i = 0, 264 retCode = false 265 266 log( 267 iframeId, 268 'Checking connection is from allowed list of origins: ' + 269 checkOrigin 270 ) 271 272 for (; i < checkOrigin.length; i++) { 273 if (checkOrigin[i] === origin) { 274 retCode = true 275 break 276 } 277 } 278 return retCode 279 } 280 281 function checkSingle() { 282 var remoteHost = settings[iframeId] && settings[iframeId].remoteHost 283 log(iframeId, 'Checking connection is from: ' + remoteHost) 284 return origin === remoteHost 285 } 286 287 return checkOrigin.constructor === Array ? checkList() : checkSingle() 288 } 289 290 var origin = event.origin, 291 checkOrigin = settings[iframeId] && settings[iframeId].checkOrigin 292 293 if (checkOrigin && '' + origin !== 'null' && !checkAllowedOrigin()) { 294 throw new Error( 295 'Unexpected message received from: ' + 296 origin + 297 ' for ' + 298 messageData.iframe.id + 299 '. Message was: ' + 300 event.data + 301 '. This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.' 302 ) 303 } 304 305 return true 306 } 307 308 function isMessageForUs() { 309 return ( 310 msgId === ('' + msg).slice(0, msgIdLen) && 311 msg.slice(msgIdLen).split(':')[0] in settings 312 ) // ''+Protects against non-string msg 313 } 314 315 function isMessageFromMetaParent() { 316 // Test if this message is from a parent above us. This is an ugly test, however, updating 317 // the message format would break backwards compatibility. 318 var retCode = messageData.type in { true: 1, false: 1, undefined: 1 } 319 320 if (retCode) { 321 log(iframeId, 'Ignoring init message from meta parent page') 322 } 323 324 return retCode 325 } 326 327 function getMsgBody(offset) { 328 return msg.slice(msg.indexOf(':') + msgHeaderLen + offset) 329 } 330 331 function forwardMsgFromIFrame(msgBody) { 332 log( 333 iframeId, 334 'onMessage passed: {iframe: ' + 335 messageData.iframe.id + 336 ', message: ' + 337 msgBody + 338 '}' 339 ) 340 341 on('onMessage', { 342 iframe: messageData.iframe, 343 message: JSON.parse(msgBody) 344 }) 345
346 log(iframeId, '--') 347 } 348 349 function getPageInfo() { 350 var bodyPosition = document.body.getBoundingClientRect(), 351 iFramePosition = messageData.iframe.getBoundingClientRect() 352 353 return JSON.stringify({ 354 iframeHeight: iFramePosition.height, 355 iframeWidth: iFramePosition.width, 356 clientHeight: Math.max( 357 document.documentElement.clientHeight, 358 window.innerHeight || 0 359 ), 360 clientWidth: Math.max( 361 document.documentElement.clientWidth, 362 window.innerWidth || 0 363 ), 364 offsetTop: parseInt(iFramePosition.top - bodyPosition.top, 10), 365 offsetLeft: parseInt(iFramePosition.left - bodyPosition.left, 10), 366 scrollTop: window.pageYOffset, 367 scrollLeft: window.pageXOffset, 368 documentHeight: document.documentElement.clientHeight, 369 documentWidth: document.documentElement.clientWidth, 370 windowHeight: window.innerHeight, 371 windowWidth: window.innerWidth 372 }) 373 } 374 375 function sendPageInfoToIframe(iframe, iframeId) { 376 function debouncedTrigger() { 377 trigger('Send Page Info', 'pageInfo:' + getPageInfo(), iframe, iframeId) 378 } 379 debounceFrameEvents(debouncedTrigger, 32, iframeId) 380 } 381 382 function startPageInfoMonitor() { 383 function setListener(type, func) { 384 function sendPageInfo() { 385 if (settings[id]) { 386 sendPageInfoToIframe(settings[id].iframe, id) 387 } else { 388 stop() 389 } 390 } 391 392 ;['scroll', 'resize'].forEach(function (evt) { 393 log(id, type + evt + ' listener for sendPageInfo') 394 func(window, evt, sendPageInfo) 395 }) 396 } 397 398 function stop() { 399 setListener('Remove ', removeEventListener) 400 } 401 402 function start() { 403 setListener('Add ', addEventListener) 404 } 405 406 var id = iframeId // Create locally scoped copy of iFrame ID 407 408 start() 409 410 if (settings[id]) { 411 settings[id].stopPageInfo = stop 412 } 413 } 414 415 function stopPageInfoMonitor() { 416 if (settings[iframeId] && settings[iframeId].stopPageInfo) { 417 settings[iframeId].stopPageInfo() 418 delete settings[iframeId].stopPageInfo 419 } 420 } 421 422 function checkIFrameExists() { 423 var retBool = true 424 425 if (null === messageData.iframe) { 426 warn(iframeId, 'IFrame (' + messageData.id + ') not found') 427 retBool = false 428 } 429 return retBool 430 } 431 432 function getElementPosition(target) { 433 var iFramePosition = target.getBoundingClientRect() 434 435 getPagePosition(iframeId) 436 437 return { 438 x: Math.floor(Number(iFramePosition.left) + Number(pagePosition.x)), 439 y: Math.floor(Number(iFramePosition.top) + Number(pagePosition.y)) 440 } 441 } 442 443 function scrollRequestFromChild(addOffset) { 444 /* istanbul ignore next */ // Not testable in Karma 445 function reposition() { 446 pagePosition = newPosition 447 scrollTo() 448 log(iframeId, '--') 449 } 450 451 function calcOffset() { 452 return { 453 x: Number(messageData.width) + offset.x, 454 y: Number(messageData.height) + offset.y 455 } 456 } 457 458 function scrollParent() { 459 if (window.parentIFrame) { 460 window.parentIFrame['scrollTo' + (addOffset ? 'Offset' : '')]( 461 newPosition.x, 462 newPosition.y 463 ) 464 } else { 465 warn( 466 iframeId, 467 'Unable to scroll to requested position, window.parentIFrame not found' 468 ) 469 } 470 } 471 472 var offset = addOffset 473 ? getElementPosition(messageData.iframe) 474 : { x: 0, y: 0 }, 475 newPosition = calcOffset() 476 477 log( 478 iframeId, 479 'Reposition requested from iFrame (offset x:' + 480 offset.x + 481 ' y:' + 482 offset.y + 483 ')' 484 ) 485 486 if (window.top === window.self) { 487 reposition() 488 } else { 489 scrollParent() 490 } 491 } 492 493 function scrollTo() { 494 if (false === on('onScroll', pagePosition)) { 495 unsetPagePosition() 496 } else { 497 setPagePosition(iframeId) 498 } 499 } 500 501 function findTarget(location) { 502 function jumpToTarget() { 503 var jumpPosition = getElementPosition(target) 504 505 log( 506 iframeId, 507 'Moving to in page link (#' + 508 hash + 509 ') at x: ' + 510 jumpPosition.x + 511 ' y: ' + 512 jumpPosition.y 513 ) 514 pagePosition = { 515 x: jumpPosition.x, 516 y: jumpPosition.y 517 } 518 519 scrollTo()
520 log(iframeId, '--') 521 } 522 523 function jumpToParent() { 524 if (window.parentIFrame) { 525 window.parentIFrame.moveToAnchor(hash) 526 } else { 527 log( 528 iframeId, 529 'In page link #' + 530 hash + 531 ' not found and window.parentIFrame not found' 532 ) 533 } 534 } 535 536 var hash = location.split('#')[1] || '', 537 hashData = decodeURIComponent(hash), 538 target = 539 document.getElementById(hashData) || 540 document.getElementsByName(hashData)[0] 541 542 if (target) { 543 jumpToTarget() 544 } else if (window.top === window.self) { 545 log(iframeId, 'In page link #' + hash + ' not found') 546 } else { 547 jumpToParent() 548 } 549 } 550 551 function onMouse(event) { 552 var mousePos = {} 553 554 if (Number(messageData.width) === 0 && Number(messageData.height) === 0) { 555 var data = getMsgBody(9).split(':') 556 mousePos = { 557 x: data[1], 558 y: data[0] 559 } 560 } else { 561 mousePos = { 562 x: messageData.width, 563 y: messageData.height 564 } 565 } 566 567 on(event, { 568 iframe: messageData.iframe, 569 screenX: Number(mousePos.x), 570 screenY: Number(mousePos.y), 571 type: messageData.type 572 }) 573 } 574 575 function on(funcName, val) { 576 return chkEvent(iframeId, funcName, val) 577 } 578 579 function actionMsg() { 580 if (settings[iframeId] && settings[iframeId].firstRun) firstRun() 581 582 switch (messageData.type) { 583 case 'close': { 584 closeIFrame(messageData.iframe) 585 break 586 } 587 588 case 'message': { 589 forwardMsgFromIFrame(getMsgBody(6)) 590 break 591 } 592 593 case 'mouseenter': { 594 onMouse('onMouseEnter') 595 break 596 } 597 598 case 'mouseleave': { 599 onMouse('onMouseLeave') 600 break 601 } 602 603 case 'autoResize': { 604 settings[iframeId].autoResize = JSON.parse(getMsgBody(9)) 605 break 606 } 607 608 case 'scrollTo': { 609 scrollRequestFromChild(false) 610 break 611 } 612 613 case 'scrollToOffset': { 614 scrollRequestFromChild(true) 615 break 616 } 617 618 case 'pageInfo': { 619 sendPageInfoToIframe( 620 settings[iframeId] && settings[iframeId].iframe, 621 iframeId 622 ) 623 startPageInfoMonitor() 624 break 625 } 626 627 case 'pageInfoStop': { 628 stopPageInfoMonitor() 629 break 630 } 631 632 case 'inPageLink': { 633 findTarget(getMsgBody(9)) 634 break 635 } 636 637 case 'reset': { 638 resetIFrame(messageData) 639 break 640 } 641 642 case 'init': { 643 resizeIFrame() 644 on('onInit', messageData.iframe) 645 break 646 } 647 648 default: { 649 if ( 650 Number(messageData.width) === 0 && 651 Number(messageData.height) === 0 652 ) { 653 warn( 654 'Unsupported message received (' + 655 messageData.type + 656 '), this is likely due to the iframe containing a later ' + 657 'version of iframe-resizer than the parent page' 658 ) 659 } else { 660 resizeIFrame() 661 } 662 } 663 } 664 } 665 666 function hasSettings(iframeId) { 667 var retBool = true 668 669 if (!settings[iframeId]) { 670 retBool = false 671 warn( 672 messageData.type + 673 ' No settings for ' + 674 iframeId + 675 '. Message was: ' + 676 msg 677 ) 678 } 679 680 return retBool 681 } 682 683 function iFrameReadyMsgReceived() { 684 // eslint-disable-next-line no-restricted-syntax, guard-for-in 685 for (var iframeId in settings) { 686 trigger( 687 'iFrame requested init', 688 createOutgoingMsg(iframeId), 689 settings[iframeId].iframe, 690 iframeId 691 ) 692 } 693 } 694 695 function firstRun() { 696 if (settings[iframeId]) { 697 settings[iframeId].firstRun = false 698 } 699 } 700 701 var msg = event.data, 702 messageData = {}, 703 iframeId = null 704 705 if ('[iFrameResizerChild]Ready' === msg) { 706 iFrameReadyMsgReceived() 707 } else if (isMessageForUs()) { 708 messageData = processMsg() 709 iframeId = messageData.id 710 if (settings[iframeId]) { 711 settings[iframeId].loaded = true 712 } 713 714 if (!isMessageFromMetaParent() && hasSettings(iframeId)) { 715 log(iframeId, 'Received: ' + msg) 716 717 if (checkIFrameExists() && isMessageFromIFrame()) { 718 actionMsg() 719 } 720 } 721 } else { 722 info(iframeId, 'Ignored: ' + msg) 723 } 724 } 725 726 function chkEvent(iframeId, funcName, val) { 727 var func = null, 728 retVal = null 729 730 if (settings[iframeId]) { 731 func = settings[iframeId][funcName] 732 733 if ('function' === typeof func) { 734 retVal = func(val) 735 } else { 736 throw new TypeError( 737 funcName + ' on iFrame[' + iframeId + '] is not a function' 738 ) 739 } 740 } 741 742 return retVal 743 } 744 745 function removeIframeListeners(iframe) { 746 var iframeId = iframe.id 747 delete settings[iframeId] 748 } 749 750 function closeIFrame(iframe) { 751 var iframeId = iframe.id 752 if (chkEvent(iframeId, 'onClose', iframeId) === false) { 753 log(iframeId, 'Close iframe cancelled by onClose event') 754 return 755 } 756 log(iframeId, 'Removing iFrame: ' + iframeId) 757 758 try { 759 // Catch race condition error with React 760 if (iframe.parentNode) { 761 iframe.parentNode.removeChild(iframe) 762 } 763 } catch (error) { 764 warn(error) 765 } 766 767 chkEvent(iframeId, 'onClosed', iframeId)
768 log(iframeId, '--') 769 removeIframeListeners(iframe) 770 if (destroyObserver) { 771 destroyObserver.disconnect() 772 destroyObserver = null 773 } 774 } 775 776 function getPagePosition(iframeId) { 777 if (null === pagePosition) { 778 pagePosition = { 779 x: 780 window.pageXOffset === undefined 781 ? document.documentElement.scrollLeft 782 : window.pageXOffset, 783 y: 784 window.pageYOffset === undefined 785 ? document.documentElement.scrollTop 786 : window.pageYOffset 787 } 788 log( 789 iframeId, 790 'Get page position: ' + pagePosition.x + ',' + pagePosition.y 791 ) 792 } 793 } 794 795 function setPagePosition(iframeId) { 796 if (null !== pagePosition) { 797 window.scrollTo(pagePosition.x, pagePosition.y) 798 log( 799 iframeId, 800 'Set page position: ' + pagePosition.x + ',' + pagePosition.y 801 ) 802 unsetPagePosition() 803 } 804 } 805 806 function unsetPagePosition() { 807 pagePosition = null 808 } 809 810 function resetIFrame(messageData) { 811 function reset() { 812 setSize(messageData) 813 trigger('reset', 'reset', messageData.iframe, messageData.id) 814 } 815 816 log( 817 messageData.id, 818 'Size reset requested by ' + 819 ('init' === messageData.type ? 'host page' : 'iFrame') 820 ) 821 getPagePosition(messageData.id) 822 syncResize(reset, messageData, 'reset') 823 } 824 825 function setSize(messageData) { 826 function setDimension(dimension) { 827 if (!messageData.id) { 828 log('undefined', 'messageData id not set') 829 return 830 } 831 messageData.iframe.style[dimension] = messageData[dimension] + 'px' 832 log( 833 messageData.id, 834 'IFrame (' + 835 iframeId + 836 ') ' + 837 dimension + 838 ' set to ' + 839 messageData[dimension] + 840 'px' 841 ) 842 } 843 844 function chkZero(dimension) { 845 // FireFox sets dimension of hidden iFrames to zero. 846 // So if we detect that set up an event to check for 847 // when iFrame becomes visible. 848 849 /* istanbul ignore next */ // Not testable in PhantomJS 850 if (!hiddenCheckEnabled && '0' === messageData[dimension]) { 851 hiddenCheckEnabled = true 852 log(iframeId, 'Hidden iFrame detected, creating visibility listener') 853 fixHiddenIFrames() 854 } 855 } 856 857 function processDimension(dimension) { 858 setDimension(dimension) 859 chkZero(dimension) 860 } 861 862 var iframeId = messageData.iframe.id 863 864 if (settings[iframeId]) { 865 if (settings[iframeId].sizeHeight) { 866 processDimension('height') 867 } 868 if (settings[iframeId].sizeWidth) { 869 processDimension('width') 870 } 871 } 872 } 873 874 function syncResize(func, messageData, doNotSync) { 875 /* istanbul ignore if */ // Not testable in PhantomJS 876 if ( 877 doNotSync !== messageData.type && 878 requestAnimationFrame && 879 // including check for jasmine because had trouble getting spy to work in unit test using requestAnimationFrame 880 !window.jasmine 881 ) { 882 log(messageData.id, 'Requesting animation frame') 883 requestAnimationFrame(func) 884 } else { 885 func() 886 } 887 } 888 889 function trigger(calleeMsg, msg, iframe, id, noResponseWarning) { 890 function postMessageToIFrame() { 891 var target = settings[id] && settings[id].targetOrigin 892 log( 893 id, 894 '[' + 895 calleeMsg + 896 '] Sending msg to iframe[' + 897 id + 898 '] (' + 899 msg + 900 ') targetOrigin: ' + 901 target 902 ) 903 iframe.contentWindow.postMessage(msgId + msg, target) 904 } 905 906 function iFrameNotFound() { 907 warn(id, '[' + calleeMsg + '] IFrame(' + id + ') not found') 908 } 909 910 function chkAndSend() { 911 if ( 912 iframe && 913 'contentWindow' in iframe && 914 null !== iframe.contentWindow 915 ) { 916 // Null test for PhantomJS 917 postMessageToIFrame() 918 } else { 919 iFrameNotFound() 920 } 921 } 922 923 function warnOnNoResponse() { 924 function warning() {
925 if (settings[id] && !settings[id].loaded && !errorShown) { 926 errorShown = true 927 warn( 928 id, 929 'IFrame has not responded within ' + 930 settings[id].warningTimeout / 1000 + 931 ' seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning.' 932 ) 933 } 934 } 935 936 if ( 937 !!noResponseWarning && 938 settings[id] && 939 !!settings[id].warningTimeout 940 ) { 941 settings[id].msgTimeout = setTimeout( 942 warning, 943 settings[id].warningTimeout 944 ) 945 } 946 } 947 948 var errorShown = false 949 950 id = id || iframe.id 951 952 if (settings[id]) { 953 chkAndSend() 954 warnOnNoResponse() 955 } 956 } 957 958 function createOutgoingMsg(iframeId) { 959 return ( 960 iframeId + 961 ':' + 962 settings[iframeId].bodyMarginV1 + 963 ':' + 964 settings[iframeId].sizeWidth + 965 ':' + 966 settings[iframeId].log + 967 ':' + 968 settings[iframeId].interval + 969 ':' + 970 settings[iframeId].enablePublicMethods + 971 ':' + 972 settings[iframeId].autoResize + 973 ':' + 974 settings[iframeId].bodyMargin + 975 ':' + 976 settings[iframeId].heightCalculationMethod + 977 ':' + 978 settings[iframeId].bodyBackground + 979 ':' + 980 settings[iframeId].bodyPadding + 981 ':' + 982 settings[iframeId].tolerance + 983 ':' + 984 settings[iframeId].inPageLinks + 985 ':' + 986 settings[iframeId].resizeFrom + 987 ':' + 988 settings[iframeId].widthCalculationMethod + 989 ':' + 990 settings[iframeId].mouseEvents 991 ) 992 } 993 994 function isNumber(value) { 995 return typeof value === 'number' 996 } 997 998 function setupIFrame(iframe, options) { 999 function setLimits() { 1000 function addStyle(style) { 1001 var styleValue = settings[iframeId][style] 1002 if (Infinity !== styleValue && 0 !== styleValue) { 1003 iframe.style[style] = isNumber(styleValue) 1004 ? styleValue + 'px' 1005 : styleValue 1006 log(iframeId, 'Set ' + style + ' = ' + iframe.style[style]) 1007 } 1008 } 1009 1010 function chkMinMax(dimension) { 1011 if ( 1012 settings[iframeId]['min' + dimension] > 1013 settings[iframeId]['max' + dimension] 1014 ) { 1015 throw new Error( 1016 'Value for min' + 1017 dimension + 1018 ' can not be greater than max' + 1019 dimension 1020 ) 1021 } 1022 } 1023 1024 chkMinMax('Height') 1025 chkMinMax('Width') 1026 1027 addStyle('maxHeight') 1028 addStyle('minHeight') 1029 addStyle('maxWidth') 1030 addStyle('minWidth') 1031 } 1032 1033 function newId() { 1034 var id = (options && options.id) || defaults.id + count++ 1035 if (null !== document.getElementById(id)) { 1036 id += count++ 1037 } 1038 return id 1039 } 1040 1041 function ensureHasId(iframeId) { 1042 if (typeof iframeId !== 'string') { 1043 throw new TypeError('Invaild id for iFrame. Expected String') 1044 } 1045 1046 if ('' === iframeId) { 1047 // eslint-disable-next-line no-multi-assign 1048 iframe.id = iframeId = newId() 1049 logEnabled = (options || {}).log 1050 log( 1051 iframeId, 1052 'Added missing iframe ID: ' + iframeId + ' (' + iframe.src + ')' 1053 ) 1054 } 1055 1056 return iframeId 1057 } 1058 1059 function setScrolling() { 1060 log( 1061 iframeId, 1062 'IFrame scrolling ' + 1063 (settings[iframeId] && settings[iframeId].scrolling 1064 ? 'enabled' 1065 : 'disabled') + 1066 ' for ' + 1067 iframeId 1068 ) 1069 iframe.style.overflow = 1070 false === (settings[iframeId] && settings[iframeId].scrolling) 1071 ? 'hidden' 1072 : 'auto' 1073 switch (settings[iframeId] && settings[iframeId].scrolling) { 1074 case 'omit': { 1075 break 1076 } 1077 1078 case true: { 1079 iframe.scrolling = 'yes' 1080 break 1081 } 1082 1083 case false: { 1084 iframe.scrolling = 'no' 1085 break 1086 } 1087 1088 default: { 1089 iframe.scrolling = settings[iframeId] 1090 ? settings[iframeId].scrolling 1091 : 'no' 1092 } 1093 } 1094 } 1095 1096 // The V1 iFrame script expects an int, where as in V2 expects a CSS 1097 // string value such as '1px 3em', so if we have an int for V2, set V1=V2 1098 // and then convert V2 to a string PX value. 1099 function setupBodyMarginValues() { 1100 if ( 1101 'number' ===
1102 typeof (settings[iframeId] && settings[iframeId].bodyMargin) || 1103 '0' === (settings[iframeId] && settings[iframeId].bodyMargin) 1104 ) { 1105 settings[iframeId].bodyMarginV1 = settings[iframeId].bodyMargin 1106 settings[iframeId].bodyMargin = 1107 '' + settings[iframeId].bodyMargin + 'px' 1108 } 1109 } 1110 1111 function checkReset() { 1112 // Reduce scope of firstRun to function, because IE8's JS execution 1113 // context stack is borked and this value gets externally 1114 // changed midway through running this function!!! 1115 var firstRun = settings[iframeId] && settings[iframeId].firstRun, 1116 resetRequertMethod = 1117 settings[iframeId] && 1118 settings[iframeId].heightCalculationMethod in resetRequiredMethods 1119 1120 if (!firstRun && resetRequertMethod) { 1121 resetIFrame({ iframe: iframe, height: 0, width: 0, type: 'init' }) 1122 } 1123 } 1124 1125 function setupIFrameObject() { 1126 if (settings[iframeId]) { 1127 settings[iframeId].iframe.iFrameResizer = { 1128 close: closeIFrame.bind(null, settings[iframeId].iframe), 1129 1130 removeListeners: removeIframeListeners.bind( 1131 null, 1132 settings[iframeId].iframe 1133 ), 1134 1135 resize: trigger.bind( 1136 null, 1137 'Window resize', 1138 'resize', 1139 settings[iframeId].iframe 1140 ), 1141 1142 moveToAnchor: function (anchor) { 1143 trigger( 1144 'Move to anchor', 1145 'moveToAnchor:' + anchor, 1146 settings[iframeId].iframe, 1147 iframeId 1148 ) 1149 }, 1150 1151 sendMessage: function (message) { 1152 message = JSON.stringify(message) 1153 trigger( 1154 'Send Message', 1155 'message:' + message, 1156 settings[iframeId].iframe, 1157 iframeId 1158 ) 1159 } 1160 } 1161 } 1162 } 1163 1164 // We have to call trigger twice, as we can not be sure if all 1165 // iframes have completed loading when this code runs. The 1166 // event listener also catches the page changing in the iFrame. 1167 function init(msg) { 1168 function iFrameLoaded() { 1169 trigger('iFrame.onload', msg, iframe, undefined, true) 1170 checkReset() 1171 } 1172 1173 function createDestroyObserver(MutationObserver) { 1174 if (!iframe.parentNode) { 1175 return null 1176 } 1177 1178 var destroyObserver = new MutationObserver(function (mutations) { 1179 mutations.forEach(function (mutation) { 1180 var removedNodes = Array.prototype.slice.call(mutation.removedNodes) // Transform NodeList into an Array 1181 removedNodes.forEach(function (removedNode) { 1182 if (removedNode === iframe) { 1183 closeIFrame(iframe) 1184 } 1185 }) 1186 }) 1187 }) 1188 destroyObserver.observe(iframe.parentNode, { 1189 childList: true 1190 }) 1191 return destroyObserver 1192 } 1193 1194 var MutationObserver = getMutationObserver() 1195 if (MutationObserver) { 1196 destroyObserver = createDestroyObserver(MutationObserver) 1197 } 1198 1199 addEventListener(iframe, 'load', iFrameLoaded) 1200 trigger('init', msg, iframe, undefined, true) 1201 } 1202 1203 function checkOptions(options) { 1204 if ('object' !== typeof options) { 1205 throw new TypeError('Options is not an object') 1206 } 1207 } 1208 1209 function copyOptions(options) { 1210 // eslint-disable-next-line no-restricted-syntax 1211 for (var option in defaults) { 1212 if (Object.prototype.hasOwnProperty.call(defaults, option)) { 1213 settings[iframeId][option] = Object.prototype.hasOwnProperty.call( 1214 options, 1215 option 1216 ) 1217 ? options[option] 1218 : defaults[option] 1219 } 1220 } 1221 } 1222 1223 function getTargetOrigin(remoteHost) { 1224 return '' === remoteHost || 1225 null !== remoteHost.match(/^(about:blank|javascript:|file:\/\/)/) 1226 ? '*' 1227 : remoteHost 1228 } 1229 1230 function depricate(key) { 1231 var splitName = key.split('Callback') 1232 1233 if (splitName.length === 2) { 1234 var name = 1235 'on' + splitName[0].charAt(0).toUpperCase() + splitName[0].slice(1) 1236 this[name] = this[key] 1237 delete this[key] 1238 warn( 1239 iframeId, 1240 "Deprecated: '" + 1241 key + 1242 "' has been renamed '" + 1243 name + 1244 "'. The old method will be removed in the next major version." 1245 ) 1246 } 1247 } 1248 1249 function processOptions(options) { 1250 options = options || {} 1251 1252 settings[iframeId] = Object.create(null) // Protect against prototype attacks 1253 settings[iframeId].iframe = iframe 1254 settings[iframeId].firstRun = true 1255 settings[iframeId].remoteHost = 1256 iframe.src && iframe.src.split('/').slice(0, 3).join('/') 1257 1258 checkOptions(options)
1259 Object.keys(options).forEach(depricate, options) 1260 copyOptions(options) 1261 1262 if (settings[iframeId]) { 1263 settings[iframeId].targetOrigin = 1264 true === settings[iframeId].checkOrigin 1265 ? getTargetOrigin(settings[iframeId].remoteHost) 1266 : '*' 1267 } 1268 } 1269 1270 function beenHere() { 1271 return iframeId in settings && 'iFrameResizer' in iframe 1272 } 1273 1274 var iframeId = ensureHasId(iframe.id) 1275 1276 if (beenHere()) { 1277 warn(iframeId, 'Ignored iFrame, already setup.') 1278 } else { 1279 processOptions(options) 1280 setScrolling() 1281 setLimits() 1282 setupBodyMarginValues() 1283 init(createOutgoingMsg(iframeId)) 1284 setupIFrameObject() 1285 } 1286 } 1287 1288 function debouce(fn, time) { 1289 if (null === timer) { 1290 timer = setTimeout(function () { 1291 timer = null 1292 fn() 1293 }, time) 1294 } 1295 } 1296 1297 var frameTimer = {} 1298 function debounceFrameEvents(fn, time, frameId) { 1299 if (!frameTimer[frameId]) { 1300 frameTimer[frameId] = setTimeout(function () { 1301 frameTimer[frameId] = null 1302 fn() 1303 }, time) 1304 } 1305 } 1306 1307 // Not testable in PhantomJS 1308 /* istanbul ignore next */ 1309 1310 function fixHiddenIFrames() { 1311 function checkIFrames() { 1312 function checkIFrame(settingId) { 1313 function chkDimension(dimension) { 1314 return ( 1315 '0px' === 1316 (settings[settingId] && settings[settingId].iframe.style[dimension]) 1317 ) 1318 } 1319 1320 function isVisible(el) { 1321 return null !== el.offsetParent 1322 } 1323 1324 if ( 1325 settings[settingId] && 1326 isVisible(settings[settingId].iframe) && 1327 (chkDimension('height') || chkDimension('width')) 1328 ) { 1329 trigger( 1330 'Visibility change', 1331 'resize', 1332 settings[settingId].iframe, 1333 settingId 1334 ) 1335 } 1336 } 1337 1338 Object.keys(settings).forEach(function (key) { 1339 checkIFrame(key) 1340 }) 1341 } 1342 1343 function mutationObserved(mutations) { 1344 log( 1345 'window', 1346 'Mutation observed: ' + mutations[0].target + ' ' + mutations[0].type 1347 ) 1348 debouce(checkIFrames, 16) 1349 } 1350 1351 function createMutationObserver() { 1352 var target = document.querySelector('body'), 1353 config = { 1354 attributes: true, 1355 attributeOldValue: false, 1356 characterData: true, 1357 characterDataOldValue: false, 1358 childList: true, 1359 subtree: true 1360 }, 1361 observer = new MutationObserver(mutationObserved) 1362 1363 observer.observe(target, config) 1364 } 1365 1366 var MutationObserver = getMutationObserver() 1367 if (MutationObserver) { 1368 createMutationObserver() 1369 } 1370 } 1371 1372 function resizeIFrames(event) { 1373 function resize() { 1374 sendTriggerMsg('Window ' + event, 'resize') 1375 } 1376 1377 log('window', 'Trigger event: ' + event) 1378 debouce(resize, 16) 1379 } 1380 1381 // Not testable in PhantomJS 1382 /* istanbul ignore next */ 1383 function tabVisible() { 1384 function resize() { 1385 sendTriggerMsg('Tab Visible', 'resize') 1386 } 1387 1388 if ('hidden' !== document.visibilityState) { 1389 log('document', 'Trigger event: Visibility change') 1390 debouce(resize, 16) 1391 } 1392 } 1393 1394 function sendTriggerMsg(eventName, event) { 1395 function isIFrameResizeEnabled(iframeId) { 1396 return ( 1397 settings[iframeId] && 1398 'parent' === settings[iframeId].resizeFrom && 1399 settings[iframeId].autoResize && 1400 !settings[iframeId].firstRun 1401 ) 1402 } 1403 1404 Object.keys(settings).forEach(function (iframeId) { 1405 if (isIFrameResizeEnabled(iframeId)) { 1406 trigger(eventName, event, settings[iframeId].iframe, iframeId) 1407 } 1408 }) 1409 } 1410 1411 function setupEventListeners() { 1412 addEventListener(window, 'message', iFrameListener) 1413 1414 addEventListener(window, 'resize', function () { 1415 resizeIFrames('resize') 1416 }) 1417 1418 addEventListener(document, 'visibilitychange', tabVisible) 1419 1420 addEventListener(document, '-webkit-visibilitychange', tabVisible) 1421 } 1422 1423 function factory() { 1424 function init(options, element) { 1425 function chkType() { 1426 if (!element.tagName) { 1427 throw new TypeError('Object is not a valid DOM element') 1428 } else if ('IFRAME' !== element.tagName.toUpperCase()) { 1429 throw new TypeError( 1430 'Expected <IFRAME> tag, found <' + element.tagName + '>' 1431 ) 1432 } 1433 } 1434 1435 if (element) { 1436 chkType() 1437 setupIFrame(element, options) 1438 iFrames.push(element) 1439 } 1440 } 1441 1442 function warnDeprecatedOptions(options) { 1443 if (options && options.enablePublicMethods) { 1444 warn( 1445 'enablePublicMethods option has been removed, public methods are now always available in the iFrame' 1446 ) 1447 } 1448 } 1449 1450 var iFrames 1451 1452 setupRequestAnimationFrame() 1453 setupEventListeners() 1454 1455 return function iFrameResizeF(options, target) { 1456 iFrames = [] // Only return iFrames past in on this call 1457 1458 warnDeprecatedOptions(options) 1459 1460 switch (typeof target) { 1461 case 'undefined': 1462 case 'string': { 1463 Array.prototype.forEach.call( 1464 document.querySelectorAll(target || 'iframe'), 1465 init.bind(undefined, options) 1466 ) 1467 break 1468 } 1469 1470 case 'object': { 1471 init(options, target) 1472 break 1473 } 1474 1475 default: { 1476 throw new TypeError('Unexpected data type (' + typeof target + ')') 1477 } 1478 } 1479 1480 return iFrames 1481 } 1482 } 1483 1484 function createJQueryPublicMethod($) { 1485 if (!$.fn) { 1486 info('', 'Unable to bind to jQuery, it is not fully loaded.') 1487 } else if (!$.fn.iFrameResize) { 1488 $.fn.iFrameResize = function $iFrameResizeF(options) { 1489 function init(index, element) { 1490 setupIFrame(element, options) 1491 } 1492 1493 return this.filter('iframe').each(init).end() 1494 } 1495 } 1496 } 1497 1498 if (window.jQuery !== undefined) { 1499 createJQueryPublicMethod(window.jQuery) 1500 } 1501 1502 if (typeof define === 'function' && define.amd) { 1503 define([], factory) 1504 } else if (typeof module === 'object' && typeof module.exports === 'object') { 1505 // Node for browserfy 1506 module.exports = factory() 1507 } 1508 window.iFrameResize = window.iFrameResize || factory() 1509})() 1510; 1511/* @license MIT https://raw.githubusercontent.com/atomiks/tippyjs/master/LICENSE */ 1512/** 1513 * @popperjs/core v2.11.8 - MIT License 1514 */ 1515 1516!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Popper={})}(this,(function(e){"use strict";function t(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function n(e){return e instanceof t(e).Element||e instanceof Element}function r(e){return e instanceof t(e).HTMLElement||e instanceof HTMLElement}function o(e){return"undefined"!=typeof ShadowRoot&&(e instanceof t(e).ShadowRoot||e instanceof ShadowRoot)}var i=Math.max,a=Math.min,s=Math.round;function f(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function c(){return!/^((?!chrome|android).)*safari/i.test(f())}function p(e,o,i){void 0===o&&(o=!1),void 0===i&&(i=!1);var a=e.getBoundingClientRect(),f=1,p=1;o&&r(e)&&(f=e.offsetWidth>0&&s(a.width)/e.offsetWidth||1,p=e.offsetHeight>0&&s(a.height)/e.offsetHeight||1);
vendor: 18,133 bytes, line 1516
1516var u=(n(e)?t(e):window).visualViewport,l=!c()&&i,d=(a.left+(l&&u?u.offsetLeft:0))/f,h=(a.top+(l&&u?u.offsetTop:0))/p,m=a.width/f,v=a.height/p;return{width:m,height:v,top:h,right:d+m,bottom:h+v,left:d,x:d,y:h}}function u(e){var n=t(e);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function l(e){return e?(e.nodeName||"").toLowerCase():null}function d(e){return((n(e)?e.ownerDocument:e.document)||window.document).documentElement}function h(e){return p(d(e)).left+u(e).scrollLeft}function m(e){return t(e).getComputedStyle(e)}function v(e){var t=m(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function y(e,n,o){void 0===o&&(o=!1);var i,a,f=r(n),c=r(n)&&function(e){var t=e.getBoundingClientRect(),n=s(t.width)/e.offsetWidth||1,r=s(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(n),m=d(n),y=p(e,c,o),g={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(f||!f&&!o)&&(("body"!==l(n)||v(m))&&(g=(i=n)!==t(i)&&r(i)?{scrollLeft:(a=i).scrollLeft,scrollTop:a.scrollTop}:u(i)),r(n)?((b=p(n,!0)).x+=n.clientLeft,b.y+=n.clientTop):m&&(b.x=h(m))),{x:y.left+g.scrollLeft-b.x,y:y.top+g.scrollTop-b.y,width:y.width,height:y.height}}function g(e){var t=p(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function b(e){return"html"===l(e)?e:e.assignedSlot||e.parentNode||(o(e)?e.host:null)||d(e)}function x(e){return["html","body","#document"].indexOf(l(e))>=0?e.ownerDocument.body:r(e)&&v(e)?e:x(b(e))}function w(e,n){var r;void 0===n&&(n=[]);var o=x(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=t(o),s=i?[a].concat(a.visualViewport||[],v(o)?o:[]):o,f=n.concat(s);return i?f:f.concat(w(b(s)))}function O(e){return["table","td","th"].indexOf(l(e))>=0}function j(e){return r(e)&&"fixed"!==m(e).position?e.offsetParent:null}function E(e){for(var n=t(e),i=j(e);i&&O(i)&&"static"===m(i).position;)i=j(i);return i&&("html"===l(i)||"body"===l(i)&&"static"===m(i).position)?n:i||function(e){var t=/firefox/i.test(f());if(/Trident/i.test(f())&&r(e)&&"fixed"===m(e).position)return null;var n=b(e);for(o(n)&&(n=n.host);r(n)&&["html","body"].indexOf(l(n))<0;){var i=m(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||n}var D="top",A="bottom",L="right",P="left",M="auto",k=[D,A,L,P],W="start",B="end",H="viewport",T="popper",R=k.reduce((function(e,t){return e.concat([t+"-"+W,t+"-"+B])}),[]),S=[].concat(k,[M]).reduce((function(e,t){return e.concat([t,t+"-"+W,t+"-"+B])}),[]),V=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function q(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function C(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&o(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function N(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function I(e,r,o){return r===H?N(function(e,n){var r=t(e),o=d(e),i=r.visualViewport,a=o.clientWidth,s=o.clientHeight,f=0,p=0;if(i){a=i.width,s=i.height;var u=c();(u||!u&&"fixed"===n)&&(f=i.offsetLeft,p=i.offsetTop)}return{width:a,height:s,x:f+h(e),y:p}}(e,o)):n(r)?function(e,t){var n=p(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(r,o):N(function(e){var t,n=d(e),r=u(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=i(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=i(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),f=-r.scrollLeft+h(e),c=-r.scrollTop;return"rtl"===m(o||n).direction&&(f+=i(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:f,y:c}}(d(e)))}function _(e,t,o,s){var f="clippingParents"===t?function(e){var t=w(b(e)),o=["absolute","fixed"].indexOf(m(e).position)>=0&&r(e)?E(e):e;return n(o)?t.filter((function(e){return n(e)&&C(e,o)&&"body"!==l(e)})):[]}(e):[].concat(t),c=[].concat(f,[o]),p=c[0],u=c.reduce((function(t,n){var r=I(e,n,s);return t.top=i(r.top,t.top),t.right=a(r.right,t.right),t.bottom=a(r.bottom,t.bottom),t.left=i(r.left,t.left),t}),I(e,p,s));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function F(e){return e.split("-")[0]}function U(e){return e.split("-")[1]}function z(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function X(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?F(o):null,a=o?U(o):null,s=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2;switch(i){case D:t={x:s,y:n.y-r.height};break;case A:t={x:s,y:n.y+n.height};break;case L:t={x:n.x+n.width,y:f};break;case P:t={x:n.x-r.width,y:f};break;default:t={x:n.x,y:n.y}}var c=i?z(i):null;if(null!=c){var p="y"===c?"height":"width";switch(a){case W:t[c]=t[c]-(n[p]/2-r[p]/2);break;case B:t[c]=t[c]+(n[p]/2-r[p]/2)}}return t}function Y(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function G(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function J(e,t){void 0===t&&(t={});var r=t,o=r.placement,i=void 0===o?e.placement:o,a=r.strategy,s=void 0===a?e.strategy:a,f=r.boundary,c=void 0===f?"clippingParents":f,u=r.rootBoundary,l=void 0===u?H:u,h=r.elementContext,m=void 0===h?T:h,v=r.altBoundary,y=void 0!==v&&v,g=r.padding,b=void 0===g?0:g,x=Y("number"!=typeof b?b:G(b,k)),w=m===T?"reference":T,O=e.rects.popper,j=e.elements[y?w:m],E=_(n(j)?j:j.contextElement||d(e.elements.popper),c,l,s),P=p(e.elements.reference),M=X({reference:P,element:O,strategy:"absolute",placement:i}),W=N(Object.assign({},O,M)),B=m===T?W:P,R={top:E.top-B.top+x.top,bottom:B.bottom-E.bottom+x.bottom,left:E.left-B.left+x.left,right:B.right-E.right+x.right},S=e.modifiersData.offset;if(m===T&&S){var V=S[i];Object.keys(R).forEach((function(e){var t=[L,A].indexOf(e)>=0?1:-1,n=[D,A].indexOf(e)>=0?"y":"x";R[e]+=V[n]*t}))}return R}var K={placement:"bottom",modifiers:[],strategy:"absolute"};function Q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Z(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,o=void 0===r?[]:r,i=t.defaultOptions,a=void 0===i?K:i;return function(e,t,r){void 0===r&&(r=a);var i,s,f={placement:"bottom",orderedModifiers:[],options:Object.assign({},K,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],p=!1,u={state:f,setOptions:function(r){var i="function"==typeof r?r(f.options):r;l(),f.options=Object.assign({},a,f.options,i),f.scrollParents={reference:n(e)?w(e):e.contextElement?w(e.contextElement):[],popper:w(t)};var s,p,d=function(e){var t=q(e);return V.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(o,f.options.modifiers),p=s.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(p).map((function(e){return p[e]}))));return f.orderedModifiers=d.filter((function(e){return e.enabled})),f.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:f,name:t,instance:u,options:r}),a=function(){};c.push(i||a)}})),u.update()},forceUpdate:function(){if(!p){var e=f.elements,t=e.reference,n=e.popper;if(Q(t,n)){f.rects={reference:y(t,E(n),"fixed"===f.options.strategy),popper:g(n)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach((function(e){return f.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<f.orderedModifiers.length;r++)if(!0!==f.reset){var o=f.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,c=o.name;"function"==typeof i&&(f=i({state:f,options:s,name:c,instance:u})||f)}else f.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(e){u.forceUpdate(),e(f)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(i())}))}))),s}),destroy:function(){l(),p=!0}};if(!Q(e,t))return u;function l(){c.forEach((function(e){return e()})),c=[]}return u.setOptions(r).then((function(e){!p&&r.onFirstUpdate&&r.onFirstUpdate(e)})),u}}var $={passive:!0};var ee={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var n=e.state,r=e.instance,o=e.options,i=o.scroll,a=void 0===i||i,s=o.resize,f=void 0===s||s,c=t(n.elements.popper),p=[].concat(n.scrollParents.reference,n.scrollParents.popper);return a&&p.forEach((function(e){e.addEventListener("scroll",r.update,$)})),f&&c.addEventListener("resize",r.update,$),function(){a&&p.forEach((function(e){e.removeEventListener("scroll",r.update,$)})),f&&c.removeEventListener("resize",r.update,$)}},data:{}};var te={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=X({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function re(e){var n,r=e.popper,o=e.popperRect,i=e.placement,a=e.variation,f=e.offsets,c=e.position,p=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,h=e.isFixed,v=f.x,y=void 0===v?0:v,g=f.y,b=void 0===g?0:g,x="function"==typeof l?l({x:y,y:b}):{x:y,y:b};y=x.x,b=x.y;var w=f.hasOwnProperty("x"),O=f.hasOwnProperty("y"),j=P,M=D,k=window;if(u){var W=E(r),H="clientHeight",T="clientWidth";if(W===t(r)&&"static"!==m(W=d(r)).position&&"absolute"===c&&(H="scrollHeight",T="scrollWidth"),W=W,i===D||(i===P||i===L)&&a===B)M=A,b-=(h&&W===k&&k.visualViewport?k.visualViewport.height:W[H])-o.height,b*=p?1:-1;if(i===P||(i===D||i===A)&&a===B)j=L,y-=(h&&W===k&&k.visualViewport?k.visualViewport.width:W[T])-o.width,y*=p?1:-1}var R,S=Object.assign({position:c},u&&ne),V=!0===l?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:s(n*o)/o||0,y:s(r*o)/o||0}}({x:y,y:b},t(r)):{x:y,y:b};return y=V.x,b=V.y,p?Object.assign({},S,((R={})[M]=O?"0":"",R[j]=w?"0":"",R.transform=(k.devicePixelRatio||1)<=1?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",R)):Object.assign({},S,((n={})[M]=O?b+"px":"",n[j]=w?y+"px":"",n.transform="",n))}var oe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,f=void 0===s||s,c={placement:F(t.placement),variation:U(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,re(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,re(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ie={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},i=t.elements[e];r(i)&&l(i)&&(Object.assign(i.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});r(o)&&l(o)&&(Object.assign(o.style,a),Object.keys(i).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};var ae={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=S.reduce((function(e,n){return e[n]=function(e,t,n){var r=F(e),o=[P,D].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[P,L].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],f=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},se={left:"right",right:"left",bottom:"top",top:"bottom"};function fe(e){return e.replace(/left|right|bottom|top/g,(function(e){return se[e]}))}var ce={start:"end",end:"start"};function pe(e){return e.replace(/start|end/g,(function(e){return ce[e]}))}function ue(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,f=n.allowedAutoPlacements,c=void 0===f?S:f,p=U(r),u=p?s?R:R.filter((function(e){return U(e)===p})):k,l=u.filter((function(e){return c.indexOf(e)>=0}));0===l.length&&(l=u);var d=l.reduce((function(t,n){return t[n]=J(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[F(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}var le={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,f=n.fallbackPlacements,c=n.padding,p=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.flipVariations,h=void 0===d||d,m=n.allowedAutoPlacements,v=t.options.placement,y=F(v),g=f||(y===v||!h?[fe(v)]:function(e){if(F(e)===M)return[];var t=fe(e);return[pe(e),t,pe(t)]}(v)),b=[v].concat(g).reduce((function(e,n){return e.concat(F(n)===M?ue(t,{placement:n,boundary:p,rootBoundary:u,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,w=t.rects.popper,O=new Map,j=!0,E=b[0],k=0;k<b.length;k++){var B=b[k],H=F(B),T=U(B)===W,R=[D,A].indexOf(H)>=0,S=R?"width":"height",V=J(t,{placement:B,boundary:p,rootBoundary:u,altBoundary:l,padding:c}),q=R?T?L:P:T?A:D;x[S]>w[S]&&(q=fe(q));var C=fe(q),N=[];if(i&&N.push(V[H]<=0),s&&N.push(V[q]<=0,V[C]<=0),N.every((function(e){return e}))){E=B,j=!1;break}O.set(B,N)}if(j)for(var I=function(e){var t=b.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},_=h?3:1;_>0;_--){if("break"===I(_))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function de(e,t,n){return i(e,a(t,n))}var he={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=void 0===o||o,f=n.altAxis,c=void 0!==f&&f,p=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.padding,h=n.tether,m=void 0===h||h,v=n.tetherOffset,y=void 0===v?0:v,b=J(t,{boundary:p,rootBoundary:u,padding:d,altBoundary:l}),x=F(t.placement),w=U(t.placement),O=!w,j=z(x),M="x"===j?"y":"x",k=t.modifiersData.popperOffsets,B=t.rects.reference,H=t.rects.popper,T="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,R="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(k){if(s){var q,C="y"===j?D:P,N="y"===j?A:L,I="y"===j?"height":"width",_=k[j],X=_+b[C],Y=_-b[N],G=m?-H[I]/2:0,K=w===W?B[I]:H[I],Q=w===W?-H[I]:-B[I],Z=t.elements.arrow,$=m&&Z?g(Z):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},te=ee[C],ne=ee[N],re=de(0,B[I],$[I]),oe=O?B[I]/2-G-re-te-R.mainAxis:K-re-te-R.mainAxis,ie=O?-B[I]/2+G+re+ne+R.mainAxis:Q+re+ne+R.mainAxis,ae=t.elements.arrow&&E(t.elements.arrow),se=ae?"y"===j?ae.clientTop||0:ae.clientLeft||0:0,fe=null!=(q=null==S?void 0:S[j])?q:0,ce=_+ie-fe,pe=de(m?a(X,_+oe-fe-se):X,_,m?i(Y,ce):Y);k[j]=pe,V[j]=pe-_}if(c){var ue,le="x"===j?D:P,he="x"===j?A:L,me=k[M],ve="y"===M?"height":"width",ye=me+b[le],ge=me-b[he],be=-1!==[D,P].indexOf(x),xe=null!=(ue=null==S?void 0:S[M])?ue:0,we=be?ye:me-B[ve]-H[ve]-xe+R.altAxis,Oe=be?me+B[ve]+H[ve]-xe-R.altAxis:ge,je=m&&be?function(e,t,n){var r=de(e,t,n);return r>n?n:r}(we,me,Oe):de(m?we:ye,me,m?Oe:ge);k[M]=je,V[M]=je-me}t.modifiersData[r]=V}},requiresIfExists:["offset"]};var me={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=F(n.placement),f=z(s),c=[P,L].indexOf(s)>=0?"height":"width";if(i&&a){var p=function(e,t){return Y("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:G(e,k))}(o.padding,n),u=g(i),l="y"===f?D:P,d="y"===f?A:L,h=n.rects.reference[c]+n.rects.reference[f]-a[f]-n.rects.popper[c],m=a[f]-n.rects.reference[f],v=E(i),y=v?"y"===f?v.clientHeight||0:v.clientWidth||0:0,b=h/2-m/2,x=p[l],w=y-u[c]-p[d],O=y/2-u[c]/2+b,j=de(x,O,w),M=f;n.modifiersData[r]=((t={})[M]=j,t.centerOffset=j-O,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&C(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ve(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ye(e){return[D,L,A,P].some((function(t){return e[t]>=0}))}var ge={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.re
1516cts.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=J(t,{elementContext:"reference"}),s=J(t,{altBoundary:!0}),f=ve(a,r),c=ve(s,o,i),p=ye(f),u=ye(c);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u})}},be=Z({defaultModifiers:[ee,te,oe,ie]}),xe=[ee,te,oe,ie,ae,le,he,me,ge],we=Z({defaultModifiers:xe});e.applyStyles=ie,e.arrow=me,e.computeStyles=oe,e.createPopper=we,e.createPopperLite=be,e.defaultModifiers=xe,e.detectOverflow=J,e.eventListeners=ee,e.flip=le,e.hide=ge,e.offset=ae,e.popperGenerator=Z,e.popperOffsets=te,e.preventOverflow=he,Object.defineProperty(e,"__esModule",{value:!0})})); 1517 1518; 1519(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory(require('@popperjs/core')):typeof define==='function'&&define.amd?define(['@popperjs/core'],factory):(global=global||self,global.tippy=factory(global.Popper));}(this,(function(core){'use strict';var ROUND_ARROW='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>';var BOX_CLASS="tippy-box";var CONTENT_CLASS="tippy-content";var BACKDROP_CLASS="tippy-backdrop";var ARROW_CLASS="tippy-arrow";var SVG_ARROW_CLASS="tippy-svg-arrow";var TOUCH_OPTIONS={passive:true,capture:true};var TIPPY_DEFAULT_APPEND_TO=function TIPPY_DEFAULT_APPEND_TO(){return document.body;};function hasOwnProperty(obj,key){return {}.hasOwnProperty.call(obj,key);}function getValueAtIndexOrReturn(value,index,defaultValue){if(Array.isArray(value)){var v=value[index];return v==null?Array.isArray(defaultValue)?defaultValue[index]:defaultValue:v;}return value;}function isType(value,type){var str={}.toString.call(value);return str.indexOf('[object')===0&&str.indexOf(type+"]")>-1;}function invokeWithArgsOrReturn(value,args){return typeof value==='function'?value.apply(void 0,args):value;}function debounce(fn,ms){if(ms===0)return fn;var timeout;return function(arg){clearTimeout(timeout);timeout=setTimeout(function(){fn(arg);},ms);};}function removeProperties(obj,keys){var clone=Object.assign({},obj);keys.forEach(function(key){delete clone[key];});return clone;}function splitBySpaces(value){return value.split(/\s+/).filter(Boolean);}function normalizeToArray(value){return [].concat(value);}function pushIfUnique(arr,value){if(arr.indexOf(value)===-1)arr.push(value);}function unique(arr){return arr.filter(function(item,index){return arr.indexOf(item)===index;});}function getBasePlacement(placement){return placement.split('-')[0];}function arrayFrom(value){return [].slice.call(value);}function removeUndefinedProps(obj){return Object.keys(obj).reduce(function(acc,key){if(obj[key]!==undefined)acc[key]=obj[key];return acc;},{});}function div(){return document.createElement('div');}function isElement(value){return ['Element','Fragment'].some(function(type){return isType(value,type);});}function isNodeList(value){return isType(value,'NodeList');}function isMouseEvent(value){return isType(value,'MouseEvent');}function isReferenceElement(value){return !!(value&&value._tippy&&value._tippy.reference===value);}function getArrayOfElements(value){if(isElement(value))return [value];if(isNodeList(value))return arrayFrom(value);if(Array.isArray(value))return value;return arrayFrom(document.querySelectorAll(value));}function setTransitionDuration(els,value){els.forEach(function(el){if(el)el.style.transitionDuration=value+"ms";});}function setVisibilityState(els,state){els.forEach(function(el){if(el)el.setAttribute('data-state',state);});}function getOwnerDocument(elementOrElements){var _element$ownerDocumen;var _normalizeToArray=normalizeToArray(elementOrElements),element=_normalizeToArray[0];return element!=null&&(_element$ownerDocumen=element.ownerDocument)!=null&&_element$ownerDocumen.body?element.ownerDocument:document;}function isCursorOutsideInteractiveBorder(popperTreeData,event){var clientX=event.clientX,clientY=event.clientY;return popperTreeData.every(function(_ref){var popperRect=_ref.popperRect,popperState=_ref.popperState,props=_ref.props;var interactiveBorder=props.interactiveBorder;var basePlacement=getBasePlacement(popperState.placement);var offsetData=popperState.modifiersData.offset;if(!offsetData)return true;var topDistance=basePlacement==='bottom'?offsetData.top.y:0;var bottomDistance=basePlacement==='top'?offsetData.bottom.y:0;var leftDistance=basePlacement==='right'?offsetData.left.x:0;var rightDistance=basePlacement==='left'?offsetData.right.x:0;var exceedsTop=popperRect.top-clientY+topDistance>interactiveBorder;var exceedsBottom=clientY-popperRect.bottom-bottomDistance>interactiveBorder;var exceedsLeft=popperRect.left-clientX+leftDistance>interactiveBorder;
1519var exceedsRight=clientX-popperRect.right-rightDistance>interactiveBorder;return exceedsTop||exceedsBottom||exceedsLeft||exceedsRight;});}function updateTransitionEndListener(box,action,listener){var method=action+"EventListener";['transitionend','webkitTransitionEnd'].forEach(function(event){box[method](event,listener);});}function actualContains(parent,child){var target=child;while(target){var _target$getRootNode;if(parent.contains(target))return true;target=target.getRootNode==null?void 0:(_target$getRootNode=target.getRootNode())==null?void 0:_target$getRootNode.host;}return false;}var currentInput={isTouch:false};var lastMouseMoveTime=0;function onDocumentTouchStart(){if(currentInput.isTouch)return;currentInput.isTouch=true;if(window.performance)document.addEventListener('mousemove',onDocumentMouseMove);}function onDocumentMouseMove(){var now=performance.now();if(now-lastMouseMoveTime<20){currentInput.isTouch=false;document.removeEventListener('mousemove',onDocumentMouseMove);}lastMouseMoveTime=now;}function onWindowBlur(){var activeElement=document.activeElement;if(isReferenceElement(activeElement)){var instance=activeElement._tippy;if(activeElement.blur&&!instance.state.isVisible)activeElement.blur();}}function bindGlobalEventListeners(){document.addEventListener('touchstart',onDocumentTouchStart,TOUCH_OPTIONS);window.addEventListener('blur',onWindowBlur);}var isBrowser=typeof window!=='undefined'&&typeof document!=='undefined';var isIE11=isBrowser?!!window.msCrypto:false;function createMemoryLeakWarning(method){var txt=method==='destroy'?'n already-':' ';return [method+"() was called on a"+txt+"destroyed instance. This is a no-op but",'indicates a potential memory leak.'].join(' ');}function clean(value){var spacesAndTabs=/[ \t]{2,}/g;var lineStartWithSpaces=/^[ \t]*/gm;return value.replace(spacesAndTabs,' ').replace(lineStartWithSpaces,'').trim();}function getDevMessage(message){return clean("\n %ctippy.js\n\n %c"+clean(message)+"\n\n %c\uD83D\uDC77\u200D This is a development-only message. It will be removed in production.\n ");}function getFormattedMessage(message){return [getDevMessage(message),'color: #00C584; font-size: 1.3em; font-weight: bold;','line-height: 1.5','color: #a6a095;'];}var visitedMessages;{resetVisitedMessages();}function resetVisitedMessages(){visitedMessages=new Set();}function warnWhen(condition,message){if(condition&&!visitedMessages.has(message)){var _console;visitedMessages.add(message);(_console=console).warn.apply(_console,getFormattedMessage(message));}}function errorWhen(condition,message){if(condition&&!visitedMessages.has(message)){var _console2;visitedMessages.add(message);(_console2=console).error.apply(_console2,getFormattedMessage(message));}}function validateTargets(targets){var didPassFalsyValue=!targets;var didPassPlainObject=Object.prototype.toString.call(targets)==='[object Object]'&&!targets.addEventListener;errorWhen(didPassFalsyValue,['tippy() was passed','`'+String(targets)+'`','as its targets (first) argument. Valid types are: String, Element,','Element[], or NodeList.'].join(' '));errorWhen(didPassPlainObject,['tippy() was passed a plain object which is not supported as an argument','for virtual positioning. Use props.getReferenceClientRect instead.'].join(' '));}var pluginProps={animateFill:false,followCursor:false,inlinePositioning:false,sticky:false};var renderProps={allowHTML:false,animation:'fade',arrow:true,content:'',inertia:false,maxWidth:350,role:'tooltip',theme:'',zIndex:9999};var defaultProps=Object.assign({appendTo:TIPPY_DEFAULT_APPEND_TO,aria:{content:'auto',expanded:'auto'},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:true,ignoreAttributes:false,interactive:false,interactiveBorder:2,interactiveDebounce:0,moveTransition:'',offset:[0,10],onAfterUpdate:function onAfterUpdate(){},onBeforeUpdate:function onBeforeUpdate(){},onCreate:function onCreate(){},onDestroy:function onDestroy(){},onHidden:function onHidden(){},onHide:function onHide(){},onMount:function onMount(){},onShow:function onShow(){},onShown:function onShown(){},onTrigger:function onTrigger(){},onUntrigger:function onUntrigger(){},onClickOutside:function onClickOutside(){},placement:'top',plugins:[],popperOptions:{},render:null,showOnCreate:false,touch:true,trigger:'mouseenter focus',triggerTarget:null},pluginProps,renderProps);var defaultKeys=Object.keys(defaultProps);var setDefaultProps=function setDefaultProps(partialProps){{validateProps(partialProps,[]);}var keys=Object.keys(partialProps);keys.forEach(function(key){defaultProps[key]=partialProps[key];});};function getExtendedPassedProps(passedProps){var plugins=passedProps.plugins||[];var pluginProps=plugins.reduce(function(acc,plugin){var name=plugin.name,defaultValue=plugin.defaultValue;if(name){var _name;acc[name]=passedProps[name]!==undefined?passedProps[name]:(_name=defaultProps[name])!=null?_name:defaultValue;}return acc;},{});return Object.assign({},passedProps,pluginProps);}function getDataAttributeProps(reference,plugins){var propKeys=plugins?Object.keys(getExtendedPassedProps(Object.assign({},defaultProps,{plugins}))):defaultKeys;var props=propKeys.reduce(function(acc,key){var valueAsString=(reference.getAttribute("data-tippy-"+key)||'').trim();if(!valueAsString)return acc;if(key==='content')acc[key]=valueAsString;else try{acc[key]=JSON.parse(valueAsString);}catch(e){acc[key]=valueAsString;}return acc;},{});return props;}function evaluateProps(reference,props){var out=Object.assign({},props,{content:invokeWithArgsOrReturn(props.content,[reference])},props.ignoreAttributes?{}:getDataAttributeProps(reference,props.plugins));out.aria=Object.assign({},defaultProps.aria,out.aria);out.aria={expanded:out.aria.expanded==='auto'?props.interactive:out.aria.expanded,content:out.aria.content==='auto'?props.interactive?null:'describedby':out.aria.content};return out;}function validateProps(partialProps,plugins){if(partialProps===void 0)partialProps={};if(plugins===void 0)plugins=[];var keys=Object.keys(partialProps);keys.forEach(function(prop){var nonPluginProps=removeProperties(defaultProps,Object.keys(pluginProps));var didPassUnknownProp=!hasOwnProperty(nonPluginProps,prop);if(didPassUnknownProp)didPassUnknownProp=plugins.filter(function(plugin){return plugin.name===prop;}).length===0;warnWhen(didPassUnknownProp,["`"+prop+"`","is not a valid prop. You may have spelled it incorrectly, or if it's",'a plugin, forgot to pass it in an array as props.plugins.','\n\n','All props: https://atomiks.github.io/tippyjs/v6/all-props/\n','Plugins: https://atomiks.github.io/tippyjs/v6/plugins/'].join(' '));});}var innerHTML=function innerHTML(){return 'innerHTML';};function dangerouslySetInnerHTML(element,html){element[innerHTML()]=html;}function createArrowElement(value){var arrow=div();if(value===true)arrow.className=ARROW_CLASS;else{arrow.className=SVG_ARROW_CLASS;if(isElement(value))arrow.appendChild(value);else dangerouslySetInnerHTML(arrow,value);}return arrow;}function setContent(content,props){if(isElement(props.content)){dangerouslySetInnerHTML(content,'');content.appendChild(props.content);}else{if(typeof props.content!=='function')if(props.allowHTML)dangerouslySetInnerHTML(content,props.content);else content.textContent=props.content;}}function getChildren(popper){var box=popper.firstElementChild;var boxChildren=arrayFrom(box.children);return {box,content:boxChildren.find(function(node){return node.classList.contains(CONTENT_CLASS);}),arrow:boxChildren.find(function(node){return node.classList.contains(ARROW_CLASS)||node.classList.contains(SVG_ARROW_CLASS);}),backdrop:boxChildren.find(function(node){return node.classList.contains(BACKDROP_CLASS);})};}function render(instance){var popper=div();var box=div();box.className=BOX_CLASS;box.setAttribute('data-state','hidden');box.setAttribute('tabindex','-1');var content=div();content.className=CONTENT_CLASS;content.setAttribute('data-state','hidden');setContent(content,instance.props);popper.appendChild(box);box.appendChild(content);onUpdate(instance.props,instance.props);function onUpdate(prevProps,nextProps){var _getChildren=getChildren(popper),box=_getChildren.box,content=_getChildren.content,arrow=_getChildren.arrow;if(nextProps.theme)box.setAttribute('data-theme',nextProps.theme);else box.removeAttribute('data-theme');
1519if(typeof nextProps.animation==='string')box.setAttribute('data-animation',nextProps.animation);else box.removeAttribute('data-animation');if(nextProps.inertia)box.setAttribute('data-inertia','');else box.removeAttribute('data-inertia');box.style.maxWidth=typeof nextProps.maxWidth==='number'?nextProps.maxWidth+"px":nextProps.maxWidth;if(nextProps.role)box.setAttribute('role',nextProps.role);else box.removeAttribute('role');if(prevProps.content!==nextProps.content||prevProps.allowHTML!==nextProps.allowHTML)setContent(content,instance.props);if(nextProps.arrow)if(!arrow)box.appendChild(createArrowElement(nextProps.arrow));else{if(prevProps.arrow!==nextProps.arrow){box.removeChild(arrow);box.appendChild(createArrowElement(nextProps.arrow));}}else{if(arrow)box.removeChild(arrow);}}return {popper,onUpdate};}render.$$tippy=true;var idCounter=1;var mouseMoveListeners=[];var mountedInstances=[];function createTippy(reference,passedProps){var props=evaluateProps(reference,Object.assign({},defaultProps,getExtendedPassedProps(removeUndefinedProps(passedProps))));var showTimeout;var hideTimeout;var scheduleHideAnimationFrame;var isVisibleFromClick=false;var didHideDueToDocumentMouseDown=false;var didTouchMove=false;var ignoreOnFirstUpdate=false;var lastTriggerEvent;var currentTransitionEndListener;var onFirstUpdate;var listeners=[];var debouncedOnMouseMove=debounce(onMouseMove,props.interactiveDebounce);var currentTarget;var id=idCounter++;var popperInstance=null;var plugins=unique(props.plugins);var state={isEnabled:true,isVisible:false,isDestroyed:false,isMounted:false,isShown:false};var instance={id,reference,popper:div(),popperInstance,props,state,plugins,clearDelayTimeouts,setProps,setContent,show,hide,hideWithInteractivity,enable,disable,unmount,destroy};if(!props.render){{errorWhen(true,'render() function has not been supplied.');}return instance;}var _props$render=props.render(instance),popper=_props$render.popper,onUpdate=_props$render.onUpdate;popper.setAttribute('data-tippy-root','');popper.id="tippy-"+instance.id;instance.popper=popper;reference._tippy=instance;popper._tippy=instance;var pluginsHooks=plugins.map(function(plugin){return plugin.fn(instance);});var hasAriaExpanded=reference.hasAttribute('aria-expanded');addListeners();handleAriaExpandedAttribute();handleStyles();invokeHook('onCreate',[instance]);if(props.showOnCreate)scheduleShow();popper.addEventListener('mouseenter',function(){if(instance.props.interactive&&instance.state.isVisible)instance.clearDelayTimeouts();});popper.addEventListener('mouseleave',function(){if(instance.props.interactive&&instance.props.trigger.indexOf('mouseenter')>=0)getDocument().addEventListener('mousemove',debouncedOnMouseMove);});return instance;function getNormalizedTouchSettings(){var touch=instance.props.touch;return Array.isArray(touch)?touch:[touch,0];}function getIsCustomTouchBehavior(){return getNormalizedTouchSettings()[0]==='hold';}function getIsDefaultRenderFn(){var _instance$props$rende;return !!((_instance$props$rende=instance.props.render)!=null&&_instance$props$rende.$$tippy);}function getCurrentTarget(){return currentTarget||reference;}function getDocument(){var parent=getCurrentTarget().parentNode;return parent?getOwnerDocument(parent):document;}function getDefaultTemplateChildren(){return getChildren(popper);}function getDelay(isShow){if(instance.state.isMounted&&!instance.state.isVisible||currentInput.isTouch||lastTriggerEvent&&lastTriggerEvent.type==='focus')return 0;return getValueAtIndexOrReturn(instance.props.delay,isShow?0:1,defaultProps.delay);}function handleStyles(fromHide){if(fromHide===void 0)fromHide=false;popper.style.pointerEvents=instance.props.interactive&&!fromHide?'':'none';popper.style.zIndex=""+instance.props.zIndex;}function invokeHook(hook,args,shouldInvokePropsHook){if(shouldInvokePropsHook===void 0)shouldInvokePropsHook=true;pluginsHooks.forEach(function(pluginHooks){if(pluginHooks[hook])pluginHooks[hook].apply(pluginHooks,args);});if(shouldInvokePropsHook){var _instance$props;(_instance$props=instance.props)[hook].apply(_instance$props,args);}}function handleAriaContentAttribute(){var aria=instance.props.aria;if(!aria.content)return;var attr="aria-"+aria.content;var id=popper.id;var nodes=normalizeToArray(instance.props.triggerTarget||reference);
1519nodes.forEach(function(node){var currentValue=node.getAttribute(attr);if(instance.state.isVisible)node.setAttribute(attr,currentValue?currentValue+" "+id:id);else{var nextValue=currentValue&¤tValue.replace(id,'').trim();if(nextValue)node.setAttribute(attr,nextValue);else node.removeAttribute(attr);}});}function handleAriaExpandedAttribute(){if(hasAriaExpanded||!instance.props.aria.expanded)return;var nodes=normalizeToArray(instance.props.triggerTarget||reference);nodes.forEach(function(node){if(instance.props.interactive)node.setAttribute('aria-expanded',instance.state.isVisible&&node===getCurrentTarget()?'true':'false');else node.removeAttribute('aria-expanded');});}function cleanupInteractiveMouseListeners(){getDocument().removeEventListener('mousemove',debouncedOnMouseMove);mouseMoveListeners=mouseMoveListeners.filter(function(listener){return listener!==debouncedOnMouseMove;});}function onDocumentPress(event){if(currentInput.isTouch)if(didTouchMove||event.type==='mousedown')return;var actualTarget=event.composedPath&&event.composedPath()[0]||event.target;if(instance.props.interactive&&actualContains(popper,actualTarget))return;if(normalizeToArray(instance.props.triggerTarget||reference).some(function(el){return actualContains(el,actualTarget);})){if(currentInput.isTouch)return;if(instance.state.isVisible&&instance.props.trigger.indexOf('click')>=0)return;}else invokeHook('onClickOutside',[instance,event]);if(instance.props.hideOnClick===true){instance.clearDelayTimeouts();instance.hide();didHideDueToDocumentMouseDown=true;setTimeout(function(){didHideDueToDocumentMouseDown=false;});if(!instance.state.isMounted)removeDocumentPress();}}function onTouchMove(){didTouchMove=true;}function onTouchStart(){didTouchMove=false;}function addDocumentPress(){var doc=getDocument();doc.addEventListener('mousedown',onDocumentPress,true);doc.addEventListener('touchend',onDocumentPress,TOUCH_OPTIONS);doc.addEventListener('touchstart',onTouchStart,TOUCH_OPTIONS);doc.addEventListener('touchmove',onTouchMove,TOUCH_OPTIONS);}function removeDocumentPress(){var doc=getDocument();doc.removeEventListener('mousedown',onDocumentPress,true);doc.removeEventListener('touchend',onDocumentPress,TOUCH_OPTIONS);doc.removeEventListener('touchstart',onTouchStart,TOUCH_OPTIONS);doc.removeEventListener('touchmove',onTouchMove,TOUCH_OPTIONS);}function onTransitionedOut(duration,callback){onTransitionEnd(duration,function(){if(!instance.state.isVisible&&popper.parentNode&&popper.parentNode.contains(popper))callback();});}function onTransitionedIn(duration,callback){onTransitionEnd(duration,callback);}function onTransitionEnd(duration,callback){var box=getDefaultTemplateChildren().box;function listener(event){if(event.target===box){updateTransitionEndListener(box,'remove',listener);callback();}}if(duration===0)return callback();updateTransitionEndListener(box,'remove',currentTransitionEndListener);updateTransitionEndListener(box,'add',listener);currentTransitionEndListener=listener;}function on(eventType,handler,options){if(options===void 0)options=false;var nodes=normalizeToArray(instance.props.triggerTarget||reference);nodes.forEach(function(node){node.addEventListener(eventType,handler,options);listeners.push({node,eventType,handler,options});});}function addListeners(){if(getIsCustomTouchBehavior()){on('touchstart',onTrigger,{passive:true});on('touchend',onMouseLeave,{passive:true});}splitBySpaces(instance.props.trigger).forEach(function(eventType){if(eventType==='manual')return;on(eventType,onTrigger);switch(eventType){case 'mouseenter':on('mouseleave',onMouseLeave);break;case 'focus':on(isIE11?'focusout':'blur',onBlurOrFocusOut);break;case 'focusin':on('focusout',onBlurOrFocusOut);break;}});}function removeListeners(){listeners.forEach(function(_ref){var node=_ref.node,eventType=_ref.eventType,handler=_ref.handler,options=_ref.options;node.removeEventListener(eventType,handler,options);});listeners=[];}function onTrigger(event){var _lastTriggerEvent;var shouldScheduleClickHide=false;if(!instance.state.isEnabled||isEventListenerStopped(event)||didHideDueToDocumentMouseDown)return;var wasFocused=((_lastTriggerEvent=lastTriggerEvent)==null?void 0:_lastTriggerEvent.type)==='focus';lastTriggerEvent=event;currentTarget=event.currentTarget;handleAriaExpandedAttribute();if(!instance.state.isVisible&&isMouseEvent(event))mouseMoveListeners.forEac
1519h(function(listener){return listener(event);});if(event.type==='click'&&(instance.props.trigger.indexOf('mouseenter')<0||isVisibleFromClick)&&instance.props.hideOnClick!==false&&instance.state.isVisible)shouldScheduleClickHide=true;else scheduleShow(event);if(event.type==='click')isVisibleFromClick=!shouldScheduleClickHide;if(shouldScheduleClickHide&&!wasFocused)scheduleHide(event);}function onMouseMove(event){var target=event.target;var isCursorOverReferenceOrPopper=getCurrentTarget().contains(target)||popper.contains(target);if(event.type==='mousemove'&&isCursorOverReferenceOrPopper)return;var popperTreeData=getNestedPopperTree().concat(popper).map(function(popper){var _instance$popperInsta;var instance=popper._tippy;var state=(_instance$popperInsta=instance.popperInstance)==null?void 0:_instance$popperInsta.state;if(state)return {popperRect:popper.getBoundingClientRect(),popperState:state,props};return null;}).filter(Boolean);if(isCursorOutsideInteractiveBorder(popperTreeData,event)){cleanupInteractiveMouseListeners();scheduleHide(event);}}function onMouseLeave(event){var shouldBail=isEventListenerStopped(event)||instance.props.trigger.indexOf('click')>=0&&isVisibleFromClick;if(shouldBail)return;if(instance.props.interactive){instance.hideWithInteractivity(event);return;}scheduleHide(event);}function onBlurOrFocusOut(event){if(instance.props.trigger.indexOf('focusin')<0&&event.target!==getCurrentTarget())return;if(instance.props.interactive&&event.relatedTarget&&popper.contains(event.relatedTarget))return;scheduleHide(event);}function isEventListenerStopped(event){return currentInput.isTouch?getIsCustomTouchBehavior()!==event.type.indexOf('touch')>=0:false;}function createPopperInstance(){destroyPopperInstance();var _instance$props2=instance.props,popperOptions=_instance$props2.popperOptions,placement=_instance$props2.placement,offset=_instance$props2.offset,getReferenceClientRect=_instance$props2.getReferenceClientRect,moveTransition=_instance$props2.moveTransition;var arrow=getIsDefaultRenderFn()?getChildren(popper).arrow:null;var computedReference=getReferenceClientRect?{getBoundingClientRect:getReferenceClientRect,contextElement:getReferenceClientRect.contextElement||getCurrentTarget()}:reference;var tippyModifier={name:'$$tippy',enabled:true,phase:'beforeWrite',requires:['computeStyles'],fn:function fn(_ref2){var state=_ref2.state;if(getIsDefaultRenderFn()){var _getDefaultTemplateCh=getDefaultTemplateChildren(),box=_getDefaultTemplateCh.box;['placement','reference-hidden','escaped'].forEach(function(attr){if(attr==='placement')box.setAttribute('data-placement',state.placement);else if(state.attributes.popper["data-popper-"+attr])box.setAttribute("data-"+attr,'');else box.removeAttribute("data-"+attr);});state.attributes.popper={};}}};var modifiers=[{name:'offset',options:{offset}},{name:'preventOverflow',options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:'flip',options:{padding:5}},{name:'computeStyles',options:{adaptive:!moveTransition}},tippyModifier];if(getIsDefaultRenderFn()&&arrow)modifiers.push({name:'arrow',options:{element:arrow,padding:3}});modifiers.push.apply(modifiers,(popperOptions==null?void 0:popperOptions.modifiers)||[]);instance.popperInstance=core.createPopper(computedReference,popper,Object.assign({},popperOptions,{placement,onFirstUpdate,modifiers}));}function destroyPopperInstance(){if(instance.popperInstance){instance.popperInstance.destroy();instance.popperInstance=null;}}function mount(){var appendTo=instance.props.appendTo;var parentNode;var node=getCurrentTarget();if(instance.props.interactive&&appendTo===TIPPY_DEFAULT_APPEND_TO||appendTo==='parent')parentNode=node.parentNode;else parentNode=invokeWithArgsOrReturn(appendTo,[node]);if(!parentNode.contains(popper))parentNode.appendChild(popper);instance.state.isMounted=true;createPopperInstance();{warnWhen(instance.props.interactive&&appendTo===defaultProps.appendTo&&node.nextElementSibling!==popper,['Interactive tippy element may not be accessible via keyboard','navigation because it is not directly after the reference element','in the DOM source order.','\n\n','Using a wrapper <div> or <span> tag around the reference element','solves this by creating a new parentNode context.','\n\n','Specifying `appendTo: document.body` silences this warning, but it','assumes you are using a focus management solution to handle','keyboard navigation.','\n\n','See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity'].join(' '));}}function getNestedPopperTree(){return arrayFrom(popper.querySelectorAll('[data-tippy-root]'));}function scheduleShow(event){instance.clearDelayTimeouts();if(event)invokeHook('onTrigger',[instance,event]);addDocumentPress();var delay=getDelay(true);var _getNormalizedTouchSe=getNormalizedTouchSettings(),touchValue=_getNormalizedTouchSe[0],touchDelay=_getNormalizedTouchSe[1];if(currentInput.isTouch&&touchValue==='hold'&&touchDelay)delay=touchDelay;if(delay)showTimeout=setTimeout(function(){instance.show();},delay);else instance.show();}function scheduleHide(event){instance.clearDelayTimeouts();invokeHook('onUntrigger',[instance,event]);if(!instance.state.isVisible){removeDocumentPress();return;}if(instance.props.trigger.indexOf('mouseenter')>=0&&instance.props.trigger.indexOf('click')>=0&&['mouseleave','mousemove'].indexOf(event.type)>=0&&isVisibleFromClick)return;var delay=getDelay(false);
1519if(delay)hideTimeout=setTimeout(function(){if(instance.state.isVisible)instance.hide();},delay);else scheduleHideAnimationFrame=requestAnimationFrame(function(){instance.hide();});}function enable(){instance.state.isEnabled=true;}function disable(){instance.hide();instance.state.isEnabled=false;}function clearDelayTimeouts(){clearTimeout(showTimeout);clearTimeout(hideTimeout);cancelAnimationFrame(scheduleHideAnimationFrame);}function setProps(partialProps){{warnWhen(instance.state.isDestroyed,createMemoryLeakWarning('setProps'));}if(instance.state.isDestroyed)return;invokeHook('onBeforeUpdate',[instance,partialProps]);removeListeners();var prevProps=instance.props;var nextProps=evaluateProps(reference,Object.assign({},prevProps,removeUndefinedProps(partialProps),{ignoreAttributes:true}));instance.props=nextProps;addListeners();if(prevProps.interactiveDebounce!==nextProps.interactiveDebounce){cleanupInteractiveMouseListeners();debouncedOnMouseMove=debounce(onMouseMove,nextProps.interactiveDebounce);}if(prevProps.triggerTarget&&!nextProps.triggerTarget)normalizeToArray(prevProps.triggerTarget).forEach(function(node){node.removeAttribute('aria-expanded');});else{if(nextProps.triggerTarget)reference.removeAttribute('aria-expanded');}handleAriaExpandedAttribute();handleStyles();if(onUpdate)onUpdate(prevProps,nextProps);if(instance.popperInstance){createPopperInstance();getNestedPopperTree().forEach(function(nestedPopper){requestAnimationFrame(nestedPopper._tippy.popperInstance.forceUpdate);});}invokeHook('onAfterUpdate',[instance,partialProps]);}function setContent(content){instance.setProps({content});}function show(){{warnWhen(instance.state.isDestroyed,createMemoryLeakWarning('show'));}var isAlreadyVisible=instance.state.isVisible;var isDestroyed=instance.state.isDestroyed;var isDisabled=!instance.state.isEnabled;var isTouchAndTouchDisabled=currentInput.isTouch&&!instance.props.touch;var duration=getValueAtIndexOrReturn(instance.props.duration,0,defaultProps.duration);if(isAlreadyVisible||isDestroyed||isDisabled||isTouchAndTouchDisabled)return;if(getCurrentTarget().hasAttribute('disabled'))return;invokeHook('onShow',[instance],false);if(instance.props.onShow(instance)===false)return;instance.state.isVisible=true;if(getIsDefaultRenderFn())popper.style.visibility='visible';handleStyles();addDocumentPress();if(!instance.state.isMounted)popper.style.transition='none';if(getIsDefaultRenderFn()){var _getDefaultTemplateCh2=getDefaultTemplateChildren(),box=_getDefaultTemplateCh2.box,content=_getDefaultTemplateCh2.content;setTransitionDuration([box,content],0);}onFirstUpdate=function onFirstUpdate(){var _instance$popperInsta2;if(!instance.state.isVisible||ignoreOnFirstUpdate)return;ignoreOnFirstUpdate=true;void popper.offsetHeight;popper.style.transition=instance.props.moveTransition;if(getIsDefaultRenderFn()&&instance.props.animation){var _getDefaultTemplateCh3=getDefaultTemplateChildren(),_box=_getDefaultTemplateCh3.box,_content=_getDefaultTemplateCh3.content;setTransitionDuration([_box,_content],duration);setVisibilityState([_box,_content],'visible');}handleAriaContentAttribute();handleAriaExpandedAttribute();pushIfUnique(mountedInstances,instance);(_instance$popperInsta2=instance.popperInstance)==null?void 0:_instance$popperInsta2.forceUpdate();invokeHook('onMount',[instance]);if(instance.props.animation&&getIsDefaultRenderFn())onTransitionedIn(duration,function(){instance.state.isShown=true;invokeHook('onShown',[instance]);});};mount();}function hide(){{warnWhen(instance.state.isDestroyed,createMemoryLeakWarning('hide'));}var isAlreadyHidden=!instance.state.isVisible;var isDestroyed=instance.state.isDestroyed;var isDisabled=!instance.state.isEnabled;var duration=getValueAtIndexOrReturn(instance.props.duration,1,defaultProps.duration);if(isAlreadyHidden||isDestroyed||isDisabled)return;invokeHook('onHide',[instance],false);if(instance.props.onHide(instance)===false)return;instance.state.isVisible=false;instance.state.isShown=false;ignoreOnFirstUpdate=false;isVisibleFromClick=false;if(getIsDefaultRenderFn())popper.style.visibility='hidden';cleanupInteractiveMouseListeners();removeDocumentPress();handleStyles(true);if(getIsDefaultRenderFn()){var _getDefaultTemplateCh4=getDefaultTemplateChildren(),box=_getDefaultTemplateCh4.box,content=_getDefaultTemplateCh4.content;if(instance.props.animation){setTransitionDuration([box,content],duration);setVisibilityState([box,content],'hidden');}}handleAriaContentAttribute();handleAriaExpandedAttribute();if(instance.props.animation){if(getIsDefaultRenderFn())onTransitionedOut(duration,instance.unmount);}else instance.unmount();}function hideWithInteractivity(event){{warnWhen(instance.state.isDestroyed,createMemoryLeakWarning('hideWithInteractivity'));}getDocument().addEventListener('mousemove',debouncedOnMouseMove);pushIfUnique(mouseMoveListeners,debouncedOnMouseMove);debouncedOnMouseMove(event);}function unmount(){{warnWhen(instance.state.isDestroyed,createMemoryLeakWarning('unmount'));}if(instance.state.isVisible)instance.hide();if(!instance.state.isMounted)return;destroyPopperInstance();
1519getNestedPopperTree().forEach(function(nestedPopper){nestedPopper._tippy.unmount();});if(popper.parentNode)popper.parentNode.removeChild(popper);mountedInstances=mountedInstances.filter(function(i){return i!==instance;});instance.state.isMounted=false;invokeHook('onHidden',[instance]);}function destroy(){{warnWhen(instance.state.isDestroyed,createMemoryLeakWarning('destroy'));}if(instance.state.isDestroyed)return;instance.clearDelayTimeouts();instance.unmount();removeListeners();delete reference._tippy;instance.state.isDestroyed=true;invokeHook('onDestroy',[instance]);}}function tippy(targets,optionalProps){if(optionalProps===void 0)optionalProps={};var plugins=defaultProps.plugins.concat(optionalProps.plugins||[]);{validateTargets(targets);validateProps(optionalProps,plugins);}bindGlobalEventListeners();var passedProps=Object.assign({},optionalProps,{plugins});var elements=getArrayOfElements(targets);{var isSingleContentElement=isElement(passedProps.content);var isMoreThanOneReferenceElement=elements.length>1;warnWhen(isSingleContentElement&&isMoreThanOneReferenceElement,['tippy() was passed an Element as the `content` prop, but more than','one tippy instance was created by this invocation. This means the','content element will only be appended to the last tippy instance.','\n\n','Instead, pass the .innerHTML of the element, or use a function that','returns a cloned version of the element instead.','\n\n','1) content: element.innerHTML\n','2) content: () => element.cloneNode(true)'].join(' '));}var instances=elements.reduce(function(acc,reference){var instance=reference&&createTippy(reference,passedProps);if(instance)acc.push(instance);return acc;},[]);return isElement(targets)?instances[0]:instances;}tippy.defaultProps=defaultProps;tippy.setDefaultProps=setDefaultProps;tippy.currentInput=currentInput;var hideAll=function hideAll(_temp){var _ref=_temp===void 0?{}:_temp,excludedReferenceOrInstance=_ref.exclude,duration=_ref.duration;mountedInstances.forEach(function(instance){var isExcluded=false;if(excludedReferenceOrInstance)isExcluded=isReferenceElement(excludedReferenceOrInstance)?instance.reference===excludedReferenceOrInstance:instance.popper===excludedReferenceOrInstance.popper;if(!isExcluded){var originalDuration=instance.props.duration;instance.setProps({duration});instance.hide();if(!instance.state.isDestroyed)instance.setProps({duration:originalDuration});}});};var applyStylesModifier=Object.assign({},core.applyStyles,{effect:function effect(_ref){var state=_ref.state;
1519var initialStyles={popper:{position:state.options.strategy,left:'0',top:'0',margin:'0'},arrow:{position:'absolute'},reference:{}};Object.assign(state.elements.popper.style,initialStyles.popper);state.styles=initialStyles;if(state.elements.arrow)Object.assign(state.elements.arrow.style,initialStyles.arrow);}});var createSingleton=function createSingleton(tippyInstances,optionalProps){var _optionalProps$popper;if(optionalProps===void 0)optionalProps={};{errorWhen(!Array.isArray(tippyInstances),['The first argument passed to createSingleton() must be an array of','tippy instances. The passed value was',String(tippyInstances)].join(' '));}var individualInstances=tippyInstances;var references=[];var triggerTargets=[];var currentTarget;var overrides=optionalProps.overrides;var interceptSetPropsCleanups=[];var shownOnCreate=false;function setTriggerTargets(){triggerTargets=individualInstances.map(function(instance){return normalizeToArray(instance.props.triggerTarget||instance.reference);}).reduce(function(acc,item){return acc.concat(item);},[]);}function setReferences(){references=individualInstances.map(function(instance){return instance.reference;});}function enableInstances(isEnabled){individualInstances.forEach(function(instance){if(isEnabled)instance.enable();else instance.disable();});}function interceptSetProps(singleton){return individualInstances.map(function(instance){var originalSetProps=instance.setProps;instance.setProps=function(props){originalSetProps(props);if(instance.reference===currentTarget)singleton.setProps(props);};return function(){instance.setProps=originalSetProps;};});}function prepareInstance(singleton,target){var index=triggerTargets.indexOf(target);if(target===currentTarget)return;currentTarget=target;var overrideProps=(overrides||[]).concat('content').reduce(function(acc,prop){acc[prop]=individualInstances[index].props[prop];return acc;},{});singleton.setProps(Object.assign({},overrideProps,{getReferenceClientRect:typeof overrideProps.getReferenceClientRect==='function'?overrideProps.getReferenceClientRect:function(){var _references$index;return (_references$index=references[index])==null?void 0:_references$index.getBoundingClientRect();}}));}enableInstances(false);setReferences();setTriggerTargets();var plugin={fn:function fn(){return {onDestroy:function onDestroy(){enableInstances(true);},onHidden:function onHidden(){currentTarget=null;},onClickOutside:function onClickOutside(instance){if(instance.props.showOnCreate&&!shownOnCreate){shownOnCreate=true;currentTarget=null;}},onShow:function onShow(instance){if(instance.props.showOnCreate&&!shownOnCreate){shownOnCreate=true;prepareInstance(instance,references[0]);}},onTrigger:function onTrigger(instance,event){prepareInstance(instance,event.currentTarget);}};}};var singleton=tippy(div(),Object.assign({},removeProperties(optionalProps,['overrides']),{plugins:[plugin].concat(optionalProps.plugins||[]),triggerTarget:triggerTargets,popperOptions:Object.assign({},optionalProps.popperOptions,{modifiers:[].concat(((_optionalProps$popper=optionalProps.popperOptions)==null?void 0:_optionalProps$popper.modifiers)||[],[applyStylesModifier])})}));var originalShow=singleton.show;singleton.show=function(target){originalShow();if(!currentTarget&&target==null)return prepareInstance(singleton,references[0]);if(currentTarget&&target==null)return;if(typeof target==='number')return references[target]&&prepareInstance(singleton,references[target]);if(individualInstances.indexOf(target)>=0){var ref=target.reference;return prepareInstance(singleton,ref);}if(references.indexOf(target)>=0)return prepareInstance(singleton,target);};singleton.showNext=function(){var first=references[0];if(!currentTarget)return singleton.show(0);var index=references.indexOf(currentTarget);singleton.show(references[index+1]||first);};singleton.showPrevious=function(){var last=references[references.length-1];if(!currentTarget)return singleton.show(last);var index=references.indexOf(currentTarget);var target=references[index-1]||last;singleton.show(target);};var originalSetProps=singleton.setProps;singleton.setProps=function(props){overrides=props.overrides||overrides;originalSetProps(props);};singleton.setInstances=function(nextInstances){enableInstances(true);interceptSetPropsCleanups.forEach(function(fn){return fn();});individualInstances=nextInstances;enableInstances(false);setReferences();setTriggerTargets();interceptSetPropsCleanups=interceptSetProps(singleton);singleton.setProps({triggerTarget:triggerTargets});};interceptSetPropsCleanups=interceptSetProps(singleton);return singleton;};var BUBBLING_EVENTS_MAP={mouseover:'mouseenter',focusin:'focus',click:'click'};function delegate(targets,props){{errorWhen(!(props&&props.target),['You must specity a `target` prop indicating a CSS selector string matching','the target elements that should receive a t
1519ippy.'].join(' '));}var listeners=[];var childTippyInstances=[];var disabled=false;var target=props.target;var nativeProps=removeProperties(props,['target']);var parentProps=Object.assign({},nativeProps,{trigger:'manual',touch:false});var childProps=Object.assign({touch:defaultProps.touch},nativeProps,{showOnCreate:true});var returnValue=tippy(targets,parentProps);var normalizedReturnValue=normalizeToArray(returnValue);function onTrigger(event){if(!event.target||disabled)return;var targetNode=event.target.closest(target);if(!targetNode)return;var trigger=targetNode.getAttribute('data-tippy-trigger')||props.trigger||defaultProps.trigger;if(targetNode._tippy)return;if(event.type==='touchstart'&&typeof childProps.touch==='boolean')return;if(event.type!=='touchstart'&&trigger.indexOf(BUBBLING_EVENTS_MAP[event.type])<0)return;var instance=tippy(targetNode,childProps);if(instance)childTippyInstances=childTippyInstances.concat(instance);}function on(node,eventType,handler,options){if(options===void 0)options=false;node.addEventListener(eventType,handler,options);listeners.push({node,eventType,handler,options});}function addEventListeners(instance){var reference=instance.reference;on(reference,'touchstart',onTrigger,TOUCH_OPTIONS);on(reference,'mouseover',onTrigger);on(reference,'focusin',onTrigger);on(reference,'click',onTrigger);}function removeEventListeners(){listeners.forEach(function(_ref){var node=_ref.node,eventType=_ref.eventType,handler=_ref.handler,options=_ref.options;node.removeEventListener(eventType,handler,options);});listeners=[];}function applyMutations(instance){var originalDestroy=instance.destroy;var originalEnable=instance.enable;var originalDisable=instance.disable;instance.destroy=function(shouldDestroyChildInstances){if(shouldDestroyChildInstances===void 0)shouldDestroyChildInstances=true;if(shouldDestroyChildInstances)childTippyInstances.forEach(function(instance){instance.destroy();});childTippyInstances=[];removeEventListeners();originalDestroy();};instance.enable=function(){originalEnable();childTippyInstances.forEach(function(instance){return instance.enable();});disabled=false;};instance.disable=function(){originalDisable();childTippyInstances.forEach(function(instance){return instance.disable();});disabled=true;};addEventListeners(instance);}normalizedReturnValue.forEach(applyMutations);return returnValue;}var animateFill={name:'animateFill',defaultValue:false,fn:function fn(instance){var _instance$props$rende;if(!((_instance$props$rende=instance.props.render)!=null&&_instance$props$rende.$$tippy)){{errorWhen(instance.props.animateFill,'The `animateFill` plugin requires the default render function.');}return {};}var _getChildren=getChildren(instance.popper),box=_getChildren.box,content=_getChildren.content;var backdrop=instance.props.animateFill?createBackdropElement():null;return {onCreate:function onCreate(){if(backdrop){box.insertBefore(backdrop,box.firstElementChild);box.setAttribute('data-animatefill','');box.style.overflow='hidden';instance.setProps({arrow:false,animation:'shift-away'});}},onMount:function onMount(){if(backdrop){var transitionDuration=box.style.transitionDuration;var duration=Number(transitionDuration.replace('ms',''));content.style.transitionDelay=Math.round(duration/10)+"ms";backdrop.style.transitionDuration=transitionDuration;setVisibilityState([backdrop],'visible');}},onShow:function onShow(){if(backdrop)backdrop.style.transitionDuration='0ms';},onHide:function onHide(){if(backdrop)setVisibilityState([backdrop],'hidden');}};}};function createBackdropElement(){var backdrop=div();backdrop.className=BACKDROP_CLASS;setVisibilityState([backdrop],'hidden');return backdrop;}var mouseCoords={clientX:0,clientY:0};var activeInstances=[];function storeMouseCoords(_ref){var clientX=_ref.clientX,clientY=_ref.clientY;mouseCoords={clientX,clientY};}function addMouseCoordsListener(doc){doc.addEventListener('mousemove',storeMouseCoords);}function removeMouseCoordsListener(doc){doc.removeEventListener('mousemove',storeMouseCoords);}var followCursor={name:'followCursor',defaultValue:false,fn:function fn(instance){var reference=instance.reference;var doc=getOwnerDocument(instance.props.triggerTarget||reference);var isInternalUpdate=false;var wasFocusEvent=false;var isUnmounted=true;var prevProps=instance.props;function getIsInitialBehavior(){return instance.props.followCursor==='initial'&&instance.state.isVisible;}function addListener(){doc.addEventListener('mousemove',onMouseMove);}function removeListener(){doc.removeEventListener('mousemove',onMouseMove);}function unsetGetReferenceClientRect(){isInternalUpdate=true;instance.setProps({getReferenceClientRect:null});isInternalUpdate=false;}function onMouseMove(event){var isCursorOverReference=event.target?reference.contains(event.target):true;var followCursor=instance.props.followCursor;var clientX=event.clientX,clientY=event.clientY;var rect=reference.getBoundingClientRect();var relativeX=clientX-rect.left;var relativeY=clientY-rect.top;if(isCursorOverReference||!instance.props.interactive)instance.setProps({getReferenceClientRect:function getReferenceClientRect(){var rect=reference.getBoundingClientRect();var x=clientX;var y=clientY;if(followCursor==='initial'){x=rect.left+relativeX;y=rect.top+relativeY;}var top=followCursor==='horizontal'?rect.top:y;var right=followCursor==='vertical'?rect.right:x;var bottom=followCursor==='horizontal'?rect.bottom:y;var left=followCursor==='vertical'?rect.left:x;return {width:right-left,height:bottom-top,top,right,bottom,left};}});}function create(){if(instance.props.followCursor){activeInstances.push({instance,doc});addMouseCoordsListener(doc);}}function destroy(){activeInstances=activeInstances.filter(function(data){return data.instance!==instance;});if(activeInstances.filter(function(data){return data.doc===doc;}).length===0)removeMouseCoordsListener(doc);}return {onCreate:create,onDestroy:destroy,onBeforeUpdate:function onBeforeUpdate(){prevProps=instance.props;},onAfterUpdate:function onAfterUpdate(_,_ref2){var followCursor=_ref2.followCursor;if(isInternalUpdate)return;if(followCursor!==undefined&&prevProps.followCursor!==followCursor){destroy();if(followCursor){create();if(instance.state.isMounted&&!wasFocusEvent&&!getIsInitialBehavior())addListener();}else{removeListener();unsetGetReferenceClientRect();}}},onMount:function onMount(){if(instance.props.followCursor&&!wasFocusEvent){if(isUnmounted){onMouseMove(mouseCoords);isUnmounted=false;}if(!getIsInitialBehavior())addListener();}},onTrigger:function onTrigger(_,event){if(isMouseEvent(event))mouseCoords={clientX:event.clientX,clientY:event.clientY};wasFocusEvent=event.type==='focus';},onHidden:function onHidden(){if(instance.props.followCursor){unsetGetReferenceClientRect();removeListener();isUnmounted=true;}}};}};function getProps(props,modifier){var _props$popperOptions;return {popperOptions:Object.assign({},props.popperOptions,{modifiers:[].concat((((_props$popperOptions=props.popperOptions)==null?void 0:_props$popperOptions.modifiers)||[]).filter(function(_ref){var name=_ref.name;
1519return name!==modifier.name;}),[modifier])})};}var inlinePositioning={name:'inlinePositioning',defaultValue:false,fn:function fn(instance){var reference=instance.reference;function isEnabled(){return !!instance.props.inlinePositioning;}var placement;var cursorRectIndex=-1;var isInternalUpdate=false;var triedPlacements=[];var modifier={name:'tippyInlinePositioning',enabled:true,phase:'afterWrite',fn:function fn(_ref2){var state=_ref2.state;if(isEnabled()){if(triedPlacements.indexOf(state.placement)!==-1)triedPlacements=[];if(placement!==state.placement&&triedPlacements.indexOf(state.placement)===-1){triedPlacements.push(state.placement);instance.setProps({getReferenceClientRect:function getReferenceClientRect(){return _getReferenceClientRect(state.placement);}});}placement=state.placement;}}};function _getReferenceClientRect(placement){return getInlineBoundingClientRect(getBasePlacement(placement),reference.getBoundingClientRect(),arrayFrom(reference.getClientRects()),cursorRectIndex);}function setInternalProps(partialProps){isInternalUpdate=true;instance.setProps(partialProps);isInternalUpdate=false;}function addModifier(){if(!isInternalUpdate)setInternalProps(getProps(instance.props,modifier));}return {onCreate:addModifier,onAfterUpdate:addModifier,onTrigger:function onTrigger(_,event){if(isMouseEvent(event)){var rects=arrayFrom(instance.reference.getClientRects());var cursorRect=rects.find(function(rect){return rect.left-2<=event.clientX&&rect.right+2>=event.clientX&&rect.top-2<=event.clientY&&rect.bottom+2>=event.clientY;});var index=rects.indexOf(cursorRect);cursorRectIndex=index>-1?index:cursorRectIndex;}},onHidden:function onHidden(){cursorRectIndex=-1;}};}};function getInlineBoundingClientRect(currentBasePlacement,boundingRect,clientRects,cursorRectIndex){if(clientRects.length<2||currentBasePlacement===null)return boundingRect;if(clientRects.length===2&&cursorRectIndex>=0&&clientRects[0].left>clientRects[1].right)return clientRects[cursorRectIndex]||boundingRect;switch(currentBasePlacement){case 'top':case 'bottom':var firstRect=clientRects[0];var lastRect=clientRects[clientRects.length-1];var isTop=currentBasePlacement==='top';var top=firstRect.top;var bottom=lastRect.bottom;var left=isTop?firstRect.left:lastRect.left;var right=isTop?firstRect.right:lastRect.right;var width=right-left;var height=bottom-top;return {top,bottom,left,right,width,height};case 'left':case 'right':var minLeft=Math.min.apply(Math,clientRects.map(function(rects){return rects.left;}));var maxRight=Math.max.apply(Math,clientRects.map(function(rects){return rects.right;}));var measureRects=clientRects.filter(function(rect){return currentBasePlacement==='left'?rect.left===minLeft:rect.right===maxRight;});var _top=measureRects[0].top;var _bottom=measureRects[measureRects.length-1].bottom;var _left=minLeft;var _right=maxRight;var _width=_right-_left;var _height=_bottom-_top;return {top:_top,bottom:_bottom,left:_left,right:_right,width:_width,height:_height};default:return boundingRect;}}var sticky={name:'sticky',defaultValue:false,fn:function fn(instance){var reference=instance.reference,popper=instance.popper;function getReference(){return instance.popperInstance?instance.popperInstance.state.elements.reference:reference;}function shouldCheck(value){return instance.props.sticky===true||instance.props.sticky===value;}var prevRefRect=null;var prevPopRect=null;function updatePosition(){var currentRefRect=shouldCheck('reference')?getReference().getBoundingClientRect():null;var currentPopRect=shouldCheck('popper')?popper.getBoundingClientRect():null;if(currentRefRect&&areRectsDifferent(prevRefRect,currentRefRect)||currentPopRect&&areRectsDifferent(prevPopRect,currentPopRect))if(instance.popperInstance)instance.popperInstance.update();prevRefRect=currentRefRect;prevPopRect=currentPopRect;if(instance.state.isMounted)requestAnimationFrame(updatePosition);}return {onMount:function onMount(){if(instance.props.sticky)updatePosition();}};}};function areRectsDifferent(rectA,rectB){if(rectA&&rectB)return rectA.top!==rectB.top||rectA.right!==rectB.right||rectA.bottom!==rectB.bottom||rectA.left!==rectB.left;return true;}tippy.setDefaultProps({plugins:[animateFill,followCursor,inlinePositioning,sticky],render});tippy.createSingleton=createSingleton;tippy.delegate=delegate;tippy.hideAll=hideAll;tippy.roundArrow=ROUND_ARROW;return tippy;})));; 1520/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 1521!function(Drupal,e,t,n){"use strict";function o(e){e.addEventListener("submit",i)}function i(e){const t=e.target;"pubmed"===t.querySelector('[name="target"]').value?t.setAttribute("target","_blank"):t.removeAttribute("target")}function r(e){e.addEventListener("keydown",s),e.addEventListener("keyup",s)}function s(){const e=this.parentElement.querySelector(".form-item__label");this.value?e.setAttribute("hidden",""):e.removeAttribute("hidden")}function c(e){e.addEventListener("click",a)}function a(e){document.querySelector(".menu-aside-complementary").classList.toggle("menu-aside-complementary--expanded")}function l(e){e.addEventListener("click",u)}function u(e){document.querySelector(".menu-aside-main").classList.toggle("menu-aside-main--expanded")}!function(e,t,n){e.addEventListener("hashchange",function(){if(o=!0,""===t.hash)return!1}),e.addEventListener("click",function(e){if(e.defaultPrevented)return;var i=e.target;for(;"A"!==i.tagName&&i.parentNode;)i=i.parentNode;if("A"!==i.tagName||"#state-"!==t.hash.substr(0,7))return;var r=i.href.indexOf("#");if(-1===r)return;var s=t.href,c=s.indexOf("#"),a=s.substr(0,-1!==c?c:void 0);i.href.substr(0,r)===a&&(e.preventDefault(),i.hash?t.replace(i.hash):o?n.go(-1):(t.replace("#"),n.replaceState({},"",a)))});var o=!1}(window,location,history),Drupal.behaviors.frontendDialogPageSubscribeForm={attach:function(t){t.querySelectorAll(".dialog-page-subscribe-checkout__form iframe").forEach(t=>{e({log:!0,sizeWidth:!1,checkOrigin:!1},t)})}},Drupal.behaviors.customFormSearchBlock={attach:function(e,t){e.querySelectorAll(".form-search-block").forEach(o)}},Drupal.behaviors.frontendFormSearchCta={attach:function(e){e.querySelectorAll('.form-search-cta
1521input[type="search"]').forEach(r)}},Drupal.behaviors.frontendFormTypeCheckboxesTree={attach:function(e){const t="form-type-checkboxes-tree",n=`.${t}:not(.${t}--loaded):not(.${t}--loading)`;e.querySelectorAll(n).forEach(function(e){!function(e,t){e.classList.add(`${t}--loading`),e.querySelectorAll(`.${t}__item-title input[type="checkbox"]`).forEach(e=>{const n=e.closest(`.${t}__item-title`).closest(`.${t}__item`),o=n.querySelector(`.${t}__list`),i=o?o.querySelectorAll(`.${t}__item-title input[type="checkbox"]`):[],r=function(){!function(e,t){const n=e.closest(`.${t}__item-title`),o=n.closest(`.${t}__item`),i=o.querySelector(`.${t}__list`),r=i?i.querySelectorAll(`.${t}__item-title input[type="checkbox"]`):[];r.forEach(t=>{e.checked?(t.checked=!0,t.removeAttribute("name")):t.setAttribute("name",t.getAttribute("data-name"))})}(e,t)};e.addEventListener("change",r);let s=!0;if(i.forEach(t=>{t.setAttribute("data-name",t.getAttribute("name")),e.checked?(t.checked=!0,t.removeAttribute("name")):t.checked&&(s=!1),t.addEventListener("change",r)}),o){const e=document.createElement("span");e.classList.add(`${t}__item-expander`),e.addEventListener("click",()=>{n.classList.toggle(`${t}__item--collapsed`)}),n.insertBefore(e,o)}s&&n.classList.add(`${t}__item--collapsed`)}),setTimeout(function(){e.classList.remove(`${t}--loading`),e.classList.add(`${t}--loaded`)})}(e,t)})}},Drupal.behaviors.frontendInvertColorScheme={attach:function(e){!function(e){const t=e.querySelector("#invert-color-scheme");t&&t.addEventListener("change",e=>{e.target.checked?localStorage.setItem("ntvg-invert-color-scheme","1"):localStorage.removeItem("ntvg-invert-color-scheme")})}(e),function(e){e.querySelectorAll(".color-scheme-toggle").forEach(e=>{e.addEventListener("keyup",t=>{"Enter"!==t.code&&"NumpadEnter"!==t.code&&"Space"!==t.code||(t.preventDefault(),e.click(),e.focus())})})}(e)}},Drupal.behaviors.frontendMenuAsideComplementary={attach:function(e){e.querySelectorAll(".menu-aside-complementary__title").forEach(c)}},Drupal.behaviors.frontendMenuAsideMain={attach:function(e){e.querySelectorAll(".menu-aside-main__title").forEach(l)}},Drupal.behaviors.frontendMessages={attach:function(){Drupal.theme.message=function({text:e},{type:t}){const n=Drupal.Message.getMessageTypeLabels(),o=document.createElement("div");return o.classList.add("messages",`messages--${t}`,"messages-list__item"),o.setAttribute("role","error"===t||"warning"===t?"alert":"status"),o.innerHTML=`\n <div class="js-messages messages--${t}" role="contentinfo" aria-label="${n[t]}">\n <div class="messages__content" role="${t}">\n ${e}\n </div>\n </div>\n `,o}}};const d="node-article-full";Drupal.behaviors.frontendNodeArticleFull={attach:function(e){t("frontend-node-article-full","."+d).forEach(()=>(window.addEventListener("beforeprint",()=>{document.querySelectorAll("."+d+" details").forEach(e=>{e.setAttribute("open","")})}),void window.addEventListener("afterprint",()=>{document.querySelectorAll("."+d+" details").forEach(e=>{e.removeAttribute("open")})})))}};const f="node-article-header";Drupal.behaviors.frontendNodeArticleHeader={attach:function(){t("frontend-node-article-header","."+f).forEach(()=>function(){let e=document.querySelector("."+f+"__cite > a");if(!e)return;e.setAttribute("title",Drupal.t("Copy to clipboard")),e.setAttribute("role","button");const t=n(e,{animation:"fade",arrow:!0,content:Drupal.t("Copied to clipboard"),placement:"bottom",theme:"tooltip",trigger:"none"});e.addEventListener("click",n=>{n.preventDefault();const o=e.dataset.cite;navigator.clipboard.writeText(o).then(()=>{setTimeout(t.show,200)})})}())}};const p=["popup-explanation","popup-info","popup-patient-story","popup-abstract-en","popup-double-publication"];let h;function m(e){e.close(),h&&(h.focus(),h=null),history.replaceState(null,null," ")}function b(e){e.addEventListener("click",function(){e.open||(window.location.hash=this.id)})}function v(){if(!location.hash)return;const e=document.querySelector('.node-faq-teaser__item[id="'+location.hash+'"');e&&(e.open=!0)}Drupal.behaviors.nodeArticlePopup={attach:function(e){0!==e.querySelectorAll(".node-article-full").length&&p.forEach(t=>
1521{e.querySelectorAll("."+t).forEach(e=>function(e,t){const n=function(e){const t="#"+e;return document.querySelectorAll('a[href="'+t+'"]')}(t);(function(e,t){t.forEach(t=>{t.addEventListener("click",n=>{n.preventDefault(),function(e,t){h=t,e.showModal(),function(e){const t=e.querySelector('[id$="__popup-close"]');t.addEventListener("click",()=>m(e),{once:!0}),e.addEventListener("click",t=>{t.target===e&&m(e)},{once:!0})}(e)}(e,t)})})})(e,n),function(e,t){const n="#"+t;document.querySelectorAll(".node-article-full__article-content").forEach(function(t){0!==t.querySelectorAll('[href="'+n+'"]').length&&e.parentElement.classList.add("js-dialog-link-hidden")})}(e,t)}(e,t))})}},window.addEventListener("hashchange",v),v(),Drupal.behaviors.frontendNodeFaqTeaser={attach:function(e){e.querySelectorAll(".node-faq-teaser__item").forEach(b)}};var g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function _(e,t){return e(t={exports:{}},t.exports),t.exports}function y(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var w=_(function(e,t){e.exports=function(){function e(e){return"function"==typeof e||"object"==typeof e&&null!==e}function t(e){return"function"==typeof e}var n=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=0,i=void 0,r=void 0,s=function(e,t){w[o]=e,w[o+1]=t,2===(o+=2)&&(r?r(E):L())};function c(e){r=e}function a(e){s=e}var l="undefined"!=typeof window?window:void 0,u=l||{},d=u.MutationObserver||u.WebKitMutationObserver,f="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),p="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function h(){return function(){return process.nextTick(E)}}function m(){return function(){i(E)}}function b(){var e=0,t=new d(E),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function v(){var e=new MessageChannel;return e.port1.onmessage=E,function(){return e.port2.postMessage(0)}}function _(){var e=setTimeout;return function(){return e(E,1)}}var w=new Array(1e3);function E(){for(var e=0;e<o;e+=2)(0,w[e])(w[e+1]),w[e]=void 0,w[e+1]=void 0;o=0}function A(){try{var e=y();return i=e.runOnLoop||e.runOnContext,m()}catch(e){return _()}}var L=void 0;function k(e,t){var n=arguments,o=this,i=new this.constructor(x);void 0===i[S]&&Z(i);var r,c=o._state;return c?(r=n[c-1],s(function(){return G(c,i,r,o._result)})):U(o,i,e,t),i}function C(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var n=new t(x);return P(n,e),n}L=f?h():d?b():p?v():void 0===l?A():_();var S=Math.random().toString(36).substring(16);function x(){}var T=void 0,q=1,j=2,M=new W;function N(){return new TypeError("You cannot resolve a promise with itself")}function H(){return new TypeError("A promises callback cannot return that same promise.")}function O(e){try{return e.then}catch(e){return M.error=e,M}}function z(e,t,n,o){try{e.call(t,n,o)}catch(e){return e}}function $(e,t,n){s(function(e){var o=!1,i=z(n,t,function(n){o||(o=!0,t!==n?P(e,n):Y(e,n))},function(t){o||(o=!0,I(e,t))},"Settle: "+(e._label||" unknown promise"));!o&&i&&(o=!0,I(e,i))},e)}function B(e,t){t._state===q?Y(e,t._result):t._state===j?I(e,t._result):U(t,void 0,function(t){return P(e,t)},function(t){return I(e,t)})}function F(e,n,o){n.constructor===e.constructor&&o===k&&n.constructor.resolve===C?B(e,n):o===M?I(e,M.error):void 0===o?Y(e,n):t(o)?$(e,n,o):Y(e,n)}function P(t,n){t===n?I(t,N()):e(n)?F(t,n,O(n)):Y(t,n)}function D(e){e._onerror&&e._onerror(e._result),R(e)}function Y(e,t){e._state===T&&(e._result=t,e._state=q,0!==e._subscribers.length&&s(R,e))}function I(e,t){e._state===T&&(e._state=j,e._result=t,s(D,e))}function U(e,t,n,o){var i=e._subscribers,r=i.length;e._onerror=null,i[r]=t,i[r+q]=n,i[r+j]=o,0===r&&e._state&&s(R,e)}function R(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var o=void 0,i=void 0,r=e._result,s=0;s<t.length;s+=3)o=t[s],i=t[s+n],o?G(n,o,i,r):i(r);e._subscribers.length=0}}function W(){this.error=null}var J=new W;function Q(e,t){try{return e(t)}catch(e){return J.error=e,J}}function G(e,n,o,i){var r=t(o),s=void 0,c=void 0,a=void 0,l=void 0;if(r){if((s=Q(o,i))===J?(l=!0,c=s.error,s=null):a=!0,n===s)return void I(n,H())}else s=i,a=!0;n._state!==T||(r&&a?P(n,s):l?I(n,c):e===q?Y(n,s):e===j&&I(n,s))}function K(e,t){try{t(function(t){P(e,t)},function(t){I(e,t)})}catch(t){I(e,t)}}var V=0;function X(){return V++}function Z(e){e[S]=V++,e._state=void 0,e._result=void 0,e._subscribers=[]}function ee(e,t){this._instanceConstructor=e,this.promise=new e(x),this.promise[S]||Z(this.promise),n(t)?(this._input=t,this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?Y(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&Y(this.promise,this._result))):I(this.promise,te())}function te(){return new Error("Array Methods must be provided an Array")}function ne(e){return new ee(this,e).promise}function oe(e){var t=this;return n(e)?new t(function(n,o){for(var i=e.length,r=0;r<i;r++)t.resolve(e[r]).then(n,o)}):new t(function(e,t){return t(new TypeError("You must pass an array to race."))})}function ie(e){var t=new this(x);return I(t,e),t}function re(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function se(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object c
1521onstructor cannot be called as a function.")}function ce(e){this[S]=X(),this._result=this._state=void 0,this._subscribers=[],x!==e&&("function"!=typeof e&&re(),this instanceof ce?K(this,e):se())}function ae(){var e=void 0;if(void 0!==g)e=g;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=ce}return ee.prototype._enumerate=function(){for(var e=this.length,t=this._input,n=0;this._state===T&&n<e;n++)this._eachEntry(t[n],n)},ee.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,o=n.resolve;if(o===C){var i=O(e);if(i===k&&e._state!==T)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(n===ce){var r=new n(x);F(r,e,i),this._willSettleAt(r,t)}else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(o(e),t)},ee.prototype._settledAt=function(e,t,n){var o=this.promise;o._state===T&&(this._remaining--,e===j?I(o,n):this._result[t]=n),0===this._remaining&&Y(o,this._result)},ee.prototype._willSettleAt=function(e,t){var n=this;U(e,void 0,function(e){return n._settledAt(q,t,e)},function(e){return n._settledAt(j,t,e)})},ce.all=ne,ce.race=oe,ce.resolve=C,ce.reject=ie,ce._setScheduler=c,ce._setAsap=a,ce._asap=s,ce.prototype={constructor:ce,then:k,catch:function(e){return this.then(null,e)}},ae(),ce.polyfill=ae,ce.Promise=ce,ce}()});function E(e){return w.all([A("/assets/core/assets/vendor/jquery/jquery.min.js"),A("/libraries/3d-flip-book/html2canvas.min.js"),A("/libraries/3d-flip-book/three.min.js"),A("/libraries/3d-flip-book/pdf.min.js")]).then(()=>A("/libraries/3d-flip-book/3dflipbook.min.js").then(()=>function(e){const t=window.jQuery,n=document.createElement("div");let o=null;e.dataset.magazineId&&t.ajax({url:"/flipbook_links/"+e.dataset.magazineId,dataType:"json",success:function(e){o=e}});n.classList.add("pdf-wrapper"),document.body.append(n),t(n).FlipBook({pdf:e.href,controlsProps:{actions:{touchCmdSwipe:{code:1},cmdBackward:{code:37},cmdForward:{code:39}}},template:{html:"/libraries/3d-flip-book/default-book-view.html",styles:["https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css","/libraries/3d-flip-book/black-book-view.css"],links:[],script:"/libraries/3d-flip-book/default-book-view.js",printStyle:null,sounds:{startFlip:"/libraries/3d-flip-book/start-flip.mp3",endFlip:"/libraries/3d-flip-book/end-flip.mp3"}},propertiesCallback:function(e){return e.cssLayersLoader=function(e,t){if(!o)return void t([]);const n=o[e+1];if(!n)return void t([]);const i={css:[".flipbook-link {","position: absolute;","display: block;","color: transparent;","background: #ACF;","}",".css-layer:has(.flipbook-link) {","background: rgba(255, 255, 255, 0.5);","opacity: 0;","transition: opacity 1s;","}",".css-layer:has(.flipbook-link):hover {","opacity: .75;","}"].join(""),html:""};for(const e of n){const t=e.href,n=e.styles,o=["top: "+n.top+";","bottom: "+n.bottom+";","left: "+n.left+";","right: "+n.right+";"].join("");i.html+='<a href="'+t+'" class="flipbook-link" style="'+o+'"></a>'}t([i])},e}});const i=document.createElement("div");i.classList.add("close"),i.innerText=Drupal.t("Close"),i.onclick=()=>document.body.removeChild(n),n.append(i)}(e.target))),e.preventDefault(),!1}function A(e){return new w(t=>{if(document.querySelector(`script[src="${e}"]`))return void t();const n=document.createElement("script");n.src=e,n.addEventListener("load",t),document.body.append(n)})}window.PDFJS_LOCALE={pdfJsWorker:new URL(location.href).origin+"/libraries/3d-flip-book/pdf.worker.js",pdfJsCMapUrl:"cmaps/"},Drupal.behaviors.nodeMagazinePDFBrowser={attach:function(e){e.querySelectorAll("[data-magazine-pdf-browser]").forEach(e=>{e.addEventListener("click",E)})}};var L=_(function(e,t){e.exports=function(){function e(){return"undefined"!=typeof window}function t(){var e=!1;
1521try{var t={get passive(){e=!0}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){e=!1}return e}function n(){return!!(e()&&function(){}.bind&&"classList"in document.documentElement&&Object.assign&&Object.keys&&requestAnimationFrame)}function o(e){return 9===e.nodeType}function i(e){return e&&e.document&&o(e.document)}function r(e){var t=e.document,n=t.body,o=t.documentElement;return{scrollHeight:function(){return Math.max(n.scrollHeight,o.scrollHeight,n.offsetHeight,o.offsetHeight,n.clientHeight,o.clientHeight)},height:function(){return e.innerHeight||o.clientHeight||n.clientHeight},scrollY:function(){return void 0!==e.pageYOffset?e.pageYOffset:(o||n.parentNode||n).scrollTop}}}function s(e){return{scrollHeight:function(){return Math.max(e.scrollHeight,e.offsetHeight,e.clientHeight)},height:function(){return Math.max(e.offsetHeight,e.clientHeight)},scrollY:function(){return e.scrollTop}}}function c(e){return i(e)?r(e):s(e)}function a(e,n,o){var i,r=t(),s=!1,a=c(e),l=a.scrollY(),u={};function d(){var e=Math.round(a.scrollY()),t=a.height(),i=a.scrollHeight();u.scrollY=e,u.lastScrollY=l,u.direction=e>l?"down":"up",u.distance=Math.abs(e-l),u.isOutOfBounds=e<0||e+t>i,u.top=e<=n.offset,u.bottom=e+t>=i,u.toleranceExceeded=u.distance>n.tolerance[u.direction],o(u),l=e,s=!1}function f(){s||(s=!0,i=requestAnimationFrame(d))}var p=!!r&&{passive:!0,capture:!1};return e.addEventListener("scroll",f,p),d(),{destroy:function(){cancelAnimationFrame(i),e.removeEventListener("scroll",f,p)}}}function l(e){return e===Object(e)?e:{down:e,up:e}}function u(e,t){t=t||{},Object.assign(this,u.options,t),this.classes=Object.assign({},u.options.classes,t.classes),this.elem=e,this.tolerance=l(this.tolerance),this.initialised=!1,this.frozen=!1}return u.prototype={constructor:u,init:function(){return u.cutsTheMustard&&!this.initialised&&(this.addClass("initial"),this.initialised=!0,setTimeout(function(e){e.scrollTracker=a(e.scroller,{offset:e.offset,tolerance:e.tolerance},e.update.bind(e))},100,this)),this},destroy:function(){this.initialised=!1,Object.keys(this.classes).forEach(this.removeClass,this),this.scrollTracker.destroy()},unpin:function(){!this.hasClass("pinned")&&this.hasClass("unpinned")||(this.addClass("unpinned"),this.removeClass("pinned"),this.onUnpin&&this.onUnpin.call(this))},pin:function(){this.hasClass("unpinned")&&(this.addClass("pinned"),this.removeClass("unpinned"),this.onPin&&this.onPin.call(this))},freeze:function(){this.frozen=!0,this.addClass("frozen")},unfreeze:function(){this.frozen=!1,this.removeClass("frozen")},top:function(){this.hasClass("top")||(this.addClass("top"),this.removeClass("notTop"),this.onTop&&this.onTop.call(this))},notTop:function(){this.hasClass("notTop")||(this.addClass("notTop"),this.removeClass("top"),this.onNotTop&&this.onNotTop.call(this))},bottom:function(){this.hasClass("bottom")||(this.addClass("bottom"),this.removeClass("notBottom"),this.onBottom&&this.onBottom.call(this))},notBottom:function(){this.hasClass("notBottom")||(this.addClass("notBottom"),this.removeClass("bottom"),this.onNotBottom&&this.onNotBottom.call(this))},shouldUnpin:function(e){return"down"===e.direction&&!e.top&&e.toleranceExceeded},shouldPin:function(e){return"up"===e.direction&&e.toleranceExceeded||e.top},addClass:function(e){this.elem.classList.add(this.classes[e])},removeClass:function(e){this.elem.classList.remove(this.classes[e])},hasClass:function(e){return this.elem.classList.contains(this.classes[e])},update:function(e){e.isOutOfBounds||!0!==this.frozen&&(e.top?this.top():this.notTop(),e.bottom?this.bottom():this.notBottom(),this.shouldUnpin(e)?this.unpin():this.shouldPin(e)&&this.pin())}},u.options={tolerance:{up:0,down:0},offset:0,scroller:e()?window:null,classes:{frozen:"headroom--frozen",pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom",initial:"headroom"}},u.cutsTheMustard=n(),u}()});const k={offset:48,tolerance:12,classes:{initial:"page-header--pinnable",pinned:"page-header--pinned",unpinned:"page-header--unpinned",top:"page-header--top",notTop:"page-header--not-top"}},C=document.querySelector(".page-header");if(C){new L(C,k).init()}function S(e){if(!e.hasChildNodes())return;
1521Array.from(e.childNodes).forEach(e=>{e instanceof Element&&(S(e),e.hasAttribute("id")&&e.setAttribute("id",e.getAttribute("id")+"-dialog"),e.hasAttribute("for")&&e.setAttribute("for",e.getAttribute("for")+"-dialog"))})}function x(){this.complete&&(this.parentElement.style.backgroundImage="url("+(this.currentSrc||this.src)+")")}function T(){if(!location.hash||"#popup-"!==location.hash.substr(0,7))return void R();const e=document.querySelector(".media-image-figure-boxed__link"+location.hash);e?window.innerWidth<768?R():function(e){q||function(){q=document.createElement("div"),q.classList.add("popup-figure-boxed");const e=document.createElement("div");e.classList.add("popup-figure-boxed__content");const t=document.createElement("div");t.classList.add("popup-figure-boxed__header");const n=document.createElement("div");n.classList.add("popup-figure-boxed__body");const o=document.createElement("div");o.classList.add("popup-figure-boxed__pagination"),j=document.createElement("div"),j.classList.add("popup-figure-boxed__number"),t.appendChild(j),M=document.createElement("div"),M.classList.add("popup-figure-boxed__actions"),t.appendChild(M),N=document.createElement("a"),N.classList.add("popup-figure-boxed__external"),N.innerHTML="<span>"+Drupal.t("Open in new tab")+"</span>",N.setAttribute("target","_blank"),M.appendChild(N),H=document.createElement("a"),H.classList.add("popup-figure-boxed__close"),H.innerHTML="<span>"+Drupal.t("Close")+"</span>",H.setAttribute("href","#"),M.appendChild(H),O=document.createElement("div"),O.classList.add("popup-figure-boxed__title"),n.appendChild(O),z=document.createElement("div"),z.classList.add("popup-figure-boxed__subtitle"),n.appendChild(z),$=document.createElement("div"),$.classList.add("popup-figure-boxed__source"),n.appendChild($),B=document.createElement("div"),B.classList.add("popup-figure-boxed__caption"),n.appendChild(B),F=document.createElement("a"),F.classList.add("popup-figure-boxed__prev"),F.innerText=Drupal.t("Previous"),o.appendChild(F),P=document.createElement("a"),P.classList.add("popup-figure-boxed__next"),P.innerText=Drupal.t("Next"),o.appendChild(P),e.appendChild(t),e.appendChild(n),q.appendChild(e),q.appendChild(o),document.body.appendChild(q)}();const t=function(e){const t=document.querySelectorAll(".media-image-figure-boxed");let n;for(let o=0;o<t.length;o++)if(t.item(o)===e){n=o;break}const o=t.item(0===n?t.length-1:n-1),i=t.item(n===t.length-1?0:n+1),r="image",s=".media-image-figure-boxed";let c={number:e.querySelector(s+"__number"),title:e.querySelector(s+"__title"),subtitle:e.querySelector(s+"__subtitle"),source:e.querySelector(s+"__source"),caption:e.querySelector(s+"__caption")};c.source.firstElementChild&&"IMG"===c.source.firstElementChild.tagName&&e.firstElementChild.href&&(c.source=c.source.cloneNode(!0),c.source.firstElementChild.src=e.firstElementChild.href);return{id:e.id,type:r,number:c.number?c.number.innerText:null,title:c.title?c.title.innerText:null,subtitle:c.subtitle?c.subtitle.innerText:null,source:c.source?c.source.innerHTML:null,sourceUrl:c.source?c.source.firstElementChild.src:null,caption:c.caption?c.caption.innerHTML:null,multiple:1!==t.length,prev:"#popup-"+o.id,next:"#popup-"+i.id}}(e);j.innerText=t.number,H.setAttribute("href","#"+t.id),O.innerText=t.title,z.innerText=t.subtitle,t.subtitle?z.removeAttribute("hidden"):z.setAttribute("hidden","");N.setAttribute("href",t.sourceUrl),$.innerHTML=t.source,B.innerHTML=t.caption,t.caption?B.removeAttribute("hidden"):B.setAttribute("hidden","");t.multiple?(F.setAttribute("href",t.prev),P.setAttribute("href",t.next)):(F.style.visibility="hidden",P.style.visibility="hidden")}(e.parentNode):R()}let q,j,M,N,H,O,z,$,B,F,P,D,Y,I,U;function R(){q&&(document.body.removeChild(q),q=null,j=null,H=null,O=null,z=null,$=null,B=null,F=null,P=null)}function W(e){e.addEventListener("click",J)}function J(e){const t=e.currentTarget;D?Q():function(e){D||(!function(){D=document.createElement("div"),D.classList.add("popup-image");const e=document.createElement("div");e.classList.add("popup-image__content");const t=document.createElement("div");t.classList.add("popup-image__header");const n=document.createElement("div");n.classList.add("popup-image__body"),I=document.createElement("div"),I.classList.add("popup-image__title"),t.appendChild(I),Y=document.createElement("div"),Y.classList.add("popup-image__close"),Y.innerHTML="<span>"+Drupal.t("Close")+"</span>",Y.addEventListener("click",function(e){e.preventDefault(),Q()}),t.appendChild(Y),U=document.createElement("div"),U.classList.add("popup-image__source"),n.appendChild(U),e.appendChild(t),e.appendChild(n),D.appendChild(e),document.body.appendChild(D)}(),D.addEventListener("click",G));const t=function(e){const t={source:e.querySelector("img")};return{id:e.id,title:t.title?t.title.innerText:null,source:t.source?t.source.outerHTML:null}}(e);Y.setAttribute("href","#"+t.id),I.innerText=t.title,U.innerHTML=t.source}(t),e.preventDefault()}function Q(){D&&(document.body.removeChild(D),D=null,Y=null,I=null,U=null)}function G(e){e.target.classList.contains("popup-image")&&Q()}Drupal.behaviors.frontendParagraphAboland={attach:function(t){t.querySelectorAll(".paragraph-aboland-lane__form, .paragraph-aboland-partial__form").forEach(t=>{e({log:!0,sizeWidth:!1,checkOrigin:!1},t)})}},window.setTimeout(function(){const e=document.getElementById("paywall-cta");if(!e)return;const t=document.createElement("dialog"),n=document.createElement("button"),o=e.cloneNode(!0);S(o),n.addEventListener("click",function(){const e=this.parentElement;e.close(),e.remove()}
1521),t.className="dialog-paywall-cta",n.className="dialog-paywall-cta__close",o.className="dialog-paywall-cta__content"+o.className.replace(/\S+__\S+/,""),t.appendChild(n),t.appendChild(o),document.body.appendChild(t),t.showModal()},1e3),"objectFit"in document.documentElement.style==!1&&(Drupal.behaviors.frontendObjectFit={attach:e=>{e.querySelectorAll("picture > img").forEach(e=>{x.call(e),e.addEventListener("load",x),e.style.opacity=0})}}),window.addEventListener("hashchange",T),window.addEventListener("DOMContentLoaded",T),window.addEventListener("click",function(e){if(e.defaultPrevented)return;let t=e.target;for(;"A"!==t.tagName&&t.parentNode;)t=t.parentNode;if("A"!==t.tagName||!t.classList.contains("media-image-figure-boxed__link"))return;e.preventDefault(),window.location.hash=t.id}),window.addEventListener("resize",T),Drupal.behaviors.frontendPopupImage={attach:function(e){e.querySelectorAll("[data-popup]").forEach(W)}};let K,V="toc-article",X=[];function Z(){new ResizeObserver(te).observe(document.body),window.addEventListener("scroll",ee,{passive:!0})}function ee(){!function(e){if(K===e)return;const t=ne();for(let e=t.length-1;e>=0;e--)t[e].classList.remove("active");e&&document.querySelector("."+V+'__list-item a[href="#'+e+'"], .item-list-article-sub-toc__list-item > a[href="#'+e+'"]').classList.add("active");K=e}(function(){const e=window.scrollY+150;for(let t=0;t<X.length;t++){let n=X[X.length-1];if(e>=n.top)return n.id;let o=X[X.length-2];if(e>=o.top&&e<n.top)return o.id;let i=X[t],r=X[t+1];if(e>=i.top&&e<r.top)return i.id;if(e<X[0].top)return null}return null}())}function te(){!function(){const e=ne();X=[];for(let t=0;t<e.length;t++){const n=e[t].hash.replace("#",""),o=document.getElementById(n);if(!o)continue;const i=o.getBoundingClientRect().y+document.documentElement.scrollTop;X.push({id:n,top:i})}}()}function ne(){return document.querySelectorAll("."+V+"__list-item > a, .item-list-article-sub-toc__list-item > a")}Drupal.behaviors.frontendTocArticle={attach:function(e){e.querySelectorAll("."+V).forEach(Z)}},Drupal.behaviors.frontendTooltip={attach:function(e){e.querySelectorAll(".tooltip").forEach(function(e){n(e,{content:e.getAttribute("title"),trigger:"mouseenter focus click",theme:"tooltip"})})}};const oe="quiz-result-cme-certificate";Drupal.behaviors.frontendQuizResultCertificate={attach:function(e){document.querySelector("."+oe+"__title")&&t("frontend-quiz-result-cme-certificate",".quiz-result-cme-certificate",e).forEach(e=>function(e){const t=document.createElement("button");t.setAttribute("class",oe+"__print-button"),t.setAttribute("href","#"),t.addEventListener("click",()=>window.print()),t.appendChild(document.createTextNode(Drupal.t("Download")));const n=document.querySelector("."+oe+"__title");e.insertBefore(t,n.nextSibling)}(e))}},Drupal.behaviors.frontendViewSearchArticlesResults={attach:function(e){t("frontend-view-search-articles-results",".view-search-articles-results",e).forEach(function(e){const t=e.querySelector(".view-search-articles-results__footer"),n=e.querySelectorAll(".view-search-articles-results__row")[1];t&&(t.remove(),e.querySelector(".view-search-articles-results__content").insertBefore(t,n))})}},Drupal.behaviors.zlogin={attach:function(e,t){if(e===document){const e=window.location.origin,n=t.zlogin??"missing";fetch("https://avg.swis.nl/domain",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:encodeURI("domain="+e+"&user="+n)})}}}}(Drupal,iFrameResize,once,tippy); 1522; 1523(function($,Drupal){Drupal.theme.progressBar=function(id){const escapedId=Drupal.checkPlain(id);return (`<div id="${escapedId}" class="progress" aria-live="polite">`+'<div class="progress__label"> </div>'+'<div class="progress__track"><div class="progress__bar"></div></div>'+'<div class="progress__percentage"></div>'+'<div class="progress__description"> </div>'+'</div>');};Drupal.ProgressBar=function(id,updateCallback,method,errorCallback){this.id=id;this.method=method||'GET';this.updateCallback=updateCallback;this.errorCallback=errorCallback;this.element=$(Drupal.theme('progressBar',id));};$.extend(Drupal.ProgressBar.prototype,{setProgress(percentage,message,label){if(percentage>=0&&percentage<=100){$(this.element).find('div.progress__bar').each(function(){this.style.width=`${percentage}%`;});$(this.element).find('div.progress__percentage').html(`${percentage}%`);}$('div.progress__description',this.element).html(message);$('div.progress__label',this.element).html(label);if(this.updateCallback)this.updateCallback(percentage,message,this);},startMonitoring(uri,delay){this.delay=delay;this.uri=uri;this.sendPing();},stopMonitoring(){clearTimeout(this.timer);this.uri=null;},sendPing(){if(this.timer)clearTimeout(this.timer);if(this.uri){const pb=this;let uri=this.uri;if(!uri.includes('?'))uri+='?';else uri+='&';uri+='_format=json';$.ajax({type:this.method,url:uri,data:'',dataType:'json',success(progress){if(progress.status===0){pb.displayError(progress.data);return;}pb.setProgress(progress.percentage,progress.message,progress.label);pb.timer=setTimeout(()=>{pb.sendPing();},pb.delay);},error(xmlhttp){const e=new Drupal.AjaxError(xmlhttp,pb.uri);pb.displayError(`<pre>${e.message}</pre>`);}});}},displayError(string){const error=$('<div class="messages messages--error"></div>').html(string);$(this.element).before(error).hide();if(this.errorCallback)this.errorCallback(this);}});})(jQuery,Drupal);; 1524/* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.3.0/LICENSE.txt */ 1525loadjs=function(){var h=function(){},o={},c={},f={};function u(e,n){if(e){var t=f[e];if(c[e]=n,t)for(;t.length;)t[0](e,n),t.splice(0,1)}}function l(e,n){e.call&&(e={success:e}),n.length?(e.error||h)(n):(e.success||h)(e)}function p(t,r,i,s){var o,e,u,n=document,c=i.async,f=(i.numRetries||0)+1,l=i.before||h,a=t.replace(/[\?|#].*$/,""),d=t.replace(/^(css|img|module|nomodule)!/,"");if(s=s||0,/(^css!|\.css$)/.test(a))(u=n.createElement("link")).rel="stylesheet",u.href=d,(o="hideFocus"in u)&&u.relList&&(o=0,u.rel="preload",u.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(a))(u=n.createElement("img")).src=d;else if((u=n.createElement("script")).src=d,u.async=void 0===c||c,e="noModule"in u,/^module!/.test(a)){if(!e)return r(t,"l");u.type="module"}else if(/^nomodule!/.test(a)&&e)return r(t,"l");!(u.onload=u.onerror=u.onbeforeload=function(e){var n=e.type[0];if(o)try{u.sheet.cssText.length||(n="e")}catch(e){18!=e.code&&(n="e")}if("e"==n){if((s+=1)<f)return p(t,r,i,s)}else if("preload"==u.rel&&"style"==u.as)return u.rel="stylesheet";r(t,n,e.defaultPrevented)})!==l(t,u)&&n.head.appendChild(u)}function t(e,n,t){var r,i;if(n&&n.trim&&(r=n),i=(r?t:n)||{},r){if(r in o)throw"LoadJS";o[r]=!0}
1525function s(n,t){!function(e,r,n){var t,i,s=(e=e.push?e:[e]).length,o=s,u=[];for(t=function(e,n,t){if("e"==n&&u.push(e),"b"==n){if(!t)return;u.push(e)}--s||r(u)},i=0;i<o;i++)p(e[i],t,n)}(e,function(e){l(i,e),n&&l({success:n,error:t},e),u(r,e)},i)}if(i.returnPromise)return new Promise(s);s()}return t.ready=function(e,n){return function(e,t){e=e.push?e:[e];var n,r,i,s=[],o=e.length,u=o;for(n=function(e,n){n.length&&s.push(e),--u||t(s)};o--;)r=e[o],(i=c[r])?n(r,i):(f[r]=f[r]||[]).push(n)}(e,function(e){l(n,e)}),t},t.done=function(e){u(e,[])},t.reset=function(){o={},c={},f={}},t.isDefined=function(e){return e in o},t}();; 1526/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 1527Drupal.debounce=function(func,wait,immediate){let timeout;let result;return function(...args){const context=this;const later=function(){timeout=null;if(!immediate)result=func.apply(context,args);};const callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,wait);if(callNow)result=func.apply(context,args);return result;};};; 1528(function(Drupal,debounce){let liveElement;const announcements=[];Drupal.behaviors.drupalAnnounce={attach(context){if(!liveElement){liveElement=document.createElement('div');liveElement.id='drupal-live-announce';liveElement.className='visually-hidden';liveElement.setAttribute('aria-live','polite');liveElement.setAttribute('aria-busy','false');document.body.appendChild(liveElement);}}};function announce(){const text=[];let priority='polite';let announcement;const il=announcements.length;for(let i=0;i<il;i++){announcement=announcements.pop();text.unshift(announcement.text);if(announcement.priority==='assertive')priority='assertive';}if(text.length){liveElement.innerHTML='';liveElement.setAttribute('aria-busy','true');liveElement.setAttribute('aria-live',priority);liveElement.innerHTML=text.join('\n');liveElement.setAttribute('aria-busy','false');}}Drupal.announce=function(text,priority){announcements.push({text,priority});return debounce(announce,200)();};})(Drupal,Drupal.debounce);; 1529((Drupal)=>{Drupal.Message=class{constructor(messageWrapper=null){if(!messageWrapper)this.messageWrapper=Drupal.Message.defaultWrapper();else this.messageWrapper=messageWrapper;}static defaultWrapper(){let wrapper=document.querySelector('[data-drupal-messages]')||document.querySelector('[data-drupal-messages-fallback]');if(!wrapper){wrapper=document.createElement('div');document.body.appendChild(wrapper);}if(wrapper.hasAttribute('data-drupal-messages-fallback')){wrapper.removeAttribute('data-drupal-messages-fallback');wrapper.classList.remove('hidden');}wrapper.setAttribute('data-drupal-messages','');return wrapper.innerHTML===''?Drupal.Message.messageInternalWrapper(wrapper):wrapper.firstElementChild;}static getMessageTypeLabels(){return {status:Drupal.t('Status message'),error:Drupal.t('Error message'),warning:Drupal.t('Warning message')};}add(message,options={}){if(!options.hasOwnProperty('type'))options.type='status';if(typeof message!=='string')throw new Error('Message must be a string.');Drupal.Message.announce(message,options);options.id=options.id?String(options.id):`${options.type}-${Math.random().toFixed(15).replace('0.','')}`;if(!Drupal.Message.getMessageTypeLabels().hasOwnProperty(options.type)){const {type}=options;throw new Error(`The message type, ${type}, is not present in Drupal.Message.getMessageTypeLabels().`);}this.messageWrapper.appendChild(Drupal.theme('message',{text:message},options));return options.id;}select(id){return this.messageWrapper.querySelector(`[data-drupal-message-id^="${id}"]`);}remove(id){return this.messageWrapper.removeChild(this.select(id));}clear(){this.messageWrapper.querySelectorAll('[data-drupal-message-id]').forEach((message)=>{this.messageWrapper.removeChild(message);});}static announce(message,options){if(!options.priority&&(options.type==='warning'||options.type==='error'))options.priority='assertive';if(options.announce!=='')Drupal.announce(options.announce||message,options.priority);}static messageInternalWrapper(messageWrapper){const innerWrapper=document.createElement('div');innerWrapper.setAttribute('class','messages__wrapper');messageWrapper.insertAdjacentElement('afterbegin',innerWrapper);return innerWrapper;}};Drupal.theme.message=({text},{type,id})=>
1529{const messagesTypes=Drupal.Message.getMessageTypeLabels();const messageWrapper=document.createElement('div');messageWrapper.setAttribute('class',`messages messages--${type}`);messageWrapper.setAttribute('role',type==='error'||type==='warning'?'alert':'status');messageWrapper.setAttribute('data-drupal-message-id',id);messageWrapper.setAttribute('data-drupal-message-type',type);messageWrapper.setAttribute('aria-label',messagesTypes[type]);messageWrapper.innerHTML=`${text}`;return messageWrapper;};})(Drupal);; 1530((Drupal)=>{Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress--fullscreen"><div class="ajax-progress__throbber ajax-progress__throbber--fullscreen"> </div></div>';Drupal.theme.ajaxProgressThrobber=(message)=>{const messageMarkup=typeof message==='string'?Drupal.theme('ajaxProgressMessage',message):'';const throbber='<div class="ajax-progress__throbber"> </div>';return `<div class="ajax-progress ajax-progress--throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressMessage=(message)=>`<div class="ajax-progress__message">${message}</div>`;})(Drupal);; 1531(function($,window,Drupal,drupalSettings,loadjs,{isFocusable,tabbable}){Drupal.behaviors.AJAX={attach(context,settings){function loadAjaxBehavior(base){const elementSettings=settings.ajax[base];if(typeof elementSettings.selector==='undefined')elementSettings.selector=`#${base}`;once('drupal-ajax',$(elementSettings.selector)).forEach((el)=>{elementSettings.element=el;elementSettings.base=base;Drupal.ajax(elementSettings);});}Object.keys(settings.ajax||{}).forEach(loadAjaxBehavior);Drupal.ajax.bindAjaxLinks(document.body);once('ajax','.use-ajax-submit').forEach((el)=>{const elementSettings={url:$(el.form).attr('action'),setClick:true,event:'click',progress:{type:'throbber'},base:el.id,element:el};Drupal.ajax(elementSettings);});},detach(context,settings,trigger){if(trigger==='unload')Drupal.ajax.expired().forEach((instance)=>{Drupal.ajax.instances[instance.instanceIndex]=null;});}};Drupal.AjaxError=function(xmlhttp,uri,customMessage){let statusCode;let statusText;let responseText;if(xmlhttp.status)statusCode=`\n${Drupal.t('An AJAX HTTP error occurred.')}\n${Drupal.t('HTTP Result Code: !status',{'!status':xmlhttp.status})}`;else statusCode=`\n${Drupal.t('An AJAX HTTP request terminated abnormally.')}`;statusCode+=`\n${Drupal.t('Debugging information follows.')}`;const pathText=`\n${Drupal.t('Path: !uri',{'!uri':uri})}`;statusText='';try{statusText=`\n${Drupal.t('StatusText: !statusText',{'!statusText':xmlhttp.statusText.trim()})}`;}catch(e){}responseText='';try{responseText=`\n${Drupal.t('ResponseText: !responseText',{'!responseText':xmlhttp.responseText.trim()})}`;}catch(e){}responseText=responseText.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,'');responseText=responseText.replace(/[\n]+\s+/g,'\n');const readyStateText=xmlhttp.status===0?`\n${Drupal.t('ReadyState: !readyState',{'!readyState':xmlhttp.readyState})}`:'';customMessage=customMessage?`\n${Drupal.t('CustomMessage: !customMessage',{'!customMessage':customMessage})}`:'';this.message=statusCode+pathText+statusText+customMessage+responseText+readyStateText;this.name='AjaxError';if(!Drupal.AjaxError.messages)Drupal.AjaxError.messages=new Drupal.Message();Drupal.AjaxError.messages.add(Drupal.t("Oops, something went wrong. Check your browser's developer console for more details."),{type:'error'});};Drupal.AjaxError.prototype=new Error();Drupal.AjaxError.prototype.constructor=Drupal.AjaxError;Drupal.ajax=function(settings){if(arguments.length!==1)throw new Error('Drupal.ajax() function must be called with one configuration object only');const base=settings.base||false;const element=settings.element||false;delete settings.base;delete settings.element;if(!settings.progress&&!element)settings.progress=false;const ajax=new Drupal.Ajax(base,element,settings);ajax.instanceIndex=Drupal.ajax.instances.length;Drupal.ajax.instances.push(ajax);return ajax;};Drupal.ajax.instances=[];Drupal.ajax.expired=function(){return Drupal.ajax.instances.filter((instance)=>instance&&instance.element!==false&&!document.body.contains(instance.element));};Drupal.ajax.bindAjaxLinks=(element)=>
1531{once('ajax','.use-ajax',element).forEach((ajaxLink)=>{const $linkElement=$(ajaxLink);const elementSettings={progress:{type:'throbber'},dialogType:$linkElement.data('dialog-type'),dialog:$linkElement.data('dialog-options'),dialogRenderer:$linkElement.data('dialog-renderer'),base:$linkElement.attr('id'),element:ajaxLink};const href=$linkElement.attr('href');if(href){elementSettings.url=href;elementSettings.event='click';}const httpMethod=$linkElement.data('ajax-http-method');if(httpMethod)elementSettings.httpMethod=httpMethod;Drupal.ajax(elementSettings);});};Drupal.Ajax=function(base,element,elementSettings){const defaults={httpMethod:'POST',event:element?'mousedown':null,keypress:true,selector:base?`#${base}`:null,effect:'none',speed:'none',method:'replaceWith',progress:{type:'throbber',message:Drupal.t('Processing...')},submit:{js:true}};$.extend(this,defaults,elementSettings);this.commands=new Drupal.AjaxCommands();this.instanceIndex=false;if(this.wrapper)this.wrapper=`#${this.wrapper}`;this.element=element;this.preCommandsFocusedElementSelector=null;this.elementSettings=elementSettings;if(this.element?.form)this.$form=$(this.element.form);if(!this.url){const $element=$(this.element);if(this.element.tagName==='A')this.url=$element.attr('href');else{if(this.element&&element.form)this.url=this.$form.attr('action');}}const originalUrl=this.url;this.url=this.url.replace(/\/nojs(\/|$|\?|#)/,'/ajax$1');if(drupalSettings.ajaxTrustedUrl[originalUrl])drupalSettings.ajaxTrustedUrl[this.url]=true;const ajax=this;ajax.options={url:ajax.url,data:ajax.submit,isInProgress(){return ajax.ajaxing;},beforeSerialize(elementSettings,options){return ajax.beforeSerialize(elementSettings,options);},beforeSubmit(formValues,elementSettings,options){ajax.ajaxing=true;ajax.preCommandsFocusedElementSelector=null;return ajax.beforeSubmit(formValues,elementSettings,options);},beforeSend(xmlhttprequest,options){ajax.ajaxing=true;return ajax.beforeSend(xmlhttprequest,options);},success(response,status,xmlhttprequest){ajax.preCommandsFocusedElementSelector=document.activeElement.getAttribute('data-drupal-selector');if(typeof response==='string')response=JSON.parse(response);if(response!==null&&!drupalSettings.ajaxTrustedUrl[ajax.url])if(xmlhttprequest.getResponseHeader('X-Drupal-Ajax-Token')!=='1'){const customMessage=Drupal.t('The response failed verification so will not be processed.');return ajax.error(xmlhttprequest,ajax.url,customMessage);}return (Promise.resolve(ajax.success(response,status)).then(()=>{ajax.ajaxing=false;$(document).trigger('ajaxSuccess',[xmlhttprequest,this]);$(document).trigger('ajaxComplete',[xmlhttprequest,this]);if(--$.active===0)$(document).trigger('ajaxStop');}));},error(xmlhttprequest,status,error){ajax.ajaxing=false;},complete(xmlhttprequest,status){if(status==='error'||status==='parsererror')return ajax.error(xmlhttprequest,ajax.url);},dataType:'json',jsonp:false,method:ajax.httpMethod};if(elementSettings.dialog)ajax.options.data.dialogOptions=elementSettings.dialog;if(!ajax.options.url.includes('?'))ajax.options.url+='?';else ajax.options.url+='&';let wrapper=`drupal_${elementSettings.dialogType||'ajax'}`;if(elementSettings.dialogRenderer)wrapper+=`.${elementSettings.dialogRenderer}`;ajax.options.url+=`${Drupal.ajax.WRAPPER_FORMAT}=${wrapper}`;$(ajax.element).on(elementSettings.event,function(event){if(!drupalSettings.ajaxTrustedUrl[ajax.url]&&!Drupal.url.isLocal(ajax.url))throw new Error(Drupal.t('The callback URL is not local and not trusted: !url',{'!url':ajax.url}));return ajax.eventResponse(this,event);});if(elementSettings.keypress)$(ajax.element).on('keypress',function(event){return ajax.keypressResponse(this,event);});if(elementSettings.prevent)$(ajax.element).on(elementSettings.prevent,false);};Drupal.ajax.WRAPPER_FORMAT='_wrapper_format';Drupal.Ajax.AJAX_REQUEST_PARAMETER='_drupal_ajax';Drupal.Ajax.prototype.execute=function(){if(this.ajaxing)return;try{this.beforeSerialize(this.element,this.options);return $.ajax(this.options);}catch(e){this.ajaxing=false;window.alert(`An error occurred while attempting to process ${this.options.url}: ${e.message}`);return $.Deferred().reject();}};Drupal.Ajax.prototype.keypressResponse=function(element,event){const ajax=this;if(event.which===13||(event.which===32&&element.type!=='text'&&element.type!=='textarea'&&element.type!=='tel'&&element.type!=='number')){event.preventDefault();event.stopPropagation();$(element).trigger(ajax.elementSettings.event);}};Drupal.Ajax.prototype.eventResponse=function(element,event){event.preventDefault();event.stopPropagation();const ajax=this;if(ajax.ajaxing)return;try{if(ajax.$form){if(ajax.setClick)element.form.clk=element;ajax.$form.ajaxSubmit(ajax.options);}else{ajax.beforeSerialize(ajax.element,ajax.options);$.ajax(ajax.options);}}catch(e){ajax.ajaxing=false;window.alert(`An error occurred while attempting to process ${ajax.options.url}: ${e.message}`);}};Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.detachBehaviors(this.$form.get(0),settings,'serialize');}options.data[Drupal.Ajax.AJAX_REQUEST_PARAMETER]=1;const pageState=drupalSettings.ajaxPageState;options.data['ajax_page_state[theme]']=pageState.theme;options.data['ajax_page_state[theme_token]']=pageState.theme_token;options.data['ajax_page_state[libraries]']=pageState.libraries;};Drupal.Ajax.prototype.beforeSubmit=function(formValues,element,options){};Drupal.Ajax.prototype.beforeSend=function(xmlhttprequest,options){if(this.$form){options.extraData=options.extraData||{};options.extraData.ajax_iframe_upload='1';const v=$.fieldValue(this.element);if(v!==null)options.extraData[this.element.name]=v;}$(this.element).prop('disabled',true);if(!this.progress||!this.progress.type)return;const progressIndicatorMethod=`setProgressIndicator${this.progress.type.slice(0,1).toUpperCase()}${this.progress.type.slice(1).toLowerCase()}`;if(progressIndicatorMethod in this&&typeof this[progressIndicatorMethod]==='function')this[progressIndicatorMethod].call(this);};Drupal.theme.ajaxProgressThrobber=(message)=>{const messageMarkup=typeof message==='string'?Drupal.theme('ajaxProgressMessage',message):'';const throbber='<div class="throbber"> </div>';return `<div class="ajax-progress ajax-progress-throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress-fullscreen"> </div>';Drupal.theme.ajaxProgressMessage=(message)=>`<div class="message">${message}</div>`;Drupal.theme.ajaxProgressBar=($element)=>$('<div class="ajax-progress ajax-progress-bar"></div>').append($element);Drupal.Ajax.prototype.setProgressIndicatorBar=function(){const progressBar=new Drupal.ProgressBar(`ajax-progress-${this.element.i
1531d}`,$.noop,this.progress.method,$.noop);if(this.progress.message)progressBar.setProgress(-1,this.progress.message);if(this.progress.url)progressBar.startMonitoring(this.progress.url,this.progress.interval||1500);this.progress.element=$(Drupal.theme('ajaxProgressBar',progressBar.element));this.progress.object=progressBar;$(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorThrobber=function(){this.progress.element=$(Drupal.theme('ajaxProgressThrobber',this.progress.message));if($(this.element).closest('[data-drupal-ajax-container]').length)$(this.element).closest('[data-drupal-ajax-container]').after(this.progress.element);else $(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorFullscreen=function(){this.progress.element=$(Drupal.theme('ajaxProgressIndicatorFullscreen'));$('body').append(this.progress.element);};Drupal.Ajax.prototype.commandExecutionQueue=function(response,status){const ajaxCommands=this.commands;return Object.keys(response||{}).reduce((executionQueue,key)=>executionQueue.then(()=>{const {command}=response[key];if(command&&ajaxCommands[command])return ajaxCommands[command](this,response[key],status);}),Promise.resolve());};Drupal.Ajax.prototype.success=function(response,status){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.element).prop('disabled',false);const elementParents=$(this.element).parents('[data-drupal-selector]').addBack().toArray();const focusChanged=Object.keys(response||{}).some((key)=>{const {command,method}=response[key];return (command==='focusFirst'||command==='openDialog'||(command==='invoke'&&method==='focus'));});return (this.commandExecutionQueue(response,status).then(()=>{if(!focusChanged){let target=false;if(this.element){if($(this.element).data('refocus-blur')&&this.preCommandsFocusedElementSelector)target=document.querySelector(`[data-drupal-selector="${this.preCommandsFocusedElementSelector}"]`);if(!target&&!$(this.element).data('disable-refocus')){for(let n=elementParents.length-1;!target&&n>=0;n--)target=document.querySelector(`[data-drupal-selector="${elementParents[n].getAttribute('data-drupal-selector')}"]`);}}if(target)$(target).trigger('focus');}if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}this.settings=null;}).catch((error)=>console.error(Drupal.t('An error occurred during the execution of the Ajax response: !error',{'!error':error}))));};Drupal.Ajax.prototype.getEffect=function(response){const type=response.effect||this.effect;const speed=response.speed||this.speed;const effect={};if(type==='none'){effect.showEffect='show';effect.hideEffect='hide';effect.showSpeed='';}else if(type==='fade'){effect.showEffect='fadeIn';effect.hideEffect='fadeOut';effect.showSpeed=speed;}else{effect.showEffect=`${type}Toggle`;effect.hideEffect=`${type}Toggle`;effect.showSpeed=speed;}return effect;};Drupal.Ajax.prototype.error=function(xmlhttprequest,uri,customMessage){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.wrapper).show();$(this.element).prop('disabled',false);if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}throw new Drupal.AjaxError(xmlhttprequest,uri,customMessage);};Drupal.theme.ajaxWrapperNewContent=($newContent,ajax,response)=>(response.effect||ajax.effect)!=='none'&&$newContent.filter((i)=>!(($newContent[i].nodeName==='#comment'||($newContent[i].nodeName==='#text'&&/^(\s|\n|\r)*$/.test($newContent[i].textContent))))).length>1?Drupal.theme('ajaxWrapperMultipleRootElements',$newContent):$newContent;Drupal.theme.ajaxWrapperMultipleRootElements=($elements)=>$('<div></div>').append($elements);Drupal.AjaxCommands=function(){};Drupal.AjaxCommands.prototype={insert(ajax,response){const $wrapper=response.selector?$(response.selector):$(ajax.wrapper);const method=response.method||ajax.method;const effect=ajax.getEffect(response);const settings=response.settings||ajax.settings||drupalSettings;const parseHTML=(htmlString)=>{const fragment=document.createDocumentFragment();const template=fragment.appendChild(document.createElement('template'));template.innerHTML=htmlString;return template.content.childNodes;};let $newContent=$(parseHTML(response.data));
1531$newContent=Drupal.theme('ajaxWrapperNewContent',$newContent,ajax,response);switch(method){case 'html':case 'replaceWith':case 'replaceAll':case 'empty':case 'remove':Drupal.detachBehaviors($wrapper.get(0),settings);break;default:break;}$wrapper[method]($newContent);if(effect.showEffect!=='show')$newContent.hide();const $ajaxNewContent=$newContent.find('.ajax-new-content');if($ajaxNewContent.length){$ajaxNewContent.hide();$newContent.show();$ajaxNewContent[effect.showEffect](effect.showSpeed);}else{if(effect.showEffect!=='show')$newContent[effect.showEffect](effect.showSpeed);}$newContent.each((index,element)=>{if(element.nodeType===Node.ELEMENT_NODE&&document.documentElement.contains(element))Drupal.attachBehaviors(element,settings);});},remove(ajax,response,status){const settings=response.settings||ajax.settings||drupalSettings;$(response.selector).each(function(){Drupal.detachBehaviors(this,settings);}).remove();},changed(ajax,response,status){const $element=$(response.selector);if(!$element.hasClass('ajax-changed')){$element.addClass('ajax-changed');if(response.asterisk)$element.find(response.asterisk).append(` <abbr class="ajax-changed" title="${Drupal.t('Changed')}">*</abbr> `);}},alert(ajax,response,status){window.alert(response.text);},announce(ajax,response){if(response.priority)Drupal.announce(response.text,response.priority);else Drupal.announce(response.text);},redirect(ajax,response,status){window.location=response.url;},css(ajax,response,status){$(response.selector).css(response.argument);},settings(ajax,response,status){const ajaxSettings=drupalSettings.ajax;if(ajaxSettings)Drupal.ajax.expired().forEach((instance)=>{if(instance.selector){const selector=instance.selector.replace('#','');if(selector in ajaxSettings)delete ajaxSettings[selector];}});if(response.merge)$.extend(true,drupalSettings,response.settings);else ajax.settings=response.settings;},data(ajax,response,status){$(response.selector).data(response.name,response.value);},focusFirst(ajax,response,status){let focusChanged=false;const container=document.querySelector(response.selector);if(container){const tabbableElements=tabbable(container);if(tabbableElements.length){tabbableElements[0].focus();focusChanged=true;}else{if(isFocusable(container)){container.focus();focusChanged=true;}}}if(ajax.hasOwnProperty('element')&&!focusChanged)ajax.element.focus();},invoke(ajax,response,status){const $element=$(response.selector);$element[response.method](...response.args);},restripe(ajax,response,status){$(response.selector).find('> tbody > tr:visible, > tr:visible').removeClass('odd even').filter(':even').addClass('odd').end().filter(':odd').addClass('even');},update_build_id(ajax,response,status){document.querySelectorAll(`input[name="form_build_id"][value="${response.old}"]`).forEach((item)=>{item.value=response.new;});},add_css(ajax,response,status){const allUniqueBundleIds=response.data.map(function(style){const uniqueBundleId=style.href;if(!loadjs.isDefined(uniqueBundleId))loadjs(`css!${style.href}`,uniqueBundleId,{before(path,styleEl){Object.keys(style).forEach((attributeKey)=>{styleEl.setAttribute(attributeKey,style[attributeKey]);});}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},message(ajax,response){const messages=new Drupal.Message(document.querySelector(response.messageWrapperQuerySelector));if(response.clearPrevious)messages.clear();messages.add(response.message,response.messageOptions);},add_js(ajax,response,status){const parentEl=document.querySelector(response.selector||'body');const settings=ajax.settings||drupalSettings;const allUniqueBundleIds=response.data.map((script)=>{const uniqueBundleId=script.src;if(!loadjs.isDefined(uniqueBundleId))loadjs(script.src,uniqueBundleId,{async:false,before(path,scriptEl){Object.keys(script).forEach((attributeKey)=>{scriptEl.setAttribute(attributeKey,script[attributeKey]);});parentEl.appendChild(scriptEl);return false;}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){Drupal.attachBehaviors(parentEl,settings);resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},scrollTop(ajax,response){document.querySelector(response.selector)?.scrollIntoView();}};const stopEvent=(xhr,settings)=>{return (xhr.getResponseHeader('X-Drupal-Ajax-Token')==='1'&&typeof settings.isInProgress==='function'&&settings.isInProgress());};$.extend(true,$.event.special,{ajaxSuccess:{trigger(event,xhr,settings){if(stopEvent(xhr,settings))return false;}},ajaxComplete:{trigger(event,xhr,settings){if(stopEvent(xhr,settings)){$.active++;return false;}}}});})(jQuery,window,Drupal,drupalSettings,loadjs,window.tabbable);; 1532!function(Drupal){"use strict";Drupal.behaviors.datalayerpush={attach:function(a){Drupal.AjaxCommands.prototype.datalayerpush=function(a,t,d){window.dataLayer=window.dataLayer||[],window.dataLayer.push(t.data)}}}}(Drupal); 1533; 1534(function(Drupal){Drupal.AjaxCommands.prototype.gtagEvent=function(ajax,response){gtag('event',response.event_name,response.data);};})(Drupal);;
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.