H5PIntegration = {
  ajax: { setFinished: "", contentUserData: "" },
  ajaxPath: "/h5p/ajax?action=",
  contents: {
    "cid-1502627889": {
      displayOptions: {
        copy: false,
        copyright: false,
        embed: false,
        export: false,
        frame: false,
        icon: false,
      },
      fullScreen: "1",
      jsonContent:
        '{"showCoverPage":true,"bookCover":{"coverDescription":"<p style=\\"text-align:center\\"><span style=\\"font-size:1.25em\\"><strong></strong></span></p>\\n\\n<p style=\\"text-align:center\\"><span style=\\"font-size:1.25em\\"><strong>Λίγα λόγια για το έργο του ζωγράφου!</strong></span></p>\\n","coverMedium":{"params":{"decorative":false,"contentName":"Εικόνα","expandImage":"Expand Image","minimizeImage":"Minimize Image","alt":"Τζουζέπε Αρτσιμπόλντο","file":{"path":"resources/image-7CF4Z57Y.jpg","mime":"image/jpeg","copyright":{"license":"U"},"width":605,"height":899}},"library":"H5P.Image 1.1","metadata":{"contentType":"Image","license":"U","title":"Untitled Image","authors":[],"changes":[]},"subContentId":"1851dbff-8760-4127-af51-4c88c8b3cc99"}},"chapters":[{"params":{"content":[{"content":{"params":{"presentation":{"slides":[{"elements":[{"x":43.956043956043956,"y":9.303046747809907,"width":14.186291270199908,"height":40,"action":{"library":"H5P.Image 1.1","params":{"decorative":false,"contentName":"Εικόνα","expandImage":"Expand Image","minimizeImage":"Minimize Image","alt":"Giuseppe Arcimboldo","file":{"path":"resources/file-Hvub7fxy.jpg","mime":"image/jpeg","copyright":{"license":"U"},"width":379,"height":541}},"subContentId":"b1873d16-ff3c-4fa7-a878-62d9f6e56122","metadata":{"contentType":"Image","license":"U","title":"Untitled Image","authors":[],"changes":[]}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""},{"x":34.48275862068966,"y":39.628482972136226,"width":40,"height":8.16326530612245,"action":{"library":"H5P.AdvancedText 1.1","params":{"text":"<p><a href=\\"https://commons.wikimedia.org/wiki/File:Giuseppe_Arcimboldo_-_Self_Portrait_-_Google_Art_Project.jpg\\" target=\\"_blank\\">Giussepe Arcimboldo, Self Portrait</a><br />\\n<a href=\\"https://commons.wikimedia.org/wiki/File:Arcimboldo_Spring_1563.jpg\\" target=\\"_blank\\">Giuseppe Arcimboldo , Spring</a><br />\\n<a href=\\"https://commons.wikimedia.org/wiki/File:Giuseppe_Arcimboldo,_Italian;_Summer;_1572.jpg\\" target=\\"_blank\\">Giuseppe Arcimboldo , Summer</a><br />\\n<a href=\\"https://commons.wikimedia.org/wiki/File:Arcimboldo_Autumn_1572_(private).jpg\\" target=\\"_blank\\">Giuseppe Arcimboldo , Autumn</a><br />\\n<a href=\\"https://commons.wikimedia.org/wiki/File:Giuseppe_Arcimboldo_-_Winter,_1573.jpg\\" target=\\"_blank\\">​​​​​​​Giuseppe Arcimboldo , Winter</a><br />\\nPublic domain, via Wikimedia Commons</p>\\n"},"subContentId":"9b74222a-c49d-404a-a4ac-2775a58661c1","metadata":{"contentType":"Text","license":"U","title":"Untitled Text","authors":[],"changes":[]}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":true,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""},{"x":13.767789968652036,"y":60.182043343653255,"width":79.3103448275862,"height":27.86377708978328,"action":{"library":"H5P.AdvancedText 1.1","params":{"text":"<p><span><span><span>Ο Τζουζέπε Αρτσιμπόλντο ή Αρτσιμπόλντι (Giuseppe Arcimboldo ή Arcimboldi, (5 Απριλίου 1526 - 11 Ιουλίου 1593) ήταν Ιταλός ζωγράφος. Ασχολήθηκε περισσότερο και έγινε γνωστός για τη δημιουργία φανταστικών πορτρέτων τα οποία δημιουργούσε από αντικείμενα όπως φρούτα, λαχανικά, λουλούδια, ψάρια και βιβλία.</span></span></span></p>\\n"},"subContentId":"2ebd36cf-7ab6-406e-bfd2-6af2f9aaee06","metadata":{"contentType":"Text","license":"U","title":"Untitled Text","authors":[],"changes":[]}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""},{"x":26.687598116169543,"y":40.31320257384293,"width":7.836990595611286,"height":8.04953560371517,"action":{"library":"H5P.AdvancedText 1.1","params":{"text":"<p><span style=\\"font-size:1.125em\\"><strong>Πηγές:</strong></span></p>\\n"},"subContentId":"4cac738e-2bfe-4e1f-b7c6-d9cc9ce7500b","metadata":{"contentType":"Text","license":"U","title":"Untitled Text","authors":[],"changes":[]}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""}],"slideBackgroundSelector":{},"keywords":[{"main":"Βιογραφία"}]},{"elements":[{"x":13.799086206896552,"y":13.54639455782313,"width":23.27586206896552,"height":61.224489795918366,"action":{"library":"H5P.Image 1.1","params":{"decorative":false,"contentName":"Εικόνα","expandImage":"Expand Image","minimizeImage":"Minimize Image","alt":"Άνοιξη, 1563, Μαδρίτη, Academia de San Fernando","file":{"path":"resources/file-GdcoB886.jpg","mime":"image/jpeg","copyright":{"license":"U"},"width":800,"height":1068}},"subContentId":"b4dd4b57-77b0-4078-8053-965fe430b324","metadata":{"contentType":"Image","license":"U","title":"Untitled Image","authors":[],"changes":[]}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""},{"x":14.1287284144427,"y":83.72742073028917,"width":21.978021978021978,"height":8.15954725172494,"action":{"library":"H5P.AdvancedText 1.1","params":{"text":"<p><strong>Άνοιξη, Μαδρίτη (1563)</strong></p>\\n"},"subContentId":"57a381b9-b099-493f-9fe0-244ce6be2e95","metadata":{"contentType":"Text","license":"U","title":"Untitled Text","authors":[],"changes":[]}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""},{"x":60.3448275862069,"y":13.60544217687075,"width":24.310344827586206,"height":61.564625850340136,"action":{"library":"H5P.Image 1.1","params":{"decorative":false,"contentName":"Εικόνα","expandImage":"Expand Image","minimizeImage":"Minimize Image","alt":"Καλοκαίρι, 1572, Βιέννη, Μουσείο Ιστορίας της Τέχνης","file":{"path":"resources/file-rbNTpy2D.jpg","mime":"image/jpeg","copyright":{"license":"U"},"width":500,"height":648}},"subContentId":"dbb3371e-4ecc-41e0-bf0b-8edcb5959d73","metadata":{"contentType":"Image","license":"U","title":"Untitled Image","authors":[],"changes":[]}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""},{"x":62.79434850863422,"y":83.72742073028917,"width":21.978021978021978,"height":7.442437398247925,"action":{"library":"H5P.AdvancedText 1.1","params":{"text":"<p><strong>Καλοκαίρι, Βιέννη (1572)</strong></p>\\n"},"subContentId":"509d5d44-3982-4743-825c-83c0bc860e29","metadata":{"contentType":"Text","license":"U","title":"Untitled Text","authors":[],"changes":[]}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""},{"x":43.956043956043956,"y":3.1010155826033023,"width":8.620689655172415,"height":8.16326530612245,"action":{"library":"H5P.AdvancedText 1.1","params":{"text":"<p><span style=\\"font-size:1.375em\\"><strong>Έργα</strong></span></p>\\n"},"metadata":{"contentType":"Text","license":"U","title":"Untitled Text","authors":[],"changes":[]},"subContentId":"acf7f4c6-7ec8-4848-9887-95d560732649"},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""}],"slideBackgroundSelector":{},"keywords":[{"main":"Έργα"}]},{"elements":[{"x":15.521241379310347,"y":13.566088435374152,"width":22.413793103448278,"height":56.802721088435376,"action":{"library":"H5P.Image 1.1","params":{"decorative":false,"contentName":"Εικόνα","expandImage":"Expand Image","minimizeImage":"Minimize Image","alt":"Φθινόπωρο, 1572, Ντένβερ, Art Museum","file":{"path":"resources/file-PtZSjg4P.jpg","mime":"image/jpeg","copyright":{"license":"U"},"width":800,"height":1038}},"subContentId":"513ee81b-98b7-4b45-a9b7-f1513892a6b6","metadata":{"contentType":"Image","license":"U","title":"Untitled Image","authors":[],"changes":[]}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""},{"x":14.1287284144427,"y":77.52538956508256,"width":25.11773940345369,"height":8.15954725172494,"action":{"library":"H5P.AdvancedText 1.1","params":{"text":"<p><strong>Φθινόπωρο, Ντένβερ (1572)</strong></p>\\n"},"subContentId":"e0ede47e-67d4-4dee-b234-4b56c859e5d1","metadata":{"contentType":"Text","license":"U","title":"Untitled Text","authors":[],"changes":[]}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""},{"x":63.793103448275865,"y":13.60544217687075,"width":24.137931034482758,"height":57.82312925170068,"action":{"library":"H5P.Image 1.1","params":{"decorative":false,"contentName":"Εικόνα","expandImage":"Expand Image","minimizeImage":"Minimize Image","alt":"Χειμώνας, 1573, Παρίσι, Μουσείο του Λούβρου","file":{"path":"resources/file-AORiTxSv.jpg","mime":"image/jpeg","copyright":{"license":"U"},"width":614,"height":752}},"subContentId":"58f81b58-4f1e-4390-b86a-f38a1fcccce9","metadata":{"contentType":"Image","license":"U","title":"Untitled Image","authors":[],"changes":[]}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""},{"x":64.36420722135007,"y":77.52538956508256,"width":23.547880690737834,"height":7.442437398247925,"action":{"library":"H5P.AdvancedText 1.1","params":{"text":"<p><strong>Χειμώνας,  Παρίσι (1573)</strong></p>\\n"},"subContentId":"2866c0d0-af4b-4167-8754-cecc8ebabac2","metadata":{"contentType":"Text","license":"U","title":"Untitled Text","authors":[],"changes":[]}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""},{"x":45.52590266875981,"y":3.1010155826033023,"width":8.620689655172415,"height":8.16326530612245,"action":{"library":"H5P.AdvancedText 1.1","params":{"text":"<p><span style=\\"font-size:1.375em\\"><strong>Έργα</strong></span></p>\\n"},"subContentId":"9e138d87-1105-4ec4-937b-d1c4db9be854","metadata":{"contentType":"Text","license":"U","title":"Untitled Text","authors":[],"changes":[]}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""}],"slideBackgroundSelector":{},"keywords":[{"main":"Έργα"}]}],"keywordListEnabled":true,"globalBackgroundSelector":{"fillGlobalBackground":"#ffffff"},"keywordListAlwaysShow":false,"keywordListAutoHide":false,"keywordListOpacity":90},"override":{"activeSurface":false,"hideSummarySlide":false,"summarySlideSolutionButton":true,"summarySlideRetryButton":true,"enablePrintButton":false,"social":{"showFacebookShare":false,"facebookShare":{"url":"@currentpageurl","quote":"Πέτυχα @score στα @maxScore σε αυτή την άσκηση: @currentpageurl."},"showTwitterShare":false,"twitterShare":{"statement":"Πέτυχα @score στα @maxScore σε αυτή την άσκηση: @currentpageurl.","url":"@currentpageurl","hashtags":"h5p, course"},"showGoogleShare":false,"googleShareUrl":"@currentpageurl"}},"l10n":{"slide":"Διαφάνεια","score":"Βαθμολογία","yourScore":"Η βαθμολογία σου","maxScore":"Μέγιστη βαθμολογία","total":"Σύνολο","totalScore":"Συνολική βαθμολογία","showSolutions":"Λύση","retry":"Επανάληψη","exportAnswers":"Εξαγωγή κειμένου","hideKeywords":"Απόκρυψη λίστας λέξεων - κλειδιά","showKeywords":"Εμφάνιση λίστας λέξεων - κλειδιά ","fullscreen":"Πλήρης οθόνη","exitFullscreen":"Κλείσιμο προβολής πλήρους οθόνης","prevSlide":"Προηγούμενη διαφάνεια","nextSlide":"Επόμενη διαφάνεια","currentSlide":"Τρέχουσα διαφάνεια","lastSlide":"Τελευταία διαφάνεια","solutionModeTitle":"Έξοδος από λειτουργία λύσης","solutionModeText":"Λειτουργία λύσης","summaryMultipleTaskText":"Πολλαπλές ασκήσεις","scoreMessage":"Έχεις πετύχει:","shareFacebook":"Κοινοποίηση στο Facebook","shareTwitter":"Κοινοποίηση στο Twitter","shareGoogle":"Κοινοποίηση στο Google+","summary":"Σύνοψη","solutionsButtonTitle":"Εμφάνιση σχολίων","printTitle":"Εκτύπωση","printIngress":"Πώς θέλετε να εκτυπώσετε την παρουσίαση;","printAllSlides":"Εκτύπωση όλων των διαφανειών","printCurrentSlide":"Εκτύπωση τρέχουσας διαφάνειας","noTitle":"Χωρίς τίτλο","accessibilitySlideNavigationExplanation":"Χρησιμοποίησε το δεξί και το αριστερό βέλος για εναλλαγή διαφανειών προς την αντίστοιχη κατεύθυνση","accessibilityCanvasLabel":"Επιφάνειας προβολής διαφανειών. Χρησιμοποίησε το αριστερό και το δεξί βέλος για την πλοήγηση στις διαφάνειες.","accessibilityProgressBarLabel":"Επιλέξτε διαφάνεια για προβολή","containsNotCompleted":"H διαφάνεια @slideName έχει μη ολοκληρωμένο διαδραστικό στοιχείο","containsCompleted":"H διαφάνεια @slideName έχει ολοκληρωμένο διαδραστικό στοιχείο","slideCount":"Διαφάνεια @index από @total","containsOnlyCorrect":"Η διαφάνεια @slideName έχει μόνο σωστές απαντήσεις","containsIncorrectAnswers":"Η διαφάνεια @slideName έχει λάθος απαντήσεις","shareResult":"Κοινοποίηση αποτελέσματος","accessibilityTotalScore":"Η βαθμολογία σου είναι @score από @maxScore","accessibilityEnteredFullscreen":"Είσοδος σε πλήρη οθόνη","accessibilityExitedFullscreen":"Έξοδος από πλήρη οθόνη","confirmDialogHeader":"Υποβολή των απαντήσεών σας","confirmDialogText":"Αυτή η ενέργεια θα υποβάλει τις απαντήσεις σας, θέλετε να συνεχίσετε;","confirmDialogConfirmText":"Υποβολή απαντήσεων και προβολή αποτελεσμάτων","slideshowNavigationLabel":"Πλοήγηση σε διαφάνειες"}},"library":"H5P.CoursePresentation 1.25","metadata":{"contentType":"Course Presentation","license":"U","title":"Giuseppe Arcimboldo","authors":[],"changes":[],"extraTitle":"Giuseppe Arcimboldo"},"subContentId":"f3b94bf2-aede-421e-96f1-9f8e0a1b284b"},"useSeparator":"auto"}]},"library":"H5P.Column 1.16","subContentId":"15f3d736-ae96-4ae2-9985-c53ab31dd5e6","metadata":{"contentType":"Column","license":"U","title":"Τζουζέπε Αρτσιμπόλντο - Παρουσίαση","authors":[],"changes":[],"extraTitle":"Τζουζέπε Αρτσιμπόλντο - Παρουσίαση"}}],"behaviour":{"baseColor":"#1768c4","defaultTableOfContents":false,"progressIndicators":true,"progressAuto":true,"displaySummary":true,"enableRetry":true},"read":"Ανάγνωση","displayTOC":"Προβολή &#039;Πίνακα Περιεχομένων&#039;","hideTOC":"Απόκρυψη &#039;Πίνακα Περιεχομένων&#039;","nextPage":"Επόμενη σελίδα","previousPage":"Προηγούμενη σελίδα","chapterCompleted":"Ολοκληρωμένη σελίδα!","partCompleted":"@pages από @total έχουν ολοκληρωθεί","incompleteChapter":"Μη ολοκληρωμένη σελίδα","navigateToTop":"Μετάβαση στην κορυφή","markAsFinished":"Έχω ολοκληρώσει αυτήν τη σελίδα","fullscreen":"Πλήρης οθόνη","exitFullscreen":"Έξοδος από πρόβολή πλήρους οθόνης","bookProgressSubtext":"@count από @total σελίδες","interactionsProgressSubtext":"@count από @total δραστηριοτήτων","submitReport":"Υποβολή Αναφοράς","restartLabel":"Επανεκκίνηση","summaryHeader":"Περίληψη","allInteractions":"Όλες οι διαδράσεις","unansweredInteractions":"Διαδράσεις που δεν απαντήθηκαν","scoreText":"@score / @maxscore","leftOutOfTotalCompleted":"@left από @max διαδράσεις έχουν ολοκληρωθεί","noInteractions":"Δεν υπάρχουν διαδράσεις","score":"Βαθμολογία","summaryAndSubmit":"Περίληψη &amp; υποβολή","noChapterInteractionBoldText":"Δεν έχετε ολοκληρώσει καμία διάδραση σε καμία από τις σελίδες.","noChapterInteractionText":"Πρέπει να έχετε ολοκληρώσει τουλάχιστον μια διάδραση σε τουλάχιστον μια σελίδα για να μπορέσετε να προβάλετε την περίληψη.","yourAnswersAreSubmittedForReview":"Οι απαντήσεις σας έχουν υποβληθεί για έλεγχο!","bookProgress":"Πρόοδος στο βιβλίο","interactionsProgress":"Πρόοδος διαδράσεων","totalScoreLabel":"Συνολική βαθμολογία","a11y":{"progress":"Σελίδα @page από @total.","menu":"Εναλλαγή μενού πλοήγησης"}}',
      library: "H5P.InteractiveBook 1.7",
      metadata: {
        license: "U",
        title: "Τζουζέπε Αρτσιμπόλντο - Παρουσίαση",
        defaultLanguage: "el",
      },
      scripts: [
        "/h5p/libraries/H5P.Image-1.1/image.js?version=1.1.22",
        "/h5p/libraries/H5P.AdvancedText-1.1/text.js?version=1.1.14",
        "/h5p/libraries/H5P.Transition-1.0/transition.js?version=1.0.4",
        "/h5p/libraries/H5P.JoubelUI-1.3/js/joubel-help-dialog.js?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/js/joubel-message-dialog.js?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/js/joubel-progress-circle.js?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/js/joubel-simple-rounded-button.js?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/js/joubel-speech-bubble.js?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/js/joubel-throbber.js?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/js/joubel-tip.js?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/js/joubel-slider.js?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/js/joubel-score-bar.js?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/js/joubel-progressbar.js?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/js/joubel-ui.js?version=1.3.19",
        "/h5p/libraries/H5P.CoursePresentation-1.25/dist/h5p-course-presentation.js?version=1.25.9",
        "/h5p/libraries/H5P.Column-1.16/scripts/h5p-column.js?version=1.16.5",
        "/h5p/libraries/H5P.InteractiveBook-1.7/dist/h5p-interactive-book.js?version=1.7.12",
      ],
      styles: [
        "/h5p/libraries/H5P.Image-1.1/image.css?version=1.1.22",
        "/h5p/libraries/H5P.AdvancedText-1.1/text.css?version=1.1.14",
        "/h5p/libraries/FontAwesome-4.5/h5p-font-awesome.min.css?version=4.5.4",
        "/h5p/libraries/H5P.FontIcons-1.0/styles/h5p-font-icons.css?version=1.0.6",
        "/h5p/libraries/H5P.JoubelUI-1.3/css/joubel-help-dialog.css?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/css/joubel-message-dialog.css?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/css/joubel-progress-circle.css?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/css/joubel-simple-rounded-button.css?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/css/joubel-speech-bubble.css?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/css/joubel-tip.css?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/css/joubel-slider.css?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/css/joubel-score-bar.css?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/css/joubel-progressbar.css?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/css/joubel-ui.css?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/css/joubel-icon.css?version=1.3.19",
        "/h5p/libraries/H5P.CoursePresentation-1.25/dist/h5p-course-presentation.css?version=1.25.9",
        "/h5p/libraries/H5P.Column-1.16/styles/h5p-column.css?version=1.16.5",
        "/h5p/libraries/H5P.InteractiveBook-1.7/dist/h5p-interactive-book.css?version=1.7.12",
      ],
      url: "1502627889",
      exportUrl: "/h5p/download/1502627889",
    },
  },
  core: {
    scripts: [
      "/h5p/core/js/jquery.js?version=1.24-master",
      "/h5p/core/js/h5p.js?version=1.24-master",
      "/h5p/core/js/h5p-event-dispatcher.js?version=1.24-master",
      "/h5p/core/js/h5p-x-api-event.js?version=1.24-master",
      "/h5p/core/js/h5p-x-api.js?version=1.24-master",
      "/h5p/core/js/h5p-content-type.js?version=1.24-master",
      "/h5p/core/js/h5p-confirmation-dialog.js?version=1.24-master",
      "/h5p/core/js/h5p-action-bar.js?version=1.24-master",
      "/h5p/core/js/request-queue.js?version=1.24-master",
    ],
    styles: [
      "/h5p/core/styles/h5p.css?version=1.24-master",
      "/h5p/core/styles/h5p-confirmation-dialog.css?version=1.24-master",
      "/h5p/core/styles/h5p-core-button.css?version=1.24-master",
    ],
  },
  l10n: {
    H5P: {
      fullscreen: "Fullscreen",
      disableFullscreen: "Disable fullscreen",
      download: "Download",
      copyrights: "Rights of use",
      embed: "Embed",
      size: "Size",
      showAdvanced: "Show advanced",
      hideAdvanced: "Hide advanced",
      advancedHelp:
        "Include this script on your website if you want dynamic sizing of the embedded content:",
      copyrightInformation: "Rights of use",
      close: "Close",
      title: "Title",
      author: "Author",
      year: "Year",
      source: "Source",
      license: "License",
      thumbnail: "Thumbnail",
      noCopyrights: "No copyright information available for this content.",
      reuse: "Reuse",
      reuseContent: "Reuse Content",
      reuseDescription: "Reuse this content.",
      downloadDescription: "Download this content as a H5P file.",
      copyrightsDescription: "View copyright information for this content.",
      embedDescription: "View the embed code for this content.",
      h5pDescription: "Visit H5P.org to check out more cool content.",
      contentChanged: "This content has changed since you last used it.",
      startingOver: "You'll be starting over.",
      by: "by",
      showMore: "Show more",
      showLess: "Show less",
      subLevel: "Sublevel",
      confirmDialogHeader: "Confirm action",
      confirmDialogBody:
        "Please confirm that you wish to proceed. This action is not reversible.",
      cancelLabel: "Cancel",
      confirmLabel: "Confirm",
      licenseU: "Undisclosed",
      licenseCCBY: "Attribution",
      licenseCCBYSA: "Attribution-ShareAlike",
      licenseCCBYND: "Attribution-NoDerivs",
      licenseCCBYNC: "Attribution-NonCommercial",
      licenseCCBYNCSA: "Attribution-NonCommercial-ShareAlike",
      licenseCCBYNCND: "Attribution-NonCommercial-NoDerivs",
      licenseCC40: "4.0 International",
      licenseCC30: "3.0 Unported",
      licenseCC25: "2.5 Generic",
      licenseCC20: "2.0 Generic",
      licenseCC10: "1.0 Generic",
      licenseGPL: "General Public License",
      licenseV3: "Version 3",
      licenseV2: "Version 2",
      licenseV1: "Version 1",
      licensePD: "Public Domain",
      licenseCC010: "CC0 1.0 Universal (CC0 1.0) Public Domain Dedication",
      licensePDM: "Public Domain Mark",
      licenseC: "Copyright",
      contentType: "Content Type",
      licenseExtras: "License Extras",
      changes: "Changelog",
      contentCopied: "Content is copied to the clipboard",
      connectionLost:
        "Connection lost. Results will be stored and sent when you regain connection.",
      connectionReestablished: "Connection reestablished.",
      resubmitScores: "Attempting to submit stored results.",
      offlineDialogHeader: "Your connection to the server was lost",
      offlineDialogBody:
        "We were unable to send information about your completion of this task. Please check your internet connection.",
      offlineDialogRetryMessage: "Retrying in :num....",
      offlineDialogRetryButtonLabel: "Retry now",
      offlineSuccessfulSubmit: "Successfully submitted results.",
      mainTitle: "Sharing <strong>:title</strong>",
      editInfoTitle: "Edit info for <strong>:title</strong>",
      cancel: "Cancel",
      back: "Back",
      next: "Next",
      reviewInfo: "Review info",
      share: "Share",
      saveChanges: "Save changes",
      registerOnHub: "Register on the H5P Hub",
      updateRegistrationOnHub: "Save account settings",
      requiredInfo: "Required Info",
      optionalInfo: "Optional Info",
      reviewAndShare: "Review & Share",
      reviewAndSave: "Review & Save",
      shared: "Shared",
      currentStep: "Step :step of :total",
      sharingNote: "All content details can be edited after sharing",
      licenseDescription: "Select a license for your content",
      licenseVersion: "License Version",
      licenseVersionDescription: "Select a license version",
      disciplineLabel: "Disciplines",
      disciplineDescription: "You can select multiple disciplines",
      disciplineLimitReachedMessage:
        "You can select up to :numDisciplines disciplines",
      discipline: {
        searchPlaceholder: "Type to search for disciplines",
        in: "in",
        dropdownButton: "Dropdown button",
      },
      removeChip: "Remove :chip from the list",
      keywordsPlaceholder: "Add keywords",
      keywords: "Keywords",
      keywordsDescription:
        'You can add multiple keywords separated by commas. Press "Enter" or "Add" to confirm keywords',
      altText: "Alt text",
      reviewMessage: "Please review the info below before you share",
      subContentWarning:
        "Sub-content (images, questions etc.) will be shared under :license unless otherwise specified in the authoring tool",
      disciplines: "Disciplines",
      shortDescription: "Short description",
      longDescription: "Long description",
      icon: "Icon",
      screenshots: "Screenshots",
      helpChoosingLicense: "Help me choose a license",
      shareFailed: "Share failed.",
      editingFailed: "Editing failed.",
      shareTryAgain: "Something went wrong, please try to share again.",
      pleaseWait: "Please wait...",
      language: "Language",
      level: "Level",
      shortDescriptionPlaceholder: "Short description of your content",
      longDescriptionPlaceholder: "Long description of your content",
      description: "Description",
      iconDescription:
        "640x480px. If not selected content will use category icon",
      screenshotsDescription: "Add up to five screenshots of your content",
      submitted: "Submitted!",
      isNowSubmitted: "Is now submitted to H5P Hub",
      changeHasBeenSubmitted: "A change has been submited for",
      contentAvailable:
        "Your content will normally be available in the Hub within one business day.",
      contentUpdateSoon: "Your content will update soon",
      contentLicenseTitle: "Content License Info",
      licenseDialogDescription:
        "Click on a specific license to get info about proper usage",
      publisherFieldTitle: "Publisher",
      publisherFieldDescription:
        'This will display as the "Publisher name" on shared content',
      emailAddress: "Email Address",
      publisherDescription: "Publisher description",
      publisherDescriptionText:
        'This will be displayed under "Publisher info" on shared content',
      contactPerson: "Contact Person",
      phone: "Phone",
      address: "Address",
      city: "City",
      zip: "Zip",
      country: "Country",
      logoUploadText: "Organization logo or avatar",
      acceptTerms:
        "I accept the <a href=':url' target='_blank'>terms of use</a>",
      successfullyRegistred:
        "You have successfully registered an account on the H5P Hub",
      successfullyRegistredDescription: "You account details can be changed",
      successfullyUpdated:
        "Your H5P Hub account settings have successfully been changed",
      accountDetailsLinkText: "here",
      registrationTitle: "H5P Hub Registration",
      registrationFailed: "An error occurred",
      registrationFailedDescription:
        "We were not able to create an account at this point. Something went wrong. Try again later.",
      maxLength: ":length is the maximum number of characters",
      keywordExists: "Keyword already exists!",
      licenseDetails: "License details",
      remove: "Remove",
      removeImage: "Remove image",
      cancelPublishConfirmationDialogTitle: "Cancel sharing",
      cancelPublishConfirmationDialogDescription:
        "Are you sure you want to cancel the sharing process?",
      cancelPublishConfirmationDialogCancelButtonText: "No",
      cancelPublishConfirmationDialogConfirmButtonText: "Yes",
      add: "Add",
      age: "Typical age",
      ageDescription:
        'The target audience of this content. Possible input formats separated by commas: "1,34-45,-50,59-".',
      invalidAge:
        'Invalid input format for Typical age. Possible input formats separated by commas: "1, 34-45, -50, -59-".',
      contactPersonDescription:
        'H5P will reach out to the contact person in case there are any issues with the content shared by the publisher. The contact person"s name or other information will not be published or shared with third parties',
      emailAddressDescription:
        "The email address will be used by H5P to reach out to the publisher in case of any issues with the content or in case the publisher needs to recover their account. It will not be published or shared with any third parties",
      copyrightWarning:
        "Copyrighted material cannot be shared in the H5P Content Hub. If the content is licensed with a OER friendly license like Creative Commons, please choose the appropriate license. If not this content cannot be shared.",
      keywordsExits: "Keywords already exists!",
      someKeywordsExits: "Some of these keywords already exist",
    },
  },
  postUserStatistics: false,
  saveFreq: false,
  url: ".",
  hubIsEnabled: true,
  fullscreenDisabled: 0,
  user: { name: "Firstname Surname", id: "1" },
  baseUrl: ".",
  libraryUrl: "",
};

if (new URLSearchParams(window.location.search).get("embed") == "true") {
  H5PIntegration.contents["cid-" + "1502627889"].displayOptions.embed = false;
} else {
  H5PIntegration.contents["cid-" + "1502627889"].embedCode =
    '<iframe src="' +
    window.location.protocol +
    "//" +
    window.location.host +
    window.location.pathname +
    "?embed=true" +
    '" width=":w" height=":h" frameborder="0" allowfullscreen="allowfullscreen"></iframe>';
  H5PIntegration.contents["cid-" + "1502627889"].resizeCode = "";
}

/*!@license js/jquery.js by Joubel and other contributors, licensed under GNU GENERAL PUBLIC LICENSE Version 3*/
!(function (e, t) {
  "use strict";
  "object" == typeof module && "object" == typeof module.exports
    ? (module.exports = e.document
        ? t(e, !0)
        : function (e) {
            if (!e.document)
              throw new Error("jQuery requires a window with a document");
            return t(e);
          })
    : t(e);
})("undefined" != typeof window ? window : this, function (S, e) {
  "use strict";
  function v(e) {
    return "function" == typeof e && "number" != typeof e.nodeType;
  }
  function m(e) {
    return null != e && e === e.window;
  }
  var t = [],
    n = Object.getPrototypeOf,
    s = t.slice,
    g = t.flat
      ? function (e) {
          return t.flat.call(e);
        }
      : function (e) {
          return t.concat.apply([], e);
        },
    c = t.push,
    i = t.indexOf,
    r = {},
    o = r.toString,
    b = r.hasOwnProperty,
    a = b.toString,
    l = a.call(Object),
    y = {},
    P = S.document,
    u = { type: !0, src: !0, nonce: !0, noModule: !0 };
  function w(e, t, n) {
    var r,
      i,
      o = (n = n || P).createElement("script");
    if (((o.text = e), t))
      for (r in u)
        (i = t[r] || (t.getAttribute && t.getAttribute(r))) &&
          o.setAttribute(r, i);
    n.head.appendChild(o).parentNode.removeChild(o);
  }
  function f(e) {
    return null == e
      ? e + ""
      : "object" == typeof e || "function" == typeof e
        ? r[o.call(e)] || "object"
        : typeof e;
  }
  var d = "3.5.1",
    C = function (e, t) {
      return new C.fn.init(e, t);
    };
  function p(e) {
    var t = !!e && "length" in e && e.length,
      n = f(e);
    return (
      !v(e) &&
      !m(e) &&
      ("array" === n ||
        0 === t ||
        ("number" == typeof t && 0 < t && t - 1 in e))
    );
  }
  ((C.fn = C.prototype =
    {
      jquery: d,
      constructor: C,
      length: 0,
      toArray: function () {
        return s.call(this);
      },
      get: function (e) {
        return null == e
          ? s.call(this)
          : e < 0
            ? this[e + this.length]
            : this[e];
      },
      pushStack: function (e) {
        e = C.merge(this.constructor(), e);
        return ((e.prevObject = this), e);
      },
      each: function (e) {
        return C.each(this, e);
      },
      map: function (n) {
        return this.pushStack(
          C.map(this, function (e, t) {
            return n.call(e, t, e);
          }),
        );
      },
      slice: function () {
        return this.pushStack(s.apply(this, arguments));
      },
      first: function () {
        return this.eq(0);
      },
      last: function () {
        return this.eq(-1);
      },
      even: function () {
        return this.pushStack(
          C.grep(this, function (e, t) {
            return (t + 1) % 2;
          }),
        );
      },
      odd: function () {
        return this.pushStack(
          C.grep(this, function (e, t) {
            return t % 2;
          }),
        );
      },
      eq: function (e) {
        var t = this.length,
          e = +e + (e < 0 ? t : 0);
        return this.pushStack(0 <= e && e < t ? [this[e]] : []);
      },
      end: function () {
        return this.prevObject || this.constructor();
      },
      push: c,
      sort: t.sort,
      splice: t.splice,
    }),
    (C.extend = C.fn.extend =
      function () {
        var e,
          t,
          n,
          r,
          i,
          o = arguments[0] || {},
          a = 1,
          s = arguments.length,
          c = !1;
        for (
          "boolean" == typeof o && ((c = o), (o = arguments[a] || {}), a++),
            "object" == typeof o || v(o) || (o = {}),
            a === s && ((o = this), a--);
          a < s;
          a++
        )
          if (null != (e = arguments[a]))
            for (t in e)
              ((n = e[t]),
                "__proto__" !== t &&
                  o !== n &&
                  (c && n && (C.isPlainObject(n) || (r = Array.isArray(n)))
                    ? ((i = o[t]),
                      (i =
                        r && !Array.isArray(i)
                          ? []
                          : r || C.isPlainObject(i)
                            ? i
                            : {}),
                      (r = !1),
                      (o[t] = C.extend(c, i, n)))
                    : void 0 !== n && (o[t] = n)));
        return o;
      }),
    C.extend({
      expando: "jQuery" + (d + Math.random()).replace(/\D/g, ""),
      isReady: !0,
      error: function (e) {
        throw new Error(e);
      },
      noop: function () {},
      isPlainObject: function (e) {
        return !(
          !e ||
          "[object Object]" !== o.call(e) ||
          ((e = n(e)) &&
            ("function" !=
              typeof (e = b.call(e, "constructor") && e.constructor) ||
              a.call(e) !== l))
        );
      },
      isEmptyObject: function (e) {
        for (var t in e) return !1;
        return !0;
      },
      globalEval: function (e, t, n) {
        w(e, { nonce: t && t.nonce }, n);
      },
      each: function (e, t) {
        var n,
          r = 0;
        if (p(e))
          for (n = e.length; r < n && !1 !== t.call(e[r], r, e[r]); r++);
        else for (r in e) if (!1 === t.call(e[r], r, e[r])) break;
        return e;
      },
      makeArray: function (e, t) {
        t = t || [];
        return (
          null != e &&
            (p(Object(e))
              ? C.merge(t, "string" == typeof e ? [e] : e)
              : c.call(t, e)),
          t
        );
      },
      inArray: function (e, t, n) {
        return null == t ? -1 : i.call(t, e, n);
      },
      merge: function (e, t) {
        for (var n = +t.length, r = 0, i = e.length; r < n; r++) e[i++] = t[r];
        return ((e.length = i), e);
      },
      grep: function (e, t, n) {
        for (var r = [], i = 0, o = e.length, a = !n; i < o; i++)
          !t(e[i], i) != a && r.push(e[i]);
        return r;
      },
      map: function (e, t, n) {
        var r,
          i,
          o = 0,
          a = [];
        if (p(e))
          for (r = e.length; o < r; o++)
            null != (i = t(e[o], o, n)) && a.push(i);
        else for (o in e) null != (i = t(e[o], o, n)) && a.push(i);
        return g(a);
      },
      guid: 1,
      support: y,
    }),
    "function" == typeof Symbol && (C.fn[Symbol.iterator] = t[Symbol.iterator]),
    C.each(
      "Boolean Number String Function Array Date RegExp Object Error Symbol".split(
        " ",
      ),
      function (e, t) {
        r["[object " + t + "]"] = t.toLowerCase();
      },
    ));
  var h = (function (n) {
    function d(e, t) {
      return (
        (e = "0x" + e.slice(1) - 65536),
        t ||
          (e < 0
            ? String.fromCharCode(65536 + e)
            : String.fromCharCode((e >> 10) | 55296, (1023 & e) | 56320))
      );
    }
    function p(e, t) {
      return t
        ? "\0" === e
          ? "�"
          : e.slice(0, -1) +
            "\\" +
            e.charCodeAt(e.length - 1).toString(16) +
            " "
        : "\\" + e;
    }
    function r() {
      S();
    }
    var e,
      h,
      w,
      o,
      i,
      f,
      v,
      m,
      x,
      c,
      l,
      S,
      P,
      a,
      C,
      g,
      s,
      u,
      b,
      k = "sizzle" + +new Date(),
      y = n.document,
      T = 0,
      H = 0,
      E = ce(),
      A = ce(),
      I = ce(),
      L = ce(),
      O = function (e, t) {
        return (e === t && (l = !0), 0);
      },
      j = {}.hasOwnProperty,
      t = [],
      D = t.pop,
      M = t.push,
      B = t.push,
      N = t.slice,
      F = function (e, t) {
        for (var n = 0, r = e.length; n < r; n++) if (e[n] === t) return n;
        return -1;
      },
      $ =
        "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
      R = "[\\x20\\t\\r\\n\\f]",
      q =
        "(?:\\\\[\\da-fA-F]{1,6}" +
        R +
        "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",
      z =
        "\\[" +
        R +
        "*(" +
        q +
        ")(?:" +
        R +
        "*([*^$|!~]?=)" +
        R +
        "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" +
        q +
        "))|)" +
        R +
        "*\\]",
      W =
        ":(" +
        q +
        ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" +
        z +
        ")*)|.*)\\)|)",
      U = new RegExp(R + "+", "g"),
      _ = new RegExp("^" + R + "+|((?:^|[^\\\\])(?:\\\\.)*)" + R + "+$", "g"),
      Q = new RegExp("^" + R + "*," + R + "*"),
      V = new RegExp("^" + R + "*([>+~]|" + R + ")" + R + "*"),
      X = new RegExp(R + "|>"),
      K = new RegExp(W),
      G = new RegExp("^" + q + "$"),
      J = {
        ID: new RegExp("^#(" + q + ")"),
        CLASS: new RegExp("^\\.(" + q + ")"),
        TAG: new RegExp("^(" + q + "|[*])"),
        ATTR: new RegExp("^" + z),
        PSEUDO: new RegExp("^" + W),
        CHILD: new RegExp(
          "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" +
            R +
            "*(even|odd|(([+-]|)(\\d*)n|)" +
            R +
            "*(?:([+-]|)" +
            R +
            "*(\\d+)|))" +
            R +
            "*\\)|)",
          "i",
        ),
        bool: new RegExp("^(?:" + $ + ")$", "i"),
        needsContext: new RegExp(
          "^" +
            R +
            "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
            R +
            "*((?:-\\d)?\\d*)" +
            R +
            "*\\)|)(?=[^-]|$)",
          "i",
        ),
      },
      Y = /HTML$/i,
      Z = /^(?:input|select|textarea|button)$/i,
      ee = /^h\d$/i,
      te = /^[^{]+\{\s*\[native \w/,
      ne = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
      re = /[+~]/,
      ie = new RegExp("\\\\[\\da-fA-F]{1,6}" + R + "?|\\\\([^\\r\\n\\f])", "g"),
      oe = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
      ae = be(
        function (e) {
          return !0 === e.disabled && "fieldset" === e.nodeName.toLowerCase();
        },
        { dir: "parentNode", next: "legend" },
      );
    try {
      (B.apply((t = N.call(y.childNodes)), y.childNodes),
        t[y.childNodes.length].nodeType);
    } catch (e) {
      B = {
        apply: t.length
          ? function (e, t) {
              M.apply(e, N.call(t));
            }
          : function (e, t) {
              for (var n = e.length, r = 0; (e[n++] = t[r++]); );
              e.length = n - 1;
            },
      };
    }
    function se(e, t, n, r) {
      var i,
        o,
        a,
        s,
        c,
        l,
        u = t && t.ownerDocument,
        d = t ? t.nodeType : 9;
      if (
        ((n = n || []),
        "string" != typeof e || !e || (1 !== d && 9 !== d && 11 !== d))
      )
        return n;
      if (!r && (S(t), (t = t || P), C)) {
        if (11 !== d && (s = ne.exec(e)))
          if ((l = s[1])) {
            if (9 === d) {
              if (!(o = t.getElementById(l))) return n;
              if (o.id === l) return (n.push(o), n);
            } else if (u && (o = u.getElementById(l)) && b(t, o) && o.id === l)
              return (n.push(o), n);
          } else {
            if (s[2]) return (B.apply(n, t.getElementsByTagName(e)), n);
            if (
              (l = s[3]) &&
              h.getElementsByClassName &&
              t.getElementsByClassName
            )
              return (B.apply(n, t.getElementsByClassName(l)), n);
          }
        if (
          h.qsa &&
          !L[e + " "] &&
          (!g || !g.test(e)) &&
          (1 !== d || "object" !== t.nodeName.toLowerCase())
        ) {
          if (((l = e), (u = t), 1 === d && (X.test(e) || V.test(e)))) {
            for (
              ((u = (re.test(e) && ve(t.parentNode)) || t) === t && h.scope) ||
                ((a = t.getAttribute("id"))
                  ? (a = a.replace(oe, p))
                  : t.setAttribute("id", (a = k))),
                i = (c = f(e)).length;
              i--;

            )
              c[i] = (a ? "#" + a : ":scope") + " " + ge(c[i]);
            l = c.join(",");
          }
          try {
            return (B.apply(n, u.querySelectorAll(l)), n);
          } catch (t) {
            L(e, !0);
          } finally {
            a === k && t.removeAttribute("id");
          }
        }
      }
      return m(e.replace(_, "$1"), t, n, r);
    }
    function ce() {
      var r = [];
      return function e(t, n) {
        return (
          r.push(t + " ") > w.cacheLength && delete e[r.shift()],
          (e[t + " "] = n)
        );
      };
    }
    function le(e) {
      return ((e[k] = !0), e);
    }
    function ue(e) {
      var t = P.createElement("fieldset");
      try {
        return !!e(t);
      } catch (e) {
        return !1;
      } finally {
        t.parentNode && t.parentNode.removeChild(t);
      }
    }
    function de(e, t) {
      for (var n = e.split("|"), r = n.length; r--; ) w.attrHandle[n[r]] = t;
    }
    function pe(e, t) {
      var n = t && e,
        r =
          n &&
          1 === e.nodeType &&
          1 === t.nodeType &&
          e.sourceIndex - t.sourceIndex;
      if (r) return r;
      if (n) for (; (n = n.nextSibling); ) if (n === t) return -1;
      return e ? 1 : -1;
    }
    function he(t) {
      return function (e) {
        return "form" in e
          ? e.parentNode && !1 === e.disabled
            ? "label" in e
              ? "label" in e.parentNode
                ? e.parentNode.disabled === t
                : e.disabled === t
              : e.isDisabled === t || (e.isDisabled !== !t && ae(e) === t)
            : e.disabled === t
          : "label" in e && e.disabled === t;
      };
    }
    function fe(a) {
      return le(function (o) {
        return (
          (o = +o),
          le(function (e, t) {
            for (var n, r = a([], e.length, o), i = r.length; i--; )
              e[(n = r[i])] && (e[n] = !(t[n] = e[n]));
          })
        );
      });
    }
    function ve(e) {
      return e && void 0 !== e.getElementsByTagName && e;
    }
    for (e in ((h = se.support = {}),
    (i = se.isXML =
      function (e) {
        var t = e.namespaceURI,
          e = (e.ownerDocument || e).documentElement;
        return !Y.test(t || (e && e.nodeName) || "HTML");
      }),
    (S = se.setDocument =
      function (e) {
        var t,
          e = e ? e.ownerDocument || e : y;
        return (
          e != P &&
            9 === e.nodeType &&
            e.documentElement &&
            ((a = (P = e).documentElement),
            (C = !i(P)),
            y != P &&
              (t = P.defaultView) &&
              t.top !== t &&
              (t.addEventListener
                ? t.addEventListener("unload", r, !1)
                : t.attachEvent && t.attachEvent("onunload", r)),
            (h.scope = ue(function (e) {
              return (
                a.appendChild(e).appendChild(P.createElement("div")),
                void 0 !== e.querySelectorAll &&
                  !e.querySelectorAll(":scope fieldset div").length
              );
            })),
            (h.attributes = ue(function (e) {
              return ((e.className = "i"), !e.getAttribute("className"));
            })),
            (h.getElementsByTagName = ue(function (e) {
              return (
                e.appendChild(P.createComment("")),
                !e.getElementsByTagName("*").length
              );
            })),
            (h.getElementsByClassName = te.test(P.getElementsByClassName)),
            (h.getById = ue(function (e) {
              return (
                (a.appendChild(e).id = k),
                !P.getElementsByName || !P.getElementsByName(k).length
              );
            })),
            h.getById
              ? ((w.filter.ID = function (e) {
                  var t = e.replace(ie, d);
                  return function (e) {
                    return e.getAttribute("id") === t;
                  };
                }),
                (w.find.ID = function (e, t) {
                  if (void 0 !== t.getElementById && C) {
                    e = t.getElementById(e);
                    return e ? [e] : [];
                  }
                }))
              : ((w.filter.ID = function (e) {
                  var t = e.replace(ie, d);
                  return function (e) {
                    e =
                      void 0 !== e.getAttributeNode && e.getAttributeNode("id");
                    return e && e.value === t;
                  };
                }),
                (w.find.ID = function (e, t) {
                  if (void 0 !== t.getElementById && C) {
                    var n,
                      r,
                      i,
                      o = t.getElementById(e);
                    if (o) {
                      if ((n = o.getAttributeNode("id")) && n.value === e)
                        return [o];
                      for (i = t.getElementsByName(e), r = 0; (o = i[r++]); )
                        if ((n = o.getAttributeNode("id")) && n.value === e)
                          return [o];
                    }
                    return [];
                  }
                })),
            (w.find.TAG = h.getElementsByTagName
              ? function (e, t) {
                  return void 0 !== t.getElementsByTagName
                    ? t.getElementsByTagName(e)
                    : h.qsa
                      ? t.querySelectorAll(e)
                      : void 0;
                }
              : function (e, t) {
                  var n,
                    r = [],
                    i = 0,
                    o = t.getElementsByTagName(e);
                  if ("*" !== e) return o;
                  for (; (n = o[i++]); ) 1 === n.nodeType && r.push(n);
                  return r;
                }),
            (w.find.CLASS =
              h.getElementsByClassName &&
              function (e, t) {
                if (void 0 !== t.getElementsByClassName && C)
                  return t.getElementsByClassName(e);
              }),
            (s = []),
            (g = []),
            (h.qsa = te.test(P.querySelectorAll)) &&
              (ue(function (e) {
                var t;
                ((a.appendChild(e).innerHTML =
                  "<a id='" +
                  k +
                  "'></a><select id='" +
                  k +
                  "-\r\\' msallowcapture=''><option selected=''></option></select>"),
                  e.querySelectorAll("[msallowcapture^='']").length &&
                    g.push("[*^$]=" + R + "*(?:''|\"\")"),
                  e.querySelectorAll("[selected]").length ||
                    g.push("\\[" + R + "*(?:value|" + $ + ")"),
                  e.querySelectorAll("[id~=" + k + "-]").length || g.push("~="),
                  (t = P.createElement("input")).setAttribute("name", ""),
                  e.appendChild(t),
                  e.querySelectorAll("[name='']").length ||
                    g.push("\\[" + R + "*name" + R + "*=" + R + "*(?:''|\"\")"),
                  e.querySelectorAll(":checked").length || g.push(":checked"),
                  e.querySelectorAll("a#" + k + "+*").length ||
                    g.push(".#.+[+~]"),
                  e.querySelectorAll("\\\f"),
                  g.push("[\\r\\n\\f]"));
              }),
              ue(function (e) {
                e.innerHTML =
                  "<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";
                var t = P.createElement("input");
                (t.setAttribute("type", "hidden"),
                  e.appendChild(t).setAttribute("name", "D"),
                  e.querySelectorAll("[name=d]").length &&
                    g.push("name" + R + "*[*^$|!~]?="),
                  2 !== e.querySelectorAll(":enabled").length &&
                    g.push(":enabled", ":disabled"),
                  (a.appendChild(e).disabled = !0),
                  2 !== e.querySelectorAll(":disabled").length &&
                    g.push(":enabled", ":disabled"),
                  e.querySelectorAll("*,:x"),
                  g.push(",.*:"));
              })),
            (h.matchesSelector = te.test(
              (u =
                a.matches ||
                a.webkitMatchesSelector ||
                a.mozMatchesSelector ||
                a.oMatchesSelector ||
                a.msMatchesSelector),
            )) &&
              ue(function (e) {
                ((h.disconnectedMatch = u.call(e, "*")),
                  u.call(e, "[s!='']:x"),
                  s.push("!=", W));
              }),
            (g = g.length && new RegExp(g.join("|"))),
            (s = s.length && new RegExp(s.join("|"))),
            (t = te.test(a.compareDocumentPosition)),
            (b =
              t || te.test(a.contains)
                ? function (e, t) {
                    var n = 9 === e.nodeType ? e.documentElement : e,
                      t = t && t.parentNode;
                    return (
                      e === t ||
                      !(
                        !t ||
                        1 !== t.nodeType ||
                        !(n.contains
                          ? n.contains(t)
                          : e.compareDocumentPosition &&
                            16 & e.compareDocumentPosition(t))
                      )
                    );
                  }
                : function (e, t) {
                    if (t) for (; (t = t.parentNode); ) if (t === e) return !0;
                    return !1;
                  }),
            (O = t
              ? function (e, t) {
                  return e === t
                    ? ((l = !0), 0)
                    : (n =
                        !e.compareDocumentPosition -
                        !t.compareDocumentPosition) ||
                        (1 &
                          (n =
                            (e.ownerDocument || e) == (t.ownerDocument || t)
                              ? e.compareDocumentPosition(t)
                              : 1) ||
                        (!h.sortDetached && t.compareDocumentPosition(e) === n)
                          ? e == P || (e.ownerDocument == y && b(y, e))
                            ? -1
                            : t == P || (t.ownerDocument == y && b(y, t))
                              ? 1
                              : c
                                ? F(c, e) - F(c, t)
                                : 0
                          : 4 & n
                            ? -1
                            : 1);
                  var n;
                }
              : function (e, t) {
                  if (e === t) return ((l = !0), 0);
                  var n,
                    r = 0,
                    i = e.parentNode,
                    o = t.parentNode,
                    a = [e],
                    s = [t];
                  if (!i || !o)
                    return e == P
                      ? -1
                      : t == P
                        ? 1
                        : i
                          ? -1
                          : o
                            ? 1
                            : c
                              ? F(c, e) - F(c, t)
                              : 0;
                  if (i === o) return pe(e, t);
                  for (n = e; (n = n.parentNode); ) a.unshift(n);
                  for (n = t; (n = n.parentNode); ) s.unshift(n);
                  for (; a[r] === s[r]; ) r++;
                  return r
                    ? pe(a[r], s[r])
                    : a[r] == y
                      ? -1
                      : s[r] == y
                        ? 1
                        : 0;
                })),
          P
        );
      }),
    (se.matches = function (e, t) {
      return se(e, null, null, t);
    }),
    (se.matchesSelector = function (e, t) {
      if (
        (S(e),
        h.matchesSelector &&
          C &&
          !L[t + " "] &&
          (!s || !s.test(t)) &&
          (!g || !g.test(t)))
      )
        try {
          var n = u.call(e, t);
          if (
            n ||
            h.disconnectedMatch ||
            (e.document && 11 !== e.document.nodeType)
          )
            return n;
        } catch (e) {
          L(t, !0);
        }
      return 0 < se(t, P, null, [e]).length;
    }),
    (se.contains = function (e, t) {
      return ((e.ownerDocument || e) != P && S(e), b(e, t));
    }),
    (se.attr = function (e, t) {
      (e.ownerDocument || e) != P && S(e);
      var n = w.attrHandle[t.toLowerCase()],
        n = n && j.call(w.attrHandle, t.toLowerCase()) ? n(e, t, !C) : void 0;
      return void 0 !== n
        ? n
        : h.attributes || !C
          ? e.getAttribute(t)
          : (n = e.getAttributeNode(t)) && n.specified
            ? n.value
            : null;
    }),
    (se.escape = function (e) {
      return (e + "").replace(oe, p);
    }),
    (se.error = function (e) {
      throw new Error("Syntax error, unrecognized expression: " + e);
    }),
    (se.uniqueSort = function (e) {
      var t,
        n = [],
        r = 0,
        i = 0;
      if (
        ((l = !h.detectDuplicates),
        (c = !h.sortStable && e.slice(0)),
        e.sort(O),
        l)
      ) {
        for (; (t = e[i++]); ) t === e[i] && (r = n.push(i));
        for (; r--; ) e.splice(n[r], 1);
      }
      return ((c = null), e);
    }),
    (o = se.getText =
      function (e) {
        var t,
          n = "",
          r = 0,
          i = e.nodeType;
        if (i) {
          if (1 === i || 9 === i || 11 === i) {
            if ("string" == typeof e.textContent) return e.textContent;
            for (e = e.firstChild; e; e = e.nextSibling) n += o(e);
          } else if (3 === i || 4 === i) return e.nodeValue;
        } else for (; (t = e[r++]); ) n += o(t);
        return n;
      }),
    ((w = se.selectors =
      {
        cacheLength: 50,
        createPseudo: le,
        match: J,
        attrHandle: {},
        find: {},
        relative: {
          ">": { dir: "parentNode", first: !0 },
          " ": { dir: "parentNode" },
          "+": { dir: "previousSibling", first: !0 },
          "~": { dir: "previousSibling" },
        },
        preFilter: {
          ATTR: function (e) {
            return (
              (e[1] = e[1].replace(ie, d)),
              (e[3] = (e[3] || e[4] || e[5] || "").replace(ie, d)),
              "~=" === e[2] && (e[3] = " " + e[3] + " "),
              e.slice(0, 4)
            );
          },
          CHILD: function (e) {
            return (
              (e[1] = e[1].toLowerCase()),
              "nth" === e[1].slice(0, 3)
                ? (e[3] || se.error(e[0]),
                  (e[4] = +(e[4]
                    ? e[5] + (e[6] || 1)
                    : 2 * ("even" === e[3] || "odd" === e[3]))),
                  (e[5] = +(e[7] + e[8] || "odd" === e[3])))
                : e[3] && se.error(e[0]),
              e
            );
          },
          PSEUDO: function (e) {
            var t,
              n = !e[6] && e[2];
            return J.CHILD.test(e[0])
              ? null
              : (e[3]
                  ? (e[2] = e[4] || e[5] || "")
                  : n &&
                    K.test(n) &&
                    (t = f(n, !0)) &&
                    (t = n.indexOf(")", n.length - t) - n.length) &&
                    ((e[0] = e[0].slice(0, t)), (e[2] = n.slice(0, t))),
                e.slice(0, 3));
          },
        },
        filter: {
          TAG: function (e) {
            var t = e.replace(ie, d).toLowerCase();
            return "*" === e
              ? function () {
                  return !0;
                }
              : function (e) {
                  return e.nodeName && e.nodeName.toLowerCase() === t;
                };
          },
          CLASS: function (e) {
            var t = E[e + " "];
            return (
              t ||
              ((t = new RegExp("(^|" + R + ")" + e + "(" + R + "|$)")) &&
                E(e, function (e) {
                  return t.test(
                    ("string" == typeof e.className && e.className) ||
                      (void 0 !== e.getAttribute && e.getAttribute("class")) ||
                      "",
                  );
                }))
            );
          },
          ATTR: function (t, n, r) {
            return function (e) {
              e = se.attr(e, t);
              return null == e
                ? "!=" === n
                : !n ||
                    ((e += ""),
                    "=" === n
                      ? e === r
                      : "!=" === n
                        ? e !== r
                        : "^=" === n
                          ? r && 0 === e.indexOf(r)
                          : "*=" === n
                            ? r && -1 < e.indexOf(r)
                            : "$=" === n
                              ? r && e.slice(-r.length) === r
                              : "~=" === n
                                ? -1 <
                                  (" " + e.replace(U, " ") + " ").indexOf(r)
                                : "|=" === n &&
                                  (e === r ||
                                    e.slice(0, r.length + 1) === r + "-"));
            };
          },
          CHILD: function (f, e, t, v, m) {
            var g = "nth" !== f.slice(0, 3),
              b = "last" !== f.slice(-4),
              y = "of-type" === e;
            return 1 === v && 0 === m
              ? function (e) {
                  return !!e.parentNode;
                }
              : function (e, t, n) {
                  var r,
                    i,
                    o,
                    a,
                    s,
                    c,
                    l = g != b ? "nextSibling" : "previousSibling",
                    u = e.parentNode,
                    d = y && e.nodeName.toLowerCase(),
                    p = !n && !y,
                    h = !1;
                  if (u) {
                    if (g) {
                      for (; l; ) {
                        for (a = e; (a = a[l]); )
                          if (
                            y
                              ? a.nodeName.toLowerCase() === d
                              : 1 === a.nodeType
                          )
                            return !1;
                        c = l = "only" === f && !c && "nextSibling";
                      }
                      return !0;
                    }
                    if (((c = [b ? u.firstChild : u.lastChild]), b && p)) {
                      for (
                        h =
                          (s =
                            (r =
                              (i =
                                (o = (a = u)[k] || (a[k] = {}))[a.uniqueID] ||
                                (o[a.uniqueID] = {}))[f] || [])[0] === T &&
                            r[1]) && r[2],
                          a = s && u.childNodes[s];
                        (a = (++s && a && a[l]) || (h = s = 0) || c.pop());

                      )
                        if (1 === a.nodeType && ++h && a === e) {
                          i[f] = [T, s, h];
                          break;
                        }
                    } else if (
                      !1 ===
                      (h = p
                        ? (s =
                            (r =
                              (i =
                                (o = (a = e)[k] || (a[k] = {}))[a.uniqueID] ||
                                (o[a.uniqueID] = {}))[f] || [])[0] === T &&
                            r[1])
                        : h)
                    )
                      for (
                        ;
                        (a = (++s && a && a[l]) || (h = s = 0) || c.pop()) &&
                        ((y
                          ? a.nodeName.toLowerCase() !== d
                          : 1 !== a.nodeType) ||
                          !++h ||
                          (p &&
                            ((i =
                              (o = a[k] || (a[k] = {}))[a.uniqueID] ||
                              (o[a.uniqueID] = {}))[f] = [T, h]),
                          a !== e));

                      );
                    return (h -= m) === v || (h % v == 0 && 0 <= h / v);
                  }
                };
          },
          PSEUDO: function (e, o) {
            var t,
              a =
                w.pseudos[e] ||
                w.setFilters[e.toLowerCase()] ||
                se.error("unsupported pseudo: " + e);
            return a[k]
              ? a(o)
              : 1 < a.length
                ? ((t = [e, e, "", o]),
                  w.setFilters.hasOwnProperty(e.toLowerCase())
                    ? le(function (e, t) {
                        for (var n, r = a(e, o), i = r.length; i--; )
                          e[(n = F(e, r[i]))] = !(t[n] = r[i]);
                      })
                    : function (e) {
                        return a(e, 0, t);
                      })
                : a;
          },
        },
        pseudos: {
          not: le(function (e) {
            var r = [],
              i = [],
              s = v(e.replace(_, "$1"));
            return s[k]
              ? le(function (e, t, n, r) {
                  for (var i, o = s(e, null, r, []), a = e.length; a--; )
                    (i = o[a]) && (e[a] = !(t[a] = i));
                })
              : function (e, t, n) {
                  return (
                    (r[0] = e),
                    s(r, null, n, i),
                    (r[0] = null),
                    !i.pop()
                  );
                };
          }),
          has: le(function (t) {
            return function (e) {
              return 0 < se(t, e).length;
            };
          }),
          contains: le(function (t) {
            return (
              (t = t.replace(ie, d)),
              function (e) {
                return -1 < (e.textContent || o(e)).indexOf(t);
              }
            );
          }),
          lang: le(function (n) {
            return (
              G.test(n || "") || se.error("unsupported lang: " + n),
              (n = n.replace(ie, d).toLowerCase()),
              function (e) {
                var t;
                do {
                  if (
                    (t = C
                      ? e.lang
                      : e.getAttribute("xml:lang") || e.getAttribute("lang"))
                  )
                    return (
                      (t = t.toLowerCase()) === n || 0 === t.indexOf(n + "-")
                    );
                } while ((e = e.parentNode) && 1 === e.nodeType);
                return !1;
              }
            );
          }),
          target: function (e) {
            var t = n.location && n.location.hash;
            return t && t.slice(1) === e.id;
          },
          root: function (e) {
            return e === a;
          },
          focus: function (e) {
            return (
              e === P.activeElement &&
              (!P.hasFocus || P.hasFocus()) &&
              !!(e.type || e.href || ~e.tabIndex)
            );
          },
          enabled: he(!1),
          disabled: he(!0),
          checked: function (e) {
            var t = e.nodeName.toLowerCase();
            return (
              ("input" === t && !!e.checked) || ("option" === t && !!e.selected)
            );
          },
          selected: function (e) {
            return (
              e.parentNode && e.parentNode.selectedIndex,
              !0 === e.selected
            );
          },
          empty: function (e) {
            for (e = e.firstChild; e; e = e.nextSibling)
              if (e.nodeType < 6) return !1;
            return !0;
          },
          parent: function (e) {
            return !w.pseudos.empty(e);
          },
          header: function (e) {
            return ee.test(e.nodeName);
          },
          input: function (e) {
            return Z.test(e.nodeName);
          },
          button: function (e) {
            var t = e.nodeName.toLowerCase();
            return ("input" === t && "button" === e.type) || "button" === t;
          },
          text: function (e) {
            return (
              "input" === e.nodeName.toLowerCase() &&
              "text" === e.type &&
              (null == (e = e.getAttribute("type")) ||
                "text" === e.toLowerCase())
            );
          },
          first: fe(function () {
            return [0];
          }),
          last: fe(function (e, t) {
            return [t - 1];
          }),
          eq: fe(function (e, t, n) {
            return [n < 0 ? n + t : n];
          }),
          even: fe(function (e, t) {
            for (var n = 0; n < t; n += 2) e.push(n);
            return e;
          }),
          odd: fe(function (e, t) {
            for (var n = 1; n < t; n += 2) e.push(n);
            return e;
          }),
          lt: fe(function (e, t, n) {
            for (var r = n < 0 ? n + t : t < n ? t : n; 0 <= --r; ) e.push(r);
            return e;
          }),
          gt: fe(function (e, t, n) {
            for (var r = n < 0 ? n + t : n; ++r < t; ) e.push(r);
            return e;
          }),
        },
      }).pseudos.nth = w.pseudos.eq),
    { radio: !0, checkbox: !0, file: !0, password: !0, image: !0 }))
      w.pseudos[e] = (function (t) {
        return function (e) {
          return "input" === e.nodeName.toLowerCase() && e.type === t;
        };
      })(e);
    for (e in { submit: !0, reset: !0 })
      w.pseudos[e] = (function (n) {
        return function (e) {
          var t = e.nodeName.toLowerCase();
          return ("input" === t || "button" === t) && e.type === n;
        };
      })(e);
    function me() {}
    function ge(e) {
      for (var t = 0, n = e.length, r = ""; t < n; t++) r += e[t].value;
      return r;
    }
    function be(a, e, t) {
      var s = e.dir,
        c = e.next,
        l = c || s,
        u = t && "parentNode" === l,
        d = H++;
      return e.first
        ? function (e, t, n) {
            for (; (e = e[s]); ) if (1 === e.nodeType || u) return a(e, t, n);
            return !1;
          }
        : function (e, t, n) {
            var r,
              i,
              o = [T, d];
            if (n) {
              for (; (e = e[s]); )
                if ((1 === e.nodeType || u) && a(e, t, n)) return !0;
            } else
              for (; (e = e[s]); )
                if (1 === e.nodeType || u)
                  if (
                    ((r =
                      (i = e[k] || (e[k] = {}))[e.uniqueID] ||
                      (i[e.uniqueID] = {})),
                    c && c === e.nodeName.toLowerCase())
                  )
                    e = e[s] || e;
                  else {
                    if ((i = r[l]) && i[0] === T && i[1] === d)
                      return (o[2] = i[2]);
                    if (((r[l] = o)[2] = a(e, t, n))) return !0;
                  }
            return !1;
          };
    }
    function ye(i) {
      return 1 < i.length
        ? function (e, t, n) {
            for (var r = i.length; r--; ) if (!i[r](e, t, n)) return !1;
            return !0;
          }
        : i[0];
    }
    function we(e, t, n, r, i) {
      for (var o, a = [], s = 0, c = e.length, l = null != t; s < c; s++)
        (o = e[s]) && ((n && !n(o, r, i)) || (a.push(o), l && t.push(s)));
      return a;
    }
    function xe(e) {
      for (
        var r,
          t,
          n,
          i = e.length,
          o = w.relative[e[0].type],
          a = o || w.relative[" "],
          s = o ? 1 : 0,
          c = be(
            function (e) {
              return e === r;
            },
            a,
            !0,
          ),
          l = be(
            function (e) {
              return -1 < F(r, e);
            },
            a,
            !0,
          ),
          u = [
            function (e, t, n) {
              n = (!o && (n || t !== x)) || ((r = t).nodeType ? c : l)(e, t, n);
              return ((r = null), n);
            },
          ];
        s < i;
        s++
      )
        if ((t = w.relative[e[s].type])) u = [be(ye(u), t)];
        else {
          if ((t = w.filter[e[s].type].apply(null, e[s].matches))[k]) {
            for (n = ++s; n < i && !w.relative[e[n].type]; n++);
            return (function e(h, f, v, m, g, t) {
              return (
                m && !m[k] && (m = e(m)),
                g && !g[k] && (g = e(g, t)),
                le(function (e, t, n, r) {
                  var i,
                    o,
                    a,
                    s = [],
                    c = [],
                    l = t.length,
                    u =
                      e ||
                      (function (e, t, n) {
                        for (var r = 0, i = t.length; r < i; r++)
                          se(e, t[r], n);
                        return n;
                      })(f || "*", n.nodeType ? [n] : n, []),
                    d = !h || (!e && f) ? u : we(u, s, h, n, r),
                    p = v ? (g || (e ? h : l || m) ? [] : t) : d;
                  if ((v && v(d, p, n, r), m))
                    for (i = we(p, c), m(i, [], n, r), o = i.length; o--; )
                      (a = i[o]) && (p[c[o]] = !(d[c[o]] = a));
                  if (e) {
                    if (g || h) {
                      if (g) {
                        for (i = [], o = p.length; o--; )
                          (a = p[o]) && i.push((d[o] = a));
                        g(null, (p = []), i, r);
                      }
                      for (o = p.length; o--; )
                        (a = p[o]) &&
                          -1 < (i = g ? F(e, a) : s[o]) &&
                          (e[i] = !(t[i] = a));
                    }
                  } else
                    ((p = we(p === t ? p.splice(l, p.length) : p)),
                      g ? g(null, t, p, r) : B.apply(t, p));
                })
              );
            })(
              1 < s && ye(u),
              1 < s &&
                ge(
                  e
                    .slice(0, s - 1)
                    .concat({ value: " " === e[s - 2].type ? "*" : "" }),
                ).replace(_, "$1"),
              t,
              s < n && xe(e.slice(s, n)),
              n < i && xe((e = e.slice(n))),
              n < i && ge(e),
            );
          }
          u.push(t);
        }
      return ye(u);
    }
    return (
      (me.prototype = w.filters = w.pseudos),
      (w.setFilters = new me()),
      (f = se.tokenize =
        function (e, t) {
          var n,
            r,
            i,
            o,
            a,
            s,
            c,
            l = A[e + " "];
          if (l) return t ? 0 : l.slice(0);
          for (a = e, s = [], c = w.preFilter; a; ) {
            for (o in ((n && !(r = Q.exec(a))) ||
              (r && (a = a.slice(r[0].length) || a), s.push((i = []))),
            (n = !1),
            (r = V.exec(a)) &&
              ((n = r.shift()),
              i.push({ value: n, type: r[0].replace(_, " ") }),
              (a = a.slice(n.length))),
            w.filter))
              !(r = J[o].exec(a)) ||
                (c[o] && !(r = c[o](r))) ||
                ((n = r.shift()),
                i.push({ value: n, type: o, matches: r }),
                (a = a.slice(n.length)));
            if (!n) break;
          }
          return t ? a.length : a ? se.error(e) : A(e, s).slice(0);
        }),
      (v = se.compile =
        function (e, t) {
          var n,
            m,
            g,
            b,
            y,
            r,
            i = [],
            o = [],
            a = I[e + " "];
          if (!a) {
            for (n = (t = t || f(e)).length; n--; )
              ((a = xe(t[n]))[k] ? i : o).push(a);
            (a = I(
              e,
              ((b = 0 < (g = i).length),
              (y = 0 < (m = o).length),
              (r = function (e, t, n, r, i) {
                var o,
                  a,
                  s,
                  c = 0,
                  l = "0",
                  u = e && [],
                  d = [],
                  p = x,
                  h = e || (y && w.find.TAG("*", i)),
                  f = (T += null == p ? 1 : Math.random() || 0.1),
                  v = h.length;
                for (
                  i && (x = t == P || t || i);
                  l !== v && null != (o = h[l]);
                  l++
                ) {
                  if (y && o) {
                    for (
                      a = 0, t || o.ownerDocument == P || (S(o), (n = !C));
                      (s = m[a++]);

                    )
                      if (s(o, t || P, n)) {
                        r.push(o);
                        break;
                      }
                    i && (T = f);
                  }
                  b && ((o = !s && o) && c--, e && u.push(o));
                }
                if (((c += l), b && l !== c)) {
                  for (a = 0; (s = g[a++]); ) s(u, d, t, n);
                  if (e) {
                    if (0 < c) for (; l--; ) u[l] || d[l] || (d[l] = D.call(r));
                    d = we(d);
                  }
                  (B.apply(r, d),
                    i &&
                      !e &&
                      0 < d.length &&
                      1 < c + g.length &&
                      se.uniqueSort(r));
                }
                return (i && ((T = f), (x = p)), u);
              }),
              b ? le(r) : r),
            )).selector = e;
          }
          return a;
        }),
      (m = se.select =
        function (e, t, n, r) {
          var i,
            o,
            a,
            s,
            c,
            l = "function" == typeof e && e,
            u = !r && f((e = l.selector || e));
          if (((n = n || []), 1 === u.length)) {
            if (
              2 < (o = u[0] = u[0].slice(0)).length &&
              "ID" === (a = o[0]).type &&
              9 === t.nodeType &&
              C &&
              w.relative[o[1].type]
            ) {
              if (!(t = (w.find.ID(a.matches[0].replace(ie, d), t) || [])[0]))
                return n;
              (l && (t = t.parentNode), (e = e.slice(o.shift().value.length)));
            }
            for (
              i = J.needsContext.test(e) ? 0 : o.length;
              i-- && ((a = o[i]), !w.relative[(s = a.type)]);

            )
              if (
                (c = w.find[s]) &&
                (r = c(
                  a.matches[0].replace(ie, d),
                  (re.test(o[0].type) && ve(t.parentNode)) || t,
                ))
              ) {
                if ((o.splice(i, 1), !(e = r.length && ge(o))))
                  return (B.apply(n, r), n);
                break;
              }
          }
          return (
            (l || v(e, u))(
              r,
              t,
              !C,
              n,
              !t || (re.test(e) && ve(t.parentNode)) || t,
            ),
            n
          );
        }),
      (h.sortStable = k.split("").sort(O).join("") === k),
      (h.detectDuplicates = !!l),
      S(),
      (h.sortDetached = ue(function (e) {
        return 1 & e.compareDocumentPosition(P.createElement("fieldset"));
      })),
      ue(function (e) {
        return (
          (e.innerHTML = "<a href='#'></a>"),
          "#" === e.firstChild.getAttribute("href")
        );
      }) ||
        de("type|href|height|width", function (e, t, n) {
          if (!n) return e.getAttribute(t, "type" === t.toLowerCase() ? 1 : 2);
        }),
      (h.attributes &&
        ue(function (e) {
          return (
            (e.innerHTML = "<input/>"),
            e.firstChild.setAttribute("value", ""),
            "" === e.firstChild.getAttribute("value")
          );
        })) ||
        de("value", function (e, t, n) {
          if (!n && "input" === e.nodeName.toLowerCase()) return e.defaultValue;
        }),
      ue(function (e) {
        return null == e.getAttribute("disabled");
      }) ||
        de($, function (e, t, n) {
          if (!n)
            return !0 === e[t]
              ? t.toLowerCase()
              : (t = e.getAttributeNode(t)) && t.specified
                ? t.value
                : null;
        }),
      se
    );
  })(S);
  ((C.find = h),
    (C.expr = h.selectors),
    (C.expr[":"] = C.expr.pseudos),
    (C.uniqueSort = C.unique = h.uniqueSort),
    (C.text = h.getText),
    (C.isXMLDoc = h.isXML),
    (C.contains = h.contains),
    (C.escapeSelector = h.escape));
  function x(e, t, n) {
    for (var r = [], i = void 0 !== n; (e = e[t]) && 9 !== e.nodeType; )
      if (1 === e.nodeType) {
        if (i && C(e).is(n)) break;
        r.push(e);
      }
    return r;
  }
  function k(e, t) {
    for (var n = []; e; e = e.nextSibling)
      1 === e.nodeType && e !== t && n.push(e);
    return n;
  }
  var T = C.expr.match.needsContext;
  function H(e, t) {
    return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase();
  }
  var E = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;
  function A(e, n, r) {
    return v(n)
      ? C.grep(e, function (e, t) {
          return !!n.call(e, t, e) !== r;
        })
      : n.nodeType
        ? C.grep(e, function (e) {
            return (e === n) !== r;
          })
        : "string" != typeof n
          ? C.grep(e, function (e) {
              return -1 < i.call(n, e) !== r;
            })
          : C.filter(n, e, r);
  }
  ((C.filter = function (e, t, n) {
    var r = t[0];
    return (
      n && (e = ":not(" + e + ")"),
      1 === t.length && 1 === r.nodeType
        ? C.find.matchesSelector(r, e)
          ? [r]
          : []
        : C.find.matches(
            e,
            C.grep(t, function (e) {
              return 1 === e.nodeType;
            }),
          )
    );
  }),
    C.fn.extend({
      find: function (e) {
        var t,
          n,
          r = this.length,
          i = this;
        if ("string" != typeof e)
          return this.pushStack(
            C(e).filter(function () {
              for (t = 0; t < r; t++) if (C.contains(i[t], this)) return !0;
            }),
          );
        for (n = this.pushStack([]), t = 0; t < r; t++) C.find(e, i[t], n);
        return 1 < r ? C.uniqueSort(n) : n;
      },
      filter: function (e) {
        return this.pushStack(A(this, e || [], !1));
      },
      not: function (e) {
        return this.pushStack(A(this, e || [], !0));
      },
      is: function (e) {
        return !!A(this, "string" == typeof e && T.test(e) ? C(e) : e || [], !1)
          .length;
      },
    }));
  var I = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;
  (C.fn.init = function (e, t, n) {
    if (!e) return this;
    if (((n = n || L), "string" != typeof e))
      return e.nodeType
        ? ((this[0] = e), (this.length = 1), this)
        : v(e)
          ? void 0 !== n.ready
            ? n.ready(e)
            : e(C)
          : C.makeArray(e, this);
    if (
      !(r =
        "<" === e[0] && ">" === e[e.length - 1] && 3 <= e.length
          ? [null, e, null]
          : I.exec(e)) ||
      (!r[1] && t)
    )
      return (!t || t.jquery ? t || n : this.constructor(t)).find(e);
    if (r[1]) {
      if (
        ((t = t instanceof C ? t[0] : t),
        C.merge(
          this,
          C.parseHTML(r[1], t && t.nodeType ? t.ownerDocument || t : P, !0),
        ),
        E.test(r[1]) && C.isPlainObject(t))
      )
        for (var r in t) v(this[r]) ? this[r](t[r]) : this.attr(r, t[r]);
      return this;
    }
    return (
      (e = P.getElementById(r[2])) && ((this[0] = e), (this.length = 1)),
      this
    );
  }).prototype = C.fn;
  var L = C(P),
    O = /^(?:parents|prev(?:Until|All))/,
    j = { children: !0, contents: !0, next: !0, prev: !0 };
  function D(e, t) {
    for (; (e = e[t]) && 1 !== e.nodeType; );
    return e;
  }
  (C.fn.extend({
    has: function (e) {
      var t = C(e, this),
        n = t.length;
      return this.filter(function () {
        for (var e = 0; e < n; e++) if (C.contains(this, t[e])) return !0;
      });
    },
    closest: function (e, t) {
      var n,
        r = 0,
        i = this.length,
        o = [],
        a = "string" != typeof e && C(e);
      if (!T.test(e))
        for (; r < i; r++)
          for (n = this[r]; n && n !== t; n = n.parentNode)
            if (
              n.nodeType < 11 &&
              (a
                ? -1 < a.index(n)
                : 1 === n.nodeType && C.find.matchesSelector(n, e))
            ) {
              o.push(n);
              break;
            }
      return this.pushStack(1 < o.length ? C.uniqueSort(o) : o);
    },
    index: function (e) {
      return e
        ? "string" == typeof e
          ? i.call(C(e), this[0])
          : i.call(this, e.jquery ? e[0] : e)
        : this[0] && this[0].parentNode
          ? this.first().prevAll().length
          : -1;
    },
    add: function (e, t) {
      return this.pushStack(C.uniqueSort(C.merge(this.get(), C(e, t))));
    },
    addBack: function (e) {
      return this.add(null == e ? this.prevObject : this.prevObject.filter(e));
    },
  }),
    C.each(
      {
        parent: function (e) {
          e = e.parentNode;
          return e && 11 !== e.nodeType ? e : null;
        },
        parents: function (e) {
          return x(e, "parentNode");
        },
        parentsUntil: function (e, t, n) {
          return x(e, "parentNode", n);
        },
        next: function (e) {
          return D(e, "nextSibling");
        },
        prev: function (e) {
          return D(e, "previousSibling");
        },
        nextAll: function (e) {
          return x(e, "nextSibling");
        },
        prevAll: function (e) {
          return x(e, "previousSibling");
        },
        nextUntil: function (e, t, n) {
          return x(e, "nextSibling", n);
        },
        prevUntil: function (e, t, n) {
          return x(e, "previousSibling", n);
        },
        siblings: function (e) {
          return k((e.parentNode || {}).firstChild, e);
        },
        children: function (e) {
          return k(e.firstChild);
        },
        contents: function (e) {
          return null != e.contentDocument && n(e.contentDocument)
            ? e.contentDocument
            : (H(e, "template") && (e = e.content || e),
              C.merge([], e.childNodes));
        },
      },
      function (r, i) {
        C.fn[r] = function (e, t) {
          var n = C.map(this, i, e);
          return (
            (t = "Until" !== r.slice(-5) ? e : t) &&
              "string" == typeof t &&
              (n = C.filter(t, n)),
            1 < this.length &&
              (j[r] || C.uniqueSort(n), O.test(r) && n.reverse()),
            this.pushStack(n)
          );
        };
      },
    ));
  var M = /[^\x20\t\r\n\f]+/g;
  function B(e) {
    return e;
  }
  function N(e) {
    throw e;
  }
  function F(e, t, n, r) {
    var i;
    try {
      e && v((i = e.promise))
        ? i.call(e).done(t).fail(n)
        : e && v((i = e.then))
          ? i.call(e, t, n)
          : t.apply(void 0, [e].slice(r));
    } catch (e) {
      n.apply(void 0, [e]);
    }
  }
  ((C.Callbacks = function (r) {
    var e, n;
    r =
      "string" == typeof r
        ? ((e = r),
          (n = {}),
          C.each(e.match(M) || [], function (e, t) {
            n[t] = !0;
          }),
          n)
        : C.extend({}, r);
    function i() {
      for (s = s || r.once, a = o = !0; l.length; u = -1)
        for (t = l.shift(); ++u < c.length; )
          !1 === c[u].apply(t[0], t[1]) &&
            r.stopOnFalse &&
            ((u = c.length), (t = !1));
      (r.memory || (t = !1), (o = !1), s && (c = t ? [] : ""));
    }
    var o,
      t,
      a,
      s,
      c = [],
      l = [],
      u = -1,
      d = {
        add: function () {
          return (
            c &&
              (t && !o && ((u = c.length - 1), l.push(t)),
              (function n(e) {
                C.each(e, function (e, t) {
                  v(t)
                    ? (r.unique && d.has(t)) || c.push(t)
                    : t && t.length && "string" !== f(t) && n(t);
                });
              })(arguments),
              t && !o && i()),
            this
          );
        },
        remove: function () {
          return (
            C.each(arguments, function (e, t) {
              for (var n; -1 < (n = C.inArray(t, c, n)); )
                (c.splice(n, 1), n <= u && u--);
            }),
            this
          );
        },
        has: function (e) {
          return e ? -1 < C.inArray(e, c) : 0 < c.length;
        },
        empty: function () {
          return ((c = c && []), this);
        },
        disable: function () {
          return ((s = l = []), (c = t = ""), this);
        },
        disabled: function () {
          return !c;
        },
        lock: function () {
          return ((s = l = []), t || o || (c = t = ""), this);
        },
        locked: function () {
          return !!s;
        },
        fireWith: function (e, t) {
          return (
            s ||
              ((t = [e, (t = t || []).slice ? t.slice() : t]),
              l.push(t),
              o || i()),
            this
          );
        },
        fire: function () {
          return (d.fireWith(this, arguments), this);
        },
        fired: function () {
          return !!a;
        },
      };
    return d;
  }),
    C.extend({
      Deferred: function (e) {
        var o = [
            [
              "notify",
              "progress",
              C.Callbacks("memory"),
              C.Callbacks("memory"),
              2,
            ],
            [
              "resolve",
              "done",
              C.Callbacks("once memory"),
              C.Callbacks("once memory"),
              0,
              "resolved",
            ],
            [
              "reject",
              "fail",
              C.Callbacks("once memory"),
              C.Callbacks("once memory"),
              1,
              "rejected",
            ],
          ],
          i = "pending",
          a = {
            state: function () {
              return i;
            },
            always: function () {
              return (s.done(arguments).fail(arguments), this);
            },
            catch: function (e) {
              return a.then(null, e);
            },
            pipe: function () {
              var i = arguments;
              return C.Deferred(function (r) {
                (C.each(o, function (e, t) {
                  var n = v(i[t[4]]) && i[t[4]];
                  s[t[1]](function () {
                    var e = n && n.apply(this, arguments);
                    e && v(e.promise)
                      ? e
                          .promise()
                          .progress(r.notify)
                          .done(r.resolve)
                          .fail(r.reject)
                      : r[t[0] + "With"](this, n ? [e] : arguments);
                  });
                }),
                  (i = null));
              }).promise();
            },
            then: function (t, n, r) {
              var c = 0;
              function l(i, o, a, s) {
                return function () {
                  function e() {
                    var e, t;
                    if (!(i < c)) {
                      if ((e = a.apply(n, r)) === o.promise())
                        throw new TypeError("Thenable self-resolution");
                      ((t =
                        e &&
                        ("object" == typeof e || "function" == typeof e) &&
                        e.then),
                        v(t)
                          ? s
                            ? t.call(e, l(c, o, B, s), l(c, o, N, s))
                            : (c++,
                              t.call(
                                e,
                                l(c, o, B, s),
                                l(c, o, N, s),
                                l(c, o, B, o.notifyWith),
                              ))
                          : (a !== B && ((n = void 0), (r = [e])),
                            (s || o.resolveWith)(n, r)));
                    }
                  }
                  var n = this,
                    r = arguments,
                    t = s
                      ? e
                      : function () {
                          try {
                            e();
                          } catch (e) {
                            (C.Deferred.exceptionHook &&
                              C.Deferred.exceptionHook(e, t.stackTrace),
                              c <= i + 1 &&
                                (a !== N && ((n = void 0), (r = [e])),
                                o.rejectWith(n, r)));
                          }
                        };
                  i
                    ? t()
                    : (C.Deferred.getStackHook &&
                        (t.stackTrace = C.Deferred.getStackHook()),
                      S.setTimeout(t));
                };
              }
              return C.Deferred(function (e) {
                (o[0][3].add(l(0, e, v(r) ? r : B, e.notifyWith)),
                  o[1][3].add(l(0, e, v(t) ? t : B)),
                  o[2][3].add(l(0, e, v(n) ? n : N)));
              }).promise();
            },
            promise: function (e) {
              return null != e ? C.extend(e, a) : a;
            },
          },
          s = {};
        return (
          C.each(o, function (e, t) {
            var n = t[2],
              r = t[5];
            ((a[t[1]] = n.add),
              r &&
                n.add(
                  function () {
                    i = r;
                  },
                  o[3 - e][2].disable,
                  o[3 - e][3].disable,
                  o[0][2].lock,
                  o[0][3].lock,
                ),
              n.add(t[3].fire),
              (s[t[0]] = function () {
                return (
                  s[t[0] + "With"](this === s ? void 0 : this, arguments),
                  this
                );
              }),
              (s[t[0] + "With"] = n.fireWith));
          }),
          a.promise(s),
          e && e.call(s, s),
          s
        );
      },
      when: function (e) {
        function t(t) {
          return function (e) {
            ((i[t] = this),
              (o[t] = 1 < arguments.length ? s.call(arguments) : e),
              --n || a.resolveWith(i, o));
          };
        }
        var n = arguments.length,
          r = n,
          i = Array(r),
          o = s.call(arguments),
          a = C.Deferred();
        if (
          n <= 1 &&
          (F(e, a.done(t(r)).resolve, a.reject, !n),
          "pending" === a.state() || v(o[r] && o[r].then))
        )
          return a.then();
        for (; r--; ) F(o[r], t(r), a.reject);
        return a.promise();
      },
    }));
  var $ = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
  ((C.Deferred.exceptionHook = function (e, t) {
    S.console &&
      S.console.warn &&
      e &&
      $.test(e.name) &&
      S.console.warn("jQuery.Deferred exception: " + e.message, e.stack, t);
  }),
    (C.readyException = function (e) {
      S.setTimeout(function () {
        throw e;
      });
    }));
  var R = C.Deferred();
  function q() {
    (P.removeEventListener("DOMContentLoaded", q),
      S.removeEventListener("load", q),
      C.ready());
  }
  ((C.fn.ready = function (e) {
    return (
      R.then(e).catch(function (e) {
        C.readyException(e);
      }),
      this
    );
  }),
    C.extend({
      isReady: !1,
      readyWait: 1,
      ready: function (e) {
        (!0 === e ? --C.readyWait : C.isReady) ||
          ((C.isReady = !0) !== e && 0 < --C.readyWait) ||
          R.resolveWith(P, [C]);
      },
    }),
    (C.ready.then = R.then),
    "complete" === P.readyState ||
    ("loading" !== P.readyState && !P.documentElement.doScroll)
      ? S.setTimeout(C.ready)
      : (P.addEventListener("DOMContentLoaded", q),
        S.addEventListener("load", q)));
  function z(e, t, n, r, i, o, a) {
    var s = 0,
      c = e.length,
      l = null == n;
    if ("object" === f(n)) for (s in ((i = !0), n)) z(e, t, s, n[s], !0, o, a);
    else if (
      void 0 !== r &&
      ((i = !0),
      v(r) || (a = !0),
      (t = l
        ? a
          ? (t.call(e, r), null)
          : ((l = t),
            function (e, t, n) {
              return l.call(C(e), n);
            })
        : t))
    )
      for (; s < c; s++) t(e[s], n, a ? r : r.call(e[s], s, t(e[s], n)));
    return i ? e : l ? t.call(e) : c ? t(e[0], n) : o;
  }
  var W = /^-ms-/,
    U = /-([a-z])/g;
  function _(e, t) {
    return t.toUpperCase();
  }
  function Q(e) {
    return e.replace(W, "ms-").replace(U, _);
  }
  function V(e) {
    return 1 === e.nodeType || 9 === e.nodeType || !+e.nodeType;
  }
  function X() {
    this.expando = C.expando + X.uid++;
  }
  ((X.uid = 1),
    (X.prototype = {
      cache: function (e) {
        var t = e[this.expando];
        return (
          t ||
            ((t = {}),
            V(e) &&
              (e.nodeType
                ? (e[this.expando] = t)
                : Object.defineProperty(e, this.expando, {
                    value: t,
                    configurable: !0,
                  }))),
          t
        );
      },
      set: function (e, t, n) {
        var r,
          i = this.cache(e);
        if ("string" == typeof t) i[Q(t)] = n;
        else for (r in t) i[Q(r)] = t[r];
        return i;
      },
      get: function (e, t) {
        return void 0 === t
          ? this.cache(e)
          : e[this.expando] && e[this.expando][Q(t)];
      },
      access: function (e, t, n) {
        return void 0 === t || (t && "string" == typeof t && void 0 === n)
          ? this.get(e, t)
          : (this.set(e, t, n), void 0 !== n ? n : t);
      },
      remove: function (e, t) {
        var n,
          r = e[this.expando];
        if (void 0 !== r) {
          if (void 0 !== t) {
            n = (t = Array.isArray(t)
              ? t.map(Q)
              : (t = Q(t)) in r
                ? [t]
                : t.match(M) || []).length;
            for (; n--; ) delete r[t[n]];
          }
          (void 0 !== t && !C.isEmptyObject(r)) ||
            (e.nodeType ? (e[this.expando] = void 0) : delete e[this.expando]);
        }
      },
      hasData: function (e) {
        e = e[this.expando];
        return void 0 !== e && !C.isEmptyObject(e);
      },
    }));
  var K = new X(),
    G = new X(),
    J = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
    Y = /[A-Z]/g;
  function Z(e, t, n) {
    var r, i;
    if (void 0 === n && 1 === e.nodeType)
      if (
        ((r = "data-" + t.replace(Y, "-$&").toLowerCase()),
        "string" == typeof (n = e.getAttribute(r)))
      ) {
        try {
          n =
            "true" === (i = n) ||
            ("false" !== i &&
              ("null" === i
                ? null
                : i === +i + ""
                  ? +i
                  : J.test(i)
                    ? JSON.parse(i)
                    : i));
        } catch (e) {}
        G.set(e, t, n);
      } else n = void 0;
    return n;
  }
  (C.extend({
    hasData: function (e) {
      return G.hasData(e) || K.hasData(e);
    },
    data: function (e, t, n) {
      return G.access(e, t, n);
    },
    removeData: function (e, t) {
      G.remove(e, t);
    },
    _data: function (e, t, n) {
      return K.access(e, t, n);
    },
    _removeData: function (e, t) {
      K.remove(e, t);
    },
  }),
    C.fn.extend({
      data: function (n, e) {
        var t,
          r,
          i,
          o = this[0],
          a = o && o.attributes;
        if (void 0 !== n)
          return "object" == typeof n
            ? this.each(function () {
                G.set(this, n);
              })
            : z(
                this,
                function (e) {
                  var t;
                  return o && void 0 === e
                    ? void 0 !== (t = G.get(o, n)) || void 0 !== (t = Z(o, n))
                      ? t
                      : void 0
                    : void this.each(function () {
                        G.set(this, n, e);
                      });
                },
                null,
                e,
                1 < arguments.length,
                null,
                !0,
              );
        if (
          this.length &&
          ((i = G.get(o)), 1 === o.nodeType && !K.get(o, "hasDataAttrs"))
        ) {
          for (t = a.length; t--; )
            a[t] &&
              0 === (r = a[t].name).indexOf("data-") &&
              ((r = Q(r.slice(5))), Z(o, r, i[r]));
          K.set(o, "hasDataAttrs", !0);
        }
        return i;
      },
      removeData: function (e) {
        return this.each(function () {
          G.remove(this, e);
        });
      },
    }),
    C.extend({
      queue: function (e, t, n) {
        var r;
        if (e)
          return (
            (r = K.get(e, (t = (t || "fx") + "queue"))),
            n &&
              (!r || Array.isArray(n)
                ? (r = K.access(e, t, C.makeArray(n)))
                : r.push(n)),
            r || []
          );
      },
      dequeue: function (e, t) {
        t = t || "fx";
        var n = C.queue(e, t),
          r = n.length,
          i = n.shift(),
          o = C._queueHooks(e, t);
        ("inprogress" === i && ((i = n.shift()), r--),
          i &&
            ("fx" === t && n.unshift("inprogress"),
            delete o.stop,
            i.call(
              e,
              function () {
                C.dequeue(e, t);
              },
              o,
            )),
          !r && o && o.empty.fire());
      },
      _queueHooks: function (e, t) {
        var n = t + "queueHooks";
        return (
          K.get(e, n) ||
          K.access(e, n, {
            empty: C.Callbacks("once memory").add(function () {
              K.remove(e, [t + "queue", n]);
            }),
          })
        );
      },
    }),
    C.fn.extend({
      queue: function (t, n) {
        var e = 2;
        return (
          "string" != typeof t && ((n = t), (t = "fx"), e--),
          arguments.length < e
            ? C.queue(this[0], t)
            : void 0 === n
              ? this
              : this.each(function () {
                  var e = C.queue(this, t, n);
                  (C._queueHooks(this, t),
                    "fx" === t && "inprogress" !== e[0] && C.dequeue(this, t));
                })
        );
      },
      dequeue: function (e) {
        return this.each(function () {
          C.dequeue(this, e);
        });
      },
      clearQueue: function (e) {
        return this.queue(e || "fx", []);
      },
      promise: function (e, t) {
        function n() {
          --i || o.resolveWith(a, [a]);
        }
        var r,
          i = 1,
          o = C.Deferred(),
          a = this,
          s = this.length;
        for (
          "string" != typeof e && ((t = e), (e = void 0)), e = e || "fx";
          s--;

        )
          (r = K.get(a[s], e + "queueHooks")) &&
            r.empty &&
            (i++, r.empty.add(n));
        return (n(), o.promise(t));
      },
    }));
  var ee = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
    te = new RegExp("^(?:([+-])=|)(" + ee + ")([a-z%]*)$", "i"),
    ne = ["Top", "Right", "Bottom", "Left"],
    re = P.documentElement,
    ie = function (e) {
      return C.contains(e.ownerDocument, e);
    },
    oe = { composed: !0 };
  re.getRootNode &&
    (ie = function (e) {
      return (
        C.contains(e.ownerDocument, e) || e.getRootNode(oe) === e.ownerDocument
      );
    });
  function ae(e, t) {
    return (
      "none" === (e = t || e).style.display ||
      ("" === e.style.display && ie(e) && "none" === C.css(e, "display"))
    );
  }
  function se(e, t, n, r) {
    var i,
      o,
      a = 20,
      s = r
        ? function () {
            return r.cur();
          }
        : function () {
            return C.css(e, t, "");
          },
      c = s(),
      l = (n && n[3]) || (C.cssNumber[t] ? "" : "px"),
      u =
        e.nodeType &&
        (C.cssNumber[t] || ("px" !== l && +c)) &&
        te.exec(C.css(e, t));
    if (u && u[3] !== l) {
      for (l = l || u[3], u = +(c /= 2) || 1; a--; )
        (C.style(e, t, u + l),
          (1 - o) * (1 - (o = s() / c || 0.5)) <= 0 && (a = 0),
          (u /= o));
      (C.style(e, t, (u *= 2) + l), (n = n || []));
    }
    return (
      n &&
        ((u = +u || +c || 0),
        (i = n[1] ? u + (n[1] + 1) * n[2] : +n[2]),
        r && ((r.unit = l), (r.start = u), (r.end = i))),
      i
    );
  }
  var ce = {};
  function le(e, t) {
    for (var n, r, i, o, a, s, c = [], l = 0, u = e.length; l < u; l++)
      (r = e[l]).style &&
        ((n = r.style.display),
        t
          ? ("none" === n &&
              ((c[l] = K.get(r, "display") || null),
              c[l] || (r.style.display = "")),
            "" === r.style.display &&
              ae(r) &&
              (c[l] =
                ((s = o = i = void 0),
                (o = r.ownerDocument),
                (a = r.nodeName),
                (s = ce[a]) ||
                  ((i = o.body.appendChild(o.createElement(a))),
                  (s = C.css(i, "display")),
                  i.parentNode.removeChild(i),
                  (ce[a] = s = "none" === s ? "block" : s)))))
          : "none" !== n && ((c[l] = "none"), K.set(r, "display", n)));
    for (l = 0; l < u; l++) null != c[l] && (e[l].style.display = c[l]);
    return e;
  }
  C.fn.extend({
    show: function () {
      return le(this, !0);
    },
    hide: function () {
      return le(this);
    },
    toggle: function (e) {
      return "boolean" == typeof e
        ? e
          ? this.show()
          : this.hide()
        : this.each(function () {
            ae(this) ? C(this).show() : C(this).hide();
          });
    },
  });
  var ue = /^(?:checkbox|radio)$/i,
    de = /<([a-z][^\/\0>\x20\t\r\n\f]*)/i,
    pe = /^$|^module$|\/(?:java|ecma)script/i,
    d = P.createDocumentFragment().appendChild(P.createElement("div"));
  ((h = P.createElement("input")).setAttribute("type", "radio"),
    h.setAttribute("checked", "checked"),
    h.setAttribute("name", "t"),
    d.appendChild(h),
    (y.checkClone = d.cloneNode(!0).cloneNode(!0).lastChild.checked),
    (d.innerHTML = "<textarea>x</textarea>"),
    (y.noCloneChecked = !!d.cloneNode(!0).lastChild.defaultValue),
    (d.innerHTML = "<option></option>"),
    (y.option = !!d.lastChild));
  var he = {
    thead: [1, "<table>", "</table>"],
    col: [2, "<table><colgroup>", "</colgroup></table>"],
    tr: [2, "<table><tbody>", "</tbody></table>"],
    td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
    _default: [0, "", ""],
  };
  function fe(e, t) {
    var n =
      void 0 !== e.getElementsByTagName
        ? e.getElementsByTagName(t || "*")
        : void 0 !== e.querySelectorAll
          ? e.querySelectorAll(t || "*")
          : [];
    return void 0 === t || (t && H(e, t)) ? C.merge([e], n) : n;
  }
  function ve(e, t) {
    for (var n = 0, r = e.length; n < r; n++)
      K.set(e[n], "globalEval", !t || K.get(t[n], "globalEval"));
  }
  ((he.tbody = he.tfoot = he.colgroup = he.caption = he.thead),
    (he.th = he.td),
    y.option ||
      (he.optgroup = he.option =
        [1, "<select multiple='multiple'>", "</select>"]));
  var me = /<|&#?\w+;/;
  function ge(e, t, n, r, i) {
    for (
      var o,
        a,
        s,
        c,
        l,
        u = t.createDocumentFragment(),
        d = [],
        p = 0,
        h = e.length;
      p < h;
      p++
    )
      if ((o = e[p]) || 0 === o)
        if ("object" === f(o)) C.merge(d, o.nodeType ? [o] : o);
        else if (me.test(o)) {
          for (
            a = a || u.appendChild(t.createElement("div")),
              s = (de.exec(o) || ["", ""])[1].toLowerCase(),
              s = he[s] || he._default,
              a.innerHTML = s[1] + C.htmlPrefilter(o) + s[2],
              l = s[0];
            l--;

          )
            a = a.lastChild;
          (C.merge(d, a.childNodes), ((a = u.firstChild).textContent = ""));
        } else d.push(t.createTextNode(o));
    for (u.textContent = "", p = 0; (o = d[p++]); )
      if (r && -1 < C.inArray(o, r)) i && i.push(o);
      else if (
        ((c = ie(o)), (a = fe(u.appendChild(o), "script")), c && ve(a), n)
      )
        for (l = 0; (o = a[l++]); ) pe.test(o.type || "") && n.push(o);
    return u;
  }
  var be = /^key/,
    ye = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
    we = /^([^.]*)(?:\.(.+)|)/;
  function xe() {
    return !0;
  }
  function Se() {
    return !1;
  }
  function Pe(e, t) {
    return (
      (e ===
        (function () {
          try {
            return P.activeElement;
          } catch (e) {}
        })()) ==
      ("focus" === t)
    );
  }
  function Ce(e, t, n, r, i, o) {
    var a, s;
    if ("object" == typeof t) {
      for (s in ("string" != typeof n && ((r = r || n), (n = void 0)), t))
        Ce(e, s, n, r, t[s], o);
      return e;
    }
    if (
      (null == r && null == i
        ? ((i = n), (r = n = void 0))
        : null == i &&
          ("string" == typeof n
            ? ((i = r), (r = void 0))
            : ((i = r), (r = n), (n = void 0))),
      !1 === i)
    )
      i = Se;
    else if (!i) return e;
    return (
      1 === o &&
        ((a = i),
        ((i = function (e) {
          return (C().off(e), a.apply(this, arguments));
        }).guid = a.guid || (a.guid = C.guid++))),
      e.each(function () {
        C.event.add(this, t, i, r, n);
      })
    );
  }
  function ke(e, i, o) {
    o
      ? (K.set(e, i, !1),
        C.event.add(e, i, {
          namespace: !1,
          handler: function (e) {
            var t,
              n,
              r = K.get(this, i);
            if (1 & e.isTrigger && this[i]) {
              if (r.length)
                (C.event.special[i] || {}).delegateType && e.stopPropagation();
              else if (
                ((r = s.call(arguments)),
                K.set(this, i, r),
                (t = o(this, i)),
                this[i](),
                r !== (n = K.get(this, i)) || t ? K.set(this, i, !1) : (n = {}),
                r !== n)
              )
                return (
                  e.stopImmediatePropagation(),
                  e.preventDefault(),
                  n.value
                );
            } else
              r.length &&
                (K.set(this, i, {
                  value: C.event.trigger(
                    C.extend(r[0], C.Event.prototype),
                    r.slice(1),
                    this,
                  ),
                }),
                e.stopImmediatePropagation());
          },
        }))
      : void 0 === K.get(e, i) && C.event.add(e, i, xe);
  }
  ((C.event = {
    global: {},
    add: function (t, e, n, r, i) {
      var o,
        a,
        s,
        c,
        l,
        u,
        d,
        p,
        h,
        f = K.get(t);
      if (V(t))
        for (
          n.handler && ((n = (o = n).handler), (i = o.selector)),
            i && C.find.matchesSelector(re, i),
            n.guid || (n.guid = C.guid++),
            (s = f.events) || (s = f.events = Object.create(null)),
            (a = f.handle) ||
              (a = f.handle =
                function (e) {
                  return void 0 !== C && C.event.triggered !== e.type
                    ? C.event.dispatch.apply(t, arguments)
                    : void 0;
                }),
            c = (e = (e || "").match(M) || [""]).length;
          c--;

        )
          ((d = h = (l = we.exec(e[c]) || [])[1]),
            (p = (l[2] || "").split(".").sort()),
            d &&
              ((u = C.event.special[d] || {}),
              (d = (i ? u.delegateType : u.bindType) || d),
              (u = C.event.special[d] || {}),
              (l = C.extend(
                {
                  type: d,
                  origType: h,
                  data: r,
                  handler: n,
                  guid: n.guid,
                  selector: i,
                  needsContext: i && C.expr.match.needsContext.test(i),
                  namespace: p.join("."),
                },
                o,
              )),
              (h = s[d]) ||
                (((h = s[d] = []).delegateCount = 0),
                (u.setup && !1 !== u.setup.call(t, r, p, a)) ||
                  (t.addEventListener && t.addEventListener(d, a))),
              u.add &&
                (u.add.call(t, l), l.handler.guid || (l.handler.guid = n.guid)),
              i ? h.splice(h.delegateCount++, 0, l) : h.push(l),
              (C.event.global[d] = !0)));
    },
    remove: function (e, t, n, r, i) {
      var o,
        a,
        s,
        c,
        l,
        u,
        d,
        p,
        h,
        f,
        v,
        m = K.hasData(e) && K.get(e);
      if (m && (c = m.events)) {
        for (l = (t = (t || "").match(M) || [""]).length; l--; )
          if (
            ((h = v = (s = we.exec(t[l]) || [])[1]),
            (f = (s[2] || "").split(".").sort()),
            h)
          ) {
            for (
              d = C.event.special[h] || {},
                p = c[(h = (r ? d.delegateType : d.bindType) || h)] || [],
                s =
                  s[2] &&
                  new RegExp("(^|\\.)" + f.join("\\.(?:.*\\.|)") + "(\\.|$)"),
                a = o = p.length;
              o--;

            )
              ((u = p[o]),
                (!i && v !== u.origType) ||
                  (n && n.guid !== u.guid) ||
                  (s && !s.test(u.namespace)) ||
                  (r && r !== u.selector && ("**" !== r || !u.selector)) ||
                  (p.splice(o, 1),
                  u.selector && p.delegateCount--,
                  d.remove && d.remove.call(e, u)));
            a &&
              !p.length &&
              ((d.teardown && !1 !== d.teardown.call(e, f, m.handle)) ||
                C.removeEvent(e, h, m.handle),
              delete c[h]);
          } else for (h in c) C.event.remove(e, h + t[l], n, r, !0);
        C.isEmptyObject(c) && K.remove(e, "handle events");
      }
    },
    dispatch: function (e) {
      var t,
        n,
        r,
        i,
        o,
        a = new Array(arguments.length),
        s = C.event.fix(e),
        c = (K.get(this, "events") || Object.create(null))[s.type] || [],
        e = C.event.special[s.type] || {};
      for (a[0] = s, t = 1; t < arguments.length; t++) a[t] = arguments[t];
      if (
        ((s.delegateTarget = this),
        !e.preDispatch || !1 !== e.preDispatch.call(this, s))
      ) {
        for (
          o = C.event.handlers.call(this, s, c), t = 0;
          (r = o[t++]) && !s.isPropagationStopped();

        )
          for (
            s.currentTarget = r.elem, n = 0;
            (i = r.handlers[n++]) && !s.isImmediatePropagationStopped();

          )
            (s.rnamespace &&
              !1 !== i.namespace &&
              !s.rnamespace.test(i.namespace)) ||
              ((s.handleObj = i),
              (s.data = i.data),
              void 0 !==
                (i = (
                  (C.event.special[i.origType] || {}).handle || i.handler
                ).apply(r.elem, a)) &&
                !1 === (s.result = i) &&
                (s.preventDefault(), s.stopPropagation()));
        return (e.postDispatch && e.postDispatch.call(this, s), s.result);
      }
    },
    handlers: function (e, t) {
      var n,
        r,
        i,
        o,
        a,
        s = [],
        c = t.delegateCount,
        l = e.target;
      if (c && l.nodeType && !("click" === e.type && 1 <= e.button))
        for (; l !== this; l = l.parentNode || this)
          if (1 === l.nodeType && ("click" !== e.type || !0 !== l.disabled)) {
            for (o = [], a = {}, n = 0; n < c; n++)
              (void 0 === a[(i = (r = t[n]).selector + " ")] &&
                (a[i] = r.needsContext
                  ? -1 < C(i, this).index(l)
                  : C.find(i, this, null, [l]).length),
                a[i] && o.push(r));
            o.length && s.push({ elem: l, handlers: o });
          }
      return (
        (l = this),
        c < t.length && s.push({ elem: l, handlers: t.slice(c) }),
        s
      );
    },
    addProp: function (t, e) {
      Object.defineProperty(C.Event.prototype, t, {
        enumerable: !0,
        configurable: !0,
        get: v(e)
          ? function () {
              if (this.originalEvent) return e(this.originalEvent);
            }
          : function () {
              if (this.originalEvent) return this.originalEvent[t];
            },
        set: function (e) {
          Object.defineProperty(this, t, {
            enumerable: !0,
            configurable: !0,
            writable: !0,
            value: e,
          });
        },
      });
    },
    fix: function (e) {
      return e[C.expando] ? e : new C.Event(e);
    },
    special: {
      load: { noBubble: !0 },
      click: {
        setup: function (e) {
          e = this || e;
          return (
            ue.test(e.type) && e.click && H(e, "input") && ke(e, "click", xe),
            !1
          );
        },
        trigger: function (e) {
          e = this || e;
          return (
            ue.test(e.type) && e.click && H(e, "input") && ke(e, "click"),
            !0
          );
        },
        _default: function (e) {
          e = e.target;
          return (
            (ue.test(e.type) &&
              e.click &&
              H(e, "input") &&
              K.get(e, "click")) ||
            H(e, "a")
          );
        },
      },
      beforeunload: {
        postDispatch: function (e) {
          void 0 !== e.result &&
            e.originalEvent &&
            (e.originalEvent.returnValue = e.result);
        },
      },
    },
  }),
    (C.removeEvent = function (e, t, n) {
      e.removeEventListener && e.removeEventListener(t, n);
    }),
    (C.Event = function (e, t) {
      if (!(this instanceof C.Event)) return new C.Event(e, t);
      (e && e.type
        ? ((this.originalEvent = e),
          (this.type = e.type),
          (this.isDefaultPrevented =
            e.defaultPrevented ||
            (void 0 === e.defaultPrevented && !1 === e.returnValue)
              ? xe
              : Se),
          (this.target =
            e.target && 3 === e.target.nodeType
              ? e.target.parentNode
              : e.target),
          (this.currentTarget = e.currentTarget),
          (this.relatedTarget = e.relatedTarget))
        : (this.type = e),
        t && C.extend(this, t),
        (this.timeStamp = (e && e.timeStamp) || Date.now()),
        (this[C.expando] = !0));
    }),
    (C.Event.prototype = {
      constructor: C.Event,
      isDefaultPrevented: Se,
      isPropagationStopped: Se,
      isImmediatePropagationStopped: Se,
      isSimulated: !1,
      preventDefault: function () {
        var e = this.originalEvent;
        ((this.isDefaultPrevented = xe),
          e && !this.isSimulated && e.preventDefault());
      },
      stopPropagation: function () {
        var e = this.originalEvent;
        ((this.isPropagationStopped = xe),
          e && !this.isSimulated && e.stopPropagation());
      },
      stopImmediatePropagation: function () {
        var e = this.originalEvent;
        ((this.isImmediatePropagationStopped = xe),
          e && !this.isSimulated && e.stopImmediatePropagation(),
          this.stopPropagation());
      },
    }),
    C.each(
      {
        altKey: !0,
        bubbles: !0,
        cancelable: !0,
        changedTouches: !0,
        ctrlKey: !0,
        detail: !0,
        eventPhase: !0,
        metaKey: !0,
        pageX: !0,
        pageY: !0,
        shiftKey: !0,
        view: !0,
        char: !0,
        code: !0,
        charCode: !0,
        key: !0,
        keyCode: !0,
        button: !0,
        buttons: !0,
        clientX: !0,
        clientY: !0,
        offsetX: !0,
        offsetY: !0,
        pointerId: !0,
        pointerType: !0,
        screenX: !0,
        screenY: !0,
        targetTouches: !0,
        toElement: !0,
        touches: !0,
        which: function (e) {
          var t = e.button;
          return null == e.which && be.test(e.type)
            ? null != e.charCode
              ? e.charCode
              : e.keyCode
            : !e.which && void 0 !== t && ye.test(e.type)
              ? 1 & t
                ? 1
                : 2 & t
                  ? 3
                  : 4 & t
                    ? 2
                    : 0
              : e.which;
        },
      },
      C.event.addProp,
    ),
    C.each({ focus: "focusin", blur: "focusout" }, function (e, t) {
      C.event.special[e] = {
        setup: function () {
          return (ke(this, e, Pe), !1);
        },
        trigger: function () {
          return (ke(this, e), !0);
        },
        delegateType: t,
      };
    }),
    C.each(
      {
        mouseenter: "mouseover",
        mouseleave: "mouseout",
        pointerenter: "pointerover",
        pointerleave: "pointerout",
      },
      function (e, i) {
        C.event.special[e] = {
          delegateType: i,
          bindType: i,
          handle: function (e) {
            var t,
              n = e.relatedTarget,
              r = e.handleObj;
            return (
              (n && (n === this || C.contains(this, n))) ||
                ((e.type = r.origType),
                (t = r.handler.apply(this, arguments)),
                (e.type = i)),
              t
            );
          },
        };
      },
    ),
    C.fn.extend({
      on: function (e, t, n, r) {
        return Ce(this, e, t, n, r);
      },
      one: function (e, t, n, r) {
        return Ce(this, e, t, n, r, 1);
      },
      off: function (e, t, n) {
        var r, i;
        if (e && e.preventDefault && e.handleObj)
          return (
            (r = e.handleObj),
            C(e.delegateTarget).off(
              r.namespace ? r.origType + "." + r.namespace : r.origType,
              r.selector,
              r.handler,
            ),
            this
          );
        if ("object" != typeof e)
          return (
            (!1 !== t && "function" != typeof t) || ((n = t), (t = void 0)),
            !1 === n && (n = Se),
            this.each(function () {
              C.event.remove(this, e, n, t);
            })
          );
        for (i in e) this.off(i, t, e[i]);
        return this;
      },
    }));
  var Te = /<script|<style|<link/i,
    He = /checked\s*(?:[^=]|=\s*.checked.)/i,
    Ee = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
  function Ae(e, t) {
    return (
      (H(e, "table") &&
        H(11 !== t.nodeType ? t : t.firstChild, "tr") &&
        C(e).children("tbody")[0]) ||
      e
    );
  }
  function Ie(e) {
    return ((e.type = (null !== e.getAttribute("type")) + "/" + e.type), e);
  }
  function Le(e) {
    return (
      "true/" === (e.type || "").slice(0, 5)
        ? (e.type = e.type.slice(5))
        : e.removeAttribute("type"),
      e
    );
  }
  function Oe(e, t) {
    var n, r, i, o;
    if (1 === t.nodeType) {
      if (K.hasData(e) && (o = K.get(e).events))
        for (i in (K.remove(t, "handle events"), o))
          for (n = 0, r = o[i].length; n < r; n++) C.event.add(t, i, o[i][n]);
      G.hasData(e) && ((e = G.access(e)), (e = C.extend({}, e)), G.set(t, e));
    }
  }
  function je(n, r, i, o) {
    r = g(r);
    var e,
      t,
      a,
      s,
      c,
      l,
      u = 0,
      d = n.length,
      p = d - 1,
      h = r[0],
      f = v(h);
    if (f || (1 < d && "string" == typeof h && !y.checkClone && He.test(h)))
      return n.each(function (e) {
        var t = n.eq(e);
        (f && (r[0] = h.call(this, e, t.html())), je(t, r, i, o));
      });
    if (
      d &&
      ((t = (e = ge(r, n[0].ownerDocument, !1, n, o)).firstChild),
      1 === e.childNodes.length && (e = t),
      t || o)
    ) {
      for (s = (a = C.map(fe(e, "script"), Ie)).length; u < d; u++)
        ((c = e),
          u !== p &&
            ((c = C.clone(c, !0, !0)), s && C.merge(a, fe(c, "script"))),
          i.call(n[u], c, u));
      if (s)
        for (l = a[a.length - 1].ownerDocument, C.map(a, Le), u = 0; u < s; u++)
          ((c = a[u]),
            pe.test(c.type || "") &&
              !K.access(c, "globalEval") &&
              C.contains(l, c) &&
              (c.src && "module" !== (c.type || "").toLowerCase()
                ? C._evalUrl &&
                  !c.noModule &&
                  C._evalUrl(
                    c.src,
                    { nonce: c.nonce || c.getAttribute("nonce") },
                    l,
                  )
                : w(c.textContent.replace(Ee, ""), c, l)));
    }
    return n;
  }
  function De(e, t, n) {
    for (var r, i = t ? C.filter(t, e) : e, o = 0; null != (r = i[o]); o++)
      (n || 1 !== r.nodeType || C.cleanData(fe(r)),
        r.parentNode &&
          (n && ie(r) && ve(fe(r, "script")), r.parentNode.removeChild(r)));
    return e;
  }
  (C.extend({
    htmlPrefilter: function (e) {
      return e;
    },
    clone: function (e, t, n) {
      var r,
        i,
        o,
        a,
        s,
        c,
        l,
        u = e.cloneNode(!0),
        d = ie(e);
      if (
        !(
          y.noCloneChecked ||
          (1 !== e.nodeType && 11 !== e.nodeType) ||
          C.isXMLDoc(e)
        )
      )
        for (a = fe(u), r = 0, i = (o = fe(e)).length; r < i; r++)
          ((s = o[r]),
            "input" === (l = (c = a[r]).nodeName.toLowerCase()) &&
            ue.test(s.type)
              ? (c.checked = s.checked)
              : ("input" !== l && "textarea" !== l) ||
                (c.defaultValue = s.defaultValue));
      if (t)
        if (n)
          for (o = o || fe(e), a = a || fe(u), r = 0, i = o.length; r < i; r++)
            Oe(o[r], a[r]);
        else Oe(e, u);
      return (
        0 < (a = fe(u, "script")).length && ve(a, !d && fe(e, "script")),
        u
      );
    },
    cleanData: function (e) {
      for (var t, n, r, i = C.event.special, o = 0; void 0 !== (n = e[o]); o++)
        if (V(n)) {
          if ((t = n[K.expando])) {
            if (t.events)
              for (r in t.events)
                i[r] ? C.event.remove(n, r) : C.removeEvent(n, r, t.handle);
            n[K.expando] = void 0;
          }
          n[G.expando] && (n[G.expando] = void 0);
        }
    },
  }),
    C.fn.extend({
      detach: function (e) {
        return De(this, e, !0);
      },
      remove: function (e) {
        return De(this, e);
      },
      text: function (e) {
        return z(
          this,
          function (e) {
            return void 0 === e
              ? C.text(this)
              : this.empty().each(function () {
                  (1 !== this.nodeType &&
                    11 !== this.nodeType &&
                    9 !== this.nodeType) ||
                    (this.textContent = e);
                });
          },
          null,
          e,
          arguments.length,
        );
      },
      append: function () {
        return je(this, arguments, function (e) {
          (1 !== this.nodeType &&
            11 !== this.nodeType &&
            9 !== this.nodeType) ||
            Ae(this, e).appendChild(e);
        });
      },
      prepend: function () {
        return je(this, arguments, function (e) {
          var t;
          (1 !== this.nodeType &&
            11 !== this.nodeType &&
            9 !== this.nodeType) ||
            (t = Ae(this, e)).insertBefore(e, t.firstChild);
        });
      },
      before: function () {
        return je(this, arguments, function (e) {
          this.parentNode && this.parentNode.insertBefore(e, this);
        });
      },
      after: function () {
        return je(this, arguments, function (e) {
          this.parentNode && this.parentNode.insertBefore(e, this.nextSibling);
        });
      },
      empty: function () {
        for (var e, t = 0; null != (e = this[t]); t++)
          1 === e.nodeType && (C.cleanData(fe(e, !1)), (e.textContent = ""));
        return this;
      },
      clone: function (e, t) {
        return (
          (e = null != e && e),
          (t = null == t ? e : t),
          this.map(function () {
            return C.clone(this, e, t);
          })
        );
      },
      html: function (e) {
        return z(
          this,
          function (e) {
            var t = this[0] || {},
              n = 0,
              r = this.length;
            if (void 0 === e && 1 === t.nodeType) return t.innerHTML;
            if (
              "string" == typeof e &&
              !Te.test(e) &&
              !he[(de.exec(e) || ["", ""])[1].toLowerCase()]
            ) {
              e = C.htmlPrefilter(e);
              try {
                for (; n < r; n++)
                  1 === (t = this[n] || {}).nodeType &&
                    (C.cleanData(fe(t, !1)), (t.innerHTML = e));
                t = 0;
              } catch (e) {}
            }
            t && this.empty().append(e);
          },
          null,
          e,
          arguments.length,
        );
      },
      replaceWith: function () {
        var n = [];
        return je(
          this,
          arguments,
          function (e) {
            var t = this.parentNode;
            C.inArray(this, n) < 0 &&
              (C.cleanData(fe(this)), t && t.replaceChild(e, this));
          },
          n,
        );
      },
    }),
    C.each(
      {
        appendTo: "append",
        prependTo: "prepend",
        insertBefore: "before",
        insertAfter: "after",
        replaceAll: "replaceWith",
      },
      function (e, a) {
        C.fn[e] = function (e) {
          for (var t, n = [], r = C(e), i = r.length - 1, o = 0; o <= i; o++)
            ((t = o === i ? this : this.clone(!0)),
              C(r[o])[a](t),
              c.apply(n, t.get()));
          return this.pushStack(n);
        };
      },
    ));
  function Me(e) {
    var t = e.ownerDocument.defaultView;
    return (t = !t || !t.opener ? S : t).getComputedStyle(e);
  }
  function Be(e, t, n) {
    var r,
      i = {};
    for (r in t) ((i[r] = e.style[r]), (e.style[r] = t[r]));
    for (r in ((n = n.call(e)), t)) e.style[r] = i[r];
    return n;
  }
  var Ne,
    Fe,
    $e,
    Re,
    qe,
    ze,
    We,
    Ue,
    _e = new RegExp("^(" + ee + ")(?!px)[a-z%]+$", "i"),
    Qe = new RegExp(ne.join("|"), "i");
  function Ve(e, t, n) {
    var r,
      i,
      o = e.style;
    return (
      (n = n || Me(e)) &&
        ("" !== (i = n.getPropertyValue(t) || n[t]) ||
          ie(e) ||
          (i = C.style(e, t)),
        !y.pixelBoxStyles() &&
          _e.test(i) &&
          Qe.test(t) &&
          ((r = o.width),
          (e = o.minWidth),
          (t = o.maxWidth),
          (o.minWidth = o.maxWidth = o.width = i),
          (i = n.width),
          (o.width = r),
          (o.minWidth = e),
          (o.maxWidth = t))),
      void 0 !== i ? i + "" : i
    );
  }
  function Xe(e, t) {
    return {
      get: function () {
        if (!e()) return (this.get = t).apply(this, arguments);
        delete this.get;
      },
    };
  }
  function Ke() {
    var e;
    Ue &&
      ((We.style.cssText =
        "position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0"),
      (Ue.style.cssText =
        "position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%"),
      re.appendChild(We).appendChild(Ue),
      (e = S.getComputedStyle(Ue)),
      (Ne = "1%" !== e.top),
      (ze = 12 === Ge(e.marginLeft)),
      (Ue.style.right = "60%"),
      (Re = 36 === Ge(e.right)),
      (Fe = 36 === Ge(e.width)),
      (Ue.style.position = "absolute"),
      ($e = 12 === Ge(Ue.offsetWidth / 3)),
      re.removeChild(We),
      (Ue = null));
  }
  function Ge(e) {
    return Math.round(parseFloat(e));
  }
  ((We = P.createElement("div")),
    (Ue = P.createElement("div")).style &&
      ((Ue.style.backgroundClip = "content-box"),
      (Ue.cloneNode(!0).style.backgroundClip = ""),
      (y.clearCloneStyle = "content-box" === Ue.style.backgroundClip),
      C.extend(y, {
        boxSizingReliable: function () {
          return (Ke(), Fe);
        },
        pixelBoxStyles: function () {
          return (Ke(), Re);
        },
        pixelPosition: function () {
          return (Ke(), Ne);
        },
        reliableMarginLeft: function () {
          return (Ke(), ze);
        },
        scrollboxSize: function () {
          return (Ke(), $e);
        },
        reliableTrDimensions: function () {
          var e, t, n;
          return (
            null == qe &&
              ((e = P.createElement("table")),
              (n = P.createElement("tr")),
              (t = P.createElement("div")),
              (e.style.cssText = "position:absolute;left:-11111px"),
              (n.style.height = "1px"),
              (t.style.height = "9px"),
              re.appendChild(e).appendChild(n).appendChild(t),
              (n = S.getComputedStyle(n)),
              (qe = 3 < parseInt(n.height)),
              re.removeChild(e)),
            qe
          );
        },
      })));
  var Je = ["Webkit", "Moz", "ms"],
    Ye = P.createElement("div").style,
    Ze = {};
  function et(e) {
    return (
      C.cssProps[e] ||
      Ze[e] ||
      (e in Ye
        ? e
        : (Ze[e] =
            (function (e) {
              for (
                var t = e[0].toUpperCase() + e.slice(1), n = Je.length;
                n--;

              )
                if ((e = Je[n] + t) in Ye) return e;
            })(e) || e))
    );
  }
  var tt = /^(none|table(?!-c[ea]).+)/,
    nt = /^--/,
    rt = { position: "absolute", visibility: "hidden", display: "block" },
    it = { letterSpacing: "0", fontWeight: "400" };
  function ot(e, t, n) {
    var r = te.exec(t);
    return r ? Math.max(0, r[2] - (n || 0)) + (r[3] || "px") : t;
  }
  function at(e, t, n, r, i, o) {
    var a = "width" === t ? 1 : 0,
      s = 0,
      c = 0;
    if (n === (r ? "border" : "content")) return 0;
    for (; a < 4; a += 2)
      ("margin" === n && (c += C.css(e, n + ne[a], !0, i)),
        r
          ? ("content" === n && (c -= C.css(e, "padding" + ne[a], !0, i)),
            "margin" !== n &&
              (c -= C.css(e, "border" + ne[a] + "Width", !0, i)))
          : ((c += C.css(e, "padding" + ne[a], !0, i)),
            "padding" !== n
              ? (c += C.css(e, "border" + ne[a] + "Width", !0, i))
              : (s += C.css(e, "border" + ne[a] + "Width", !0, i))));
    return (
      !r &&
        0 <= o &&
        (c +=
          Math.max(
            0,
            Math.ceil(
              e["offset" + t[0].toUpperCase() + t.slice(1)] - o - c - s - 0.5,
            ),
          ) || 0),
      c
    );
  }
  function st(e, t, n) {
    var r = Me(e),
      i =
        (!y.boxSizingReliable() || n) &&
        "border-box" === C.css(e, "boxSizing", !1, r),
      o = i,
      a = Ve(e, t, r),
      s = "offset" + t[0].toUpperCase() + t.slice(1);
    if (_e.test(a)) {
      if (!n) return a;
      a = "auto";
    }
    return (
      ((!y.boxSizingReliable() && i) ||
        (!y.reliableTrDimensions() && H(e, "tr")) ||
        "auto" === a ||
        (!parseFloat(a) && "inline" === C.css(e, "display", !1, r))) &&
        e.getClientRects().length &&
        ((i = "border-box" === C.css(e, "boxSizing", !1, r)),
        (o = s in e) && (a = e[s])),
      (a = parseFloat(a) || 0) +
        at(e, t, n || (i ? "border" : "content"), o, r, a) +
        "px"
    );
  }
  function ct(e, t, n, r, i) {
    return new ct.prototype.init(e, t, n, r, i);
  }
  (C.extend({
    cssHooks: {
      opacity: {
        get: function (e, t) {
          if (t) {
            e = Ve(e, "opacity");
            return "" === e ? "1" : e;
          }
        },
      },
    },
    cssNumber: {
      animationIterationCount: !0,
      columnCount: !0,
      fillOpacity: !0,
      flexGrow: !0,
      flexShrink: !0,
      fontWeight: !0,
      gridArea: !0,
      gridColumn: !0,
      gridColumnEnd: !0,
      gridColumnStart: !0,
      gridRow: !0,
      gridRowEnd: !0,
      gridRowStart: !0,
      lineHeight: !0,
      opacity: !0,
      order: !0,
      orphans: !0,
      widows: !0,
      zIndex: !0,
      zoom: !0,
    },
    cssProps: {},
    style: function (e, t, n, r) {
      if (e && 3 !== e.nodeType && 8 !== e.nodeType && e.style) {
        var i,
          o,
          a,
          s = Q(t),
          c = nt.test(t),
          l = e.style;
        if (
          (c || (t = et(s)), (a = C.cssHooks[t] || C.cssHooks[s]), void 0 === n)
        )
          return a && "get" in a && void 0 !== (i = a.get(e, !1, r)) ? i : l[t];
        ("string" == (o = typeof n) &&
          (i = te.exec(n)) &&
          i[1] &&
          ((n = se(e, t, i)), (o = "number")),
          null != n &&
            n == n &&
            ("number" !== o ||
              c ||
              (n += (i && i[3]) || (C.cssNumber[s] ? "" : "px")),
            y.clearCloneStyle ||
              "" !== n ||
              0 !== t.indexOf("background") ||
              (l[t] = "inherit"),
            (a && "set" in a && void 0 === (n = a.set(e, n, r))) ||
              (c ? l.setProperty(t, n) : (l[t] = n))));
      }
    },
    css: function (e, t, n, r) {
      var i,
        o = Q(t);
      return (
        nt.test(t) || (t = et(o)),
        "normal" ===
          (i =
            void 0 ===
            (i =
              (o = C.cssHooks[t] || C.cssHooks[o]) && "get" in o
                ? o.get(e, !0, n)
                : i)
              ? Ve(e, t, r)
              : i) &&
          t in it &&
          (i = it[t]),
        "" === n || n
          ? ((t = parseFloat(i)), !0 === n || isFinite(t) ? t || 0 : i)
          : i
      );
    },
  }),
    C.each(["height", "width"], function (e, s) {
      C.cssHooks[s] = {
        get: function (e, t, n) {
          if (t)
            return !tt.test(C.css(e, "display")) ||
              (e.getClientRects().length && e.getBoundingClientRect().width)
              ? st(e, s, n)
              : Be(e, rt, function () {
                  return st(e, s, n);
                });
        },
        set: function (e, t, n) {
          var r,
            i = Me(e),
            o = !y.scrollboxSize() && "absolute" === i.position,
            a = (o || n) && "border-box" === C.css(e, "boxSizing", !1, i),
            n = n ? at(e, s, n, a, i) : 0;
          return (
            a &&
              o &&
              (n -= Math.ceil(
                e["offset" + s[0].toUpperCase() + s.slice(1)] -
                  parseFloat(i[s]) -
                  at(e, s, "border", !1, i) -
                  0.5,
              )),
            n &&
              (r = te.exec(t)) &&
              "px" !== (r[3] || "px") &&
              ((e.style[s] = t), (t = C.css(e, s))),
            ot(0, t, n)
          );
        },
      };
    }),
    (C.cssHooks.marginLeft = Xe(y.reliableMarginLeft, function (e, t) {
      if (t)
        return (
          (parseFloat(Ve(e, "marginLeft")) ||
            e.getBoundingClientRect().left -
              Be(e, { marginLeft: 0 }, function () {
                return e.getBoundingClientRect().left;
              })) + "px"
        );
    })),
    C.each({ margin: "", padding: "", border: "Width" }, function (i, o) {
      ((C.cssHooks[i + o] = {
        expand: function (e) {
          for (
            var t = 0, n = {}, r = "string" == typeof e ? e.split(" ") : [e];
            t < 4;
            t++
          )
            n[i + ne[t] + o] = r[t] || r[t - 2] || r[0];
          return n;
        },
      }),
        "margin" !== i && (C.cssHooks[i + o].set = ot));
    }),
    C.fn.extend({
      css: function (e, t) {
        return z(
          this,
          function (e, t, n) {
            var r,
              i,
              o = {},
              a = 0;
            if (Array.isArray(t)) {
              for (r = Me(e), i = t.length; a < i; a++)
                o[t[a]] = C.css(e, t[a], !1, r);
              return o;
            }
            return void 0 !== n ? C.style(e, t, n) : C.css(e, t);
          },
          e,
          t,
          1 < arguments.length,
        );
      },
    }),
    (((C.Tween = ct).prototype = {
      constructor: ct,
      init: function (e, t, n, r, i, o) {
        ((this.elem = e),
          (this.prop = n),
          (this.easing = i || C.easing._default),
          (this.options = t),
          (this.start = this.now = this.cur()),
          (this.end = r),
          (this.unit = o || (C.cssNumber[n] ? "" : "px")));
      },
      cur: function () {
        var e = ct.propHooks[this.prop];
        return (e && e.get ? e : ct.propHooks._default).get(this);
      },
      run: function (e) {
        var t,
          n = ct.propHooks[this.prop];
        return (
          this.options.duration
            ? (this.pos = t =
                C.easing[this.easing](
                  e,
                  this.options.duration * e,
                  0,
                  1,
                  this.options.duration,
                ))
            : (this.pos = t = e),
          (this.now = (this.end - this.start) * t + this.start),
          this.options.step &&
            this.options.step.call(this.elem, this.now, this),
          (n && n.set ? n : ct.propHooks._default).set(this),
          this
        );
      },
    }).init.prototype = ct.prototype),
    ((ct.propHooks = {
      _default: {
        get: function (e) {
          return 1 !== e.elem.nodeType ||
            (null != e.elem[e.prop] && null == e.elem.style[e.prop])
            ? e.elem[e.prop]
            : (e = C.css(e.elem, e.prop, "")) && "auto" !== e
              ? e
              : 0;
        },
        set: function (e) {
          C.fx.step[e.prop]
            ? C.fx.step[e.prop](e)
            : 1 !== e.elem.nodeType ||
                (!C.cssHooks[e.prop] && null == e.elem.style[et(e.prop)])
              ? (e.elem[e.prop] = e.now)
              : C.style(e.elem, e.prop, e.now + e.unit);
        },
      },
    }).scrollTop = ct.propHooks.scrollLeft =
      {
        set: function (e) {
          e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now);
        },
      }),
    (C.easing = {
      linear: function (e) {
        return e;
      },
      swing: function (e) {
        return 0.5 - Math.cos(e * Math.PI) / 2;
      },
      _default: "swing",
    }),
    (C.fx = ct.prototype.init),
    (C.fx.step = {}));
  var lt,
    ut,
    dt = /^(?:toggle|show|hide)$/,
    pt = /queueHooks$/;
  function ht() {
    ut &&
      (!1 === P.hidden && S.requestAnimationFrame
        ? S.requestAnimationFrame(ht)
        : S.setTimeout(ht, C.fx.interval),
      C.fx.tick());
  }
  function ft() {
    return (
      S.setTimeout(function () {
        lt = void 0;
      }),
      (lt = Date.now())
    );
  }
  function vt(e, t) {
    var n,
      r = 0,
      i = { height: e };
    for (t = t ? 1 : 0; r < 4; r += 2 - t)
      i["margin" + (n = ne[r])] = i["padding" + n] = e;
    return (t && (i.opacity = i.width = e), i);
  }
  function mt(e, t, n) {
    for (
      var r,
        i = (gt.tweeners[t] || []).concat(gt.tweeners["*"]),
        o = 0,
        a = i.length;
      o < a;
      o++
    )
      if ((r = i[o].call(n, t, e))) return r;
  }
  function gt(i, e, t) {
    var n,
      o,
      r = 0,
      a = gt.prefilters.length,
      s = C.Deferred().always(function () {
        delete c.elem;
      }),
      c = function () {
        if (o) return !1;
        for (
          var e = lt || ft(),
            e = Math.max(0, l.startTime + l.duration - e),
            t = 1 - (e / l.duration || 0),
            n = 0,
            r = l.tweens.length;
          n < r;
          n++
        )
          l.tweens[n].run(t);
        return (
          s.notifyWith(i, [l, t, e]),
          t < 1 && r
            ? e
            : (r || s.notifyWith(i, [l, 1, 0]), s.resolveWith(i, [l]), !1)
        );
      },
      l = s.promise({
        elem: i,
        props: C.extend({}, e),
        opts: C.extend(!0, { specialEasing: {}, easing: C.easing._default }, t),
        originalProperties: e,
        originalOptions: t,
        startTime: lt || ft(),
        duration: t.duration,
        tweens: [],
        createTween: function (e, t) {
          e = C.Tween(
            i,
            l.opts,
            e,
            t,
            l.opts.specialEasing[e] || l.opts.easing,
          );
          return (l.tweens.push(e), e);
        },
        stop: function (e) {
          var t = 0,
            n = e ? l.tweens.length : 0;
          if (o) return this;
          for (o = !0; t < n; t++) l.tweens[t].run(1);
          return (
            e
              ? (s.notifyWith(i, [l, 1, 0]), s.resolveWith(i, [l, e]))
              : s.rejectWith(i, [l, e]),
            this
          );
        },
      }),
      u = l.props;
    for (
      (function (e, t) {
        var n, r, i, o, a;
        for (n in e)
          if (
            ((i = t[(r = Q(n))]),
            (o = e[n]),
            Array.isArray(o) && ((i = o[1]), (o = e[n] = o[0])),
            n !== r && ((e[r] = o), delete e[n]),
            (a = C.cssHooks[r]) && ("expand" in a))
          )
            for (n in ((o = a.expand(o)), delete e[r], o))
              (n in e) || ((e[n] = o[n]), (t[n] = i));
          else t[r] = i;
      })(u, l.opts.specialEasing);
      r < a;
      r++
    )
      if ((n = gt.prefilters[r].call(l, i, u, l.opts)))
        return (
          v(n.stop) &&
            (C._queueHooks(l.elem, l.opts.queue).stop = n.stop.bind(n)),
          n
        );
    return (
      C.map(u, mt, l),
      v(l.opts.start) && l.opts.start.call(i, l),
      l
        .progress(l.opts.progress)
        .done(l.opts.done, l.opts.complete)
        .fail(l.opts.fail)
        .always(l.opts.always),
      C.fx.timer(C.extend(c, { elem: i, anim: l, queue: l.opts.queue })),
      l
    );
  }
  ((C.Animation = C.extend(gt, {
    tweeners: {
      "*": [
        function (e, t) {
          var n = this.createTween(e, t);
          return (se(n.elem, e, te.exec(t), n), n);
        },
      ],
    },
    tweener: function (e, t) {
      for (
        var n, r = 0, i = (e = v(e) ? ((t = e), ["*"]) : e.match(M)).length;
        r < i;
        r++
      )
        ((n = e[r]),
          (gt.tweeners[n] = gt.tweeners[n] || []),
          gt.tweeners[n].unshift(t));
    },
    prefilters: [
      function (e, t, n) {
        var r,
          i,
          o,
          a,
          s,
          c,
          l,
          u = "width" in t || "height" in t,
          d = this,
          p = {},
          h = e.style,
          f = e.nodeType && ae(e),
          v = K.get(e, "fxshow");
        for (r in (n.queue ||
          (null == (a = C._queueHooks(e, "fx")).unqueued &&
            ((a.unqueued = 0),
            (s = a.empty.fire),
            (a.empty.fire = function () {
              a.unqueued || s();
            })),
          a.unqueued++,
          d.always(function () {
            d.always(function () {
              (a.unqueued--, C.queue(e, "fx").length || a.empty.fire());
            });
          })),
        t))
          if (((i = t[r]), dt.test(i))) {
            if (
              (delete t[r],
              (o = o || "toggle" === i),
              i === (f ? "hide" : "show"))
            ) {
              if ("show" !== i || !v || void 0 === v[r]) continue;
              f = !0;
            }
            p[r] = (v && v[r]) || C.style(e, r);
          }
        if ((c = !C.isEmptyObject(t)) || !C.isEmptyObject(p))
          for (r in (u &&
            1 === e.nodeType &&
            ((n.overflow = [h.overflow, h.overflowX, h.overflowY]),
            null == (l = v && v.display) && (l = K.get(e, "display")),
            "none" === (u = C.css(e, "display")) &&
              (l
                ? (u = l)
                : (le([e], !0),
                  (l = e.style.display || l),
                  (u = C.css(e, "display")),
                  le([e]))),
            ("inline" === u || ("inline-block" === u && null != l)) &&
              "none" === C.css(e, "float") &&
              (c ||
                (d.done(function () {
                  h.display = l;
                }),
                null == l && ((u = h.display), (l = "none" === u ? "" : u))),
              (h.display = "inline-block"))),
          n.overflow &&
            ((h.overflow = "hidden"),
            d.always(function () {
              ((h.overflow = n.overflow[0]),
                (h.overflowX = n.overflow[1]),
                (h.overflowY = n.overflow[2]));
            })),
          (c = !1),
          p))
            (c ||
              (v
                ? "hidden" in v && (f = v.hidden)
                : (v = K.access(e, "fxshow", { display: l })),
              o && (v.hidden = !f),
              f && le([e], !0),
              d.done(function () {
                for (r in (f || le([e]), K.remove(e, "fxshow"), p))
                  C.style(e, r, p[r]);
              })),
              (c = mt(f ? v[r] : 0, r, d)),
              r in v ||
                ((v[r] = c.start), f && ((c.end = c.start), (c.start = 0))));
      },
    ],
    prefilter: function (e, t) {
      t ? gt.prefilters.unshift(e) : gt.prefilters.push(e);
    },
  })),
    (C.speed = function (e, t, n) {
      var r =
        e && "object" == typeof e
          ? C.extend({}, e)
          : {
              complete: n || (!n && t) || (v(e) && e),
              duration: e,
              easing: (n && t) || (t && !v(t) && t),
            };
      return (
        C.fx.off
          ? (r.duration = 0)
          : "number" != typeof r.duration &&
            (r.duration in C.fx.speeds
              ? (r.duration = C.fx.speeds[r.duration])
              : (r.duration = C.fx.speeds._default)),
        (null != r.queue && !0 !== r.queue) || (r.queue = "fx"),
        (r.old = r.complete),
        (r.complete = function () {
          (v(r.old) && r.old.call(this), r.queue && C.dequeue(this, r.queue));
        }),
        r
      );
    }),
    C.fn.extend({
      fadeTo: function (e, t, n, r) {
        return this.filter(ae)
          .css("opacity", 0)
          .show()
          .end()
          .animate({ opacity: t }, e, n, r);
      },
      animate: function (t, e, n, r) {
        function i() {
          var e = gt(this, C.extend({}, t), a);
          (o || K.get(this, "finish")) && e.stop(!0);
        }
        var o = C.isEmptyObject(t),
          a = C.speed(e, n, r);
        return (
          (i.finish = i),
          o || !1 === a.queue ? this.each(i) : this.queue(a.queue, i)
        );
      },
      stop: function (i, e, o) {
        function a(e) {
          var t = e.stop;
          (delete e.stop, t(o));
        }
        return (
          "string" != typeof i && ((o = e), (e = i), (i = void 0)),
          e && this.queue(i || "fx", []),
          this.each(function () {
            var e = !0,
              t = null != i && i + "queueHooks",
              n = C.timers,
              r = K.get(this);
            if (t) r[t] && r[t].stop && a(r[t]);
            else for (t in r) r[t] && r[t].stop && pt.test(t) && a(r[t]);
            for (t = n.length; t--; )
              n[t].elem !== this ||
                (null != i && n[t].queue !== i) ||
                (n[t].anim.stop(o), (e = !1), n.splice(t, 1));
            (!e && o) || C.dequeue(this, i);
          })
        );
      },
      finish: function (a) {
        return (
          !1 !== a && (a = a || "fx"),
          this.each(function () {
            var e,
              t = K.get(this),
              n = t[a + "queue"],
              r = t[a + "queueHooks"],
              i = C.timers,
              o = n ? n.length : 0;
            for (
              t.finish = !0,
                C.queue(this, a, []),
                r && r.stop && r.stop.call(this, !0),
                e = i.length;
              e--;

            )
              i[e].elem === this &&
                i[e].queue === a &&
                (i[e].anim.stop(!0), i.splice(e, 1));
            for (e = 0; e < o; e++)
              n[e] && n[e].finish && n[e].finish.call(this);
            delete t.finish;
          })
        );
      },
    }),
    C.each(["toggle", "show", "hide"], function (e, r) {
      var i = C.fn[r];
      C.fn[r] = function (e, t, n) {
        return null == e || "boolean" == typeof e
          ? i.apply(this, arguments)
          : this.animate(vt(r, !0), e, t, n);
      };
    }),
    C.each(
      {
        slideDown: vt("show"),
        slideUp: vt("hide"),
        slideToggle: vt("toggle"),
        fadeIn: { opacity: "show" },
        fadeOut: { opacity: "hide" },
        fadeToggle: { opacity: "toggle" },
      },
      function (e, r) {
        C.fn[e] = function (e, t, n) {
          return this.animate(r, e, t, n);
        };
      },
    ),
    (C.timers = []),
    (C.fx.tick = function () {
      var e,
        t = 0,
        n = C.timers;
      for (lt = Date.now(); t < n.length; t++)
        (e = n[t])() || n[t] !== e || n.splice(t--, 1);
      (n.length || C.fx.stop(), (lt = void 0));
    }),
    (C.fx.timer = function (e) {
      (C.timers.push(e), C.fx.start());
    }),
    (C.fx.interval = 13),
    (C.fx.start = function () {
      ut || ((ut = !0), ht());
    }),
    (C.fx.stop = function () {
      ut = null;
    }),
    (C.fx.speeds = { slow: 600, fast: 200, _default: 400 }),
    (C.fn.delay = function (r, e) {
      return (
        (r = (C.fx && C.fx.speeds[r]) || r),
        this.queue((e = e || "fx"), function (e, t) {
          var n = S.setTimeout(e, r);
          t.stop = function () {
            S.clearTimeout(n);
          };
        })
      );
    }),
    (d = P.createElement("input")),
    (ee = P.createElement("select").appendChild(P.createElement("option"))),
    (d.type = "checkbox"),
    (y.checkOn = "" !== d.value),
    (y.optSelected = ee.selected),
    ((d = P.createElement("input")).value = "t"),
    (d.type = "radio"),
    (y.radioValue = "t" === d.value));
  var bt,
    yt = C.expr.attrHandle;
  (C.fn.extend({
    attr: function (e, t) {
      return z(this, C.attr, e, t, 1 < arguments.length);
    },
    removeAttr: function (e) {
      return this.each(function () {
        C.removeAttr(this, e);
      });
    },
  }),
    C.extend({
      attr: function (e, t, n) {
        var r,
          i,
          o = e.nodeType;
        if (3 !== o && 8 !== o && 2 !== o)
          return void 0 === e.getAttribute
            ? C.prop(e, t, n)
            : ((1 === o && C.isXMLDoc(e)) ||
                (i =
                  C.attrHooks[t.toLowerCase()] ||
                  (C.expr.match.bool.test(t) ? bt : void 0)),
              void 0 !== n
                ? null === n
                  ? void C.removeAttr(e, t)
                  : i && "set" in i && void 0 !== (r = i.set(e, n, t))
                    ? r
                    : (e.setAttribute(t, n + ""), n)
                : !(i && "get" in i && null !== (r = i.get(e, t))) &&
                    null == (r = C.find.attr(e, t))
                  ? void 0
                  : r);
      },
      attrHooks: {
        type: {
          set: function (e, t) {
            if (!y.radioValue && "radio" === t && H(e, "input")) {
              var n = e.value;
              return (e.setAttribute("type", t), n && (e.value = n), t);
            }
          },
        },
      },
      removeAttr: function (e, t) {
        var n,
          r = 0,
          i = t && t.match(M);
        if (i && 1 === e.nodeType) for (; (n = i[r++]); ) e.removeAttribute(n);
      },
    }),
    (bt = {
      set: function (e, t, n) {
        return (!1 === t ? C.removeAttr(e, n) : e.setAttribute(n, n), n);
      },
    }),
    C.each(C.expr.match.bool.source.match(/\w+/g), function (e, t) {
      var a = yt[t] || C.find.attr;
      yt[t] = function (e, t, n) {
        var r,
          i,
          o = t.toLowerCase();
        return (
          n ||
            ((i = yt[o]),
            (yt[o] = r),
            (r = null != a(e, t, n) ? o : null),
            (yt[o] = i)),
          r
        );
      };
    }));
  var wt = /^(?:input|select|textarea|button)$/i,
    xt = /^(?:a|area)$/i;
  function St(e) {
    return (e.match(M) || []).join(" ");
  }
  function Pt(e) {
    return (e.getAttribute && e.getAttribute("class")) || "";
  }
  function Ct(e) {
    return Array.isArray(e) ? e : ("string" == typeof e && e.match(M)) || [];
  }
  (C.fn.extend({
    prop: function (e, t) {
      return z(this, C.prop, e, t, 1 < arguments.length);
    },
    removeProp: function (e) {
      return this.each(function () {
        delete this[C.propFix[e] || e];
      });
    },
  }),
    C.extend({
      prop: function (e, t, n) {
        var r,
          i,
          o = e.nodeType;
        if (3 !== o && 8 !== o && 2 !== o)
          return (
            (1 === o && C.isXMLDoc(e)) ||
              ((t = C.propFix[t] || t), (i = C.propHooks[t])),
            void 0 !== n
              ? i && "set" in i && void 0 !== (r = i.set(e, n, t))
                ? r
                : (e[t] = n)
              : i && "get" in i && null !== (r = i.get(e, t))
                ? r
                : e[t]
          );
      },
      propHooks: {
        tabIndex: {
          get: function (e) {
            var t = C.find.attr(e, "tabindex");
            return t
              ? parseInt(t, 10)
              : wt.test(e.nodeName) || (xt.test(e.nodeName) && e.href)
                ? 0
                : -1;
          },
        },
      },
      propFix: { for: "htmlFor", class: "className" },
    }),
    y.optSelected ||
      (C.propHooks.selected = {
        get: function (e) {
          e = e.parentNode;
          return (e && e.parentNode && e.parentNode.selectedIndex, null);
        },
        set: function (e) {
          e = e.parentNode;
          e && (e.selectedIndex, e.parentNode && e.parentNode.selectedIndex);
        },
      }),
    C.each(
      [
        "tabIndex",
        "readOnly",
        "maxLength",
        "cellSpacing",
        "cellPadding",
        "rowSpan",
        "colSpan",
        "useMap",
        "frameBorder",
        "contentEditable",
      ],
      function () {
        C.propFix[this.toLowerCase()] = this;
      },
    ),
    C.fn.extend({
      addClass: function (t) {
        var e,
          n,
          r,
          i,
          o,
          a,
          s = 0;
        if (v(t))
          return this.each(function (e) {
            C(this).addClass(t.call(this, e, Pt(this)));
          });
        if ((e = Ct(t)).length)
          for (; (n = this[s++]); )
            if (((a = Pt(n)), (r = 1 === n.nodeType && " " + St(a) + " "))) {
              for (o = 0; (i = e[o++]); )
                r.indexOf(" " + i + " ") < 0 && (r += i + " ");
              a !== (a = St(r)) && n.setAttribute("class", a);
            }
        return this;
      },
      removeClass: function (t) {
        var e,
          n,
          r,
          i,
          o,
          a,
          s = 0;
        if (v(t))
          return this.each(function (e) {
            C(this).removeClass(t.call(this, e, Pt(this)));
          });
        if (!arguments.length) return this.attr("class", "");
        if ((e = Ct(t)).length)
          for (; (n = this[s++]); )
            if (((a = Pt(n)), (r = 1 === n.nodeType && " " + St(a) + " "))) {
              for (o = 0; (i = e[o++]); )
                for (; -1 < r.indexOf(" " + i + " "); )
                  r = r.replace(" " + i + " ", " ");
              a !== (a = St(r)) && n.setAttribute("class", a);
            }
        return this;
      },
      toggleClass: function (i, t) {
        var o = typeof i,
          a = "string" == o || Array.isArray(i);
        return "boolean" == typeof t && a
          ? t
            ? this.addClass(i)
            : this.removeClass(i)
          : v(i)
            ? this.each(function (e) {
                C(this).toggleClass(i.call(this, e, Pt(this), t), t);
              })
            : this.each(function () {
                var e, t, n, r;
                if (a)
                  for (t = 0, n = C(this), r = Ct(i); (e = r[t++]); )
                    n.hasClass(e) ? n.removeClass(e) : n.addClass(e);
                else
                  (void 0 !== i && "boolean" != o) ||
                    ((e = Pt(this)) && K.set(this, "__className__", e),
                    this.setAttribute &&
                      this.setAttribute(
                        "class",
                        (!e && !1 !== i && K.get(this, "__className__")) || "",
                      ));
              });
      },
      hasClass: function (e) {
        for (var t, n = 0, r = " " + e + " "; (t = this[n++]); )
          if (1 === t.nodeType && -1 < (" " + St(Pt(t)) + " ").indexOf(r))
            return !0;
        return !1;
      },
    }));
  var kt = /\r/g;
  (C.fn.extend({
    val: function (t) {
      var n,
        e,
        r,
        i = this[0];
      return arguments.length
        ? ((r = v(t)),
          this.each(function (e) {
            1 === this.nodeType &&
              (null == (e = r ? t.call(this, e, C(this).val()) : t)
                ? (e = "")
                : "number" == typeof e
                  ? (e += "")
                  : Array.isArray(e) &&
                    (e = C.map(e, function (e) {
                      return null == e ? "" : e + "";
                    })),
              ((n =
                C.valHooks[this.type] ||
                C.valHooks[this.nodeName.toLowerCase()]) &&
                "set" in n &&
                void 0 !== n.set(this, e, "value")) ||
                (this.value = e));
          }))
        : i
          ? (n = C.valHooks[i.type] || C.valHooks[i.nodeName.toLowerCase()]) &&
            "get" in n &&
            void 0 !== (e = n.get(i, "value"))
            ? e
            : "string" == typeof (e = i.value)
              ? e.replace(kt, "")
              : null == e
                ? ""
                : e
          : void 0;
    },
  }),
    C.extend({
      valHooks: {
        option: {
          get: function (e) {
            var t = C.find.attr(e, "value");
            return null != t ? t : St(C.text(e));
          },
        },
        select: {
          get: function (e) {
            for (
              var t,
                n = e.options,
                r = e.selectedIndex,
                i = "select-one" === e.type,
                o = i ? null : [],
                a = i ? r + 1 : n.length,
                s = r < 0 ? a : i ? r : 0;
              s < a;
              s++
            )
              if (
                ((t = n[s]).selected || s === r) &&
                !t.disabled &&
                (!t.parentNode.disabled || !H(t.parentNode, "optgroup"))
              ) {
                if (((t = C(t).val()), i)) return t;
                o.push(t);
              }
            return o;
          },
          set: function (e, t) {
            for (
              var n, r, i = e.options, o = C.makeArray(t), a = i.length;
              a--;

            )
              ((r = i[a]).selected =
                -1 < C.inArray(C.valHooks.option.get(r), o)) && (n = !0);
            return (n || (e.selectedIndex = -1), o);
          },
        },
      },
    }),
    C.each(["radio", "checkbox"], function () {
      ((C.valHooks[this] = {
        set: function (e, t) {
          if (Array.isArray(t))
            return (e.checked = -1 < C.inArray(C(e).val(), t));
        },
      }),
        y.checkOn ||
          (C.valHooks[this].get = function (e) {
            return null === e.getAttribute("value") ? "on" : e.value;
          }));
    }),
    (y.focusin = "onfocusin" in S));
  function Tt(e) {
    e.stopPropagation();
  }
  var Ht = /^(?:focusinfocus|focusoutblur)$/;
  (C.extend(C.event, {
    trigger: function (e, t, n, r) {
      var i,
        o,
        a,
        s,
        c,
        l,
        u,
        d = [n || P],
        p = b.call(e, "type") ? e.type : e,
        h = b.call(e, "namespace") ? e.namespace.split(".") : [],
        f = (u = o = n = n || P);
      if (
        3 !== n.nodeType &&
        8 !== n.nodeType &&
        !Ht.test(p + C.event.triggered) &&
        (-1 < p.indexOf(".") && ((p = (h = p.split(".")).shift()), h.sort()),
        (s = p.indexOf(":") < 0 && "on" + p),
        ((e = e[C.expando]
          ? e
          : new C.Event(p, "object" == typeof e && e)).isTrigger = r ? 2 : 3),
        (e.namespace = h.join(".")),
        (e.rnamespace = e.namespace
          ? new RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)")
          : null),
        (e.result = void 0),
        e.target || (e.target = n),
        (t = null == t ? [e] : C.makeArray(t, [e])),
        (l = C.event.special[p] || {}),
        r || !l.trigger || !1 !== l.trigger.apply(n, t))
      ) {
        if (!r && !l.noBubble && !m(n)) {
          for (
            a = l.delegateType || p, Ht.test(a + p) || (f = f.parentNode);
            f;
            f = f.parentNode
          )
            (d.push(f), (o = f));
          o === (n.ownerDocument || P) &&
            d.push(o.defaultView || o.parentWindow || S);
        }
        for (i = 0; (f = d[i++]) && !e.isPropagationStopped(); )
          ((u = f),
            (e.type = 1 < i ? a : l.bindType || p),
            (c =
              (K.get(f, "events") || Object.create(null))[e.type] &&
              K.get(f, "handle")) && c.apply(f, t),
            (c = s && f[s]) &&
              c.apply &&
              V(f) &&
              ((e.result = c.apply(f, t)),
              !1 === e.result && e.preventDefault()));
        return (
          (e.type = p),
          r ||
            e.isDefaultPrevented() ||
            (l._default && !1 !== l._default.apply(d.pop(), t)) ||
            !V(n) ||
            (s &&
              v(n[p]) &&
              !m(n) &&
              ((o = n[s]) && (n[s] = null),
              (C.event.triggered = p),
              e.isPropagationStopped() && u.addEventListener(p, Tt),
              n[p](),
              e.isPropagationStopped() && u.removeEventListener(p, Tt),
              (C.event.triggered = void 0),
              o && (n[s] = o))),
          e.result
        );
      }
    },
    simulate: function (e, t, n) {
      e = C.extend(new C.Event(), n, { type: e, isSimulated: !0 });
      C.event.trigger(e, null, t);
    },
  }),
    C.fn.extend({
      trigger: function (e, t) {
        return this.each(function () {
          C.event.trigger(e, t, this);
        });
      },
      triggerHandler: function (e, t) {
        var n = this[0];
        if (n) return C.event.trigger(e, t, n, !0);
      },
    }),
    y.focusin ||
      C.each({ focus: "focusin", blur: "focusout" }, function (n, r) {
        function i(e) {
          C.event.simulate(r, e.target, C.event.fix(e));
        }
        C.event.special[r] = {
          setup: function () {
            var e = this.ownerDocument || this.document || this,
              t = K.access(e, r);
            (t || e.addEventListener(n, i, !0), K.access(e, r, (t || 0) + 1));
          },
          teardown: function () {
            var e = this.ownerDocument || this.document || this,
              t = K.access(e, r) - 1;
            t
              ? K.access(e, r, t)
              : (e.removeEventListener(n, i, !0), K.remove(e, r));
          },
        };
      }));
  var Et = S.location,
    At = { guid: Date.now() },
    It = /\?/;
  C.parseXML = function (e) {
    var t;
    if (!e || "string" != typeof e) return null;
    try {
      t = new S.DOMParser().parseFromString(e, "text/xml");
    } catch (e) {
      t = void 0;
    }
    return (
      (t && !t.getElementsByTagName("parsererror").length) ||
        C.error("Invalid XML: " + e),
      t
    );
  };
  var Lt = /\[\]$/,
    Ot = /\r?\n/g,
    jt = /^(?:submit|button|image|reset|file)$/i,
    Dt = /^(?:input|select|textarea|keygen)/i;
  ((C.param = function (e, t) {
    function n(e, t) {
      ((t = v(t) ? t() : t),
        (i[i.length] =
          encodeURIComponent(e) +
          "=" +
          encodeURIComponent(null == t ? "" : t)));
    }
    var r,
      i = [];
    if (null == e) return "";
    if (Array.isArray(e) || (e.jquery && !C.isPlainObject(e)))
      C.each(e, function () {
        n(this.name, this.value);
      });
    else
      for (r in e)
        !(function n(r, e, i, o) {
          if (Array.isArray(e))
            C.each(e, function (e, t) {
              i || Lt.test(r)
                ? o(r, t)
                : n(
                    r +
                      "[" +
                      ("object" == typeof t && null != t ? e : "") +
                      "]",
                    t,
                    i,
                    o,
                  );
            });
          else if (i || "object" !== f(e)) o(r, e);
          else for (var t in e) n(r + "[" + t + "]", e[t], i, o);
        })(r, e[r], t, n);
    return i.join("&");
  }),
    C.fn.extend({
      serialize: function () {
        return C.param(this.serializeArray());
      },
      serializeArray: function () {
        return this.map(function () {
          var e = C.prop(this, "elements");
          return e ? C.makeArray(e) : this;
        })
          .filter(function () {
            var e = this.type;
            return (
              this.name &&
              !C(this).is(":disabled") &&
              Dt.test(this.nodeName) &&
              !jt.test(e) &&
              (this.checked || !ue.test(e))
            );
          })
          .map(function (e, t) {
            var n = C(this).val();
            return null == n
              ? null
              : Array.isArray(n)
                ? C.map(n, function (e) {
                    return { name: t.name, value: e.replace(Ot, "\r\n") };
                  })
                : { name: t.name, value: n.replace(Ot, "\r\n") };
          })
          .get();
      },
    }));
  var Mt = /%20/g,
    Bt = /#.*$/,
    Nt = /([?&])_=[^&]*/,
    Ft = /^(.*?):[ \t]*([^\r\n]*)$/gm,
    $t = /^(?:GET|HEAD)$/,
    Rt = /^\/\//,
    qt = {},
    zt = {},
    Wt = "*/".concat("*"),
    Ut = P.createElement("a");
  function _t(o) {
    return function (e, t) {
      "string" != typeof e && ((t = e), (e = "*"));
      var n,
        r = 0,
        i = e.toLowerCase().match(M) || [];
      if (v(t))
        for (; (n = i[r++]); )
          "+" === n[0]
            ? ((n = n.slice(1) || "*"), (o[n] = o[n] || []).unshift(t))
            : (o[n] = o[n] || []).push(t);
    };
  }
  function Qt(t, r, i, o) {
    var a = {},
      s = t === zt;
    function c(e) {
      var n;
      return (
        (a[e] = !0),
        C.each(t[e] || [], function (e, t) {
          t = t(r, i, o);
          return "string" != typeof t || s || a[t]
            ? s
              ? !(n = t)
              : void 0
            : (r.dataTypes.unshift(t), c(t), !1);
        }),
        n
      );
    }
    return c(r.dataTypes[0]) || (!a["*"] && c("*"));
  }
  function Vt(e, t) {
    var n,
      r,
      i = C.ajaxSettings.flatOptions || {};
    for (n in t) void 0 !== t[n] && ((i[n] ? e : (r = r || {}))[n] = t[n]);
    return (r && C.extend(!0, e, r), e);
  }
  ((Ut.href = Et.href),
    C.extend({
      active: 0,
      lastModified: {},
      etag: {},
      ajaxSettings: {
        url: Et.href,
        type: "GET",
        isLocal:
          /^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(
            Et.protocol,
          ),
        global: !0,
        processData: !0,
        async: !0,
        contentType: "application/x-www-form-urlencoded; charset=UTF-8",
        accepts: {
          "*": Wt,
          text: "text/plain",
          html: "text/html",
          xml: "application/xml, text/xml",
          json: "application/json, text/javascript",
        },
        contents: { xml: /\bxml\b/, html: /\bhtml/, json: /\bjson\b/ },
        responseFields: {
          xml: "responseXML",
          text: "responseText",
          json: "responseJSON",
        },
        converters: {
          "* text": String,
          "text html": !0,
          "text json": JSON.parse,
          "text xml": C.parseXML,
        },
        flatOptions: { url: !0, context: !0 },
      },
      ajaxSetup: function (e, t) {
        return t ? Vt(Vt(e, C.ajaxSettings), t) : Vt(C.ajaxSettings, e);
      },
      ajaxPrefilter: _t(qt),
      ajaxTransport: _t(zt),
      ajax: function (e, t) {
        "object" == typeof e && ((t = e), (e = void 0));
        var c,
          l,
          u,
          n,
          d,
          p,
          h,
          r,
          i,
          f = C.ajaxSetup({}, (t = t || {})),
          v = f.context || f,
          m = f.context && (v.nodeType || v.jquery) ? C(v) : C.event,
          g = C.Deferred(),
          b = C.Callbacks("once memory"),
          y = f.statusCode || {},
          o = {},
          a = {},
          s = "canceled",
          w = {
            readyState: 0,
            getResponseHeader: function (e) {
              var t;
              if (p) {
                if (!n)
                  for (n = {}; (t = Ft.exec(u)); )
                    n[t[1].toLowerCase() + " "] = (
                      n[t[1].toLowerCase() + " "] || []
                    ).concat(t[2]);
                t = n[e.toLowerCase() + " "];
              }
              return null == t ? null : t.join(", ");
            },
            getAllResponseHeaders: function () {
              return p ? u : null;
            },
            setRequestHeader: function (e, t) {
              return (
                null == p &&
                  ((e = a[e.toLowerCase()] = a[e.toLowerCase()] || e),
                  (o[e] = t)),
                this
              );
            },
            overrideMimeType: function (e) {
              return (null == p && (f.mimeType = e), this);
            },
            statusCode: function (e) {
              if (e)
                if (p) w.always(e[w.status]);
                else for (var t in e) y[t] = [y[t], e[t]];
              return this;
            },
            abort: function (e) {
              e = e || s;
              return (c && c.abort(e), x(0, e), this);
            },
          };
        if (
          (g.promise(w),
          (f.url = ((e || f.url || Et.href) + "").replace(
            Rt,
            Et.protocol + "//",
          )),
          (f.type = t.method || t.type || f.method || f.type),
          (f.dataTypes = (f.dataType || "*").toLowerCase().match(M) || [""]),
          null == f.crossDomain)
        ) {
          i = P.createElement("a");
          try {
            ((i.href = f.url),
              (i.href = i.href),
              (f.crossDomain =
                Ut.protocol + "//" + Ut.host != i.protocol + "//" + i.host));
          } catch (e) {
            f.crossDomain = !0;
          }
        }
        if (
          (f.data &&
            f.processData &&
            "string" != typeof f.data &&
            (f.data = C.param(f.data, f.traditional)),
          Qt(qt, f, t, w),
          p)
        )
          return w;
        for (r in ((h = C.event && f.global) &&
          0 == C.active++ &&
          C.event.trigger("ajaxStart"),
        (f.type = f.type.toUpperCase()),
        (f.hasContent = !$t.test(f.type)),
        (l = f.url.replace(Bt, "")),
        f.hasContent
          ? f.data &&
            f.processData &&
            0 ===
              (f.contentType || "").indexOf(
                "application/x-www-form-urlencoded",
              ) &&
            (f.data = f.data.replace(Mt, "+"))
          : ((i = f.url.slice(l.length)),
            f.data &&
              (f.processData || "string" == typeof f.data) &&
              ((l += (It.test(l) ? "&" : "?") + f.data), delete f.data),
            !1 === f.cache &&
              ((l = l.replace(Nt, "$1")),
              (i = (It.test(l) ? "&" : "?") + "_=" + At.guid++ + i)),
            (f.url = l + i)),
        f.ifModified &&
          (C.lastModified[l] &&
            w.setRequestHeader("If-Modified-Since", C.lastModified[l]),
          C.etag[l] && w.setRequestHeader("If-None-Match", C.etag[l])),
        ((f.data && f.hasContent && !1 !== f.contentType) || t.contentType) &&
          w.setRequestHeader("Content-Type", f.contentType),
        w.setRequestHeader(
          "Accept",
          f.dataTypes[0] && f.accepts[f.dataTypes[0]]
            ? f.accepts[f.dataTypes[0]] +
                ("*" !== f.dataTypes[0] ? ", " + Wt + "; q=0.01" : "")
            : f.accepts["*"],
        ),
        f.headers))
          w.setRequestHeader(r, f.headers[r]);
        if (f.beforeSend && (!1 === f.beforeSend.call(v, w, f) || p))
          return w.abort();
        if (
          ((s = "abort"),
          b.add(f.complete),
          w.done(f.success),
          w.fail(f.error),
          (c = Qt(zt, f, t, w)))
        ) {
          if (((w.readyState = 1), h && m.trigger("ajaxSend", [w, f]), p))
            return w;
          f.async &&
            0 < f.timeout &&
            (d = S.setTimeout(function () {
              w.abort("timeout");
            }, f.timeout));
          try {
            ((p = !1), c.send(o, x));
          } catch (e) {
            if (p) throw e;
            x(-1, e);
          }
        } else x(-1, "No Transport");
        function x(e, t, n, r) {
          var i,
            o,
            a,
            s = t;
          p ||
            ((p = !0),
            d && S.clearTimeout(d),
            (c = void 0),
            (u = r || ""),
            (w.readyState = 0 < e ? 4 : 0),
            (r = (200 <= e && e < 300) || 304 === e),
            n &&
              (a = (function (e, t, n) {
                for (
                  var r, i, o, a, s = e.contents, c = e.dataTypes;
                  "*" === c[0];

                )
                  (c.shift(),
                    void 0 === r &&
                      (r = e.mimeType || t.getResponseHeader("Content-Type")));
                if (r)
                  for (i in s)
                    if (s[i] && s[i].test(r)) {
                      c.unshift(i);
                      break;
                    }
                if (c[0] in n) o = c[0];
                else {
                  for (i in n) {
                    if (!c[0] || e.converters[i + " " + c[0]]) {
                      o = i;
                      break;
                    }
                    a = a || i;
                  }
                  o = o || a;
                }
                if (o) return (o !== c[0] && c.unshift(o), n[o]);
              })(f, w, n)),
            !r &&
              -1 < C.inArray("script", f.dataTypes) &&
              (f.converters["text script"] = function () {}),
            (a = (function (e, t, n, r) {
              var i,
                o,
                a,
                s,
                c,
                l = {},
                u = e.dataTypes.slice();
              if (u[1])
                for (a in e.converters) l[a.toLowerCase()] = e.converters[a];
              for (o = u.shift(); o; )
                if (
                  (e.responseFields[o] && (n[e.responseFields[o]] = t),
                  !c && r && e.dataFilter && (t = e.dataFilter(t, e.dataType)),
                  (c = o),
                  (o = u.shift()))
                )
                  if ("*" === o) o = c;
                  else if ("*" !== c && c !== o) {
                    if (!(a = l[c + " " + o] || l["* " + o]))
                      for (i in l)
                        if (
                          (s = i.split(" "))[1] === o &&
                          (a = l[c + " " + s[0]] || l["* " + s[0]])
                        ) {
                          !0 === a
                            ? (a = l[i])
                            : !0 !== l[i] && ((o = s[0]), u.unshift(s[1]));
                          break;
                        }
                    if (!0 !== a)
                      if (a && e.throws) t = a(t);
                      else
                        try {
                          t = a(t);
                        } catch (e) {
                          return {
                            state: "parsererror",
                            error: a
                              ? e
                              : "No conversion from " + c + " to " + o,
                          };
                        }
                  }
              return { state: "success", data: t };
            })(f, a, w, r)),
            r
              ? (f.ifModified &&
                  ((n = w.getResponseHeader("Last-Modified")) &&
                    (C.lastModified[l] = n),
                  (n = w.getResponseHeader("etag")) && (C.etag[l] = n)),
                204 === e || "HEAD" === f.type
                  ? (s = "nocontent")
                  : 304 === e
                    ? (s = "notmodified")
                    : ((s = a.state), (i = a.data), (r = !(o = a.error))))
              : ((o = s), (!e && s) || ((s = "error"), e < 0 && (e = 0))),
            (w.status = e),
            (w.statusText = (t || s) + ""),
            r ? g.resolveWith(v, [i, s, w]) : g.rejectWith(v, [w, s, o]),
            w.statusCode(y),
            (y = void 0),
            h && m.trigger(r ? "ajaxSuccess" : "ajaxError", [w, f, r ? i : o]),
            b.fireWith(v, [w, s]),
            h &&
              (m.trigger("ajaxComplete", [w, f]),
              --C.active || C.event.trigger("ajaxStop")));
        }
        return w;
      },
      getJSON: function (e, t, n) {
        return C.get(e, t, n, "json");
      },
      getScript: function (e, t) {
        return C.get(e, void 0, t, "script");
      },
    }),
    C.each(["get", "post"], function (e, i) {
      C[i] = function (e, t, n, r) {
        return (
          v(t) && ((r = r || n), (n = t), (t = void 0)),
          C.ajax(
            C.extend(
              { url: e, type: i, dataType: r, data: t, success: n },
              C.isPlainObject(e) && e,
            ),
          )
        );
      };
    }),
    C.ajaxPrefilter(function (e) {
      for (var t in e.headers)
        "content-type" === t.toLowerCase() &&
          (e.contentType = e.headers[t] || "");
    }),
    (C._evalUrl = function (e, t, n) {
      return C.ajax({
        url: e,
        type: "GET",
        dataType: "script",
        cache: !0,
        async: !1,
        global: !1,
        converters: { "text script": function () {} },
        dataFilter: function (e) {
          C.globalEval(e, t, n);
        },
      });
    }),
    C.fn.extend({
      wrapAll: function (e) {
        return (
          this[0] &&
            (v(e) && (e = e.call(this[0])),
            (e = C(e, this[0].ownerDocument).eq(0).clone(!0)),
            this[0].parentNode && e.insertBefore(this[0]),
            e
              .map(function () {
                for (var e = this; e.firstElementChild; )
                  e = e.firstElementChild;
                return e;
              })
              .append(this)),
          this
        );
      },
      wrapInner: function (n) {
        return v(n)
          ? this.each(function (e) {
              C(this).wrapInner(n.call(this, e));
            })
          : this.each(function () {
              var e = C(this),
                t = e.contents();
              t.length ? t.wrapAll(n) : e.append(n);
            });
      },
      wrap: function (t) {
        var n = v(t);
        return this.each(function (e) {
          C(this).wrapAll(n ? t.call(this, e) : t);
        });
      },
      unwrap: function (e) {
        return (
          this.parent(e)
            .not("body")
            .each(function () {
              C(this).replaceWith(this.childNodes);
            }),
          this
        );
      },
    }),
    (C.expr.pseudos.hidden = function (e) {
      return !C.expr.pseudos.visible(e);
    }),
    (C.expr.pseudos.visible = function (e) {
      return !!(e.offsetWidth || e.offsetHeight || e.getClientRects().length);
    }),
    (C.ajaxSettings.xhr = function () {
      try {
        return new S.XMLHttpRequest();
      } catch (e) {}
    }));
  var Xt = { 0: 200, 1223: 204 },
    Kt = C.ajaxSettings.xhr();
  ((y.cors = !!Kt && "withCredentials" in Kt),
    (y.ajax = Kt = !!Kt),
    C.ajaxTransport(function (i) {
      var o, a;
      if (y.cors || (Kt && !i.crossDomain))
        return {
          send: function (e, t) {
            var n,
              r = i.xhr();
            if (
              (r.open(i.type, i.url, i.async, i.username, i.password),
              i.xhrFields)
            )
              for (n in i.xhrFields) r[n] = i.xhrFields[n];
            for (n in (i.mimeType &&
              r.overrideMimeType &&
              r.overrideMimeType(i.mimeType),
            i.crossDomain ||
              e["X-Requested-With"] ||
              (e["X-Requested-With"] = "XMLHttpRequest"),
            e))
              r.setRequestHeader(n, e[n]);
            ((o = function (e) {
              return function () {
                o &&
                  ((o =
                    a =
                    r.onload =
                    r.onerror =
                    r.onabort =
                    r.ontimeout =
                    r.onreadystatechange =
                      null),
                  "abort" === e
                    ? r.abort()
                    : "error" === e
                      ? "number" != typeof r.status
                        ? t(0, "error")
                        : t(r.status, r.statusText)
                      : t(
                          Xt[r.status] || r.status,
                          r.statusText,
                          "text" !== (r.responseType || "text") ||
                            "string" != typeof r.responseText
                            ? { binary: r.response }
                            : { text: r.responseText },
                          r.getAllResponseHeaders(),
                        ));
              };
            }),
              (r.onload = o()),
              (a = r.onerror = r.ontimeout = o("error")),
              void 0 !== r.onabort
                ? (r.onabort = a)
                : (r.onreadystatechange = function () {
                    4 === r.readyState &&
                      S.setTimeout(function () {
                        o && a();
                      });
                  }),
              (o = o("abort")));
            try {
              r.send((i.hasContent && i.data) || null);
            } catch (e) {
              if (o) throw e;
            }
          },
          abort: function () {
            o && o();
          },
        };
    }),
    C.ajaxPrefilter(function (e) {
      e.crossDomain && (e.contents.script = !1);
    }),
    C.ajaxSetup({
      accepts: {
        script:
          "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",
      },
      contents: { script: /\b(?:java|ecma)script\b/ },
      converters: {
        "text script": function (e) {
          return (C.globalEval(e), e);
        },
      },
    }),
    C.ajaxPrefilter("script", function (e) {
      (void 0 === e.cache && (e.cache = !1), e.crossDomain && (e.type = "GET"));
    }),
    C.ajaxTransport("script", function (n) {
      var r, i;
      if (n.crossDomain || n.scriptAttrs)
        return {
          send: function (e, t) {
            ((r = C("<script>")
              .attr(n.scriptAttrs || {})
              .prop({ charset: n.scriptCharset, src: n.url })
              .on(
                "load error",
                (i = function (e) {
                  (r.remove(),
                    (i = null),
                    e && t("error" === e.type ? 404 : 200, e.type));
                }),
              )),
              P.head.appendChild(r[0]));
          },
          abort: function () {
            i && i();
          },
        };
    }));
  var Gt = [],
    Jt = /(=)\?(?=&|$)|\?\?/;
  (C.ajaxSetup({
    jsonp: "callback",
    jsonpCallback: function () {
      var e = Gt.pop() || C.expando + "_" + At.guid++;
      return ((this[e] = !0), e);
    },
  }),
    C.ajaxPrefilter("json jsonp", function (e, t, n) {
      var r,
        i,
        o,
        a =
          !1 !== e.jsonp &&
          (Jt.test(e.url)
            ? "url"
            : "string" == typeof e.data &&
              0 ===
                (e.contentType || "").indexOf(
                  "application/x-www-form-urlencoded",
                ) &&
              Jt.test(e.data) &&
              "data");
      if (a || "jsonp" === e.dataTypes[0])
        return (
          (r = e.jsonpCallback =
            v(e.jsonpCallback) ? e.jsonpCallback() : e.jsonpCallback),
          a
            ? (e[a] = e[a].replace(Jt, "$1" + r))
            : !1 !== e.jsonp &&
              (e.url += (It.test(e.url) ? "&" : "?") + e.jsonp + "=" + r),
          (e.converters["script json"] = function () {
            return (o || C.error(r + " was not called"), o[0]);
          }),
          (e.dataTypes[0] = "json"),
          (i = S[r]),
          (S[r] = function () {
            o = arguments;
          }),
          n.always(function () {
            (void 0 === i ? C(S).removeProp(r) : (S[r] = i),
              e[r] && ((e.jsonpCallback = t.jsonpCallback), Gt.push(r)),
              o && v(i) && i(o[0]),
              (o = i = void 0));
          }),
          "script"
        );
    }),
    (y.createHTMLDocument =
      (((d = P.implementation.createHTMLDocument("").body).innerHTML =
        "<form></form><form></form>"),
      2 === d.childNodes.length)),
    (C.parseHTML = function (e, t, n) {
      return "string" != typeof e
        ? []
        : ("boolean" == typeof t && ((n = t), (t = !1)),
          t ||
            (y.createHTMLDocument
              ? (((r = (t =
                  P.implementation.createHTMLDocument("")).createElement(
                  "base",
                )).href = P.location.href),
                t.head.appendChild(r))
              : (t = P)),
          (r = !n && []),
          (n = E.exec(e))
            ? [t.createElement(n[1])]
            : ((n = ge([e], t, r)),
              r && r.length && C(r).remove(),
              C.merge([], n.childNodes)));
      var r;
    }),
    (C.fn.load = function (e, t, n) {
      var r,
        i,
        o,
        a = this,
        s = e.indexOf(" ");
      return (
        -1 < s && ((r = St(e.slice(s))), (e = e.slice(0, s))),
        v(t)
          ? ((n = t), (t = void 0))
          : t && "object" == typeof t && (i = "POST"),
        0 < a.length &&
          C.ajax({ url: e, type: i || "GET", dataType: "html", data: t })
            .done(function (e) {
              ((o = arguments),
                a.html(r ? C("<div>").append(C.parseHTML(e)).find(r) : e));
            })
            .always(
              n &&
                function (e, t) {
                  a.each(function () {
                    n.apply(this, o || [e.responseText, t, e]);
                  });
                },
            ),
        this
      );
    }),
    (C.expr.pseudos.animated = function (t) {
      return C.grep(C.timers, function (e) {
        return t === e.elem;
      }).length;
    }),
    (C.offset = {
      setOffset: function (e, t, n) {
        var r,
          i,
          o,
          a,
          s = C.css(e, "position"),
          c = C(e),
          l = {};
        ("static" === s && (e.style.position = "relative"),
          (o = c.offset()),
          (r = C.css(e, "top")),
          (a = C.css(e, "left")),
          (a =
            ("absolute" === s || "fixed" === s) && -1 < (r + a).indexOf("auto")
              ? ((i = (s = c.position()).top), s.left)
              : ((i = parseFloat(r) || 0), parseFloat(a) || 0)),
          null != (t = v(t) ? t.call(e, n, C.extend({}, o)) : t).top &&
            (l.top = t.top - o.top + i),
          null != t.left && (l.left = t.left - o.left + a),
          "using" in t
            ? t.using.call(e, l)
            : ("number" == typeof l.top && (l.top += "px"),
              "number" == typeof l.left && (l.left += "px"),
              c.css(l)));
      },
    }),
    C.fn.extend({
      offset: function (t) {
        if (arguments.length)
          return void 0 === t
            ? this
            : this.each(function (e) {
                C.offset.setOffset(this, t, e);
              });
        var e,
          n = this[0];
        return n
          ? n.getClientRects().length
            ? ((e = n.getBoundingClientRect()),
              (n = n.ownerDocument.defaultView),
              { top: e.top + n.pageYOffset, left: e.left + n.pageXOffset })
            : { top: 0, left: 0 }
          : void 0;
      },
      position: function () {
        if (this[0]) {
          var e,
            t,
            n,
            r = this[0],
            i = { top: 0, left: 0 };
          if ("fixed" === C.css(r, "position")) t = r.getBoundingClientRect();
          else {
            for (
              t = this.offset(),
                n = r.ownerDocument,
                e = r.offsetParent || n.documentElement;
              e &&
              (e === n.body || e === n.documentElement) &&
              "static" === C.css(e, "position");

            )
              e = e.parentNode;
            e &&
              e !== r &&
              1 === e.nodeType &&
              (((i = C(e).offset()).top += C.css(e, "borderTopWidth", !0)),
              (i.left += C.css(e, "borderLeftWidth", !0)));
          }
          return {
            top: t.top - i.top - C.css(r, "marginTop", !0),
            left: t.left - i.left - C.css(r, "marginLeft", !0),
          };
        }
      },
      offsetParent: function () {
        return this.map(function () {
          for (
            var e = this.offsetParent;
            e && "static" === C.css(e, "position");

          )
            e = e.offsetParent;
          return e || re;
        });
      },
    }),
    C.each(
      { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" },
      function (t, i) {
        var o = "pageYOffset" === i;
        C.fn[t] = function (e) {
          return z(
            this,
            function (e, t, n) {
              var r;
              return (
                m(e) ? (r = e) : 9 === e.nodeType && (r = e.defaultView),
                void 0 === n
                  ? r
                    ? r[i]
                    : e[t]
                  : void (r
                      ? r.scrollTo(o ? r.pageXOffset : n, o ? n : r.pageYOffset)
                      : (e[t] = n))
              );
            },
            t,
            e,
            arguments.length,
          );
        };
      },
    ),
    C.each(["top", "left"], function (e, n) {
      C.cssHooks[n] = Xe(y.pixelPosition, function (e, t) {
        if (t)
          return ((t = Ve(e, n)), _e.test(t) ? C(e).position()[n] + "px" : t);
      });
    }),
    C.each({ Height: "height", Width: "width" }, function (a, s) {
      C.each(
        { padding: "inner" + a, content: s, "": "outer" + a },
        function (r, o) {
          C.fn[o] = function (e, t) {
            var n = arguments.length && (r || "boolean" != typeof e),
              i = r || (!0 === e || !0 === t ? "margin" : "border");
            return z(
              this,
              function (e, t, n) {
                var r;
                return m(e)
                  ? 0 === o.indexOf("outer")
                    ? e["inner" + a]
                    : e.document.documentElement["client" + a]
                  : 9 === e.nodeType
                    ? ((r = e.documentElement),
                      Math.max(
                        e.body["scroll" + a],
                        r["scroll" + a],
                        e.body["offset" + a],
                        r["offset" + a],
                        r["client" + a],
                      ))
                    : void 0 === n
                      ? C.css(e, t, i)
                      : C.style(e, t, n, i);
              },
              s,
              n ? e : void 0,
              n,
            );
          };
        },
      );
    }),
    C.each(
      [
        "ajaxStart",
        "ajaxStop",
        "ajaxComplete",
        "ajaxError",
        "ajaxSuccess",
        "ajaxSend",
      ],
      function (e, t) {
        C.fn[t] = function (e) {
          return this.on(t, e);
        };
      },
    ),
    C.fn.extend({
      bind: function (e, t, n) {
        return this.on(e, null, t, n);
      },
      unbind: function (e, t) {
        return this.off(e, null, t);
      },
      delegate: function (e, t, n, r) {
        return this.on(t, e, n, r);
      },
      undelegate: function (e, t, n) {
        return 1 === arguments.length
          ? this.off(e, "**")
          : this.off(t, e || "**", n);
      },
      hover: function (e, t) {
        return this.mouseenter(e).mouseleave(t || e);
      },
    }),
    C.each(
      "blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(
        " ",
      ),
      function (e, n) {
        C.fn[n] = function (e, t) {
          return 0 < arguments.length
            ? this.on(n, null, e, t)
            : this.trigger(n);
        };
      },
    ));
  var Yt = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
  ((C.proxy = function (e, t) {
    var n, r;
    if (("string" == typeof t && ((r = e[t]), (t = e), (e = r)), v(e)))
      return (
        (n = s.call(arguments, 2)),
        ((r = function () {
          return e.apply(t || this, n.concat(s.call(arguments)));
        }).guid = e.guid =
          e.guid || C.guid++),
        r
      );
  }),
    (C.holdReady = function (e) {
      e ? C.readyWait++ : C.ready(!0);
    }),
    (C.isArray = Array.isArray),
    (C.parseJSON = JSON.parse),
    (C.nodeName = H),
    (C.isFunction = v),
    (C.isWindow = m),
    (C.camelCase = Q),
    (C.type = f),
    (C.now = Date.now),
    (C.isNumeric = function (e) {
      var t = C.type(e);
      return ("number" === t || "string" === t) && !isNaN(e - parseFloat(e));
    }),
    (C.trim = function (e) {
      return null == e ? "" : (e + "").replace(Yt, "");
    }),
    "function" == typeof define &&
      define.amd &&
      define("jquery", [], function () {
        return C;
      }));
  var Zt = S.jQuery,
    en = S.$;
  return (
    (C.noConflict = function (e) {
      return (
        S.$ === C && (S.$ = en),
        e && S.jQuery === C && (S.jQuery = Zt),
        C
      );
    }),
    void 0 === e && (S.jQuery = S.$ = C),
    C
  );
});
var H5P = (window.H5P = window.H5P || {});
((H5P.jQuery = jQuery.noConflict(!0)),
  (H5P.jQuery.fn.__originalLoad = H5P.jQuery.load),
  (H5P.jQuery.fn.load = function (e, t, n) {
    if ("function" != typeof e)
      return H5P.jQuery.fn.__originalLoad.apply(this, arguments);
    {
      console.warn("You are using a deprecated H5P library. Please upgrade!");
      let e = Array.prototype.slice.call(arguments);
      return (e.unshift("load"), H5P.jQuery.fn.on.apply(this, e));
    }
  }),
  ((H5P = window.H5P = window.H5P || {}).isFramed =
    window.self !== window.parent),
  (H5P.$window = H5P.jQuery(window)),
  (H5P.instances = []),
  document.documentElement.requestFullScreen
    ? (H5P.fullScreenBrowserPrefix = "")
    : document.documentElement.webkitRequestFullScreen
      ? ((H5P.safariBrowser = navigator.userAgent.match(/version\/([.\d]+)/i)),
        (H5P.safariBrowser =
          null === H5P.safariBrowser ? 0 : parseInt(H5P.safariBrowser[1])),
        (0 === H5P.safariBrowser || 6 < H5P.safariBrowser) &&
          (H5P.fullScreenBrowserPrefix = "webkit"))
      : document.documentElement.mozRequestFullScreen
        ? (H5P.fullScreenBrowserPrefix = "moz")
        : document.documentElement.msRequestFullscreen &&
          (H5P.fullScreenBrowserPrefix = "ms"),
  (H5P.opened = {}),
  (H5P.init = function (e) {
    (void 0 === H5P.$body && (H5P.$body = H5P.jQuery(document.body)),
      void 0 === H5P.fullscreenSupported &&
        (H5P.fullscreenSupported = !(
          H5PIntegration.fullscreenDisabled ||
          H5P.fullscreenDisabled ||
          (H5P.isFramed &&
            !1 !== H5P.externalEmbed &&
            !(
              document.fullscreenEnabled ||
              document.webkitFullscreenEnabled ||
              document.mozFullScreenEnabled
            ))
        )),
      void 0 === H5P.canHasFullScreen &&
        (H5P.canHasFullScreen = H5P.fullscreenSupported),
      H5P.jQuery(".h5p-content:not(.h5p-initialized)", e).each(function () {
        var t = H5P.jQuery(this).addClass("h5p-initialized"),
          n = H5P.jQuery('<div class="h5p-container"></div>').appendTo(t),
          i = t.data("content-id"),
          o = H5PIntegration.contents["cid-" + i];
        if (void 0 === o)
          return H5P.error(
            "No data for content id " + i + ". Perhaps the library is gone?",
          );
        var a = {
          library: o.library,
          params: JSON.parse(o.jsonContent),
          metadata: o.metadata,
        };
        H5P.getUserData(i, "state", function (e, t) {
          var r;
          t
            ? (a.userDatas = { state: t })
            : null === t &&
              H5PIntegration.saveFreq &&
              (delete o.contentUserData,
              (r = new H5P.Dialog(
                "content-user-data-reset",
                "Data Reset",
                "<p>" +
                  H5P.t("contentChanged") +
                  "</p><p>" +
                  H5P.t("startingOver") +
                  '</p><div class="h5p-dialog-ok-button" tabIndex="0" role="button">OK</div>',
                n,
              )),
              H5P.jQuery(r)
                .on("dialog-opened", function (e, t) {
                  function n(e) {
                    ("click" !== e.type && 32 !== e.which) ||
                      (r.close(), H5P.deleteUserData(i, "state", 0));
                  }
                  (t.find(".h5p-dialog-ok-button").click(n).keypress(n),
                    H5P.trigger(s, "resize"));
                })
                .on("dialog-closed", function () {
                  H5P.trigger(s, "resize");
                }),
              r.open());
        });
        var s = H5P.newRunnable(a, i, n, !0, { standalone: !0 });
        ((H5P.offlineRequestQueue = new H5P.OfflineRequestQueue({
          instance: s,
        })),
          1 == o.fullScreen &&
            H5P.fullscreenSupported &&
            H5P.jQuery(
              '<div class="h5p-content-controls"><div role="button" tabindex="0" class="h5p-enable-fullscreen" aria-label="' +
                H5P.t("fullscreen") +
                '" title="' +
                H5P.t("fullscreen") +
                '"></div></div>',
            )
              .prependTo(n)
              .children()
              .click(function () {
                H5P.fullScreen(n, s);
              })
              .keydown(function (e) {
                if (32 === e.which || 13 === e.which)
                  return (H5P.fullScreen(n, s), !1);
              }));
        var e,
          r,
          c,
          l,
          u,
          d,
          p,
          h = o.displayOptions,
          f = !1;
        (h.frame &&
          (h.copyright &&
            ((e = H5P.getCopyrights(s, a.params, i, a.metadata)) ||
              (h.copyright = !1)),
          (h = new H5P.ActionBar(h)),
          (r = h.getDOMElement()),
          h.on("reuse", function () {
            (H5P.openReuseDialog(r, o, a, s, i),
              s.triggerXAPI("accessed-reuse"));
          }),
          h.on("copyrights", function () {
            (new H5P.Dialog(
              "copyrights",
              H5P.t("copyrightInformation"),
              e,
              n,
            ).open(!0),
              s.triggerXAPI("accessed-copyright"));
          }),
          h.on("embed", function () {
            (H5P.openEmbedDialog(
              r,
              o.embedCode,
              o.resizeCode,
              { width: t.width(), height: t.height() },
              s,
            ),
              s.triggerXAPI("accessed-embed"));
          }),
          h.hasActions() && ((f = !0), r.insertAfter(n))),
          t.addClass(f ? "h5p-frame" : "h5p-no-frame"),
          (H5P.opened[i] = new Date()),
          H5P.on(s, "finish", function (e) {
            void 0 !== e.data &&
              H5P.setFinished(i, e.data.score, e.data.maxScore, e.data.time);
          }),
          H5P.on(s, "xAPI", H5P.xAPICompletedListener),
          !1 !== H5PIntegration.saveFreq &&
            (s.getCurrentState instanceof Function ||
              "function" == typeof s.getCurrentState) &&
            ((l = function () {
              var e = s.getCurrentState();
              (void 0 !== e &&
                H5P.setUserData(i, "state", e, { deleteOnChange: !0 }),
                H5PIntegration.saveFreq &&
                  (c = setTimeout(l, 1e3 * H5PIntegration.saveFreq)));
            }),
            H5PIntegration.saveFreq &&
              (c = setTimeout(l, 1e3 * H5PIntegration.saveFreq)),
            H5P.on(s, "xAPI", function (e) {
              e = e.getVerb();
              ("completed" !== e && "progressed" !== e) ||
                (clearTimeout(c), (c = setTimeout(l, 3e3)));
            })),
          H5P.isFramed &&
            (!1 === H5P.externalEmbed
              ? ((d = window.frameElement),
                H5P.on(s, "resize", function () {
                  (clearTimeout(u),
                    (u = setTimeout(function () {
                      var e;
                      window.parent.H5P.isFullscreen ||
                        ((e = d.parentElement.style.height),
                        (d.parentElement.style.height =
                          d.parentElement.clientHeight + "px"),
                        d.getBoundingClientRect(),
                        (d.style.height = "1px"),
                        (d.style.height =
                          d.contentDocument.body.scrollHeight + "px"),
                        (d.parentElement.style.height = e));
                    }, 1)));
                }))
              : H5P.communicator &&
                ((p = !1),
                H5P.communicator.on("ready", function () {
                  H5P.communicator.send("hello");
                }),
                H5P.communicator.on("hello", function () {
                  ((p = !0),
                    (document.body.style.height = "auto"),
                    (document.body.style.overflow = "hidden"),
                    H5P.trigger(s, "resize"));
                }),
                H5P.communicator.on("resizePrepared", function () {
                  H5P.communicator.send("resize", {
                    scrollHeight: document.body.scrollHeight,
                  });
                }),
                H5P.communicator.on("resize", function () {
                  H5P.trigger(s, "resize");
                }),
                H5P.on(s, "resize", function () {
                  H5P.isFullscreen ||
                    (clearTimeout(u),
                    (u = setTimeout(function () {
                      p
                        ? H5P.communicator.send("prepareResize", {
                            scrollHeight: document.body.scrollHeight,
                            clientHeight: document.body.clientHeight,
                          })
                        : H5P.communicator.send("hello");
                    }, 0)));
                }))),
          (H5P.isFramed && !1 !== H5P.externalEmbed) ||
            H5P.jQuery(window.parent).resize(function () {
              (window.parent.H5P.isFullscreen, H5P.trigger(s, "resize"));
            }),
          H5P.instances.push(s),
          H5P.trigger(s, "resize"),
          t.addClass("using-mouse"),
          t.on("mousedown keydown keyup", function (e) {
            t.toggleClass("using-mouse", "mousedown" === e.type);
          }),
          H5P.externalDispatcher &&
            H5P.externalDispatcher.trigger("initialized"));
      }),
      H5P.jQuery("iframe.h5p-iframe:not(.h5p-initialized)", e).each(
        function () {
          var e = H5P.jQuery(this)
              .addClass("h5p-initialized")
              .data("content-id"),
            t = H5PIntegration.contents["cid-" + e],
            t =
              t && t.metadata && t.metadata.defaultLanguage
                ? t.metadata.defaultLanguage
                : "en";
          (this.contentDocument.open(),
            this.contentDocument.write(
              '<!doctype html><html class="h5p-iframe" lang="' +
                t +
                '"><head>' +
                H5P.getHeadTags(e) +
                '</head><body><div class="h5p-content" data-content-id="' +
                e +
                '"/></body></html>',
            ),
            this.contentDocument.close());
        },
      ));
  }),
  (H5P.getHeadTags = function (e) {
    function t(e) {
      for (var t = "", n = 0; n < e.length; n++)
        t += '<link rel="stylesheet" href="' + e[n] + '">';
      return t;
    }
    function n(e) {
      for (var t = "", n = 0; n < e.length; n++)
        t += '<script src="' + e[n] + '"></script>';
      return t;
    }
    return (
      '<base target="_parent">' +
      t(H5PIntegration.core.styles) +
      t(H5PIntegration.contents["cid-" + e].styles) +
      n(H5PIntegration.core.scripts) +
      n(H5PIntegration.contents["cid-" + e].scripts) +
      "<script>H5PIntegration = window.parent.H5PIntegration; var H5P = H5P || {}; H5P.externalEmbed = false;</script>"
    );
  }),
  (H5P.communicator =
    window.postMessage && window.addEventListener
      ? new (function () {
          var n = {};
          (window.addEventListener(
            "message",
            function (e) {
              window.parent === e.source &&
                "h5p" === e.data.context &&
                void 0 !== n[e.data.action] &&
                n[e.data.action](e.data);
            },
            !1,
          ),
            (this.on = function (e, t) {
              n[e] = t;
            }),
            (this.send = function (e, t) {
              (((t = void 0 === t ? {} : t).context = "h5p"),
                (t.action = e),
                window.parent.postMessage(t, "*"));
            }));
        })()
      : void 0),
  (H5P.semiFullScreen = function (e, t, n, r) {
    H5P.fullScreen(e, t, n, r, !0);
  }),
  (H5P.fullScreen = function (e, t, n, r, i) {
    if (void 0 === H5P.exitFullScreen) {
      if (H5P.isFramed && !1 === H5P.externalEmbed)
        return (
          window.parent.H5P.fullScreen(e, t, n, H5P.$body.get(), i),
          (H5P.isFullscreen = !0),
          (H5P.exitFullScreen = function () {
            window.parent.H5P.exitFullScreen();
          }),
          void H5P.on(t, "exitFullScreen", function () {
            ((H5P.isFullscreen = !1), (H5P.exitFullScreen = void 0));
          })
        );
      var o,
        a,
        s,
        c = e;
      (void 0 === r
        ? (o = H5P.$body)
        : ((a = (o = H5P.jQuery(r)).add(e.get())),
          (r = "#h5p-iframe-" + e.parent().data("content-id")),
          (e = (s = H5P.jQuery(r)).parent())),
        (a = e.add(H5P.$body).add(a)));
      function l(e) {
        (a.addClass(e), void 0 !== s && s.css("height", ""));
      }
      function u() {
        (H5P.trigger(t, "resize"),
          H5P.trigger(t, "focus"),
          H5P.trigger(t, "enterFullScreen"));
      }
      function d(e) {
        ((H5P.isFullscreen = !1),
          a.removeClass(e),
          H5P.trigger(t, "resize"),
          H5P.trigger(t, "focus"),
          (H5P.exitFullScreen = void 0) !== n && n(),
          H5P.trigger(t, "exitFullScreen"));
      }
      if (
        ((H5P.isFullscreen = !0),
        void 0 === H5P.fullScreenBrowserPrefix || !0 === i)
      ) {
        if (!H5P.isFramed) {
          l("h5p-semi-fullscreen");
          var p,
            h,
            f = H5P.jQuery(
              '<div role="button" tabindex="0" class="h5p-disable-fullscreen" title="' +
                H5P.t("disableFullscreen") +
                '" aria-label="' +
                H5P.t("disableFullscreen") +
                '"></div>',
            ).appendTo(c.find(".h5p-content-controls")),
            v = (H5P.exitFullScreen = function () {
              (p ? (h.content = p) : g.removeChild(h),
                f.remove(),
                o.unbind("keyup", m),
                d("h5p-semi-fullscreen"));
            }),
            m = function (e) {
              27 === e.keyCode && v();
            };
          (f.click(v), o.keyup(m));
          for (
            var g, b = document.getElementsByTagName("meta"), y = 0;
            y < b.length;
            y++
          )
            if ("viewport" === b[y].name) {
              ((h = b[y]), (p = h.content));
              break;
            }
          (p || ((h = document.createElement("meta")).name = "viewport"),
            (h.content =
              "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"),
            p || (g = document.getElementsByTagName("head")[0]).appendChild(h),
            u());
        }
      } else {
        l("h5p-fullscreen");
        var w,
          x =
            "ms" === H5P.fullScreenBrowserPrefix
              ? "MSFullscreenChange"
              : H5P.fullScreenBrowserPrefix + "fullscreenchange";
        (document.addEventListener(x, function () {
          return void 0 === w
            ? ((w = !1), void u())
            : (d("h5p-fullscreen"),
              void document.removeEventListener(x, arguments.callee, !1));
        }),
          "" === H5P.fullScreenBrowserPrefix
            ? e[0].requestFullScreen()
            : ((i =
                "ms" === H5P.fullScreenBrowserPrefix
                  ? "msRequestFullscreen"
                  : H5P.fullScreenBrowserPrefix + "RequestFullScreen"),
              (c =
                "webkit" === H5P.fullScreenBrowserPrefix &&
                0 === H5P.safariBrowser
                  ? Element.ALLOW_KEYBOARD_INPUT
                  : void 0),
              e[0][i](c)),
          (H5P.exitFullScreen = function () {
            "" === H5P.fullScreenBrowserPrefix
              ? document.exitFullscreen()
              : "moz" === H5P.fullScreenBrowserPrefix
                ? document.mozCancelFullScreen()
                : document[H5P.fullScreenBrowserPrefix + "ExitFullscreen"]();
          }));
      }
    }
  }),
  (function () {
    ((H5P.addQueryParameter = function (e, t) {
      let n, r;
      const i = e.split("?");
      return (
        (n = i[1]
          ? ((r = i[1].split("#")), i[0] + "?" + r[0] + "&")
          : ((r = i[0].split("#")), r[0] + "?")),
        (n += t),
        r[1] && (n += "#" + r[1]),
        n
      );
    }),
      (H5P.setSource = function (e, t, n) {
        let r = t.path;
        t = H5P.getCrossOrigin(t);
        (t
          ? ((e.crossOrigin = t),
            H5PIntegration.crossoriginCacheBuster &&
              (r = H5P.addQueryParameter(
                r,
                H5PIntegration.crossoriginCacheBuster,
              )))
          : e.removeAttribute("crossorigin"),
          (e.src = H5P.getPath(r, n)));
      }));
    function i(e) {
      return e.match(/^[a-z0-9]+:\/\//i);
    }
    ((H5P.getCrossOrigin = function (e) {
      return "object" != typeof e
        ? H5PIntegration.crossorigin &&
          H5PIntegration.crossoriginRegex &&
          e.match(H5PIntegration.crossoriginRegex)
          ? H5PIntegration.crossorigin
          : null
        : H5PIntegration.crossorigin && !i(e.path)
          ? H5PIntegration.crossorigin
          : void 0;
    }),
      (H5P.getPath = function (e, t) {
        if (i(e)) return e;
        var n,
          r = "#tmp" === e.substr(-4, 4);
        if (void 0 === t || r) {
          if (void 0 === window.H5PEditor) return;
          n = H5PEditor.filesPath;
        } else
          n =
            (n =
              void 0 !== H5PIntegration.contents &&
              H5PIntegration.contents["cid-" + t]
                ? H5PIntegration.contents["cid-" + t].contentUrl
                : n) || H5PIntegration.url + "/content/" + t;
        return (
          (n = !i(n)
            ? window.location.protocol + "//" + window.location.host + n
            : n) +
          "/" +
          e
        );
      }));
  })(),
  (H5P.getContentPath = function (e) {
    return H5PIntegration.url + "/content/" + e;
  }),
  (H5P.classFromName = function (e) {
    e = e.split(".");
    return this[e[e.length - 1]];
  }),
  (H5P.newRunnable = function (t, e, n, r, i) {
    var o, a;
    try {
      ((a = (s = t.library.split(" ", 2))[0]), (o = s[1].split(".", 2)));
    } catch (e) {
      return H5P.error("Invalid library string: " + t.library);
    }
    if (t.params instanceof Object != !0 || t.params instanceof Array == !0)
      return (
        H5P.error("Invalid library params for: " + t.library),
        H5P.error(t.params)
      );
    try {
      for (var s = s[0].split("."), c = window, l = 0; l < s.length; l++)
        c = c[s[l]];
      if ("function" != typeof c) throw null;
    } catch (e) {
      return H5P.error("Unable to find constructor for: " + t.library);
    }
    (void 0 === i && (i = {}),
      t.subContentId && (i.subContentId = t.subContentId),
      t.userDatas &&
        t.userDatas.state &&
        H5PIntegration.saveFreq &&
        (i.previousState = t.userDatas.state),
      t.metadata && (i.metadata = t.metadata));
    var u,
      d = i.standalone || !1;
    return (
      (c.prototype = H5P.jQuery.extend(
        {},
        H5P.ContentType(d).prototype,
        c.prototype,
      )),
      void 0 ===
        (u =
          -1 <
          H5P.jQuery.inArray(t.library, [
            "H5P.CoursePresentation 1.0",
            "H5P.CoursePresentation 1.1",
            "H5P.CoursePresentation 1.2",
            "H5P.CoursePresentation 1.3",
          ])
            ? new c(t.params, e)
            : new c(t.params, e, i)).$ && (u.$ = H5P.jQuery(u)),
      void 0 === u.contentId && (u.contentId = e),
      void 0 === u.subContentId &&
        t.subContentId &&
        (u.subContentId = t.subContentId),
      void 0 === u.parent && i && i.parent && (u.parent = i.parent),
      void 0 === u.libraryInfo &&
        (u.libraryInfo = {
          versionedName: t.library,
          versionedNameNoSpaces: a + "-" + o[0] + "." + o[1],
          machineName: a,
          majorVersion: o[0],
          minorVersion: o[1],
        }),
      void 0 !== n &&
        (n.toggleClass("h5p-standalone", d),
        u.attach(n),
        H5P.trigger(
          u,
          "domChanged",
          { $target: n, library: a, key: "newLibrary" },
          { bubbles: !0, external: !0 },
        ),
        (void 0 !== r && r) || H5P.trigger(u, "resize")),
      u
    );
  }),
  (H5P.error = function (e) {
    void 0 !== window.console &&
      void 0 !== console.error &&
      console.error(e.stack || e);
  }),
  (H5P.t = function (e, t, n) {
    if ((void 0 === n && (n = "H5P"), void 0 === H5PIntegration.l10n[n]))
      return '[Missing translation namespace "' + n + '"]';
    if (void 0 === H5PIntegration.l10n[n][e])
      return '[Missing translation "' + e + '" in "' + n + '"]';
    var r = H5PIntegration.l10n[n][e];
    if (void 0 !== t) for (var i in t) r = r.replace(i, t[i]);
    return r;
  }),
  (H5P.Dialog = function (e, t, n, r) {
    var i = this,
      o = H5P.jQuery(
        '<div class="h5p-popup-dialog h5p-' +
          e +
          '-dialog" role="dialog" tabindex="-1">                              <div class="h5p-inner">                                <h2>' +
          t +
          '</h2>                                <div class="h5p-scroll-content">' +
          n +
          '</div>                                <div class="h5p-close" role="button" tabindex="0" aria-label="' +
          H5P.t("close") +
          '" title="' +
          H5P.t("close") +
          '"></div>                              </div>                            </div>',
      )
        .insertAfter(r)
        .click(function (e) {
          (e && e.originalEvent && e.originalEvent.preventClosing) || i.close();
        })
        .children(".h5p-inner")
        .click(function (e) {
          e.originalEvent.preventClosing = !0;
        })
        .find(".h5p-close")
        .click(function () {
          i.close();
        })
        .keypress(function (e) {
          if (13 === e.which || 32 === e.which) return (i.close(), !1);
        })
        .end()
        .find("a")
        .click(function (e) {
          e.stopPropagation();
        })
        .end()
        .end();
    ((i.open = function (e) {
      (e && o.css("height", "100%"),
        setTimeout(function () {
          (o.addClass("h5p-open"),
            H5P.jQuery(i).trigger("dialog-opened", [o]),
            o.focus());
        }, 1));
    }),
      (i.close = function () {
        (o.removeClass("h5p-open"),
          setTimeout(function () {
            (o.remove(),
              H5P.jQuery(i).trigger("dialog-closed", [o]),
              r.attr("tabindex", "-1"),
              r.focus());
          }, 200));
      }));
  }),
  (H5P.getCopyrights = function (e, t, n, r) {
    var i;
    if (void 0 !== e.getCopyrights)
      try {
        i = e.getCopyrights();
      } catch (e) {}
    void 0 === i &&
      ((i = new H5P.ContentCopyrights()), H5P.findCopyrights(i, t, n));
    e = H5P.buildMetadataCopyrights(r, e.libraryInfo.machineName);
    return (
      void 0 !== e && i.addMediaInFront(e),
      (i = void 0 !== i ? i.toString() : i)
    );
  }),
  (H5P.findCopyrights = function (o, e, t, n) {
    var r, i, a, s;
    for (i in (n && ((n.params = e), c(n, n.machineName, t)), e))
      e.hasOwnProperty(i) &&
        ("overrideSettings" !== i
          ? ((a = e[i]) && a.library && "string" == typeof a.library
              ? (r = a.library.split(" ")[0])
              : a &&
                a.library &&
                "object" == typeof a.library &&
                (r =
                  a.library.library && "string" == typeof a.library.library
                    ? a.library.library.split(" ")[0]
                    : r),
            a instanceof Array
              ? H5P.findCopyrights(o, a, t)
              : a instanceof Object &&
                (c(a, r, t),
                void 0 === a.copyright ||
                void 0 === a.copyright.license ||
                void 0 === a.path ||
                void 0 === a.mime
                  ? H5P.findCopyrights(o, a, t)
                  : ((s = new H5P.MediaCopyright(a.copyright)),
                    void 0 !== a.width &&
                      void 0 !== a.height &&
                      s.setThumbnail(
                        new H5P.Thumbnail(
                          H5P.getPath(a.path, t),
                          a.width,
                          a.height,
                        ),
                      ),
                    o.addMedia(s))))
          : (console.warn(
              "The semantics field 'overrideSettings' is DEPRECATED and should not be used.",
            ),
            console.warn(e)));
    function c(e, t, n) {
      if (e.metadata) {
        const i = H5P.buildMetadataCopyrights(e.metadata, t);
        var r;
        void 0 !== i &&
          (e.params &&
            "Image" === e.params.contentName &&
            e.params.file &&
            ((r = e.params.file.path),
            (t = e.params.file.width),
            (e = e.params.file.height),
            i.setThumbnail(new H5P.Thumbnail(H5P.getPath(r, n), t, e))),
          o.addMedia(i));
      }
    }
  }),
  (H5P.buildMetadataCopyrights = function (e) {
    if (e && void 0 !== e.license && "U" !== e.license) {
      e = {
        contentType: e.contentType,
        title: e.title,
        author:
          e.authors && 0 < e.authors.length
            ? e.authors
                .map(function (e) {
                  return e.role ? e.name + " (" + e.role + ")" : e.name;
                })
                .join(", ")
            : void 0,
        source: e.source,
        year: e.yearFrom
          ? e.yearFrom + (e.yearTo ? "-" + e.yearTo : "")
          : void 0,
        license: e.license,
        version: e.licenseVersion,
        licenseExtras: e.licenseExtras,
        changes:
          e.changes && 0 < e.changes.length
            ? e.changes
                .map(function (e) {
                  return (
                    e.log +
                    (e.author ? ", " + e.author : "") +
                    (e.date ? ", " + e.date : "")
                  );
                })
                .join(" / ")
            : void 0,
      };
      return new H5P.MediaCopyright(e);
    }
  }),
  (H5P.openReuseDialog = function (e, n, r, i, o) {
    let t = "";
    (n.displayOptions.export &&
      (t +=
        '<button type="button" class="h5p-big-button h5p-download-button"><div class="h5p-button-title">Download as an .h5p file</div><div class="h5p-button-description">.h5p files may be uploaded to any web-site where H5P content may be created.</div></button>'),
      n.displayOptions.export &&
        n.displayOptions.copy &&
        (t += '<div class="h5p-horizontal-line-text"><span>or</span></div>'),
      n.displayOptions.copy &&
        (t +=
          '<button type="button" class="h5p-big-button h5p-copy-button"><div class="h5p-button-title">Copy content</div><div class="h5p-button-description">Copied content may be pasted anywhere this content type is supported on this website.</div></button>'));
    const a = new H5P.Dialog("reuse", H5P.t("reuseContent"), t, e);
    (H5P.jQuery(a)
      .on("dialog-opened", function (e, t) {
        (H5P.jQuery(
          '<a href="https://h5p.org/node/442225" target="_blank">More Info</a>',
        )
          .click(function (e) {
            e.stopPropagation();
          })
          .appendTo(t.find("h2")),
          t.find(".h5p-download-button").click(function () {
            ((window.location.href = n.exportUrl),
              i.triggerXAPI("downloaded"),
              a.close());
          }),
          t.find(".h5p-copy-button").click(function () {
            const e = new H5P.ClipboardItem(r);
            ((e.contentId = o),
              H5P.setClipboard(e),
              i.triggerXAPI("copied"),
              a.close(),
              H5P.attachToastTo(
                H5P.jQuery(".h5p-content:first")[0],
                H5P.t("contentCopied"),
                {
                  position: {
                    horizontal: "centered",
                    vertical: "centered",
                    noOverflowX: !0,
                  },
                },
              ));
          }),
          H5P.trigger(i, "resize"));
      })
      .on("dialog-closed", function () {
        H5P.trigger(i, "resize");
      }),
      a.open());
  }),
  (H5P.openEmbedDialog = function (e, t, n, l, u) {
    var d = t + n,
      e = new H5P.Dialog(
        "embed",
        H5P.t("embed"),
        '<textarea class="h5p-embed-code-container" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>' +
          H5P.t("size") +
          ': <input type="text" value="' +
          Math.ceil(l.width) +
          '" class="h5p-embed-size"/> × <input type="text" value="' +
          Math.ceil(l.height) +
          '" class="h5p-embed-size"/> px<br/><div role="button" tabindex="0" class="h5p-expander">' +
          H5P.t("showAdvanced") +
          '</div><div class="h5p-expander-content"><p>' +
          H5P.t("advancedHelp") +
          '</p><textarea class="h5p-embed-code-container" autocorrect="off" autocapitalize="off" spellcheck="false">' +
          n +
          "</textarea></div>",
        e,
      );
    (H5P.jQuery(e)
      .on("dialog-opened", function (e, n) {
        function r() {
          H5P.trigger(u, "resize");
        }
        function t(e, t) {
          return ((e = parseFloat(e.val())), isNaN(e) ? t : Math.ceil(e));
        }
        function i() {
          n.find(".h5p-embed-code-container:first").val(
            d.replace(":w", t(a, l.width)).replace(":h", t(s, l.height)),
          );
        }
        var o = n.find(".h5p-inner").find(".h5p-scroll-content"),
          a =
            (o.outerHeight(), o.innerHeight(), n.find(".h5p-embed-size:eq(0)")),
          s = n.find(".h5p-embed-size:eq(1)");
        (a.change(i),
          s.change(i),
          i(),
          n.find(".h5p-embed-code-container").each(function () {
            H5P.jQuery(this)
              .css("height", this.scrollHeight + "px")
              .focus(function () {
                H5P.jQuery(this).select();
              });
          }),
          n.find(".h5p-embed-code-container").eq(0).select(),
          r());
        function c() {
          var e = H5P.jQuery(this),
            t = e.next();
          (t.is(":visible")
            ? (e
                .removeClass("h5p-open")
                .text(H5P.t("showAdvanced"))
                .attr("aria-expanded", "true"),
              t.hide())
            : (e
                .addClass("h5p-open")
                .text(H5P.t("hideAdvanced"))
                .attr("aria-expanded", "false"),
              t.show()),
            n.find(".h5p-embed-code-container").each(function () {
              H5P.jQuery(this).css("height", this.scrollHeight + "px");
            }),
            r());
        }
        n.find(".h5p-expander")
          .click(c)
          .keypress(function (e) {
            if (32 === e.keyCode) return (c.apply(this), !1);
          });
      })
      .on("dialog-closed", function () {
        H5P.trigger(u, "resize");
      }),
      e.open());
  }),
  (H5P.attachToastTo = function (t, e, n) {
    if (void 0 === t || void 0 === e) return;
    function r(e) {
      -1 === i(e).indexOf(t) && (clearTimeout(c), o());
    }
    const i = function (e) {
        var t = (e.composedPath && e.composedPath()) || e.path,
          e = e.target;
        return null != t
          ? t.indexOf(window) < 0
            ? t.concat(window)
            : t
          : e === window
            ? [window]
            : [e].concat(
                (function e(t, n) {
                  n = n || [];
                  t = t.parentNode;
                  return t ? e(t, n.concat(t)) : n;
                })(e),
                window,
              );
      },
      o = function () {
        (document.removeEventListener("click", r),
          a.parentNode && a.parentNode.removeChild(a));
      };
    (((n = n || {}).style = n.style || "h5p-toast"),
      (n.duration = n.duration || 3e3));
    const a = document.createElement("div");
    (a.setAttribute("id", n.style),
      a.classList.add("h5p-toast-disabled"),
      a.classList.add(n.style));
    const s = document.createElement("span");
    ((s.innerHTML = e), a.appendChild(s), document.body.appendChild(a));
    e = (function (e, t, n) {
      (((n = n || {}).offsetHorizontal = n.offsetHorizontal || 0),
        (n.offsetVertical = n.offsetVertical || 0));
      var r = t.getBoundingClientRect(),
        i = e.getBoundingClientRect();
      let o = 0,
        a = 0;
      switch (n.horizontal) {
        case "before":
          o = i.left - r.width - n.offsetHorizontal;
          break;
        case "after":
          o = i.left + i.width + n.offsetHorizontal;
          break;
        case "left":
          o = i.left + n.offsetHorizontal;
          break;
        case "right":
          o = i.left + i.width - r.width - n.offsetHorizontal;
          break;
        default:
          o = i.left + i.width / 2 - r.width / 2 + n.offsetHorizontal;
      }
      switch (n.vertical) {
        case "above":
          a = i.top - r.height - n.offsetVertical;
          break;
        case "below":
          a = i.top + i.height + n.offsetVertical;
          break;
        case "top":
          a = i.top + n.offsetVertical;
          break;
        case "bottom":
          a = i.top + i.height - r.height - n.offsetVertical;
          break;
        case "centered":
          a = i.top + i.height / 2 - r.height / 2 + n.offsetVertical;
          break;
        default:
          a = i.top + i.height + n.offsetVertical;
      }
      const s = document.body;
      e = s.getBoundingClientRect();
      return (
        (n.noOverflowLeft || n.noOverflowX) && o < e.x && (o = e.x),
        (n.noOverflowRight || n.noOverflowX) &&
          o + r.width > e.x + e.width &&
          (o = e.x + e.width - r.width),
        (n.noOverflowTop || n.noOverflowY) && a < e.y && (a = e.y),
        (n.noOverflowBottom || n.noOverflowY) &&
          a + r.height > e.y + e.height &&
          (o = e.y + e.height - r.height),
        { left: o, top: a }
      );
    })(t, a, n.position);
    ((a.style.left = Math.round(e.left) + "px"),
      (a.style.top = Math.round(e.top) + "px"),
      a.classList.remove("h5p-toast-disabled"));
    const c = setTimeout(o, n.duration);
    document.addEventListener("click", r);
  }),
  (H5P.ContentCopyrights = function () {
    var n,
      r = [],
      i = [];
    ((this.setLabel = function (e) {
      n = e;
    }),
      (this.addMedia = function (e) {
        void 0 !== e && r.push(e);
      }),
      (this.addMediaInFront = function (e) {
        void 0 !== e && r.unshift(e);
      }),
      (this.addContent = function (e) {
        void 0 !== e && i.push(e);
      }),
      (this.toString = function () {
        for (var e = "", t = 0; t < r.length; t++) e += r[t];
        for (t = 0; t < i.length; t++) e += i[t];
        return (e =
          "" !== e
            ? '<div class="h5p-content-copyrights">' +
              (e = void 0 !== n ? "<h3>" + n + "</h3>" + e : e) +
              "</div>"
            : e);
      }));
  }),
  (H5P.MediaCopyright = function (e, t, n, r) {
    function i(e) {
      return void 0 === t || void 0 === t[e] ? H5P.t(e) : t[e];
    }
    function o(e, t) {
      var n,
        r = H5P.copyrightLicenses[e],
        i = "";
      (("PD" === e && t) || (i += r.hasOwnProperty("label") ? r.label : r),
        (n =
          r.versions &&
          (t =
            !r.versions.default || (t && r.versions[t])
              ? t
              : r.versions.default) &&
          r.versions[t]
            ? r.versions[t]
            : n) &&
          (i && (i += " "), (i += n.hasOwnProperty("label") ? n.label : n)),
        r.hasOwnProperty("link")
          ? (o = r.link.replace(
              ":version",
              r.linkVersions ? r.linkVersions[t] : t,
            ))
          : n && r.hasOwnProperty("link") && (o = n.link),
        o && (i = '<a href="' + o + '" target="_blank">' + i + "</a>"));
      var o = "";
      return (
        "PD" !== e && "C" !== e && (o += e),
        t && "CC0 1.0" !== t && (o && "GNU GPL" !== e && (o += " "), (o += t)),
        o && (i += " (" + o + ")"),
        "C" === e && (i += " &copy;"),
        i
      );
    }
    var a,
      s = new H5P.DefinitionList();
    if (void 0 !== e) {
      for (var c in r) r.hasOwnProperty(c) && (e[c] = r[c]);
      void 0 === n &&
        (n = [
          "contentType",
          "title",
          "license",
          "author",
          "year",
          "source",
          "licenseExtras",
          "changes",
        ]);
      for (var l = 0; l < n.length; l++) {
        var u,
          d = n[l];
        void 0 !== e[d] &&
          "" !== e[d] &&
          ((u = e[d]),
          "license" === d && (u = o(e.license, e.version)),
          "source" === d &&
            (u = u
              ? '<a href="' + u + '" target="_blank">' + u + "</a>"
              : void 0),
          s.add(new H5P.Field(i(d), u)));
      }
    }
    ((this.setThumbnail = function (e) {
      a = e;
    }),
      (this.undisclosed = function () {
        if (1 === s.size()) {
          var e = s.get(0);
          if (e.getLabel() === i("license") && e.getValue() === o("U"))
            return !0;
        }
        return !1;
      }),
      (this.toString = function () {
        var e = "";
        return this.undisclosed()
          ? e
          : (void 0 !== a && (e += a),
            "" !== (e += s)
              ? '<div class="h5p-media-copyright">' + e + "</div>"
              : e);
      }));
  }),
  (H5P.Thumbnail = function (e, t, n) {
    var r;
    (void 0 !== t && (r = Math.round((t / n) * 100)),
      (this.toString = function () {
        return (
          '<img src="' +
          e +
          '" alt="' +
          H5P.t("thumbnail") +
          '" class="h5p-thumbnail" height="100"' +
          (void 0 === r ? "" : ' width="' + r + '"') +
          "/>"
        );
      }));
  }),
  (H5P.Field = function (e, t) {
    ((this.getLabel = function () {
      return e;
    }),
      (this.getValue = function () {
        return t;
      }));
  }),
  (H5P.DefinitionList = function () {
    var r = [];
    ((this.add = function (e) {
      r.push(e);
    }),
      (this.size = function () {
        return r.length;
      }),
      (this.get = function (e) {
        return r[e];
      }),
      (this.toString = function () {
        for (var e = "", t = 0; t < r.length; t++) {
          var n = r[t];
          e += "<dt>" + n.getLabel() + "</dt><dd>" + n.getValue() + "</dd>";
        }
        return "" === e ? e : '<dl class="h5p-definition-list">' + e + "</dl>";
      }));
  }),
  (H5P.Coords = function (e, t, n, r) {
    return this instanceof H5P.Coords
      ? ((this.x = 0),
        (this.y = 0),
        (this.w = 1),
        (this.h = 1),
        "object" == typeof e
          ? ((this.x = e.x), (this.y = e.y), (this.w = e.w), (this.h = e.h))
          : (void 0 !== e && (this.x = e),
            void 0 !== t && (this.y = t),
            void 0 !== n && (this.w = n),
            void 0 !== r && (this.h = r)),
        this)
      : new H5P.Coords(e, t, n, r);
  }),
  (H5P.libraryFromString = function (e) {
    e = /(.+)\s(\d+)\.(\d+)$/g.exec(e);
    return (
      null !== e && {
        machineName: e[1],
        majorVersion: parseInt(e[2]),
        minorVersion: parseInt(e[3]),
      }
    );
  }),
  (H5P.getLibraryPath = function (e) {
    return void 0 !== H5PIntegration.urlLibraries
      ? H5PIntegration.urlLibraries + "/" + e
      : H5PIntegration.url + "/libraries/" + e;
  }),
  (H5P.cloneObject = function (e, t) {
    var n,
      r = e instanceof Array ? [] : {};
    for (n in e)
      e.hasOwnProperty(n) &&
        (void 0 !== t && t && "object" == typeof e[n]
          ? (r[n] = H5P.cloneObject(e[n], t))
          : (r[n] = e[n]));
    return r;
  }),
  (H5P.trim = function (e) {
    return e.replace(/^\s+|\s+$/g, "");
  }),
  (H5P.jsLoaded = function (e) {
    return (
      (H5PIntegration.loadedJs = H5PIntegration.loadedJs || []),
      -1 !== H5P.jQuery.inArray(e, H5PIntegration.loadedJs)
    );
  }),
  (H5P.cssLoaded = function (e) {
    return (
      (H5PIntegration.loadedCss = H5PIntegration.loadedCss || []),
      -1 !== H5P.jQuery.inArray(e, H5PIntegration.loadedCss)
    );
  }),
  (H5P.shuffleArray = function (e) {
    if (e instanceof Array) {
      var t,
        n,
        r,
        i = e.length;
      if (0 === i) return !1;
      for (; --i; )
        ((t = Math.floor(Math.random() * (i + 1))),
          (n = e[i]),
          (r = e[t]),
          (e[i] = r),
          (e[t] = n));
      return e;
    }
  }),
  (H5P.setFinished = function (e, t, n, r) {
    if (
      ("number" == typeof t || t instanceof Number) &&
      !0 === H5PIntegration.postUserStatistics
    ) {
      function i(e) {
        return Math.round(e.getTime() / 1e3);
      }
      const o = {
        contentId: e,
        score: t,
        maxScore: n,
        opened: i(H5P.opened[e]),
        finished: i(new Date()),
        time: r,
      };
      H5P.jQuery.post(H5PIntegration.ajax.setFinished, o).fail(function () {
        H5P.offlineRequestQueue.add(H5PIntegration.ajax.setFinished, o);
      });
    }
  }),
  Array.prototype.indexOf ||
    (Array.prototype.indexOf = function (e) {
      for (var t = 0; t < this.length; t++) if (this[t] === e) return t;
      return -1;
    }),
  void 0 === String.prototype.trim &&
    (String.prototype.trim = function () {
      return H5P.trim(this);
    }),
  (H5P.trigger = function (e, t, n, r) {
    void 0 !== e.trigger
      ? e.trigger(t, n, r)
      : void 0 !== e.$ && void 0 !== e.$.trigger && e.$.trigger(t);
  }),
  (H5P.on = function (e, t, n) {
    void 0 !== e.on
      ? e.on(t, n)
      : void 0 !== e.$ && void 0 !== e.$.on && e.$.on(t, n);
  }),
  (H5P.createUUID = function () {
    return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
      /[xy]/g,
      function (e) {
        var t = (16 * Math.random()) | 0;
        return ("x" === e ? t : (3 & t) | 8).toString(16);
      },
    );
  }),
  (H5P.createTitle = function (e, t) {
    if (!e) return "";
    void 0 === t && (t = 60);
    e = H5P.jQuery("<div></div>")
      .text(e.replace(/(<([^>]+)>)/gi, ""))
      .text();
    return (e = e.length > t ? e.substr(0, t - 3) + "..." : e);
  }),
  (function (c) {
    function s(e, t, n, r, i, o, a, s) {
      void 0 !== H5PIntegration.user
        ? ((s = {
            url: H5PIntegration.ajax.contentUserData
              .replace(":contentId", e)
              .replace(":dataType", t)
              .replace(":subContentId", n || 0),
            dataType: "json",
            async: void 0 === s || s,
          }),
          void 0 !== i
            ? ((s.type = "POST"),
              (s.data = {
                data: null === i ? 0 : i,
                preload: o ? 1 : 0,
                invalidate: a ? 1 : 0,
              }))
            : (s.type = "GET"),
          void 0 !== r &&
            ((s.error = function (e, t) {
              r(t);
            }),
            (s.success = function (e) {
              e.success
                ? !1 !== e.data && void 0 !== e.data
                  ? r(void 0, e.data)
                  : r()
                : r(e.message);
            })),
          c.ajax(s))
        : r("Not signed in.");
    }
    ((H5P.getUserData = function (e, n, r, i) {
      ((i = i || 0), (H5PIntegration.contents = H5PIntegration.contents || {}));
      var o = H5PIntegration.contents["cid-" + e] || {},
        a = o.contentUserData;
      if (a && a[i] && void 0 !== a[i][n])
        if ("RESET" !== a[i][n])
          try {
            r(void 0, JSON.parse(a[i][n]));
          } catch (e) {
            r(e);
          }
        else r(void 0, null);
      else
        s(e, n, i, function (e, t) {
          if (e || void 0 === t) r(e, t);
          else {
            (void 0 === o.contentUserData && (o.contentUserData = a = {}),
              void 0 === a[i] && (a[i] = {}),
              (a[i][n] = t));
            try {
              r(void 0, JSON.parse(t));
            } catch (e) {
              r(e);
            }
          }
        });
    }),
      (H5P.setUserData = function (e, t, n, r) {
        var i = H5P.jQuery.extend(
          !0,
          {},
          { subContentId: 0, preloaded: !0, deleteOnChange: !1, async: !0 },
          r,
        );
        try {
          n = JSON.stringify(n);
        } catch (e) {
          return void (i.errorCallback && i.errorCallback(e));
        }
        r = H5PIntegration.contents["cid-" + e];
        (r = void 0 === r ? (H5PIntegration.contents["cid-" + e] = {}) : r)
          .contentUserData || (r.contentUserData = {});
        r = r.contentUserData;
        (void 0 === r[i.subContentId] && (r[i.subContentId] = {}),
          n !== r[i.subContentId][t] &&
            ((r[i.subContentId][t] = n),
            s(
              e,
              t,
              i.subContentId,
              function (e) {
                i.errorCallback && e && i.errorCallback(e);
              },
              n,
              i.preloaded,
              i.deleteOnChange,
              i.async,
            )));
      }),
      (H5P.deleteUserData = function (e, t, n) {
        n = n || 0;
        var r = H5PIntegration.contents["cid-" + e].contentUserData;
        (r && r[n] && r[n][t] && delete r[n][t], s(e, t, n, void 0, null));
      }),
      (H5P.getContentForInstance = function (e) {
        e = "cid-" + e;
        return H5PIntegration &&
          H5PIntegration.contents &&
          H5PIntegration.contents[e]
          ? H5PIntegration.contents[e]
          : void 0;
      }),
      (H5P.ClipboardItem = function (e, t, n) {
        var r = this;
        (t || ((t = "action"), (e = { action: e })),
          (r.specific = e),
          t && e[t] && (r.generic = t),
          n && (r.from = n),
          window.H5PEditor &&
            H5PEditor.contentId &&
            (r.contentId = H5PEditor.contentId),
          r.specific.width ||
            r.specific.height ||
            !r.generic ||
            ((n = r.specific[r.generic]).params.file &&
              n.params.file.width &&
              n.params.file.height &&
              ((r.width = 20),
              (r.height =
                (n.params.file.height / n.params.file.width) * r.width))));
      }),
      (H5P.clipboardify = function (e) {
        (e instanceof H5P.ClipboardItem || (e = new H5P.ClipboardItem(e)),
          H5P.setClipboard(e));
      }),
      (H5P.getClipboard = function () {
        return e();
      }),
      (H5P.setClipboard = function (e) {
        (localStorage.setItem("h5pClipboard", JSON.stringify(e)),
          H5P.externalDispatcher.trigger("datainclipboard", { reset: !1 }));
      }),
      (H5P.getLibraryConfig = function (e) {
        return H5PIntegration.libraryConfig && H5PIntegration.libraryConfig[e]
          ? H5PIntegration.libraryConfig[e]
          : {};
      }));
    var e = function () {
        var t = localStorage.getItem("h5pClipboard");
        if (t) {
          try {
            t = JSON.parse(t);
          } catch (e) {
            return void console.error(
              "Unable to parse JSON from clipboard.",
              e,
            );
          }
          return (
            r(t.specific, function (e) {
              return "#tmp" === e.substr(-4, 4) ||
                !t.contentId ||
                e.match(/^https?:\/\//i)
                ? e
                : H5PEditor.contentId
                  ? "../" + t.contentId + "/" + e
                  : (H5PEditor.contentRelUrl || "../content/") +
                    t.contentId +
                    "/" +
                    e;
            }),
            t.generic && (t.generic = t.specific[t.generic]),
            t
          );
        }
      },
      r = function (e, t) {
        for (var n in e)
          e.hasOwnProperty(n) &&
            e[n] instanceof Object &&
            (void 0 !== (n = e[n]).path && void 0 !== n.mime
              ? (n.path = t(n.path))
              : (void 0 !== n.library &&
                  void 0 !== n.subContentId &&
                  delete n.subContentId,
                r(n, t)));
      };
    c(document).ready(function () {
      window.addEventListener("storage", function (e) {
        "h5pClipboard" === e.key &&
          H5P.externalDispatcher.trigger("datainclipboard", {
            reset: null === e.newValue,
          });
      });
      var i,
        e,
        t = {
          default: "4.0",
          "4.0": H5P.t("licenseCC40"),
          "3.0": H5P.t("licenseCC30"),
          2.5: H5P.t("licenseCC25"),
          "2.0": H5P.t("licenseCC20"),
          "1.0": H5P.t("licenseCC10"),
        };
      ((H5P.copyrightLicenses = {
        U: H5P.t("licenseU"),
        "CC BY": {
          label: H5P.t("licenseCCBY"),
          link: "http://creativecommons.org/licenses/by/:version",
          versions: t,
        },
        "CC BY-SA": {
          label: H5P.t("licenseCCBYSA"),
          link: "http://creativecommons.org/licenses/by-sa/:version",
          versions: t,
        },
        "CC BY-ND": {
          label: H5P.t("licenseCCBYND"),
          link: "http://creativecommons.org/licenses/by-nd/:version",
          versions: t,
        },
        "CC BY-NC": {
          label: H5P.t("licenseCCBYNC"),
          link: "http://creativecommons.org/licenses/by-nc/:version",
          versions: t,
        },
        "CC BY-NC-SA": {
          label: H5P.t("licenseCCBYNCSA"),
          link: "http://creativecommons.org/licenses/by-nc-sa/:version",
          versions: t,
        },
        "CC BY-NC-ND": {
          label: H5P.t("licenseCCBYNCND"),
          link: "http://creativecommons.org/licenses/by-nc-nd/:version",
          versions: t,
        },
        "CC0 1.0": {
          label: H5P.t("licenseCC010"),
          link: "https://creativecommons.org/publicdomain/zero/1.0/",
        },
        "GNU GPL": {
          label: H5P.t("licenseGPL"),
          link: "http://www.gnu.org/licenses/gpl-:version-standalone.html",
          linkVersions: { v3: "3.0", v2: "2.0", v1: "1.0" },
          versions: {
            default: "v3",
            v3: H5P.t("licenseV3"),
            v2: H5P.t("licenseV2"),
            v1: H5P.t("licenseV1"),
          },
        },
        PD: {
          label: H5P.t("licensePD"),
          versions: {
            "CC0 1.0": {
              label: H5P.t("licenseCC010"),
              link: "https://creativecommons.org/publicdomain/zero/1.0/",
            },
            "CC PDM": {
              label: H5P.t("licensePDM"),
              link: "https://creativecommons.org/publicdomain/mark/1.0/",
            },
          },
        },
        "ODC PDDL":
          '<a href="http://opendatacommons.org/licenses/pddl/1.0/" target="_blank">Public Domain Dedication and Licence</a>',
        "CC PDM": {
          label: H5P.t("licensePDM"),
          link: "https://creativecommons.org/publicdomain/mark/1.0/",
        },
        C: H5P.t("licenseC"),
      }),
        H5P.isFramed &&
          !1 === H5P.externalEmbed &&
          H5P.externalDispatcher.on("*", function (e) {
            window.parent.H5P.externalDispatcher.trigger.call(this, e);
          }),
        H5P.preventInit || H5P.init(document.body),
        !1 !== H5PIntegration.saveFreq &&
          ((i = 0),
          (e = function () {
            var e = new Date().getTime();
            if (250 < e - i) {
              i = e;
              for (var t = 0; t < H5P.instances.length; t++) {
                var n,
                  r = H5P.instances[t];
                !(
                  r.getCurrentState instanceof Function ||
                  "function" == typeof r.getCurrentState
                ) ||
                  (void 0 !== (n = r.getCurrentState()) &&
                    H5P.setUserData(r.contentId, "state", n, {
                      deleteOnChange: !0,
                      async: !1,
                    }));
              }
            }
          }),
          H5P.$window.one("beforeunload unload", function () {
            (H5P.$window.off("pagehide beforeunload unload"), e());
          }),
          H5P.$window.on("pagehide", e)));
    });
  })(H5P.jQuery),
  ((H5P = window.H5P = window.H5P || {}).Event = function (e, t, n) {
    ((this.type = e), (this.data = t));
    var r = !1,
      i = !1,
      o = !1;
    (!0 === (n = void 0 === n ? {} : n).bubbles && (r = !0),
      !0 === n.external && (i = !0),
      (this.preventBubbling = function () {
        r = !1;
      }),
      (this.getBubbles = function () {
        return r;
      }),
      (this.scheduleForExternal = function () {
        return !(!i || o) && (o = !0);
      }));
  }),
  (H5P.EventDispatcher = function () {
    var i = this,
      a = {};
    function r(e, t) {
      if (void 0 !== a[e])
        for (var n = a[e].slice(), r = 0; r < n.length; r++) {
          var i = n[r],
            o = i.thisArg || this;
          i.listener.call(o, t);
        }
    }
    ((this.on = function (e, t, n) {
      if ("function" != typeof t)
        throw TypeError("listener must be a function");
      i.trigger("newListener", { type: e, listener: t });
      n = { listener: t, thisArg: n };
      a[e] ? a[e].push(n) : (a[e] = [n]);
    }),
      (this.once = function (e, t, n) {
        if (!(t instanceof Function))
          throw TypeError("listener must be a function");
        var r = function (e) {
          (i.off(e.type, r), t.call(this, e));
        };
        i.on(e, r, n);
      }),
      (this.off = function (e, t) {
        if (void 0 !== t && !(t instanceof Function))
          throw TypeError("listener must be a function");
        if (void 0 !== a[e]) {
          if (void 0 === t)
            return (delete a[e], void i.trigger("removeListener", e));
          for (var n = 0; n < a[e].length; n++)
            if (a[e][n].listener === t) {
              (a[e].splice(n, 1),
                i.trigger("removeListener", e, { listener: t }));
              break;
            }
          a[e].length || delete a[e];
        }
      }),
      (this.trigger = function (e, t, n) {
        void 0 !== e &&
          (e instanceof String || "string" == typeof e
            ? (e = new H5P.Event(e, t, n))
            : void 0 !== t && (e.data = t),
          (t = e.scheduleForExternal()),
          r.call(this, e.type, e),
          r.call(this, "*", e),
          e.getBubbles() &&
            i.parent instanceof H5P.EventDispatcher &&
            (i.parent.trigger instanceof Function ||
              "function" == typeof i.parent.trigger) &&
            i.parent.trigger(e),
          t && H5P.externalDispatcher.trigger.call(this, e));
      }));
  }),
  ((H5P = window.H5P = window.H5P || {}).XAPIEvent = function () {
    H5P.Event.call(
      this,
      "xAPI",
      { statement: {} },
      { bubbles: !0, external: !0 },
    );
  }),
  (H5P.XAPIEvent.prototype = Object.create(H5P.Event.prototype)),
  (H5P.XAPIEvent.prototype.constructor = H5P.XAPIEvent),
  (H5P.XAPIEvent.prototype.setScoredResult = function (e, t, n, r, i) {
    ((this.data.statement.result = {}),
      void 0 !== e &&
        (void 0 === t
          ? (this.data.statement.result.score = { raw: e })
          : ((this.data.statement.result.score = { min: 0, max: t, raw: e }),
            0 < t &&
              (this.data.statement.result.score.scaled =
                Math.round((e / t) * 1e4) / 1e4))),
      (this.data.statement.result.completion =
        void 0 === r
          ? "completed" === this.getVerb() || "answered" === this.getVerb()
          : r),
      void 0 !== i && (this.data.statement.result.success = i),
      n &&
        n.activityStartTime &&
        ((n = Math.round((Date.now() - n.activityStartTime) / 10) / 100),
        (this.data.statement.result.duration = "PT" + n + "S")));
  }),
  (H5P.XAPIEvent.prototype.setVerb = function (e) {
    -1 !== H5P.jQuery.inArray(e, H5P.XAPIEvent.allowedXAPIVerbs)
      ? (this.data.statement.verb = {
          id: "http://adlnet.gov/expapi/verbs/" + e,
          display: { "en-US": e },
        })
      : void 0 !== e.id && (this.data.statement.verb = e);
  }),
  (H5P.XAPIEvent.prototype.getVerb = function (e) {
    var t = this.data.statement;
    return "verb" in t ? (!0 === e ? t.verb : t.verb.id.slice(31)) : null;
  }),
  (H5P.XAPIEvent.prototype.setObject = function (e) {
    e.contentId
      ? ((this.data.statement.object = {
          id: this.getContentXAPIId(e),
          objectType: "Activity",
          definition: {
            extensions: {
              "http://h5p.org/x-api/h5p-local-content-id": e.contentId,
            },
          },
        }),
        e.subContentId
          ? ((this.data.statement.object.definition.extensions[
              "http://h5p.org/x-api/h5p-subContentId"
            ] = e.subContentId),
            "function" == typeof e.getTitle &&
              (this.data.statement.object.definition.name = {
                "en-US": e.getTitle(),
              }))
          : (e = H5P.getContentForInstance(e.contentId)) &&
            e.metadata &&
            e.metadata.title &&
            (this.data.statement.object.definition.name = {
              "en-US": H5P.createTitle(e.metadata.title),
            }))
      : (this.data.statement.object = { definition: {} });
  }),
  (H5P.XAPIEvent.prototype.setContext = function (e) {
    (e.parent &&
      (e.parent.contentId || e.parent.subContentId) &&
      (this.data.statement.context = {
        contextActivities: {
          parent: [
            { id: this.getContentXAPIId(e.parent), objectType: "Activity" },
          ],
        },
      }),
      e.libraryInfo &&
        (void 0 === this.data.statement.context &&
          (this.data.statement.context = { contextActivities: {} }),
        (this.data.statement.context.contextActivities.category = [
          {
            id:
              "http://h5p.org/libraries/" + e.libraryInfo.versionedNameNoSpaces,
            objectType: "Activity",
          },
        ])));
  }),
  (H5P.XAPIEvent.prototype.setActor = function () {
    if (void 0 !== H5PIntegration.user)
      this.data.statement.actor = {
        name: H5PIntegration.user.name,
        mbox: "mailto:" + H5PIntegration.user.mail,
        objectType: "Agent",
      };
    else {
      var t;
      try {
        localStorage.H5PUserUUID
          ? (t = localStorage.H5PUserUUID)
          : ((t = H5P.createUUID()), (localStorage.H5PUserUUID = t));
      } catch (e) {
        t = "not-trackable-" + H5P.createUUID();
      }
      this.data.statement.actor = {
        account: { name: t, homePage: H5PIntegration.siteUrl },
        objectType: "Agent",
      };
    }
  }),
  (H5P.XAPIEvent.prototype.getMaxScore = function () {
    return this.getVerifiedStatementValue(["result", "score", "max"]);
  }),
  (H5P.XAPIEvent.prototype.getScore = function () {
    return this.getVerifiedStatementValue(["result", "score", "raw"]);
  }),
  (H5P.XAPIEvent.prototype.getContentXAPIId = function (e) {
    var t;
    return (
      e.contentId &&
        H5PIntegration &&
        H5PIntegration.contents &&
        H5PIntegration.contents["cid-" + e.contentId] &&
        ((t = H5PIntegration.contents["cid-" + e.contentId].url),
        e.subContentId && (t += "?subContentId=" + e.subContentId)),
      t
    );
  }),
  (H5P.XAPIEvent.prototype.isFromChild = function () {
    var e = this.getVerifiedStatementValue([
      "context",
      "contextActivities",
      "parent",
      0,
      "id",
    ]);
    return !e || -1 === e.indexOf("subContentId");
  }),
  (H5P.XAPIEvent.prototype.getVerifiedStatementValue = function (e) {
    for (var t = this.data.statement, n = 0; n < e.length; n++) {
      if (void 0 === t[e[n]]) return null;
      t = t[e[n]];
    }
    return t;
  }),
  (H5P.XAPIEvent.allowedXAPIVerbs = [
    "answered",
    "asked",
    "attempted",
    "attended",
    "commented",
    "completed",
    "exited",
    "experienced",
    "failed",
    "imported",
    "initialized",
    "interacted",
    "launched",
    "mastered",
    "passed",
    "preferred",
    "progressed",
    "registered",
    "responded",
    "resumed",
    "scored",
    "shared",
    "suspended",
    "terminated",
    "voided",
    "downloaded",
    "copied",
    "accessed-reuse",
    "accessed-embed",
    "accessed-copyright",
  ]),
  ((H5P = window.H5P = window.H5P || {}).externalDispatcher =
    new H5P.EventDispatcher()),
  (H5P.EventDispatcher.prototype.triggerXAPI = function (e, t) {
    this.trigger(this.createXAPIEventTemplate(e, t));
  }),
  (H5P.EventDispatcher.prototype.createXAPIEventTemplate = function (e, t) {
    var n = new H5P.XAPIEvent();
    if ((n.setActor(), n.setVerb(e), void 0 !== t))
      for (var r in t) n.data.statement[r] = t[r];
    return (
      "object" in n.data.statement || n.setObject(this),
      "context" in n.data.statement || n.setContext(this),
      n
    );
  }),
  (H5P.EventDispatcher.prototype.triggerXAPICompleted = function (e, t, n) {
    this.triggerXAPIScored(e, t, "completed", !0, n);
  }),
  (H5P.EventDispatcher.prototype.triggerXAPIScored = function (e, t, n, r, i) {
    n = this.createXAPIEventTemplate(n);
    (n.setScoredResult(e, t, this, r, i), this.trigger(n));
  }),
  (H5P.EventDispatcher.prototype.setActivityStarted = function () {
    void 0 === this.activityStartTime &&
      (void 0 !== this.contentId &&
        void 0 !== H5PIntegration.contents &&
        void 0 !== H5PIntegration.contents["cid-" + this.contentId] &&
        this.triggerXAPI("attempted"),
      (this.activityStartTime = Date.now()));
  }),
  (H5P.xAPICompletedListener = function (e) {
    var t, n;
    ("completed" !== e.getVerb() && "answered" !== e.getVerb()) ||
      e.getVerifiedStatementValue(["context", "contextActivities", "parent"]) ||
      ((t = e.getScore()),
      (n = e.getMaxScore()),
      (e = e.getVerifiedStatementValue([
        "object",
        "definition",
        "extensions",
        "http://h5p.org/x-api/h5p-local-content-id",
      ])),
      H5P.setFinished(e, t, n));
  }) /*!@license js/h5p-content-type.js by Joubel and other contributors, licensed under GNU GENERAL PUBLIC LICENSE Version 3*/,
  (H5P.ContentType = function (e) {
    function t() {}
    return (
      ((t.prototype = new H5P.EventDispatcher()).isRoot = function () {
        return e;
      }),
      (t.prototype.getLibraryFilePath = function (e) {
        return (
          H5P.getLibraryPath(this.libraryInfo.versionedNameNoSpaces) + "/" + e
        );
      }),
      t
    );
  }) /*!@license js/h5p-confirmation-dialog.js by Joubel and other contributors, licensed under GNU GENERAL PUBLIC LICENSE Version 3*/,
  (H5P.ConfirmationDialog = (function (P) {
    "use strict";
    function e(n) {
      P.call(this);
      var r = this;
      H5P.ConfirmationDialog.uniqueId += 1;
      var e = H5P.ConfirmationDialog.uniqueId;
      function t(e) {
        (r.hide(), r.trigger("confirmed"), e.preventDefault());
      }
      function i(e) {
        (r.hide(), r.trigger("canceled"), e.preventDefault());
      }
      function o(e, t) {
        (e.focus(), t.preventDefault());
      }
      (((n = n || {}).headerText =
        n.headerText || H5P.t("confirmDialogHeader")),
        (n.dialogText = n.dialogText || H5P.t("confirmDialogBody")),
        (n.cancelText = n.cancelText || H5P.t("cancelLabel")),
        (n.confirmText = n.confirmText || H5P.t("confirmLabel")));
      var a = 32,
        s = 8,
        c = !1,
        l = document.createElement("div");
      l.classList.add("h5p-confirmation-dialog-background", "hidden", "hiding");
      var u = document.createElement("div");
      (u.classList.add("h5p-confirmation-dialog-popup", "hidden"),
        n.classes &&
          n.classes.forEach(function (e) {
            u.classList.add(e);
          }),
        u.setAttribute("role", "dialog"),
        u.setAttribute(
          "aria-labelledby",
          "h5p-confirmation-dialog-dialog-text-" + e,
        ),
        l.appendChild(u),
        u.addEventListener("keydown", function (e) {
          27 === e.which && i(e);
        }));
      var d = document.createElement("div");
      (d.classList.add("h5p-confirmation-dialog-header"), u.appendChild(d));
      var p = document.createElement("div");
      (p.classList.add("h5p-confirmation-dialog-header-text"),
        (p.innerHTML = n.headerText),
        d.appendChild(p));
      d = document.createElement("div");
      (d.classList.add("h5p-confirmation-dialog-body"), u.appendChild(d));
      p = document.createElement("div");
      (p.classList.add("h5p-confirmation-dialog-text"),
        (p.innerHTML = n.dialogText),
        (p.id = "h5p-confirmation-dialog-dialog-text-" + e),
        d.appendChild(p));
      p = document.createElement("div");
      (p.classList.add("h5p-confirmation-dialog-buttons"), d.appendChild(p));
      var h = document.createElement("button");
      (h.classList.add("h5p-core-cancel-button"),
        (h.textContent = n.cancelText));
      var f = document.createElement("button");
      (f.classList.add("h5p-core-button"),
        f.classList.add("h5p-confirmation-dialog-confirm-button"),
        (f.textContent = n.confirmText));
      var v,
        m,
        d = document.createElement("button");
      (d.classList.add("h5p-confirmation-dialog-exit"),
        d.setAttribute("aria-hidden", "true"),
        (d.tabIndex = -1),
        (d.title = n.cancelText),
        h.addEventListener("click", i),
        h.addEventListener("keydown", function (e) {
          32 === e.which ? i(e) : 9 === e.which && e.shiftKey && o(f, e);
        }),
        n.hideCancel ? p.classList.add("center") : p.appendChild(h),
        f.addEventListener("click", t),
        f.addEventListener("keydown", function (e) {
          32 === e.which
            ? t(e)
            : 9 !== e.which || e.shiftKey || o(n.hideCancel ? f : h, e);
        }),
        p.appendChild(f),
        d.addEventListener("click", i),
        d.addEventListener("keydown", function (e) {
          32 === e.which && i(e);
        }),
        n.hideExit || u.appendChild(d));
      var g,
        b = [],
        y = [];
      this.appendTo = function (e) {
        return ((v = e), this);
      };
      var w = function (e) {
          l.contains(e.target) || (e.preventDefault(), f.focus());
        },
        x = function (e) {
          for (
            var t = [], n = e.parentNode.children, r = 0;
            r < n.length;
            r += 1
          )
            ((t[r] = !!n[r].getAttribute("aria-hidden")),
              n[r] !== e && n[r].setAttribute("aria-hidden", !0));
          return t;
        },
        S = function (e, t) {
          for (var n = e.parentNode.children, r = 0; r < n.length; r += 1)
            n[r] === e || t[r] || n[r].removeAttribute("aria-hidden");
        };
      ((this.show = function (e) {
        var t;
        return (
          (g = document.activeElement),
          v.appendChild(l),
          (m = v.parentNode || v).addEventListener("focus", w, !0),
          (b = x(v)),
          (y = x(l)),
          l.classList.remove("hidden"),
          (t = e),
          (e = parseInt(u.style.top, 10)),
          (e =
            (e = (e = void 0 !== t ? t : e) || 0) + u.offsetHeight >
            v.offsetHeight
              ? v.offsetHeight - u.offsetHeight - s
              : e) -
            a <=
            0 && ((e = a + s), (c = !0)),
          (u.style.top = e + "px"),
          setTimeout(function () {
            (u.classList.remove("hidden"),
              l.classList.remove("hiding"),
              setTimeout(function () {
                var e;
                (f.focus(),
                  c &&
                    n.instance &&
                    ((e = parseInt(u.offsetHeight, 10) + a + 2 * s),
                    r.setViewPortMinimumHeight(e),
                    n.instance.trigger("resize"),
                    (c = !1)));
              }, 100));
          }, 0),
          this
        );
      }),
        (this.hide = function () {
          return (
            l.classList.add("hiding"),
            u.classList.add("hidden"),
            m.removeAttribute("aria-hidden"),
            m.removeEventListener("focus", w, !0),
            n.skipRestoreFocus || g.focus(),
            S(v, b),
            S(l, y),
            setTimeout(function () {
              (l.classList.add("hidden"),
                v.removeChild(l),
                r.setViewPortMinimumHeight(null));
            }, 100),
            this
          );
        }),
        (this.getElement = function () {
          return u;
        }),
        (this.getPreviouslyFocused = function () {
          return g;
        }),
        (this.setViewPortMinimumHeight = function (e) {
          (
            document.querySelector(".h5p-container") || document.body
          ).style.minHeight = "number" == typeof e ? e + "px" : e;
        }));
    }
    return ((e.prototype = Object.create(P.prototype)).constructor = e);
  })(H5P.EventDispatcher)),
  (H5P.ConfirmationDialog.uniqueId =
    -1) /*!@license js/h5p-action-bar.js by Joubel and other contributors, licensed under GNU GENERAL PUBLIC LICENSE Version 3*/,
  (H5P.ActionBar = (function (n) {
    "use strict";
    function e(e) {
      n.call(this);
      function t(e, t) {
        function n() {
          r.trigger(e);
        }
        (H5P.jQuery("<li/>", {
          class: "h5p-button h5p-noselect h5p-" + (t || e),
          role: "button",
          tabindex: 0,
          title: H5P.t(e + "Description"),
          html: H5P.t(e),
          on: {
            click: n,
            keypress: function (e) {
              32 === e.which && (n(), e.preventDefault());
            },
          },
          appendTo: o,
        }),
          (i = !0));
      }
      var r = this,
        i = !1,
        o = H5P.jQuery('<ul class="h5p-actions"></ul>');
      ((e.export || e.copy) && t("reuse", "export"),
        e.copyright && t("copyrights"),
        e.embed && t("embed"),
        e.icon &&
          (H5P.jQuery(
            '<li><a class="h5p-link" href="http://h5p.org" target="_blank" title="' +
              H5P.t("h5pDescription") +
              '"></a></li>',
          ).appendTo(o),
          (i = !0)),
        (r.getDOMElement = function () {
          return o;
        }),
        (r.hasActions = function () {
          return i;
        }));
    }
    return ((e.prototype = Object.create(n.prototype)).constructor = e);
  })(
    (H5P.jQuery, H5P.EventDispatcher),
  )) /*!@license js/request-queue.js by Joubel and other contributors, licensed under GNU GENERAL PUBLIC LICENSE Version 3*/,
  (H5P.RequestQueue = (function (n, t) {
    function e(e) {
      (t.call(this),
        (this.processingQueue = !1),
        (this.showToast = (e = e || {}).showToast),
        (this.itemName = "requestQueue"));
    }
    return (
      (e.prototype.add = function (e, t) {
        if (!window.localStorage) return !1;
        let n = this.getStoredRequests();
        return (
          (n = n || []),
          n.push({ url: e, data: t }),
          window.localStorage.setItem(this.itemName, JSON.stringify(n)),
          this.trigger("requestQueued", {
            storedStatements: n,
            processingQueue: this.processingQueue,
          }),
          !0
        );
      }),
      (e.prototype.getStoredRequests = function () {
        if (!window.localStorage) return !1;
        var e = window.localStorage.getItem(this.itemName);
        return e ? JSON.parse(e) : [];
      }),
      (e.prototype.clearQueue = function () {
        return (
          !!window.localStorage &&
          (window.localStorage.removeItem(this.itemName), !0)
        );
      }),
      (e.prototype.resumeQueue = function () {
        if (!H5PIntegration || !window.navigator || !window.localStorage)
          return !1;
        if (this.processingQueue) return !1;
        var e = this.getStoredRequests(),
          t = e.length;
        return (
          this.clearQueue(),
          t
            ? ((this.processingQueue = !0), this.processQueue(e))
            : this.trigger("emptiedQueue", e),
          !0
        );
      }),
      (e.prototype.processQueue = function (e) {
        var t;
        e.length &&
          (this.trigger("processingQueue"),
          (t = e.shift()),
          n
            .post(t.url, t.data)
            .fail(this.onQueuedRequestFail.bind(this, t))
            .always(this.onQueuedRequestProcessed.bind(this, e)));
      }),
      (e.prototype.onQueuedRequestFail = function (e) {
        window.navigator.onLine || this.add(e.url, e.data);
      }),
      (e.prototype.onQueuedRequestProcessed = function (e) {
        e.length
          ? this.processQueue(e)
          : ((this.processingQueue = !1),
            (e = this.getStoredRequests()),
            this.trigger("queueEmptied", e));
      }),
      (e.prototype.displayToastMessage = function (e, t, n) {
        (this.showToast || t) &&
          ((n = H5P.jQuery.extend(
            !0,
            {},
            {
              position: {
                horizontal: "centered",
                vertical: "centered",
                noOverflowX: !0,
              },
            },
            n,
          )),
          H5P.attachToastTo(H5P.jQuery(".h5p-content:first")[0], e, n));
      }),
      e
    );
  })(H5P.jQuery, H5P.EventDispatcher)),
  (H5P.OfflineRequestQueue = (function (w, x) {
    return function (e) {
      const n = new w();
      n.clearQueue();
      let r = null;
      const i = [10, 20, 40, 60, 120, 300, 600];
      let o = -1,
        t = null,
        a = !1,
        s = !1,
        c = !1;
      e = e.instance;
      const l = new x({
          headerText: H5P.t("offlineDialogHeader"),
          dialogText: H5P.t("offlineDialogBody"),
          confirmText: H5P.t("offlineDialogRetryButtonLabel"),
          hideCancel: !0,
          hideExit: !0,
          classes: ["offline"],
          instance: e,
          skipRestoreFocus: !0,
        }),
        u = l.getElement(),
        d = document.createElement("div");
      (d.classList.add("count-down"),
        (d.innerHTML = H5P.t("offlineDialogRetryMessage").replace(
          ":num",
          '<span class="count-down-num">0</span>',
        )),
        u.querySelector(".h5p-confirmation-dialog-text").appendChild(d));
      const p = d.querySelector(".count-down-num"),
        h = document.createElement("div");
      h.classList.add("throbber-wrapper");
      const f = document.createElement("div");
      (f.classList.add("sending-requests-throbber"),
        h.appendChild(f),
        n.on(
          "requestQueued",
          function (e) {
            if (!e.data || !e.data.processingQueue) {
              if (!a) {
                const t = document.body.querySelector(".h5p-content");
                if (!t) return;
                (l.appendTo(t), t.appendChild(h), (a = !0));
              }
              b();
            }
          }.bind(this),
        ),
        n.on(
          "queueEmptied",
          function (e) {
            e.data && e.data.length
              ? b(!0)
              : (clearInterval(t),
                v(!1),
                (o = -1),
                s && (l.hide(), (s = !1)),
                n.displayToastMessage(H5P.t("offlineSuccessfulSubmit"), !0, {
                  position: { vertical: "top", offsetVertical: "100" },
                }));
          }.bind(this),
        ),
        l.on(
          "confirmed",
          function () {
            ((s = !1),
              setTimeout(function () {
                m();
              }, 100));
          }.bind(this),
        ),
        window.addEventListener(
          "online",
          function () {
            m();
          }.bind(this),
        ),
        window.addEventListener(
          "message",
          function (e) {
            window.parent === e.source &&
              "h5p" === e.data.context &&
              "queueRequest" === e.data.action &&
              this.add(e.data.url, e.data.data);
          }.bind(this),
        ));
      const v = function (e) {
          ((c = !c),
            void 0 !== e && (c = e),
            c && s && (l.hide(), (s = !1)),
            c ? h.classList.add("show") : h.classList.remove("show"));
        },
        m = function () {
          (clearInterval(t), v(!0), n.resumeQueue());
        },
        g = function () {
          ((o += 1), o >= i.length && (o = i.length - 1));
        },
        b = function (e) {
          s ||
            (v(!1),
            s ||
              (e
                ? setTimeout(function () {
                    l.show(0);
                  }, 100)
                : l.show(0)),
            (s = !0),
            (r = new Date().getTime()),
            g(),
            clearInterval(t),
            (t = setInterval(y, 100)));
        },
        y = function () {
          var e = new Date().getTime(),
            e = Math.floor((e - r) / 1e3);
          const t = i[o] - e;
          ((p.textContent = t.toString()), t <= 0 && m());
        };
      this.add = function (e, t) {
        if (window.navigator.onLine) return !1;
        n.add(e, t);
      };
    };
  })(H5P.RequestQueue, H5P.ConfirmationDialog)),
  (function (r) {
    ((H5P.Image = function (e, t, n) {
      (H5P.EventDispatcher.call(this),
        (this.extras = n),
        void 0 !== e.file && e.file instanceof Object
          ? ((this.source = H5P.getPath(e.file.path, t)),
            (this.width = e.file.width),
            (this.height = e.file.height))
          : (this.placeholder = !0),
        (this.alt =
          e.decorative || void 0 === e.alt
            ? ""
            : this.stripHTML(this.htmlDecode(e.alt))),
        void 0 !== e.title &&
          (this.title = this.stripHTML(this.htmlDecode(e.title))));
    }),
      (H5P.Image.prototype = Object.create(H5P.EventDispatcher.prototype)),
      (H5P.Image.prototype.constructor = H5P.Image),
      (H5P.Image.prototype.attach = function (e) {
        var t = this,
          n = this.source;
        (void 0 === t.$img &&
          (t.placeholder
            ? (t.$img = r("<div>", {
                width: "100%",
                height: "100%",
                class: "h5p-placeholder",
                title: void 0 === this.title ? "" : this.title,
                on: {
                  load: function () {
                    t.trigger("loaded");
                  },
                },
              }))
            : (t.$img = r("<img>", {
                width: "100%",
                height: "100%",
                src: n,
                alt: this.alt,
                title: void 0 === this.title ? "" : this.title,
                on: {
                  load: function () {
                    t.trigger("loaded");
                  },
                },
              }))),
          e.addClass("h5p-image").html(t.$img));
      }),
      (H5P.Image.prototype.htmlDecode = function (e) {
        return new DOMParser().parseFromString(e, "text/html").documentElement
          .textContent;
      }),
      (H5P.Image.prototype.stripHTML = function (e) {
        const t = document.createElement("div");
        return ((t.innerHTML = e), t.textContent || t.innerText || "");
      }),
      H5P.Image);
  })((H5P = H5P || {}).jQuery),
  /*!@license H5P.AdvancedText-1.1/text.js by Joubel licensed under unknown license*/ (H5P.AdvancedText =
    (function (r) {
      function e(e, t) {
        r.call(this);
        var n = void 0 === e.text ? "<em>New text</em>" : e.text;
        this.attach = function (e) {
          e.addClass("h5p-advanced-text").html(n);
        };
      }
      return ((e.prototype = Object.create(r.prototype)).constructor = e);
    })((H5P.jQuery, H5P.EventDispatcher))),
  ((H5P = H5P || {}).Transition = (function () {
    Transition = {
      transitionEndEventNames: {
        WebkitTransition: "webkitTransitionEnd",
        transition: "transitionend",
        MozTransition: "transitionend",
        OTransition: "oTransitionEnd",
        msTransition: "MSTransitionEnd",
      },
      cache: [],
      getVendorPropertyName: function (e) {
        if (void 0 !== Transition.cache[e]) return Transition.cache[e];
        var t = document.createElement("div");
        if (e in t.style) Transition.cache[e] = e;
        else {
          var n = ["Moz", "Webkit", "O", "ms"],
            r = e.charAt(0).toUpperCase() + e.substr(1);
          if (e in t.style) Transition.cache[e] = e;
          else
            for (var i = 0; i < n.length; ++i) {
              var o = n[i] + r;
              if (o in t.style) {
                Transition.cache[e] = o;
                break;
              }
            }
        }
        return Transition.cache[e];
      },
      getTransitionEndEventName: function () {
        return (
          Transition.transitionEndEventNames[
            Transition.getVendorPropertyName("transition")
          ] || void 0
        );
      },
      onTransitionEnd: function (e, t, n) {
        ((n = n || 1e3),
          (Transition.transitionEndEventName =
            Transition.transitionEndEventName ||
            Transition.getTransitionEndEventName()));
        function r() {
          i ||
            (e.off(Transition.transitionEndEventName, t),
            (i = !0),
            clearTimeout(o),
            t());
        }
        var i = !1,
          o = setTimeout(function () {
            r();
          }, n);
        e.on(Transition.transitionEndEventName, function () {
          r();
        });
      },
    };
    function r(e, t) {
      var n;
      t >= e.length ||
        ((n = e[t]),
        H5P.Transition.onTransitionEnd(
          n.$element,
          function () {
            (n.end && n.end(), !0 !== n.break && r(e, t + 1));
          },
          n.timeout || void 0,
        ));
    }
    return (
      (Transition.sequence = function (e) {
        r(e, 0);
      }),
      Transition
    );
  })(H5P.jQuery)),
  ((H5P = H5P || {}).JoubelHelpTextDialog = (function (u) {
    var d = 0;
    function e(e, t, n) {
      H5P.EventDispatcher.call(this);
      var r = this,
        i = "joubel-help-text-header-" + ++d,
        o = "joubel-help-text-body-" + d,
        a = u("<div>", {
          class: "joubel-help-text-dialog-box",
          role: "dialog",
          "aria-labelledby": i,
          "aria-describedby": o,
        });
      u("<div>", { class: "joubel-help-text-dialog-background" }).appendTo(a);
      var s = u("<div>", {
        class: "joubel-help-text-dialog-container",
      }).appendTo(a);
      (u("<div>", {
        class: "joubel-help-text-header",
        id: i,
        role: "header",
        html: e,
      }).appendTo(s),
        u("<div>", {
          class: "joubel-help-text-body",
          id: o,
          html: t,
          role: "document",
          tabindex: 0,
        }).appendTo(s));
      function c() {
        (a.remove(), r.trigger("closed"));
      }
      var l = u("<div>", {
        class: "joubel-help-text-remove",
        role: "button",
        title: n,
        tabindex: 1,
        click: c,
        keydown: function (e) {
          -1 !== [32, 13].indexOf(e.which) && (e.preventDefault(), c());
        },
      }).appendTo(s);
      ((r.getElement = function () {
        return a;
      }),
        (r.focus = function () {
          l.focus();
        }));
    }
    return ((e.prototype = Object.create(
      H5P.EventDispatcher.prototype,
    )).constructor = e);
  })(H5P.jQuery)),
  ((H5P = H5P || {}).JoubelMessageDialog = (function (o) {
    return function (e, t) {
      function n() {
        (r.remove(), clearTimeout(i), e.off("click.messageDialog"));
      }
      var r = o("<div/>", { class: "joubel-message-dialog", text: t }).appendTo(
          e,
        ),
        i = setTimeout(n, 3e3);
      return (e.on("click.messageDialog", n), r);
    };
  })(H5P.jQuery)),
  ((H5P = H5P || {}).JoubelProgressCircle = (function (s) {
    function e(t, e, n, r) {
      ((n = n || "#f0f0f0"), (r = r || "#ffffff"));
      var i = this.hexToRgb((e = e || "#1a73d9"));
      try {
        if ("" === (t = Number(t))) throw "is empty";
        if (isNaN(t)) throw "is not a number";
      } catch (e) {
        t = "err";
      }
      100 < t && (t = 100);
      var o =
          "rgb(" +
          parseInt(i.r, 10) +
          "," +
          parseInt(i.g, 10) +
          "," +
          parseInt(i.b, 10) +
          ")",
        a = s("<div/>", { class: "joubel-progress-circle-wrapper" }),
        e = s("<div/>", {
          class: "joubel-progress-circle-active-border",
        }).appendTo(a),
        i = s("<div/>", { class: "joubel-progress-circle-circle" }).appendTo(e);
      s("<span/>", {
        text: t + "%",
        class: "joubel-progress-circle-percentage",
      }).appendTo(i);
      t *= 3.6;
      return (
        (t <= 180
          ? e.css(
              "background-image",
              "linear-gradient(" +
                (90 + t) +
                "deg, transparent 50%, " +
                n +
                " 50%),linear-gradient(90deg, " +
                n +
                " 50%, transparent 50%)",
            )
          : e.css(
              "background-image",
              "linear-gradient(" +
                (t - 90) +
                "deg, transparent 50%, " +
                o +
                " 50%),linear-gradient(90deg, " +
                n +
                " 50%, transparent 50%)",
            )
        )
          .css("border", "2px solid" + r)
          .css("background-color", o),
        (this.$activeBorder = e),
        (this.$backgroundCircle = i),
        (this.$wrapper = a),
        this.initResizeFunctionality(),
        a
      );
    }
    return (
      (e.prototype.initResizeFunctionality = function () {
        var e = this;
        (s(window).resize(function () {
          setTimeout(function () {
            e.resize();
          });
        }),
          setTimeout(function () {
            e.resize();
          }, 0));
      }),
      (e.prototype.resize = function () {
        var e,
          t,
          n,
          r = this.$wrapper.parent();
        void 0 !== r &&
          r &&
          ((n = parseInt(r.css("font-size"), 10)),
          (t =
            (e =
              parseInt(n / 4.5, 10) % 2 == 0
                ? parseInt(n / 4.5, 10) + 4
                : parseInt(n / 4.5, 10) + 5) / 2),
          this.$activeBorder.css({
            width: (r = 3.75 * n),
            height: (n = 3.75 * n),
          }),
          this.$backgroundCircle.css({
            width: r - e,
            height: n - e,
            top: t,
            left: t,
          }));
      }),
      (e.prototype.hexToRgb = function (e) {
        e = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);
        return e
          ? {
              r: parseInt(e[1], 16),
              g: parseInt(e[2], 16),
              b: parseInt(e[3], 16),
            }
          : null;
      }),
      e
    );
  })(H5P.jQuery)),
  ((H5P = H5P || {}).SimpleRoundedButton = (function (n) {
    return function (e) {
      var t = n("<div>", {
        class: "joubel-simple-rounded-button",
        title: e,
        role: "button",
        tabindex: "0",
      }).keydown(function (e) {
        -1 !== [32, 13].indexOf(e.which) &&
          (n(this).click(), e.preventDefault());
      });
      return (
        n("<span>", {
          class: "joubel-simple-rounded-button-text",
          html: e,
        }).appendTo(t),
        t
      );
    };
  })(H5P.jQuery)),
  ((H5P = H5P || {}).JoubelSpeechBubble = (function (o) {
    var a,
      s,
      c,
      l,
      u,
      d,
      p = !!navigator.userAgent.match(/iPod|iPhone|iPad/g);
    function h(e) {
      var t = e.closest(".h5p-frame");
      return (t = !t.length ? e.closest(".h5p-container") : t);
    }
    function f() {
      v(a, s, d, c, l);
    }
    function v(e, t, n, r, i) {
      var o = (function (e, t) {
          ((e = e[0].getBoundingClientRect()),
            (t = t[0].getBoundingClientRect()));
          return {
            top: t.top - e.top,
            right: e.right - t.right,
            bottom: e.bottom - t.bottom,
            left: t.left - e.left,
            innerWidth: t.width,
            innerHeight: t.height,
            outerWidth: e.width,
            outerHeight: e.height,
          };
        })(h(t), t),
        a = o.bottom > o.top ? "bottom" : "top",
        s = 0.9 * o.outerWidth,
        n = n < s ? n : s,
        s = (function (e, t) {
          var n = {},
            r = e / 2;
          ((n.top = t.top + t.innerHeight),
            (n.bottom = t.bottom + t.innerHeight + 9),
            t.left < r
              ? (n.left = 3)
              : t.left + r > t.outerWidth
                ? (n.left = t.outerWidth - e - 3)
                : (n.left = t.left - r + t.innerWidth / 2));
          return n;
        })(n, o),
        t = (function (e, t, n, r) {
          var i = {},
            e = e - 20;
          ((i.left = n.left - t.left + r / 2 - 6), i.left < 9 && (i.left = 9));
          i.left > e && (i.left = e);
          return ((i.top = -6), (i.bottom = -6), i);
        })(n, s, o, t.width());
      e.css(
        ((e = n),
        (n = s),
        (s = 16),
        "top" === a
          ? {
              width: e + "px",
              bottom: n.bottom + "px",
              left: n.left + "px",
              fontSize: s + "px",
              top: "",
            }
          : {
              width: e + "px",
              top: n.top + "px",
              left: n.left + "px",
              fontSize: s + "px",
              bottom: "",
            }),
      );
      ((t = t),
        (t =
          "top" === a
            ? { bottom: t.bottom + "px", left: t.left + "px", top: "" }
            : { top: t.top + "px", left: t.left + "px", bottom: "" }));
      (r.css(t), i.css(t));
    }
    H5P.externalDispatcher.on("domHidden", function (e) {
      void 0 !== a && 0 !== e.data.$dom.find(s).length && m();
    });
    var m = function () {
      (H5P.$body.off("mousedown.speechBubble"),
        H5P.$window.off("resize", "", f),
        s.parents(".h5p-dialog").off("mousedown.speechBubble"),
        p && H5P.$body.css("cursor", ""),
        void 0 !== a &&
          (a.removeClass("show"),
          clearTimeout(u),
          (u = setTimeout(function () {
            (a.remove(), (a = void 0));
          }, 500))));
    };
    function g(e) {
      e.target !== s[0] && (m(), (s = void 0));
    }
    return function (e, t, n) {
      ((d = n = n || 400),
        (s = e),
        (this.isCurrent = function (e) {
          return e.is(s);
        }),
        (this.remove = function () {
          m();
        }),
        void 0 !== a && m());
      var r,
        i = h(e);
      return (
        (r = a) &&
          (clearTimeout(u),
          r.removeClass("show"),
          setTimeout(function () {
            r && (r.remove(), (r = void 0));
          }, 500)),
        (c = o('<div class="joubel-speech-bubble-tail"></div>')),
        (l = o('<div class="joubel-speech-bubble-inner-tail"></div>')),
        (t = o(
          '<div class="joubel-speech-bubble-inner"><div class="joubel-speech-bubble-text">' +
            t +
            "</div></div>",
        ).prepend(l)),
        (a = o('<div class="joubel-speech-bubble" aria-live="assertive">')
          .append([c, t])
          .appendTo(i)),
        setTimeout(function () {
          a.addClass("show");
        }, 0),
        v(a, s, n, c, l),
        H5P.$body.on("mousedown.speechBubble", g),
        H5P.$window.on("resize", "", f),
        e.parents(".h5p-dialog").on("mousedown.speechBubble", g),
        p && H5P.$body.css("cursor", "pointer"),
        this
      );
    };
  })(H5P.jQuery)),
  ((H5P = H5P || {}).JoubelThrobber = (function (e) {
    return function () {
      return e("<div/>", { class: "h5p-throbber" });
    };
  })(H5P.jQuery)),
  /*!@license H5P.JoubelUI-1.3/js/joubel-tip.js by Joubel licensed under unknown license*/ (H5P.JoubelTip =
    (function (s) {
      var c = s("<div/>");
      return function (t, n) {
        var r,
          e = c.html(t).text().trim();
        if ("" !== e) {
          n = s.extend(
            { tipLabel: e, helpIcon: !1, showSpeechBubble: !0, tabcontrol: !1 },
            n,
          );
          var i = s("<div/>", {
            class:
              "joubel-tip-container" + (n.showSpeechBubble ? "" : " be-quiet"),
            "aria-label": n.tipLabel,
            "aria-expanded": !1,
            role: "button",
            tabindex: n.tabcontrol ? -1 : 0,
            click: function (e) {
              (o(), e.preventDefault());
            },
            keydown: function (e) {
              32 === e.which || 13 === e.which
                ? (o(), e.stopPropagation(), e.preventDefault())
                : o(!1);
            },
            html:
              '<span class="joubel-icon-tip-normal ' +
              (n.helpIcon ? " help-icon" : "") +
              '"><span class="h5p-icon-shadow"></span><span class="h5p-icon-speech-bubble"></span><span class="h5p-icon-info"></span></span>',
          });
          const a = s("<div>", {
            class: "hidden-but-read",
            "aria-live": "polite",
            appendTo: i,
          });
          var o = function (e) {
            void 0 !== r && r.isCurrent(i)
              ? (r.remove(),
                (r = void 0),
                i.attr("aria-expanded", !1),
                a.html(""))
              : !1 !== e &&
                n.showSpeechBubble &&
                ((r = H5P.JoubelSpeechBubble(i, t)),
                i.attr("aria-expanded", !0),
                a.html(t));
          };
          return i;
        }
      };
    })(H5P.jQuery)),
  ((H5P = H5P || {}).JoubelSlider = (function (t) {
    function e(e) {
      (H5P.EventDispatcher.call(this),
        (this.$slider = t(
          "<div>",
          t.extend({ class: "h5p-joubel-ui-slider" }, e),
        )),
        (this.$slides = []),
        (this.currentIndex = 0),
        (this.numSlides = 0));
    }
    return (
      (((e.prototype = Object.create(
        H5P.EventDispatcher.prototype,
      )).constructor = e).prototype.addSlide = function (e) {
        (e
          .addClass("h5p-joubel-ui-slide")
          .css({ left: 100 * this.numSlides + "%" }),
          this.$slider.append(e),
          this.$slides.push(e),
          this.numSlides++,
          1 === this.numSlides && e.addClass("current"));
      }),
      (e.prototype.attach = function (e) {
        e.append(this.$slider);
      }),
      (e.prototype.move = function (e) {
        var t = this;
        (0 === e && t.trigger("first-slide"),
          e + 1 === t.numSlides && t.trigger("last-slide"),
          t.trigger("move"));
        var n = t.$slides[this.currentIndex];
        (H5P.Transition.onTransitionEnd(this.$slider, function () {
          (n.removeClass("current"), t.trigger("moved"));
        }),
          this.$slides[e].addClass("current"));
        var r = "translateX(" + 100 * -e + "%)";
        (this.$slider.css({
          "-webkit-transform": r,
          "-moz-transform": r,
          "-ms-transform": r,
          transform: r,
        }),
          (this.currentIndex = e));
      }),
      (e.prototype.remove = function () {
        this.$slider.remove();
      }),
      (e.prototype.next = function () {
        this.currentIndex + 1 >= this.numSlides ||
          this.move(this.currentIndex + 1);
      }),
      (e.prototype.previous = function () {
        this.move(this.currentIndex - 1);
      }),
      (e.prototype.first = function () {
        this.move(0);
      }),
      (e.prototype.last = function () {
        this.move(this.numSlides - 1);
      }),
      e
    );
  })(H5P.jQuery)),
  ((H5P = H5P || {}).JoubelScoreBar = (function (a) {
    var s = 0;
    return function (e, t, n, r) {
      var i = this;
      function o(e) {
        return t ? t.replace(":num", e).replace(":total", i.maxScore) : "";
      }
      ((i.maxScore = e),
        (i.score = 0),
        s++,
        (i.STAR_MARKUP =
          '<svg tabindex="-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 63.77 53.87" aria-hidden="true" focusable="false"><title>star</title><filter tabindex="-1" id="h5p-joubelui-score-bar-star-inner-shadow-' +
          s +
          '" x0="-50%" y0="-50%" width="200%" height="200%"><feGaussianBlur in="SourceAlpha" stdDeviation="3" result="blur"></feGaussianBlur><feOffset dy="2" dx="4"></feOffset><feComposite in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowDiff"></feComposite><feFlood flood-color="#ffe95c" flood-opacity="1"></feFlood><feComposite in2="shadowDiff" operator="in"></feComposite><feComposite in2="SourceGraphic" operator="over" result="firstfilter"></feComposite><feGaussianBlur in="firstfilter" stdDeviation="3" result="blur2"></feGaussianBlur><feOffset dy="-2" dx="-4"></feOffset><feComposite in2="firstfilter" operator="arithmetic" k2="-1" k3="1" result="shadowDiff"></feComposite><feFlood flood-color="#ffe95c" flood-opacity="1"></feFlood><feComposite in2="shadowDiff" operator="in"></feComposite><feComposite in2="firstfilter" operator="over"></feComposite></filter><path tabindex="-1" class="h5p-joubelui-score-bar-star-shadow" d="M35.08,43.41V9.16H20.91v0L9.51,10.85,9,10.93C2.8,12.18,0,17,0,21.25a11.22,11.22,0,0,0,3,7.48l8.73,8.53-1.07,6.16Z"/><g tabindex="-1"><path tabindex="-1" class="h5p-joubelui-score-bar-star-border" d="M61.36,22.8,49.72,34.11l2.78,16a2.6,2.6,0,0,1,.05.64c0,.85-.37,1.6-1.33,1.6A2.74,2.74,0,0,1,49.94,52L35.58,44.41,21.22,52a2.93,2.93,0,0,1-1.28.37c-.91,0-1.33-.75-1.33-1.6,0-.21.05-.43.05-.64l2.78-16L9.8,22.8A2.57,2.57,0,0,1,9,21.25c0-1,1-1.33,1.81-1.49l16.07-2.35L34.09,2.83c.27-.59.85-1.33,1.55-1.33s1.28.69,1.55,1.33l7.21,14.57,16.07,2.35c.75.11,1.81.53,1.81,1.49A3.07,3.07,0,0,1,61.36,22.8Z"/><path tabindex="-1" class="h5p-joubelui-score-bar-star-fill" d="M61.36,22.8,49.72,34.11l2.78,16a2.6,2.6,0,0,1,.05.64c0,.85-.37,1.6-1.33,1.6A2.74,2.74,0,0,1,49.94,52L35.58,44.41,21.22,52a2.93,2.93,0,0,1-1.28.37c-.91,0-1.33-.75-1.33-1.6,0-.21.05-.43.05-.64l2.78-16L9.8,22.8A2.57,2.57,0,0,1,9,21.25c0-1,1-1.33,1.81-1.49l16.07-2.35L34.09,2.83c.27-.59.85-1.33,1.55-1.33s1.28.69,1.55,1.33l7.21,14.57,16.07,2.35c.75.11,1.81.53,1.81,1.49A3.07,3.07,0,0,1,61.36,22.8Z"/><path tabindex="-1" filter="url(#h5p-joubelui-score-bar-star-inner-shadow-' +
          s +
          ')" class="h5p-joubelui-score-bar-star-fill-full-score" d="M61.36,22.8,49.72,34.11l2.78,16a2.6,2.6,0,0,1,.05.64c0,.85-.37,1.6-1.33,1.6A2.74,2.74,0,0,1,49.94,52L35.58,44.41,21.22,52a2.93,2.93,0,0,1-1.28.37c-.91,0-1.33-.75-1.33-1.6,0-.21.05-.43.05-.64l2.78-16L9.8,22.8A2.57,2.57,0,0,1,9,21.25c0-1,1-1.33,1.81-1.49l16.07-2.35L34.09,2.83c.27-.59.85-1.33,1.55-1.33s1.28.69,1.55,1.33l7.21,14.57,16.07,2.35c.75.11,1.81.53,1.81,1.49A3.07,3.07,0,0,1,61.36,22.8Z"/></g></svg>'),
        (i.appendTo = function (e) {
          i.$scoreBar.appendTo(e);
        }),
        (i.setScore = function (e) {
          e !== i.score &&
            ((i.score = e > i.maxScore ? i.maxScore : e), i.updateVisuals());
        }),
        (i.incrementScore = function (e) {
          i.setScore(i.score + (e || 1));
        }),
        (i.setMaxScore = function (e) {
          i.maxScore = e;
        }),
        (i.updateVisuals = function () {
          (i.$progress.html(o(i.score)),
            i.$scoreCounter.text(i.score),
            i.$maxScore.text(i.maxScore),
            setTimeout(function () {
              (i.$progress.css({ width: (i.score / i.maxScore) * 100 + "%" }),
                H5P.Transition.onTransitionEnd(
                  i.$progress,
                  function () {
                    (i.$scoreBar.toggleClass(
                      "h5p-joubelui-score-bar-full-score",
                      i.score === i.maxScore,
                    ),
                      i.$scoreBar.toggleClass(
                        "h5p-joubelui-score-bar-animation-active",
                        i.score === i.maxScore,
                      ),
                      i.$scoreBar.one("animationend", function () {
                        i.$scoreBar.removeClass(
                          "h5p-joubelui-score-bar-animation-active",
                        );
                      }));
                  },
                  600,
                ));
            }, 300));
        }),
        (i.reset = function () {
          i.$scoreBar.removeClass("h5p-joubelui-score-bar-full-score");
        }),
        (function () {
          i.$scoreBar = a("<div>", { class: "h5p-joubelui-score-bar" });
          var e = a("<div>", {
            class: "h5p-joubelui-score-bar-visuals",
            appendTo: i.$scoreBar,
          });
          ((i.$progressWrapper = a("<div>", {
            class: "h5p-joubelui-score-bar-progress-wrapper",
            appendTo: e,
          })),
            (i.$progress = a("<div>", {
              class: "h5p-joubelui-score-bar-progress",
              html: o(i.score),
              appendTo: i.$progressWrapper,
            })),
            a("<div>", {
              class: "h5p-joubelui-score-bar-star",
              html: i.STAR_MARKUP,
            }).appendTo(e));
          e = a("<div>", {
            class: "h5p-joubelui-score-numeric",
            appendTo: i.$scoreBar,
            "aria-hidden": !0,
          });
          ((i.$scoreCounter = a("<span>", {
            class:
              "h5p-joubelui-score-number h5p-joubelui-score-number-counter",
            text: 0,
            appendTo: e,
          })),
            a("<span>", {
              class: "h5p-joubelui-score-number-separator",
              text: "/",
              appendTo: e,
            }),
            (i.$maxScore = a("<span>", {
              class: "h5p-joubelui-score-number h5p-joubelui-score-max",
              text: i.maxScore,
              appendTo: e,
            })),
            n &&
              (H5P.JoubelUI.createTip(n, {
                tipLabel: r || n,
                helpIcon: !0,
              }).appendTo(i.$scoreBar),
              i.$scoreBar.addClass("h5p-score-bar-has-help")));
        })());
    };
  })(H5P.jQuery)),
  ((H5P = H5P || {}).JoubelProgressbar = (function (n) {
    function e(e, t) {
      H5P.EventDispatcher.call(this);
      ((this.options = n.extend({ progressText: "Slide :num of :total" }, t)),
        (this.currentStep = 0),
        (this.steps = e),
        (this.$progressbar = n("<div>", { class: "h5p-joubelui-progressbar" })),
        (this.$background = n("<div>", {
          class: "h5p-joubelui-progressbar-background",
        }).appendTo(this.$progressbar)));
    }
    return (
      (((e.prototype = Object.create(
        H5P.EventDispatcher.prototype,
      )).constructor = e).prototype.updateAria = function () {
        var e;
        this.options.disableAria ||
          (this.$currentStatus ||
            (this.$currentStatus = n("<div>", {
              class: "h5p-joubelui-progressbar-slide-status-text",
              "aria-live": "assertive",
            }).appendTo(this.$progressbar)),
          (e = this.options.progressText
            .replace(":num", this.currentStep)
            .replace(":total", this.steps)),
          this.$currentStatus.html(e));
      }),
      (e.prototype.appendTo = function (e) {
        this.$progressbar.appendTo(e);
      }),
      (e.prototype.setProgress = function (e) {
        e > this.steps ||
          e < 0 ||
          ((this.currentStep = e),
          this.$background.css({
            width: (this.currentStep / this.steps) * 100 + "%",
          }),
          this.updateAria());
      }),
      (e.prototype.next = function () {
        this.setProgress(this.currentStep + 1);
      }),
      (e.prototype.reset = function () {
        this.setProgress(0);
      }),
      (e.prototype.isLastStep = function () {
        return this.steps === this.currentStep;
      }),
      e
    );
  })(H5P.jQuery)),
  ((H5P = H5P || {}).JoubelUI = (function (n) {
    function e() {}
    var t;
    return (
      (e.createTip = function (e, t) {
        return new H5P.JoubelTip(e, t);
      }),
      (e.createMessageDialog = function (e, t) {
        return new H5P.JoubelMessageDialog(e, t);
      }),
      (e.createHelpTextDialog = function (e, t, n) {
        return new H5P.JoubelHelpTextDialog(e, t, n);
      }),
      (e.createProgressCircle = function (e, t, n, r) {
        return new H5P.JoubelProgressCircle(e, t, n, r);
      }),
      (e.createThrobber = function () {
        return new H5P.JoubelThrobber();
      }),
      (e.createSimpleRoundedButton = function (e) {
        return new H5P.SimpleRoundedButton(e);
      }),
      (e.createSlider = function (e) {
        return new H5P.JoubelSlider(e);
      }),
      (e.createScoreBar = function (e, t, n, r) {
        return new H5P.JoubelScoreBar(e, t, n, r);
      }),
      (e.createProgressbar = function (e, t) {
        return new H5P.JoubelProgressbar(e, t);
      }),
      (e.createButton = function (e) {
        var t = "button";
        return (
          e.href ? (t = "a") : (e.type = "button"),
          e.class
            ? (e.class += " h5p-joubelui-button")
            : (e.class = "h5p-joubelui-button"),
          n("<" + t + "/>", e)
        );
      }),
      H5P.isFramed &&
        !H5P.hasiOSiframeScrollFix &&
        /iPad|iPhone|iPod/.test(navigator.userAgent) &&
        ((H5P.hasiOSiframeScrollFix = !0),
        (t = HTMLElement.prototype.focus),
        (HTMLElement.prototype.focus = function () {
          (this instanceof HTMLAnchorElement ||
            this instanceof HTMLInputElement ||
            this instanceof HTMLSelectElement ||
            this instanceof HTMLTextAreaElement ||
            this instanceof HTMLButtonElement ||
            this instanceof HTMLIFrameElement ||
            this instanceof HTMLAreaElement) &&
            !this.getAttribute("role") &&
            t.call(this);
        })),
      e
    );
  })(H5P.jQuery)),
  /*!@license H5P.CoursePresentation-1.25/dist/h5p-course-presentation.js by Joubel licensed under MIT*/ (() => {
    var n = {
        46: (e) => {
          e.exports = function (e, t) {
            ((this.index = e), (this.parent = t));
          };
        },
        575: (e, t, n) => {
          const a = n(46),
            s = H5P.EventDispatcher;
          function r(r, t) {
            const i = this;
            (s.call(i), (i.children = []));
            function o(t) {
              for (let e = t; e < i.children.length; e++)
                i.children[e].index = e;
            }
            if (
              ((i.addChild = function (e, t) {
                void 0 === t && (t = i.children.length);
                var n = new a(t, i);
                return (
                  t === i.children.length
                    ? i.children.push(n)
                    : (i.children.splice(t, 0, n), o(t)),
                  r.call(n, e),
                  n
                );
              }),
              (i.removeChild = function (e) {
                (i.children.splice(e, 1), o(e));
              }),
              (i.moveChild = function (e, t) {
                var n = i.children.splice(e, 1)[0];
                (i.children.splice(t, 0, n), o(t < e ? t : e));
              }),
              t)
            )
              for (let e = 0; e < t.length; e++) i.addChild(t[e]);
          }
          ((r.prototype = Object.create(s.prototype)),
            (e.exports = r.prototype.constructor = r));
        },
      },
      r = {};
    function le(e) {
      var t = r[e];
      if (void 0 !== t) return t.exports;
      t = r[e] = { exports: {} };
      return (n[e](t, t.exports, le), t.exports);
    }
    ((le.n = (e) => {
      var t = e && e.__esModule ? () => e.default : () => e;
      return (le.d(t, { a: t }), t);
    }),
      (le.d = (e, t) => {
        for (var n in t)
          le.o(t, n) &&
            !le.o(e, n) &&
            Object.defineProperty(e, n, { enumerable: !0, get: t[n] });
      }),
      (le.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t)),
      (() => {
        "use strict";
        function r(e) {
          return e.concat.apply([], e);
        }
        function c(e) {
          return "function" == typeof e;
        }
        function o(e, t) {
          return -1 !== e.indexOf(t);
        }
        function i(e, t) {
          return void 0 !== e ? e : t;
        }
        function b(e, t, n) {
          (e.click(function (e) {
            t.call(n || this, e);
          }),
            e.keydown(function (e) {
              o([13, 32], e.which) &&
                (e.preventDefault(), t.call(n || this, e));
            }));
        }
        var l,
          s,
          e = le(575),
          a = le.n(e),
          y = H5P.jQuery,
          u = H5P.EventDispatcher,
          d = H5P.JoubelUI,
          n = null !== navigator.userAgent.match(/iPad/i),
          p = null !== navigator.userAgent.match(/iPad|iPod|iPhone/i),
          h = y("<div>");
        const f =
          ((t.prototype.updateSummarySlide = function (e, t) {
            var n,
              r,
              i,
              o,
              a = this,
              s =
                void 0 === this.cp.editor &&
                void 0 !== this.$summarySlide &&
                e >= this.cp.slides.length - 1,
              e = !this.cp.showSummarySlide && this.cp.hasAnswerElements;
            s &&
              (a.cp.presentation.keywordListEnabled &&
                a.cp.presentation.keywordListAlwaysShow &&
                a.cp.hideKeywords(),
              this.$summarySlide.children().remove(),
              (s = a.cp.getSlideScores(t)),
              (t = a.outputScoreStats(s)),
              y(t).appendTo(a.$summarySlide),
              e ||
                ((n = a.totalScores(s)),
                isNaN(n.totalPercentage) ||
                  ((s = d.createScoreBar(n.totalMaxScore, "", "", "")).setScore(
                    n.totalScore,
                  ),
                  (r = y(".h5p-summary-total-score", a.$summarySlide)),
                  s.appendTo(r),
                  setTimeout(function () {
                    r.append(
                      y("<div/>", {
                        "aria-live": "polite",
                        class: "hidden-but-read",
                        html:
                          a.cp.l10n.summary +
                          ". " +
                          a.cp.l10n.accessibilityTotalScore
                            .replace("@score", n.totalScore)
                            .replace("@maxScore", n.totalMaxScore),
                      }),
                    );
                  }, 100)),
                1 == a.cp.enableTwitterShare &&
                  ((i = y(".h5p-summary-twitter-message", a.$summarySlide)),
                  this.addTwitterScoreLinkTo(i, n)),
                1 == a.cp.enableFacebookShare &&
                  ((i = y(".h5p-summary-facebook-message", a.$summarySlide)),
                  this.addFacebookScoreLinkTo(i, n)),
                1 == a.cp.enableGoogleShare &&
                  ((o = y(".h5p-summary-google-message", a.$summarySlide)),
                  this.addGoogleScoreLinkTo(o)),
                a.$summarySlide
                  .find(".h5p-td > .h5p-slide-link")
                  .each(function () {
                    var t = y(this);
                    t.click(function (e) {
                      (a.cp.jumpToSlide(parseInt(t.data("slide"), 10) - 1),
                        e.preventDefault());
                    });
                  })),
              (o = y(".h5p-summary-footer", a.$summarySlide)),
              this.cp.showSummarySlideSolutionButton &&
                d.createButton({
                  class: "h5p-show-solutions",
                  html: a.cp.l10n.showSolutions,
                  on: {
                    click: function () {
                      a.toggleSolutionMode(!0);
                    },
                  },
                  appendTo: o,
                }),
              this.cp.showSummarySlideRetryButton &&
                d.createButton({
                  class: "h5p-cp-retry-button",
                  html: a.cp.l10n.retry,
                  on: {
                    click: function () {
                      a.cp.resetTask();
                    },
                  },
                  appendTo: o,
                }),
              a.cp.hasAnswerElements &&
                d.createButton({
                  class: "h5p-eta-export",
                  html: a.cp.l10n.exportAnswers,
                  on: {
                    click: function () {
                      H5P.ExportableTextArea.Exporter.run(
                        a.cp.slides,
                        a.cp.elementInstances,
                      );
                    },
                  },
                  appendTo: o,
                }));
          }),
          (t.prototype.outputScoreStats = function (e) {
            if (void 0 === e)
              return (
                this.$summarySlide.addClass("h5p-summary-only-export"),
                '<div class="h5p-summary-footer"></div>'
              );
            for (
              var t = this, n = 0, r = 0, i = "", o = 0, a = "", s = 0;
              s < e.length;
              s += 1
            )
              ((a = this.getSlideDescription(e[s])),
                (o = Math.round((e[s].score / e[s].maxScore) * 100)),
                isNaN(o) && (o = 0),
                (i +=
                  '<tr><td class="h5p-td h5p-summary-task-title"><a href="#" class="h5p-slide-link"  aria-label=" ' +
                  t.cp.l10n.slide +
                  " " +
                  e[s].slide +
                  ": " +
                  a.replace(/(<([^>]+)>)/gi, "") +
                  " " +
                  o +
                  '%" data-slide="' +
                  e[s].slide +
                  '">' +
                  t.cp.l10n.slide +
                  " " +
                  e[s].slide +
                  ": " +
                  a.replace(/(<([^>]+)>)/gi, "") +
                  '</a></td><td class="h5p-td h5p-summary-score-bar"><p class="hidden-but-read">' +
                  o +
                  "%</p><p>" +
                  e[s].score +
                  "<span>/</span>" +
                  e[s].maxScore +
                  "</p></td></tr>"),
                (n += e[s].score),
                (r += e[s].maxScore));
            this.cp.isSolutionMode || t.cp.triggerXAPICompleted(n, r);
            var c =
                t.cp.enableTwitterShare ||
                t.cp.enableFacebookShare ||
                t.cp.enableGoogleShare
                  ? '<span class="h5p-show-results-text">' +
                    t.cp.l10n.shareResult +
                    "</span>"
                  : "",
              l =
                1 == t.cp.enableTwitterShare
                  ? '<span class="h5p-summary-twitter-message" aria-label="' +
                    t.cp.l10n.shareTwitter +
                    '"></span>'
                  : "",
              u =
                1 == t.cp.enableFacebookShare
                  ? '<span class="h5p-summary-facebook-message" aria-label="' +
                    t.cp.l10n.shareFacebook +
                    '"></span>'
                  : "",
              d =
                1 == t.cp.enableGoogleShare
                  ? '<span class="h5p-summary-google-message" aria-label="' +
                    t.cp.l10n.shareGoogle +
                    '"></span>'
                  : "";
            return (
              '<div class="h5p-summary-table-holder"><div class="h5p-summary-table-pages"><table class="h5p-score-table"><thead><tr><th class="h5p-summary-table-header slide">' +
              t.cp.l10n.slide +
              '</th><th class="h5p-summary-table-header score">' +
              t.cp.l10n.score +
              "<span>/</span>" +
              t.cp.l10n.total.toLowerCase() +
              "</th></tr></thead><tbody>" +
              i +
              '</tbody></table></div><div class="h5p-summary-total-table"><div class="h5p-summary-social">' +
              c +
              u +
              l +
              d +
              '</div><div class="h5p-summary-total-score"><p>' +
              t.cp.l10n.totalScore +
              '</p></div></div></div><div class="h5p-summary-footer"></div>'
            );
          }),
          (t.prototype.getSlideDescription = function (e) {
            var t,
              n,
              r,
              i = this.cp.slides[e.slide - 1].elements;
            return (
              1 < e.indexes.length
                ? (t = this.cp.l10n.summaryMultipleTaskText)
                : void 0 !== i[e.indexes[0]] &&
                  i[0] &&
                  ((i = i[e.indexes[0]].action),
                  "function" ==
                  typeof this.cp.elementInstances[e.slide - 1][e.indexes[0]]
                    .getTitle
                    ? (t =
                        this.cp.elementInstances[e.slide - 1][
                          e.indexes[0]
                        ].getTitle())
                    : void 0 !== i.library &&
                      i.library &&
                      ((n = i.library
                        .split(" ")[0]
                        .split(".")[1]
                        .split(/(?=[A-Z])/)),
                      (r = ""),
                      n.forEach(function (e, t) {
                        (0 !== t && (e = e.toLowerCase()),
                          (r += e),
                          t <= n.length - 1 && (r += " "));
                      }),
                      (t = r))),
              t
            );
          }),
          (t.prototype.addTwitterScoreLinkTo = function (e, t) {
            var n = this,
              r = n.cp.twitterShareStatement || "",
              i = n.cp.twitterShareHashtags || "",
              o = (o = n.cp.twitterShareUrl || "").replace(
                "@currentpageurl",
                window.location.href,
              ),
              r = r
                .replace("@score", t.totalScore)
                .replace("@maxScore", t.totalMaxScore)
                .replace("@percentage", t.totalPercentage + "%")
                .replace("@currentpageurl", window.location.href),
              i = i.trim().replace(" ", "");
            ((r = encodeURIComponent(r)),
              (i = encodeURIComponent(i)),
              (o = encodeURIComponent(o)));
            var a = "https://twitter.com/intent/tweet?";
            ((a += 0 < r.length ? "text=" + r + "&" : ""),
              (a += 0 < o.length ? "url=" + o + "&" : ""),
              (a += 0 < i.length ? "hashtags=" + i : ""));
            var s = window.innerWidth / 2,
              c = window.innerHeight / 2;
            (e.attr("tabindex", "0").attr("role", "button"),
              b(e, function () {
                return (
                  window.open(
                    a,
                    n.cp.l10n.shareTwitter,
                    "width=800,height=300,left=" + s + ",top=" + c,
                  ),
                  !1
                );
              }));
          }),
          (t.prototype.addFacebookScoreLinkTo = function (e, t) {
            var n = this,
              r = n.cp.facebookShareUrl || "",
              i = n.cp.facebookShareQuote || "",
              r = r.replace("@currentpageurl", window.location.href),
              i = i
                .replace("@currentpageurl", window.location.href)
                .replace("@percentage", t.totalPercentage + "%")
                .replace("@score", t.totalScore)
                .replace("@maxScore", t.totalMaxScore);
            ((r = encodeURIComponent(r)), (i = encodeURIComponent(i)));
            var o = "https://www.facebook.com/sharer/sharer.php?";
            ((o += 0 < r.length ? "u=" + r + "&" : ""),
              (o += 0 < i.length ? "quote=" + i : ""));
            var a = window.innerWidth / 2,
              s = window.innerHeight / 2;
            (e.attr("tabindex", "0").attr("role", "button"),
              b(e, function () {
                return (
                  window.open(
                    o,
                    n.cp.l10n.shareFacebook,
                    "width=800,height=300,left=" + a + ",top=" + s,
                  ),
                  !1
                );
              }));
          }),
          (t.prototype.addGoogleScoreLinkTo = function (e) {
            var t = this,
              n = (n = t.cp.googleShareUrl || "").replace(
                "@currentpageurl",
                window.location.href,
              );
            n = encodeURIComponent(n);
            var r = "https://plus.google.com/share?";
            r += 0 < n.length ? "url=" + n : "";
            var i = window.innerWidth / 2,
              o = window.innerHeight / 2;
            (e.attr("tabindex", "0").attr("role", "button"),
              b(e, function () {
                return (
                  window.open(
                    r,
                    t.cp.l10n.shareGoogle,
                    "width=401,height=437,left=" + i + ",top=" + o,
                  ),
                  !1
                );
              }));
          }),
          (t.prototype.totalScores = function (e) {
            if (void 0 === e)
              return { totalScore: 0, totalMaxScore: 0, totalPercentage: 0 };
            for (var t = 0, n = 0, r = 0; r < e.length; r += 1)
              ((t += e[r].score), (n += e[r].maxScore));
            var i = Math.round((t / n) * 100);
            return {
              totalScore: t,
              totalMaxScore: n,
              totalPercentage: (i = isNaN(i) ? 0 : i),
            };
          }),
          (t.prototype.toggleSolutionMode = function (e) {
            (this.cp.isSolutionMode = e)
              ? ((e = this.cp.showSolutions()),
                this.cp.setProgressBarFeedback(e),
                this.cp.$footer.addClass("h5p-footer-solution-mode"),
                this.setFooterSolutionModeText(this.cp.l10n.solutionModeText))
              : (this.cp.$footer.removeClass("h5p-footer-solution-mode"),
                this.setFooterSolutionModeText(),
                this.cp.setProgressBarFeedback());
          }),
          (t.prototype.setFooterSolutionModeText = function (e) {
            void 0 !== e && e
              ? this.cp.$exitSolutionModeText.html(e)
              : this.cp.$exitSolutionModeText &&
                this.cp.$exitSolutionModeText.html("");
          }),
          t);
        function t(e, t) {
          ((this.$summarySlide = t), (this.cp = e));
        }
        function v() {}
        function m(e) {
          const r = e.length;
          return function t() {
            const n = Array.prototype.slice.call(arguments, 0);
            return n.length >= r
              ? e.apply(null, n)
              : function () {
                  var e = Array.prototype.slice.call(arguments, 0);
                  return t.apply(null, n.concat(e));
                };
          };
        }
        const g =
            ((l = H5P.jQuery),
            (s = 0),
            (v.supported = function () {
              return "function" == typeof window.print;
            }),
            (v.print = function (e, t, n) {
              e.trigger("printing", { finished: !1, allSlides: n });
              var r = l(".h5p-slide.h5p-current"),
                i = r.height(),
                o = r.width() / 670,
                a = l(".h5p-slide");
              a.css({
                height: i / o + "px",
                width: "670px",
                fontSize: Math.floor(100 / o) + "%",
              });
              var s = t.height();
              (t.css("height", "auto"),
                a.toggleClass("doprint", !0 === n),
                r.addClass("doprint"),
                setTimeout(function () {
                  (window.print(),
                    a.css({ height: "", width: "", fontSize: "" }),
                    t.css("height", s + "px"),
                    e.trigger("printing", { finished: !0 }));
                }, 500));
            }),
            (v.showDialog = function (e, t, n) {
              var r = this,
                i = s++,
                o = "h5p-cp-print-dialog-".concat(i, "-title"),
                i = "h5p-cp-print-dialog-".concat(i, "-ingress"),
                a = l(
                  '<div class="h5p-popup-dialog h5p-print-dialog">\n                      <div role="dialog" aria-labelledby="'
                    .concat(o, '" aria-describedby="')
                    .concat(
                      i,
                      '" tabindex="-1" class="h5p-inner">\n                        <h2 id="',
                    )
                    .concat(o, '">')
                    .concat(
                      e.printTitle,
                      '</h2>\n                        <div class="h5p-scroll-content"></div>\n                        <div class="h5p-close" role="button" tabindex="0" title="',
                    )
                    .concat(
                      H5P.t("close"),
                      '">\n                      </div>\n                    </div>',
                    ),
                )
                  .insertAfter(t)
                  .click(function () {
                    r.close();
                  })
                  .children(".h5p-inner")
                  .click(function () {
                    return !1;
                  })
                  .end();
              b(a.find(".h5p-close"), function () {
                return r.close();
              });
              t = a.find(".h5p-scroll-content");
              return (
                t.append(
                  l("<div>", {
                    class: "h5p-cp-print-ingress",
                    id: i,
                    html: e.printIngress,
                  }),
                ),
                H5P.JoubelUI.createButton({
                  html: e.printAllSlides,
                  class: "h5p-cp-print-all-slides",
                  click: function () {
                    (r.close(), n(!0));
                  },
                }).appendTo(t),
                H5P.JoubelUI.createButton({
                  html: e.printCurrentSlide,
                  class: "h5p-cp-print-current-slide",
                  click: function () {
                    (r.close(), n(!1));
                  },
                }).appendTo(t),
                (this.open = function () {
                  setTimeout(function () {
                    (a.addClass("h5p-open"),
                      H5P.jQuery(r).trigger("dialog-opened", [a]));
                  }, 1);
                }),
                (this.close = function () {
                  (a.removeClass("h5p-open"),
                    setTimeout(function () {
                      a.remove();
                    }, 200));
                }),
                this.open(),
                a
              );
            }),
            v),
          w = m(function (e, t) {
            t.forEach(e);
          }),
          x =
            (m(function (e, t) {
              return t.map(e);
            }),
            m(function (e, t) {
              return t.filter(e);
            })),
          S =
            (m(function (e, t) {
              return t.some(e);
            }),
            m(function (e, t) {
              return -1 != t.indexOf(e);
            })),
          P = m(function (t, e) {
            return x((e) => !S(e, t), e);
          }),
          C = m((e, t) => t.getAttribute(e)),
          k = m((e, t, n) => n.setAttribute(e, t)),
          T = m((e, t) => t.removeAttribute(e)),
          H = m((e, t) => t.hasAttribute(e)),
          E =
            (m((e, t, n) => n.getAttribute(e) === t),
            m((e, t) => {
              var n = C(e, t);
              k(e, ("true" !== n).toString(), t);
            }),
            m((e, t) => e.appendChild(t)),
            m((e, t) => t.querySelector(e)),
            m((e, t) => {
              return (
                (e = t.querySelectorAll(e)),
                Array.prototype.slice.call(e)
              );
            }),
            m((e, t) => e.removeChild(t)),
            m((e, t) => t.classList.contains(e)),
            m((e, t) => t.classList.add(e))),
          A = m((e, t) => t.classList.remove(e)),
          I = E("hidden"),
          L = A("hidden"),
          O =
            (m((e, t) => (e ? L : I)(t)),
            m((e, t, n) => {
              n.classList[t ? "add" : "remove"](e);
            }),
            T("tabindex")),
          j = (w(O), k("tabindex", "0")),
          D = k("tabindex", "-1"),
          M = H("tabindex");
        class B {
          constructor(e) {
            (Object.assign(this, {
              listeners: {},
              on: function (e, t, n) {
                n = { listener: t, scope: n };
                return (
                  (this.listeners[e] = this.listeners[e] || []),
                  this.listeners[e].push(n),
                  this
                );
              },
              fire: function (e, t) {
                return (this.listeners[e] || []).every(function (e) {
                  return !1 !== e.listener.call(e.scope || this, t);
                });
              },
              propagate: function (e, n) {
                let r = this;
                e.forEach((t) => n.on(t, (e) => r.fire(t, e)));
              },
            }),
              (this.plugins = e || []),
              (this.elements = []),
              (this.negativeTabIndexAllowed = !1),
              this.on("nextElement", this.nextElement, this),
              this.on("previousElement", this.previousElement, this),
              this.on("firstElement", this.firstElement, this),
              this.on("lastElement", this.lastElement, this),
              this.initPlugins());
          }
          addElement(e) {
            (this.elements.push(e),
              this.firesEvent("addElement", e),
              1 === this.elements.length && this.setTabbable(e));
          }
          insertElementAt(e, t) {
            (this.elements.splice(t, 0, e),
              this.firesEvent("addElement", e),
              1 === this.elements.length && this.setTabbable(e));
          }
          removeElement(e) {
            ((this.elements = P([e], this.elements)),
              M(e) &&
                (this.setUntabbable(e),
                this.elements[0] && this.setTabbable(this.elements[0])),
              this.firesEvent("removeElement", e));
          }
          count() {
            return this.elements.length;
          }
          firesEvent(e, t) {
            var n = this.elements.indexOf(t);
            return this.fire(e, {
              element: t,
              index: n,
              elements: this.elements,
              oldElement: this.tabbableElement,
            });
          }
          nextElement({ index: e }) {
            const t = e === this.elements.length - 1,
              n = this.elements[t ? 0 : e + 1];
            (this.setTabbable(n), n.focus());
          }
          firstElement() {
            const e = this.elements[0];
            (this.setTabbable(e), e.focus());
          }
          lastElement() {
            const e = this.elements[this.elements.length - 1];
            (this.setTabbable(e), e.focus());
          }
          setTabbableByIndex(e) {
            e = this.elements[e];
            e && this.setTabbable(e);
          }
          setTabbable(e) {
            (w(this.setUntabbable.bind(this), this.elements),
              j(e),
              (this.tabbableElement = e));
          }
          setUntabbable(e) {
            e !== document.activeElement &&
              (this.negativeTabIndexAllowed ? D : O)(e);
          }
          previousElement({ index: e }) {
            const t = 0 === e,
              n = this.elements[t ? this.elements.length - 1 : e - 1];
            (this.setTabbable(n), n.focus());
          }
          useNegativeTabIndex() {
            ((this.negativeTabIndexAllowed = !0),
              this.elements.forEach((e) => {
                e.hasAttribute("tabindex") || D(e);
              }));
          }
          initPlugins() {
            this.plugins.forEach(function (e) {
              void 0 !== e.init && e.init(this);
            }, this);
          }
        }
        class N {
          constructor() {
            this.selectability = !0;
          }
          init(e) {
            ((this.boundHandleKeyDown = this.handleKeyDown.bind(this)),
              (this.controls = e),
              this.controls.on("addElement", this.listenForKeyDown, this),
              this.controls.on(
                "removeElement",
                this.removeKeyDownListener,
                this,
              ));
          }
          listenForKeyDown({ element: e }) {
            e.addEventListener("keydown", this.boundHandleKeyDown);
          }
          removeKeyDownListener({ element: e }) {
            e.removeEventListener("keydown", this.boundHandleKeyDown);
          }
          handleKeyDown(e) {
            switch (e.which) {
              case 27:
                (this.close(e.target), e.preventDefault(), e.stopPropagation());
                break;
              case 35:
                (this.lastElement(e.target),
                  e.preventDefault(),
                  e.stopPropagation());
                break;
              case 36:
                (this.firstElement(e.target),
                  e.preventDefault(),
                  e.stopPropagation());
                break;
              case 13:
              case 32:
                (this.select(e.target),
                  e.preventDefault(),
                  e.stopPropagation());
                break;
              case 37:
              case 38:
                this.hasChromevoxModifiers(e) ||
                  (this.previousElement(e.target),
                  e.preventDefault(),
                  e.stopPropagation());
                break;
              case 39:
              case 40:
                this.hasChromevoxModifiers(e) ||
                  (this.nextElement(e.target),
                  e.preventDefault(),
                  e.stopPropagation());
            }
          }
          hasChromevoxModifiers(e) {
            return e.shiftKey || e.ctrlKey;
          }
          previousElement(e) {
            !1 !== this.controls.firesEvent("beforePreviousElement", e) &&
              (this.controls.firesEvent("previousElement", e),
              this.controls.firesEvent("afterPreviousElement", e));
          }
          nextElement(e) {
            !1 !== this.controls.firesEvent("beforeNextElement", e) &&
              (this.controls.firesEvent("nextElement", e),
              this.controls.firesEvent("afterNextElement", e));
          }
          select(e) {
            this.selectability &&
              !1 !== this.controls.firesEvent("before-select", e) &&
              (this.controls.firesEvent("select", e),
              this.controls.firesEvent("after-select", e));
          }
          firstElement(e) {
            !1 !== this.controls.firesEvent("beforeFirstElement", e) &&
              (this.controls.firesEvent("firstElement", e),
              this.controls.firesEvent("afterFirstElement", e));
          }
          lastElement(e) {
            !1 !== this.controls.firesEvent("beforeLastElement", e) &&
              (this.controls.firesEvent("lastElement", e),
              this.controls.firesEvent("afterLastElement", e));
          }
          disableSelectability() {
            this.selectability = !1;
          }
          enableSelectability() {
            this.selectability = !0;
          }
          close(e) {
            !1 !== this.controls.firesEvent("before-close", e) &&
              (this.controls.firesEvent("close", e),
              this.controls.firesEvent("after-close", e));
          }
        }
        function F(e, t, n) {
          return (
            t in e
              ? Object.defineProperty(e, t, {
                  value: n,
                  enumerable: !0,
                  configurable: !0,
                  writable: !0,
                })
              : (e[t] = n),
            e
          );
        }
        var $,
          R = "none",
          q = "not-answered",
          z = "answered",
          W = "has-only-correct",
          U = "has-incorrect";
        function _(e) {
          ((this.cp = e),
            (this.answeredLabels =
              (F((e = {}), q, this.cp.l10n.containsNotCompleted + "."),
              F(e, z, this.cp.l10n.containsCompleted + "."),
              F(e, W, this.cp.l10n.containsOnlyCorrect + "."),
              F(e, U, this.cp.l10n.containsIncorrectAnswers + "."),
              F(e, R, ""),
              e)),
            this.initProgressbar(this.cp.slidesWithSolutions),
            this.initFooter(),
            this.initTaskAnsweredListener(),
            this.toggleNextAndPreviousButtonDisabled(
              this.cp.getCurrentSlideIndex(),
            ));
        }
        const Q =
          (($ = H5P.jQuery),
          (_.prototype.initTaskAnsweredListener = function () {
            var i = this;
            this.cp.elementInstances.forEach(function (e, r) {
              e.filter(function (e) {
                return c(e.on);
              }).forEach(function (e) {
                e.on("xAPI", function (e) {
                  var t,
                    n = e.getVerb();
                  (o(["interacted", "answered", "attempted"], n)
                    ? ((t = i.cp.slideHasAnsweredTask(r)),
                      i.setTaskAnswered(r, t))
                    : "completed" === n && e.setVerb("answered"),
                    void 0 === e.data.statement.context.extensions &&
                      (e.data.statement.context.extensions = {}),
                    (e.data.statement.context.extensions[
                      "http://id.tincanapi.com/extension/ending-point"
                    ] = r + 1));
                });
              });
            });
          }),
          (_.prototype.initProgressbar = function (e) {
            var t = this,
              n = (t.cp.previousState && t.cp.previousState.progress) || 0;
            ((this.progresbarKeyboardControls = new B([new N()])),
              (this.progresbarKeyboardControls.negativeTabIndexAllowed = !0),
              this.progresbarKeyboardControls.on("select", function (e) {
                t.displaySlide($(e.element).data("slideNumber"));
              }),
              this.progresbarKeyboardControls.on(
                "beforeNextElement",
                function (e) {
                  return e.index !== e.elements.length - 1;
                },
              ),
              this.progresbarKeyboardControls.on(
                "beforePreviousElement",
                function (e) {
                  return 0 !== e.index;
                },
              ),
              void 0 !== this.cp.progressbarParts &&
                this.cp.progressbarParts &&
                this.cp.progressbarParts.forEach(function (e) {
                  (t.progresbarKeyboardControls.removeElement(
                    e.children("a").get(0),
                  ),
                    e.remove());
                }),
              (t.cp.progressbarParts = []));
            for (
              var r = function (e) {
                  e.preventDefault();
                  e = $(this).data("slideNumber");
                  (t.progresbarKeyboardControls.setTabbableByIndex(e),
                    t.displaySlide(e),
                    t.cp.focus());
                },
                i = 0;
              i < this.cp.slides.length;
              i += 1
            ) {
              var o = this.cp.slides[i],
                a = this.createSlideTitle(i),
                s = $("<div>", {
                  class: "h5p-progressbar-part",
                  id: "progressbar-part-" + i,
                  role: "tab",
                  "aria-label": a,
                  "aria-controls": "slide-" + i,
                  "aria-selected": !1,
                }).appendTo(t.cp.$progressbar),
                a = $("<a>", {
                  href: "#",
                  html:
                    '<span class="h5p-progressbar-part-title hidden-but-read">' +
                    a +
                    "</span>",
                  tabindex: "-1",
                })
                  .data("slideNumber", i)
                  .click(r)
                  .appendTo(s);
              (this.progresbarKeyboardControls.addElement(a.get(0)),
                this.isSummarySlide(i) &&
                  s.addClass("progressbar-part-summary-slide"),
                p || H5P.Tooltip(s.get(0), { position: "top" }),
                0 === i && s.addClass("h5p-progressbar-part-show"),
                i === n &&
                  s
                    .addClass("h5p-progressbar-part-selected")
                    .attr("aria-selected", !0),
                t.cp.progressbarParts.push(s),
                this.updateSlideTitle(i),
                this.cp.slides.length <= 60 &&
                  o.elements &&
                  0 < o.elements.length &&
                  ((s = e[i] && 0 < e[i].length),
                  (o = !!(
                    t.cp.previousState &&
                    t.cp.previousState.answered &&
                    t.cp.previousState.answered[i]
                  )),
                  s &&
                    ($("<div>", {
                      class: "h5p-progressbar-part-has-task",
                    }).appendTo(a),
                    this.setTaskAnswered(i, o))));
            }
          }),
          (_.prototype.displaySlide = function (t) {
            var n = this;
            this.cp.jumpToSlide(t, !1, function () {
              var e = n.cp.getCurrentSlideIndex();
              (n.updateSlideTitle(t, { isCurrent: !0 }),
                n.updateSlideTitle(e, { isCurrent: !1 }),
                n.toggleNextAndPreviousButtonDisabled(t));
            });
          }),
          (_.prototype.createSlideTitle = function (e) {
            var t = this.cp.slides[e];
            return t.keywords && 0 < t.keywords.length
              ? t.keywords[0].main
              : this.isSummarySlide(e)
                ? this.cp.l10n.summary
                : this.cp.l10n.slide + " " + (e + 1);
          }),
          (_.prototype.isSummarySlide = function (e) {
            return !(
              void 0 !== this.cp.editor ||
              e !== this.cp.slides.length - 1 ||
              !this.cp.showSummarySlide
            );
          }),
          (_.prototype.initFooter = function () {
            var e = this,
              t = this,
              n = this.cp.$footer,
              r = $("<div/>", { class: "h5p-footer-left-adjusted" }).appendTo(
                n,
              ),
              i = $("<div/>", { class: "h5p-footer-center-adjusted" }).appendTo(
                n,
              ),
              n = $("<div/>", {
                role: "toolbar",
                class: "h5p-footer-right-adjusted",
              }).appendTo(n);
            ((this.cp.$keywordsButton = $("<div/>", {
              class: "h5p-footer-button h5p-footer-toggle-keywords",
              "aria-expanded": "false",
              "aria-label": this.cp.l10n.showKeywords,
              role: "button",
              tabindex: "0",
              html: '<span class="h5p-icon-menu"></span><span class="current-slide-title"></span>',
            }).appendTo(r)),
              H5P.Tooltip(this.cp.$keywordsButton.get(0)),
              b(this.cp.$keywordsButton, function (e) {
                t.cp.presentation.keywordListAlwaysShow ||
                  (t.cp.toggleKeywords(), e.stopPropagation());
              }),
              (!this.cp.presentation.keywordListAlwaysShow &&
                this.cp.initKeywords) ||
                this.cp.$keywordsButton.hide(),
              this.cp.presentation.keywordListEnabled ||
                this.cp.$keywordsWrapper.add(this.$keywordsButton).hide(),
              this.updateFooterKeyword(0),
              (this.cp.$prevSlideButton = $("<div/>", {
                class: "h5p-footer-button h5p-footer-previous-slide",
                "aria-label": this.cp.l10n.prevSlide,
                role: "button",
                tabindex: "-1",
                "aria-disabled": "true",
              }).appendTo(i)),
              new H5P.Tooltip(this.cp.$prevSlideButton.get(0), {
                position: "left",
              }),
              b(this.cp.$prevSlideButton, function () {
                return e.cp.previousSlide(void 0, !1);
              }));
            r = $("<div/>", { class: "h5p-footer-slide-count" }).appendTo(i);
            ((this.cp.$footerCurrentSlide = $("<div/>", {
              html: "1",
              class: "h5p-footer-slide-count-current",
              title: this.cp.l10n.currentSlide,
              "aria-hidden": "true",
            }).appendTo(r)),
              (this.cp.$footerCounter = $("<div/>", {
                class: "hidden-but-read",
                html: this.cp.l10n.slideCount
                  .replace("@index", "1")
                  .replace("@total", this.cp.slides.length.toString()),
              }).appendTo(i)),
              $("<div/>", {
                html: "/",
                class: "h5p-footer-slide-count-delimiter",
                "aria-hidden": "true",
              }).appendTo(r),
              (this.cp.$footerMaxSlide = $("<div/>", {
                html: this.cp.slides.length,
                class: "h5p-footer-slide-count-max",
                title: this.cp.l10n.lastSlide,
                "aria-hidden": "true",
              }).appendTo(r)),
              (this.cp.$nextSlideButton = $("<div/>", {
                class: "h5p-footer-button h5p-footer-next-slide",
                "aria-label": this.cp.l10n.nextSlide,
                role: "button",
                tabindex: "0",
              }).appendTo(i)),
              H5P.Tooltip(this.cp.$nextSlideButton.get(0), {
                position: "right",
              }),
              b(this.cp.$nextSlideButton, function () {
                return e.cp.nextSlide(void 0, !1);
              }),
              void 0 === this.cp.editor &&
                ((this.cp.$exitSolutionModeButton = $("<div/>", {
                  role: "button",
                  class: "h5p-footer-exit-solution-mode",
                  "aria-label": this.cp.l10n.solutionModeTitle,
                  tabindex: "0",
                }).appendTo(n)),
                H5P.Tooltip(this.cp.$exitSolutionModeButton.get(0)),
                b(this.cp.$exitSolutionModeButton, function () {
                  return t.cp.jumpToSlide(t.cp.slides.length - 1);
                }),
                this.cp.enablePrintButton &&
                  g.supported() &&
                  ((this.cp.$printButton = $("<div/>", {
                    class: "h5p-footer-button h5p-footer-print",
                    "aria-label": this.cp.l10n.printTitle,
                    role: "button",
                    tabindex: "0",
                  }).appendTo(n)),
                  H5P.Tooltip(this.cp.$printButton.get(0)),
                  b(this.cp.$printButton, function () {
                    return t.openPrintDialog();
                  })),
                H5P.fullscreenSupported &&
                  ((this.cp.$fullScreenButton = $("<div/>", {
                    class: "h5p-footer-button h5p-footer-toggle-full-screen",
                    "aria-label": this.cp.l10n.fullscreen,
                    role: "button",
                    tabindex: "0",
                  })),
                  H5P.Tooltip(this.cp.$fullScreenButton.get(0), {
                    position: "left",
                  }),
                  b(this.cp.$fullScreenButton, function () {
                    return t.cp.toggleFullScreen();
                  }),
                  this.cp.$fullScreenButton.appendTo(n))),
              (this.cp.$exitSolutionModeText = $("<div/>", {
                html: "",
                class: "h5p-footer-exit-solution-mode-text",
              }).appendTo(this.cp.$exitSolutionModeButton)));
          }),
          (_.prototype.openPrintDialog = function () {
            var t = this,
              n = $(".h5p-wrapper");
            g.showDialog(this.cp.l10n, n, function (e) {
              g.print(t.cp, n, e);
            })
              .children('[role="dialog"]')
              .focus();
          }),
          (_.prototype.updateProgressBar = function (e, t, n) {
            for (var r = this, i = 0; i < r.cp.progressbarParts.length; i += 1)
              i < e + 1
                ? r.cp.progressbarParts[i].addClass("h5p-progressbar-part-show")
                : r.cp.progressbarParts[i].removeClass(
                    "h5p-progressbar-part-show",
                  );
            (r.progresbarKeyboardControls.setTabbableByIndex(e),
              r.cp.progressbarParts[e]
                .addClass("h5p-progressbar-part-selected")
                .attr("aria-selected", !0)
                .siblings()
                .removeClass("h5p-progressbar-part-selected")
                .attr("aria-selected", !1),
              void 0 !== t
                ? n || r.cp.editor
                : r.cp.progressbarParts.forEach(function (e, t) {
                    r.setTaskAnswered(t, !1);
                  }));
          }),
          (_.prototype.setTaskAnswered = function (e, t) {
            (this.cp.progressbarParts[e]
              .find(".h5p-progressbar-part-has-task")
              .toggleClass("h5p-answered", t),
              this.updateSlideTitle(e, { state: t ? z : q }));
          }),
          (_.prototype.updateSlideTitle = function (e) {
            var t = (
              1 < arguments.length && void 0 !== arguments[1]
                ? arguments[1]
                : {}
            ).state;
            this.setSlideTitle(e, { state: i(t, this.getAnsweredState(e)) });
          }),
          (_.prototype.setSlideTitle = function (e, t) {
            var n = t.state,
              t = void 0 === n ? R : n,
              n = this.cp.progressbarParts[e].find(
                ".h5p-progressbar-part-title",
              ),
              e = this.answeredLabels[t].replace(
                "@slideName",
                this.createSlideTitle(e),
              );
            n.html("".concat(e));
          }),
          (_.prototype.getAnsweredState = function (e) {
            var t = this.cp.progressbarParts[e],
              n = this.slideHasInteraction(e),
              e = this.cp.slideHasAnsweredTask(e);
            return n
              ? 0 < t.find(".h5p-is-correct").length
                ? W
                : 0 < t.find(".h5p-is-wrong").length
                  ? U
                  : e
                    ? z
                    : q
              : R;
          }),
          (_.prototype.slideHasInteraction = function (e) {
            return (
              0 <
              this.cp.progressbarParts[e].find(".h5p-progressbar-part-has-task")
                .length
            );
          }),
          (_.prototype.updateFooter = function (e) {
            (this.cp.$footerCurrentSlide.html(e + 1),
              this.cp.$footerMaxSlide.html(this.cp.slides.length),
              this.cp.$footerCounter.html(
                this.cp.l10n.slideCount
                  .replace("@index", (e + 1).toString())
                  .replace("@total", this.cp.slides.length.toString()),
              ),
              this.cp.isSolutionMode && e === this.cp.slides.length - 1
                ? this.cp.$footer.addClass("summary-slide")
                : this.cp.$footer.removeClass("summary-slide"),
              this.toggleNextAndPreviousButtonDisabled(e),
              this.updateFooterKeyword(e));
          }),
          (_.prototype.toggleNextAndPreviousButtonDisabled = function (e) {
            var t = this.cp.slides.length - 1;
            (this.cp.$prevSlideButton.attr(
              "aria-disabled",
              (0 === e).toString(),
            ),
              this.cp.$nextSlideButton.attr(
                "aria-disabled",
                (e === t).toString(),
              ),
              this.cp.$prevSlideButton.attr("tabindex", 0 === e ? "-1" : "0"),
              this.cp.$nextSlideButton.attr("tabindex", e === t ? "-1" : "0"));
          }),
          (_.prototype.updateFooterKeyword = function (e) {
            var t = this.cp.slides[e],
              n = "";
            (t && t.keywords && t.keywords[0] && (n = t.keywords[0].main),
              !this.cp.isEditor() &&
                this.cp.showSummarySlide &&
                e >= this.cp.slides.length - 1 &&
                (n = this.cp.l10n.summary),
              this.cp.$keywordsButton
                .children(".current-slide-title")
                .html(i(n, "")));
          }),
          _);
        function V(i) {
          function n(e, t, n) {
            var r = i.$slidesWrapper
              .children()
              .filter(":not(.h5p-summary-slide)");
            (void 0 !== n && (r = r.eq(n)),
              e && "" !== e
                ? r
                    .addClass("has-background")
                    .css("background-image", "")
                    .css("background-color", e)
                : t &&
                  t.path &&
                  r
                    .addClass("has-background")
                    .css("background-color", "")
                    .css(
                      "background-image",
                      "url(" + H5P.getPath(t.path, i.contentId) + ")",
                    ));
          }
          var e = i.presentation,
            t = (e = y.extend(
              !0,
              {
                globalBackgroundSelector: {
                  fillGlobalBackground: "",
                  imageGlobalBackground: {},
                },
                slides: [
                  {
                    slideBackgroundSelector: {
                      fillSlideBackground: "",
                      imageSlideBackground: {},
                    },
                  },
                ],
              },
              e,
            )).globalBackgroundSelector;
          (n(t.fillGlobalBackground, t.imageGlobalBackground),
            e.slides.forEach(function (e, t) {
              e = e.slideBackgroundSelector;
              e && n(e.fillSlideBackground, e.imageSlideBackground, t);
            }));
        }
        function X(e) {
          return parseInt(e.dataset.index);
        }
        var K =
            (((e = ee.prototype).init = function (e) {
              var t = this;
              return (
                (this.menuItemElements = e.map(function (e) {
                  return t.createMenuItemElement(e);
                })),
                this.menuItemElements.forEach(function (e) {
                  return t.menuElement.appendChild(e);
                }),
                this.menuItemElements.forEach(function (e) {
                  return t.controls.addElement(e);
                }),
                this.setCurrentSlideIndex(this.state.currentIndex),
                this.menuItemElements
              );
            }),
            (e.on = function (e, t) {
              this.eventDispatcher.on(e, t);
            }),
            (e.getElement = function () {
              return this.menuElement;
            }),
            (e.removeAllMenuItemElements = function () {
              var t = this;
              (this.menuItemElements.forEach(function (e) {
                (t.controls.removeElement(e), t.menuElement.removeChild(e));
              }),
                (this.menuItemElements = []));
            }),
            (e.createMenuElement = function () {
              var e = (this.menuElement = document.createElement("ol"));
              return (
                e.setAttribute("role", "menu"),
                e.classList.add("list-unstyled"),
                e
              );
            }),
            (e.createMenuItemElement = function (e) {
              var t = this,
                n = document.createElement("li");
              return (
                n.setAttribute("role", "menuitem"),
                n.addEventListener("click", function (e) {
                  t.onMenuItemSelect(X(e.currentTarget));
                }),
                this.applyConfigToMenuItemElement(n, e),
                n
              );
            }),
            (e.applyConfigToMenuItemElement = function (e, t) {
              ((e.innerHTML = '<div class="h5p-keyword-subtitle">'
                .concat(t.subtitle, '</div><span class="h5p-keyword-title">')
                .concat(t.title, "</span>")),
                (e.dataset.index = t.index));
            }),
            (e.onMenuItemSelect = function (e) {
              (this.setCurrentSlideIndex(e),
                this.eventDispatcher.trigger("select", { index: e }));
            }),
            (e.setCurrentSlideIndex = function (e) {
              var t = this.getElementByIndex(this.menuItemElements, e);
              t &&
                ((this.state.currentIndex = e),
                this.updateCurrentlySelected(this.menuItemElements, this.state),
                this.controls.setTabbable(t));
            }),
            (e.updateCurrentlySelected = function (e, n) {
              var r = this;
              e.forEach(function (e) {
                var t = n.currentIndex === X(e);
                (e.classList.toggle("h5p-current", t),
                  t && e.appendChild(r.currentSlideMarkerElement));
              });
            }),
            (e.scrollToKeywords = function (e) {
              var t = this.getFirstElementAfter(e);
              t &&
                ((t =
                  (e = y(this.menuElement)).scrollTop() +
                  y(t).position().top -
                  8),
                n ? e.scrollTop(t) : e.stop().animate({ scrollTop: t }, 250));
            }),
            (e.getFirstElementAfter = function (t) {
              return this.menuItemElements.filter(function (e) {
                return X(e) >= t;
              })[0];
            }),
            (e.getElementByIndex = function (e, t) {
              return e.filter(function (e) {
                return X(e) === t;
              })[0];
            }),
            (e.createCurrentSlideMarkerElement = function () {
              var e = document.createElement("div");
              return (
                e.classList.add("hidden-but-read"),
                (e.innerHTML = this.l10n.currentSlide),
                e
              );
            }),
            ee),
          G = "specified",
          J = "previous",
          Y =
            (((e = Z.prototype).attach = function (e) {
              e.html("").addClass("h5p-go-to-slide").append(this.$element);
            }),
            (e.on = function (e, t) {
              this.eventDispatcher.on(e, t);
            }),
            Z);
        function Z(e, t) {
          var n = this,
            r = e.title,
            i = e.goToSlide,
            o = void 0 === i ? 1 : i,
            a = e.invisible,
            s = e.goToSlideType,
            i = void 0 === s ? G : s,
            c = t.l10n,
            e = t.currentIndex;
          this.eventDispatcher = new u();
          ((s = "h5p-press-to-go"), (t = 0));
          if (a) ((r = void 0), (t = -1));
          else {
            if (!r)
              switch (i) {
                case G:
                  r = c.goToSlide.replace(":num", o.toString());
                  break;
                case "next":
                  r = c.goToSlide.replace(":num", c.nextSlide);
                  break;
                case J:
                  r = c.goToSlide.replace(":num", c.prevSlide);
              }
            s += " h5p-visible";
          }
          var l = o - 1;
          ("next" === i ? (l = e + 1) : i === J && (l = e - 1),
            (this.$element = y("<a/>", {
              href: "#",
              class: s,
              tabindex: t,
              title: r,
            })),
            b(this.$element, function (e) {
              (n.eventDispatcher.trigger("navigate", l), e.preventDefault());
            }));
        }
        function ee(e) {
          var t = this,
            n = e.l10n,
            e = e.currentIndex;
          ((this.l10n = n),
            (this.state = { currentIndex: i(e, 0) }),
            (this.eventDispatcher = new u()),
            (this.controls = new B([new N()])),
            this.controls.on("select", function (e) {
              t.onMenuItemSelect(X(e.element));
            }),
            this.controls.on("close", function () {
              return t.eventDispatcher.trigger("close");
            }),
            (this.menuElement = this.createMenuElement()),
            (this.currentSlideMarkerElement =
              this.createCurrentSlideMarkerElement()));
        }
        function te(e) {
          var t,
            n,
            r = this;
          (void 0 === e.action
            ? ((r.instance = new Y(e, {
                l10n: r.parent.parent.l10n,
                currentIndex: r.parent.index,
              })),
              r.parent.parent.isEditor() ||
                r.instance.on("navigate", function (e) {
                  e = e.data;
                  r.parent.parent.jumpToSlide(e);
                }))
            : ((t = r.parent.parent.isEditor()
                ? H5P.jQuery.extend(
                    !0,
                    {},
                    e.action,
                    r.parent.parent.elementsOverride,
                  )
                : H5P.jQuery.extend(
                    !0,
                    e.action,
                    r.parent.parent.elementsOverride,
                  )),
              (n = r.parent.parent.elementInstances[r.parent.index]
                ? r.parent.parent.elementInstances[r.parent.index].length
                : 0),
              r.parent.parent.previousState &&
                r.parent.parent.previousState.answers &&
                r.parent.parent.previousState.answers[r.parent.index] &&
                r.parent.parent.previousState.answers[r.parent.index][n] &&
                (t.userDatas = {
                  state:
                    r.parent.parent.previousState.answers[r.parent.index][n],
                }),
              (t.params = t.params || {}),
              (r.instance = H5P.newRunnable(
                t,
                r.parent.parent.contentId,
                void 0,
                !0,
                { parent: r.parent.parent },
              )),
              void 0 !== r.instance.preventResize &&
                (r.instance.preventResize = !0)),
            void 0 === r.parent.parent.elementInstances[r.parent.index]
              ? (r.parent.parent.elementInstances[r.parent.index] = [
                  r.instance,
                ])
              : r.parent.parent.elementInstances[r.parent.index].push(
                  r.instance,
                ),
            void 0 !== r.instance.showCPComments ||
            r.instance.isTask ||
            (void 0 === r.instance.isTask &&
              void 0 !== r.instance.showSolutions)
              ? ((r.instance.coursePresentationIndexOnSlide =
                  r.parent.parent.elementInstances[r.parent.index].length - 1),
                void 0 ===
                  r.parent.parent.slidesWithSolutions[r.parent.index] &&
                  (r.parent.parent.slidesWithSolutions[r.parent.index] = []),
                r.parent.parent.slidesWithSolutions[r.parent.index].push(
                  r.instance,
                ))
              : e.solution &&
                (void 0 ===
                  r.parent.parent.showCommentsAfterSolution[r.parent.index] &&
                  (r.parent.parent.showCommentsAfterSolution[r.parent.index] =
                    []),
                r.parent.parent.showCommentsAfterSolution[r.parent.index].push(
                  r.instance,
                )),
            void 0 !== r.instance.exportAnswers &&
              r.instance.exportAnswers &&
              (r.parent.parent.hasAnswerElements = !0),
            r.parent.parent.isTask ||
              r.parent.parent.hideSummarySlide ||
              ((r.instance.isTask ||
                (void 0 === r.instance.isTask &&
                  void 0 !== r.instance.showSolutions)) &&
                (r.parent.parent.isTask = !0)));
        }
        function ne(t, e) {
          var n,
            r = Object.keys(t);
          return (
            Object.getOwnPropertySymbols &&
              ((n = Object.getOwnPropertySymbols(t)),
              e &&
                (n = n.filter(function (e) {
                  return Object.getOwnPropertyDescriptor(t, e).enumerable;
                })),
              r.push.apply(r, n)),
            r
          );
        }
        function re(r) {
          for (var e = 1; e < arguments.length; e++) {
            var i = null != arguments[e] ? arguments[e] : {};
            e % 2
              ? ne(Object(i), !0).forEach(function (e) {
                  var t, n;
                  ((t = r),
                    (e = i[(n = e)]),
                    n in t
                      ? Object.defineProperty(t, n, {
                          value: e,
                          enumerable: !0,
                          configurable: !0,
                          writable: !0,
                        })
                      : (t[n] = e));
                })
              : Object.getOwnPropertyDescriptors
                ? Object.defineProperties(
                    r,
                    Object.getOwnPropertyDescriptors(i),
                  )
                : ne(Object(i)).forEach(function (e) {
                    Object.defineProperty(
                      r,
                      e,
                      Object.getOwnPropertyDescriptor(i, e),
                    );
                  });
          }
          return r;
        }
        function ie(t) {
          var n,
            r = this;
          (a().call(r, te, t.elements),
            (r.getElement = function () {
              return (n =
                n ||
                H5P.jQuery(
                  ie.createHTML(re(re({}, t), {}, { index: r.index })),
                ));
            }),
            (r.setCurrent = function () {
              this.parent.$current = n.addClass("h5p-current");
            }),
            (r.appendElements = function () {
              for (var e = 0; e < r.children.length; e++)
                r.parent.attachElement(
                  t.elements[e],
                  r.children[e].instance,
                  n,
                  r.index,
                );
              ((r.parent.elementsAttached[r.index] = !0),
                r.parent.trigger(
                  "domChanged",
                  {
                    $target: n,
                    library: "CoursePresentation",
                    key: "newSlide",
                  },
                  { bubbles: !0, external: !0 },
                ));
            }));
        }
        ie.createHTML = function (e) {
          return (
            '<div role="tabpanel" id="slide-' +
            e.index +
            '" aria-labelledby="progressbar-part-' +
            e.index +
            '" class="h5p-slide"> <div role="document" tabindex="0" ' +
            (void 0 !== e.background
              ? ' style="background:' + e.background + '"'
              : "") +
            "></div></div>"
          );
        };
        const oe = ie;
        function ae(e, t) {
          (null == t || t > e.length) && (t = e.length);
          for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
          return r;
        }
        function se(e) {
          return (se =
            "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
              ? function (e) {
                  return typeof e;
                }
              : function (e) {
                  return e &&
                    "function" == typeof Symbol &&
                    e.constructor === Symbol &&
                    e !== Symbol.prototype
                    ? "symbol"
                    : typeof e;
                })(e);
        }
        function ce(e, t, n) {
          var r = this;
          ((this.presentation = e.presentation),
            (this.slides = this.presentation.slides),
            (this.contentId = t),
            (this.elementInstances = []),
            (this.elementsAttached = []),
            (this.slidesWithSolutions = []),
            (this.showCommentsAfterSolution = []),
            (this.hasAnswerElements = !1),
            (this.ignoreResize = !1),
            (this.isTask = !1),
            (this.standalone = !0),
            (this.isReportingEnabled = !1),
            (this.popups = {}),
            n.cpEditor && (this.editor = n.cpEditor),
            n &&
              ((this.previousState = n.previousState),
              (this.standalone = n.standalone),
              (this.isReportingEnabled =
                n.isReportingEnabled || n.isScoringEnabled)),
            (this.currentSlideIndex =
              this.previousState && this.previousState.progress
                ? this.previousState.progress
                : 0),
            (this.presentation.keywordListEnabled =
              void 0 === e.presentation.keywordListEnabled ||
              e.presentation.keywordListEnabled),
            (this.l10n = y.extend(
              {
                slide: "Slide",
                score: "Score",
                yourScore: "Your score",
                maxScore: "Max score",
                total: "Total",
                totalScore: "Total Score",
                showSolutions: "Show solutions",
                summary: "summary",
                retry: "Retry",
                exportAnswers: "Export text",
                close: "Close",
                hideKeywords: "Hide sidebar navigation menu",
                showKeywords: "Show sidebar navigation menu",
                fullscreen: "Fullscreen",
                exitFullscreen: "Exit fullscreen",
                prevSlide: "Previous slide",
                nextSlide: "Next slide",
                currentSlide: "Current slide",
                lastSlide: "Last slide",
                solutionModeTitle: "Exit solution mode",
                solutionModeText: "Solution Mode",
                summaryMultipleTaskText: "Multiple tasks",
                scoreMessage: "You achieved:",
                shareFacebook: "Share on Facebook",
                shareTwitter: "Share on Twitter",
                shareGoogle: "Share on Google+",
                goToSlide: "Go to slide :num",
                solutionsButtonTitle: "Show comments",
                printTitle: "Print",
                printIngress: "How would you like to print this presentation?",
                printAllSlides: "Print all slides",
                printCurrentSlide: "Print current slide",
                noTitle: "No title",
                accessibilitySlideNavigationExplanation:
                  "Use left and right arrow to change slide in that direction whenever canvas is selected.",
                accessibilityProgressBarLabel: "Choose slide to display",
                containsNotCompleted:
                  "@slideName contains not completed interaction",
                containsCompleted: "@slideName contains completed interaction",
                slideCount: "Slide @index of @total",
                accessibilityCanvasLabel:
                  "Presentation canvas. Use left and right arrow to move between slides.",
                containsOnlyCorrect: "@slideName only has correct answers",
                containsIncorrectAnswers: "@slideName has incorrect answers",
                shareResult: "Share Result",
                accessibilityTotalScore:
                  "You got @score of @maxScore points in total",
                accessibilityEnteredFullscreen: "Entered fullscreen",
                accessibilityExitedFullscreen: "Exited fullscreen",
                confirmDialogHeader: "Submit your answers",
                confirmDialogText:
                  "This will submit your results, do you want to continue?",
                confirmDialogConfirmText: "Submit and see results",
                slideshowNavigationLabel: "Slideshow navigation",
              },
              void 0 !== e.l10n ? e.l10n : {},
            )),
            e.override &&
              ((this.activeSurface = !!e.override.activeSurface),
              (this.hideSummarySlide = !!e.override.hideSummarySlide),
              (this.enablePrintButton = !!e.override.enablePrintButton),
              (this.showSummarySlideSolutionButton =
                void 0 === e.override.summarySlideSolutionButton ||
                e.override.summarySlideSolutionButton),
              (this.showSummarySlideRetryButton =
                void 0 === e.override.summarySlideRetryButton ||
                e.override.summarySlideRetryButton),
              e.override.social &&
                ((this.enableTwitterShare =
                  !!e.override.social.showTwitterShare),
                (this.enableFacebookShare =
                  !!e.override.social.showFacebookShare),
                (this.enableGoogleShare = !!e.override.social.showGoogleShare),
                (this.twitterShareStatement =
                  e.override.social.twitterShare.statement),
                (this.twitterShareHashtags =
                  e.override.social.twitterShare.hashtags),
                (this.twitterShareUrl = e.override.social.twitterShare.url),
                (this.facebookShareUrl = e.override.social.facebookShare.url),
                (this.facebookShareQuote =
                  e.override.social.facebookShare.quote),
                (this.googleShareUrl = e.override.social.googleShareUrl))),
            (this.keywordMenu = new K({
              l10n: this.l10n,
              currentIndex:
                void 0 !== this.previousState ? this.previousState.progress : 0,
            })),
            this.setElementsOverride(e.override),
            a().call(this, oe, e.presentation.slides),
            this.on("resize", this.resize, this),
            this.on("printing", function (e) {
              ((r.ignoreResize = !e.data.finished),
                e.data.finished
                  ? r.resize()
                  : e.data.allSlides && r.attachAllElements());
            }));
        }
        ((((ce.prototype = Object.create(a().prototype)).constructor =
          ce).prototype.getCurrentState = function () {
          var n = this,
            e = this.previousState || {};
          ((e.progress = this.getCurrentSlideIndex()),
            e.answers || (e.answers = []),
            (e.answered = this.elementInstances.map(function (e, t) {
              return n.slideHasAnsweredTask(t);
            })));
          for (var t = 0; t < this.elementInstances.length; t++)
            if (this.elementInstances[t])
              for (var r = 0; r < this.elementInstances[t].length; r++) {
                var i = this.elementInstances[t][r];
                (i.getCurrentState instanceof Function ||
                  "function" == typeof i.getCurrentState) &&
                  (e.answers[t] || (e.answers[t] = []),
                  (e.answers[t][r] = i.getCurrentState()));
              }
          return e;
        }),
          (ce.prototype.slideHasAnsweredTask = function (e) {
            return (this.slidesWithSolutions[e] || [])
              .filter(function (e) {
                return c(e.getAnswerGiven);
              })
              .some(function (e) {
                return e.getAnswerGiven();
              });
          }),
          (ce.prototype.attach = function (e) {
            var t = this,
              o = this;
            void 0 !== this.isRoot &&
              this.isRoot() &&
              this.setActivityStarted();
            var n =
              '<div class="h5p-keymap-explanation hidden-but-read">' +
              this.l10n.accessibilitySlideNavigationExplanation +
              '</div><div class="h5p-fullscreen-announcer hidden-but-read" aria-live="polite"></div><div class="h5p-wrapper" tabindex="0" role="region" aria-roledescription="carousel" aria-label="' +
              this.l10n.accessibilityCanvasLabel +
              '">  <div class="h5p-current-slide-announcer hidden-but-read" aria-live="polite"></div>  <div tabindex="-1"></div>  <div class="h5p-box-wrapper">    <div class="h5p-presentation-wrapper">      <div class="h5p-keywords-wrapper"></div>     <div class="h5p-slides-wrapper"></div>    </div>  </div>  <nav class="h5p-cp-navigation" aria-label="' +
              this.l10n.slideshowNavigationLabel +
              '">    <div class="h5p-progressbar" role="tablist" aria-label="' +
              this.l10n.accessibilityProgressBarLabel +
              '"></div>  </nav>  <div class="h5p-footer"></div></div>';
            (e
              .attr("role", "application")
              .addClass("h5p-course-presentation")
              .html(n),
              (this.$container = e),
              (this.$slideAnnouncer = e.find(".h5p-current-slide-announcer")),
              (this.$fullscreenAnnouncer = e.find(".h5p-fullscreen-announcer")),
              (this.$slideTop = this.$slideAnnouncer.next()),
              (this.$wrapper = e.children(".h5p-wrapper")),
              this.activeSurface &&
                this.$wrapper.addClass(
                  "h5p-course-presentation-active-surface",
                ),
              this.$wrapper
                .focus(function () {
                  o.initKeyEvents();
                })
                .blur(function () {
                  void 0 !== o.keydown &&
                    (H5P.jQuery("body").unbind("keydown", o.keydown),
                    delete o.keydown);
                })
                .click(function (e) {
                  var t = H5P.jQuery(e.target),
                    n = o.belongsToTagName(
                      e.target,
                      ["input", "textarea", "a", "button"],
                      e.currentTarget,
                    ),
                    r = -1 !== e.target.tabIndex,
                    i = t.closest(".h5p-popup-container"),
                    e = 0 !== i.length;
                  (n ||
                    r ||
                    o.editor ||
                    (e
                      ? 1 ===
                        (e = t.closest("[tabindex]")).closest(
                          ".h5p-popup-container",
                        ).length
                        ? e
                        : i.find(".h5p-close-popup")
                      : o.$wrapper
                    ).focus(),
                    o.presentation.keywordListEnabled &&
                      !o.presentation.keywordListAlwaysShow &&
                      o.presentation.keywordListAutoHide &&
                      !t.is("textarea, .h5p-icon-pencil, span") &&
                      o.hideKeywords());
                }),
              this.on("exitFullScreen", function () {
                (t.$footer.removeClass("footer-full-screen"),
                  t.$fullScreenButton.attr("aria-label", t.l10n.fullscreen),
                  t.$fullscreenAnnouncer.html(
                    t.l10n.accessibilityExitedFullscreen,
                  ));
              }),
              this.on("enterFullScreen", function () {
                t.$fullscreenAnnouncer.html(
                  t.l10n.accessibilityEnteredFullscreen,
                );
              }));
            e = parseInt(this.$wrapper.css("width"));
            this.width = 0 !== e ? e : 640;
            e = parseInt(this.$wrapper.css("height"));
            ((this.height = 0 !== e ? e : 400),
              (this.ratio = 16 / 9),
              (this.fontSize = 16),
              (this.$boxWrapper = this.$wrapper.children(".h5p-box-wrapper")));
            var r,
              e = this.$boxWrapper.children(".h5p-presentation-wrapper");
            ((this.$slidesWrapper = e.children(".h5p-slides-wrapper")),
              (this.$keywordsWrapper = e.children(".h5p-keywords-wrapper")),
              (this.$progressbar = this.$wrapper.find(".h5p-progressbar")),
              (this.$footer = this.$wrapper.children(".h5p-footer")),
              (this.initKeywords =
                void 0 === this.presentation.keywordListEnabled ||
                !0 === this.presentation.keywordListEnabled ||
                void 0 !== this.editor),
              this.activeSurface &&
                void 0 === this.editor &&
                ((this.initKeywords = !1),
                this.$boxWrapper.css("height", "100%")),
              (this.isSolutionMode = !1),
              this.createSlides(),
              (this.elementsAttached[this.currentSlideIndex] = !0),
              (this.showSummarySlide = !1),
              this.hideSummarySlide
                ? (this.showSummarySlide = !this.hideSummarySlide)
                : this.slidesWithSolutions.forEach(function (e) {
                    o.showSummarySlide = e.length;
                  }),
              void 0 === this.editor &&
                (this.showSummarySlide || this.hasAnswerElements) &&
                (this.slides.push((i = { elements: [], keywords: [] })),
                (r = H5P.jQuery(oe.createHTML(i)).appendTo(
                  this.$slidesWrapper,
                )).addClass("h5p-summary-slide"),
                this.isCurrentSlide(this.slides.length - 1) &&
                  (this.$current = r)));
            var i = this.getKeywordMenuConfig();
            (0 < i.length || this.isEditor()
              ? (this.keywordMenu.init(i),
                this.keywordMenu.on("select", function (e) {
                  return t.keywordClick(e.data.index);
                }),
                this.keywordMenu.on("close", function () {
                  return t.hideKeywords();
                }),
                this.keywordMenu.on("select", function () {
                  t.$currentKeyword = t.$keywords.children(".h5p-current");
                }),
                (this.$keywords = y(this.keywordMenu.getElement()).appendTo(
                  this.$keywordsWrapper,
                )),
                (this.$currentKeyword =
                  this.$keywords.children(".h5p-current")),
                void 0 !== this.presentation.keywordListOpacity &&
                  this.setKeywordsOpacity(this.presentation.keywordListOpacity),
                this.presentation.keywordListAlwaysShow && this.showKeywords())
              : (this.$keywordsWrapper.remove(), (this.initKeywords = !1)),
              void 0 === this.editor && this.activeSurface
                ? (this.$progressbar.add(this.$footer).remove(),
                  H5P.fullscreenSupported &&
                    ((this.$fullScreenButton = H5P.jQuery("<div/>", {
                      class: "h5p-toggle-full-screen",
                      "aria-label": this.l10n.fullscreen,
                      role: "button",
                      tabindex: 0,
                      appendTo: this.$wrapper,
                    })),
                    H5P.Tooltip(this.$fullScreenButton.get(0), {
                      position: "left",
                    }),
                    b(this.$fullScreenButton, function () {
                      return o.toggleFullScreen();
                    })))
                : (this.initTouchEvents(),
                  (this.navigationLine = new Q(this)),
                  (this.previousState && this.previousState.progress) ||
                    this.setSlideNumberAnnouncer(0, !1),
                  (this.summarySlideObject = new f(this, r))),
              V(this),
              this.previousState &&
                this.previousState.progress &&
                this.jumpToSlide(
                  this.previousState.progress,
                  !1,
                  null,
                  !1,
                  !0,
                ));
          }),
          (ce.prototype.belongsToTagName = function (e, t, n) {
            if (!e) return !1;
            ((n = n || document.body),
              (t = (t = "string" == typeof t ? [t] : t).map(function (e) {
                return e.toLowerCase();
              })));
            var r = e.tagName.toLowerCase();
            return (
              -1 !== t.indexOf(r) ||
              (n !== e && this.belongsToTagName(e.parentNode, t, n))
            );
          }),
          (ce.prototype.updateKeywordMenuFromSlides = function () {
            this.keywordMenu.removeAllMenuItemElements();
            var e = this.getKeywordMenuConfig();
            return y(this.keywordMenu.init(e));
          }),
          (ce.prototype.getKeywordMenuConfig = function () {
            var n = this;
            return this.slides
              .map(function (e, t) {
                return {
                  title: n.createSlideTitle(e),
                  subtitle: "".concat(n.l10n.slide, " ").concat(t + 1),
                  index: t,
                };
              })
              .filter(function (e) {
                return null !== e.title;
              });
          }),
          (ce.prototype.createSlideTitle = function (e) {
            var t = this.isEditor() ? this.l10n.noTitle : null;
            return this.hasKeywords(e) ? e.keywords[0].main : t;
          }),
          (ce.prototype.isEditor = function () {
            return void 0 !== this.editor;
          }),
          (ce.prototype.hasKeywords = function (e) {
            return void 0 !== e.keywords && 0 < e.keywords.length;
          }),
          (ce.prototype.createSlides = function () {
            for (var e = this, t = 0; t < e.children.length; t++) {
              var n = t === e.currentSlideIndex;
              (e.children[t].getElement().appendTo(e.$slidesWrapper),
                n && e.children[t].setCurrent(),
                (e.isEditor() || 0 === t || 1 === t || n) &&
                  e.children[t].appendElements());
            }
          }),
          (ce.prototype.hasScoreData = function (e) {
            return (
              "undefined" !== se(e) &&
              "function" == typeof e.getScore &&
              "function" == typeof e.getMaxScore
            );
          }),
          (ce.prototype.getScore = function () {
            var n = this;
            return r(n.slidesWithSolutions).reduce(function (e, t) {
              return e + (n.hasScoreData(t) ? t.getScore() : 0);
            }, 0);
          }),
          (ce.prototype.getMaxScore = function () {
            var n = this;
            return r(n.slidesWithSolutions).reduce(function (e, t) {
              return e + (n.hasScoreData(t) ? t.getMaxScore() : 0);
            }, 0);
          }),
          (ce.prototype.setProgressBarFeedback = function (e) {
            var r = this;
            void 0 !== e && e
              ? e.forEach(function (e) {
                  var t,
                    n = r.progressbarParts[e.slide - 1].find(
                      ".h5p-progressbar-part-has-task",
                    );
                  n.hasClass("h5p-answered") &&
                    ((t = e.score >= e.maxScore),
                    n.addClass(t ? "h5p-is-correct" : "h5p-is-wrong"),
                    r.navigationLine.updateSlideTitle(e.slide - 1));
                })
              : this.progressbarParts.forEach(function (e) {
                  e.find(".h5p-progressbar-part-has-task")
                    .removeClass("h5p-is-correct")
                    .removeClass("h5p-is-wrong");
                });
          }),
          (ce.prototype.toggleKeywords = function () {
            this[
              this.$keywordsWrapper.hasClass("h5p-open")
                ? "hideKeywords"
                : "showKeywords"
            ]();
          }),
          (ce.prototype.hideKeywords = function () {
            this.$keywordsWrapper.hasClass("h5p-open") &&
              (void 0 !== this.$keywordsButton &&
                (this.$keywordsButton.attr(
                  "aria-label",
                  this.l10n.showKeywords,
                ),
                this.$keywordsButton.attr("aria-expanded", "false"),
                this.$keywordsButton.focus()),
              this.$keywordsWrapper.removeClass("h5p-open"));
          }),
          (ce.prototype.showKeywords = function () {
            this.$keywordsWrapper.hasClass("h5p-open") ||
              (void 0 !== this.$keywordsButton &&
                (this.$keywordsButton.attr(
                  "aria-label",
                  this.l10n.hideKeywords,
                ),
                this.$keywordsButton.attr("aria-expanded", "true")),
              this.$keywordsWrapper.addClass("h5p-open"),
              this.presentation.keywordListAlwaysShow ||
                this.$keywordsWrapper.find('li[tabindex="0"]').focus());
          }),
          (ce.prototype.setKeywordsOpacity = function (e) {
            var t, n, r;
            "" !== this.$keywordsWrapper.css("background-color") &&
              ((n = this.$keywordsWrapper
                .css("background-color")
                .match(/\d+/g)),
              (r = 3),
              (n = (t =
                (function (e) {
                  if (Array.isArray(e)) return e;
                })(n) ||
                (function (e, t) {
                  var n =
                    null == e
                      ? null
                      : ("undefined" != typeof Symbol && e[Symbol.iterator]) ||
                        e["@@iterator"];
                  if (null != n) {
                    var r,
                      i,
                      o = [],
                      a = !0,
                      s = !1;
                    try {
                      for (
                        n = n.call(e);
                        !(a = (r = n.next()).done) &&
                        (o.push(r.value), !t || o.length !== t);
                        a = !0
                      );
                    } catch (e) {
                      ((s = !0), (i = e));
                    } finally {
                      try {
                        a || null == n.return || n.return();
                      } finally {
                        if (s) throw i;
                      }
                    }
                    return o;
                  }
                })(n, r) ||
                (function (e, t) {
                  if (e) {
                    if ("string" == typeof e) return ae(e, t);
                    var n = Object.prototype.toString.call(e).slice(8, -1);
                    return "Map" ===
                      (n =
                        "Object" === n && e.constructor
                          ? e.constructor.name
                          : n) || "Set" === n
                      ? Array.from(e)
                      : "Arguments" === n ||
                          /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
                        ? ae(e, t)
                        : void 0;
                  }
                })(n, r) ||
                (function () {
                  throw new TypeError(
                    "Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.",
                  );
                })())[0]),
              (r = t[1]),
              (t = t[2]),
              this.$keywordsWrapper.css(
                "background-color",
                "rgba("
                  .concat(n, ", ")
                  .concat(r, ", ")
                  .concat(t, ", ")
                  .concat(e / 100, ")"),
              ));
          }),
          (ce.prototype.fitCT = function () {
            void 0 === this.editor &&
              this.$current.find(".h5p-ct").each(function () {
                for (
                  var e = 100, t = H5P.jQuery(this), n = t.parent().height();
                  t.outerHeight() > n &&
                  (t.css({ fontSize: --e + "%", lineHeight: e + 65 + "%" }),
                  !(e < 0));

                );
              });
          }),
          (ce.prototype.resize = function () {
            var e =
              this.$container.hasClass("h5p-fullscreen") ||
              this.$container.hasClass("h5p-semi-fullscreen");
            if (!this.ignoreResize) {
              this.$wrapper.css("width", "auto");
              var t = this.$container.width(),
                n = {};
              !e ||
                (t / (r = this.$container.height()) > this.ratio &&
                  ((t = r * this.ratio), (n.width = t + "px")));
              var r = t / this.width;
              ((n.height = t / this.ratio + "px"),
                (n.fontSize = this.fontSize * r + "px"),
                void 0 !== this.editor &&
                  this.editor.setContainerEm(this.fontSize * r * 0.75),
                this.$wrapper.css(n),
                (this.swipeThreshold = 100 * r));
              var i = this.elementInstances[this.$current.index()];
              if (void 0 !== i)
                for (
                  var o = this.slides[this.$current.index()].elements, a = 0;
                  a < i.length;
                  a++
                ) {
                  var s = i[a];
                  (void 0 !== s.preventResize && !1 !== s.preventResize) ||
                    void 0 === s.$ ||
                    o[a].displayAsButton ||
                    H5P.trigger(s, "resize");
                }
              this.fitCT();
            }
          }),
          (ce.prototype.toggleFullScreen = function () {
            H5P.isFullscreen ||
            this.$container.hasClass("h5p-fullscreen") ||
            this.$container.hasClass("h5p-semi-fullscreen")
              ? void 0 !== H5P.exitFullScreen &&
                void 0 !== H5P.fullScreenBrowserPrefix
                ? H5P.exitFullScreen()
                : void 0 === H5P.fullScreenBrowserPrefix
                  ? H5P.jQuery(".h5p-disable-fullscreen").click()
                  : "" === H5P.fullScreenBrowserPrefix
                    ? window.top.document.exitFullScreen()
                    : "ms" === H5P.fullScreenBrowserPrefix
                      ? window.top.document.msExitFullscreen()
                      : window.top.document[
                          H5P.fullScreenBrowserPrefix + "CancelFullScreen"
                        ]()
              : (this.$footer.addClass("footer-full-screen"),
                this.$fullScreenButton.attr(
                  "aria-label",
                  this.l10n.exitFullscreen,
                ),
                H5P.fullScreen(this.$container, this),
                void 0 === H5P.fullScreenBrowserPrefix &&
                  H5P.jQuery(".h5p-disable-fullscreen").hide());
          }),
          (ce.prototype.focus = function () {
            this.$wrapper.focus();
          }),
          (ce.prototype.keywordClick = function (e) {
            (this.shouldHideKeywordsAfterSelect() && this.hideKeywords(),
              this.jumpToSlide(e, !0));
          }),
          (ce.prototype.shouldHideKeywordsAfterSelect = function () {
            return (
              this.presentation.keywordListEnabled &&
              !this.presentation.keywordListAlwaysShow &&
              this.presentation.keywordListAutoHide &&
              void 0 === this.editor
            );
          }),
          (ce.prototype.setElementsOverride = function (e) {
            ((this.elementsOverride = { params: {} }),
              e &&
                ((this.elementsOverride.params.behaviour = {}),
                e.showSolutionButton &&
                  (this.elementsOverride.params.behaviour.enableSolutionsButton =
                    "on" === e.showSolutionButton),
                e.retryButton &&
                  (this.elementsOverride.params.behaviour.enableRetry =
                    "on" === e.retryButton)));
          }),
          (ce.prototype.attachElements = function (e, t) {
            if (void 0 === this.elementsAttached[t]) {
              var n = this.slides[t],
                r = this.elementInstances[t];
              if (void 0 !== n.elements)
                for (var i = 0; i < n.elements.length; i++)
                  this.attachElement(n.elements[i], r[i], e, t);
              (this.trigger(
                "domChanged",
                { $target: e, library: "CoursePresentation", key: "newSlide" },
                { bubbles: !0, external: !0 },
              ),
                (this.elementsAttached[t] = !0));
            }
          }),
          (ce.prototype.attachElement = function (e, t, n, r) {
            var i = void 0 !== e.displayAsButton && e.displayAsButton,
              o =
                void 0 !== e.buttonSize
                  ? "h5p-element-button-" + e.buttonSize
                  : "",
              a = H5P.jQuery("<div>", {
                class:
                  "h5p-element" +
                  (i ? " h5p-element-button-wrapper" : "") +
                  (o.length ? " " + o : ""),
              })
                .css({
                  left: e.x + "%",
                  top: e.y + "%",
                  width: e.width + "%",
                  height: e.height + "%",
                })
                .appendTo(n.children('[role="document"]').first()),
              n = void 0 === e.backgroundOpacity || 0 === e.backgroundOpacity;
            return (
              a.toggleClass("h5p-transparent", n),
              i
                ? this.createInteractionButton(e, t).appendTo(a)
                : ((i =
                    e.action && e.action.library
                      ? this.getLibraryTypePmz(e.action.library)
                      : "other"),
                  (i = H5P.jQuery("<div>", {
                    class: "h5p-element-outer ".concat(i, "-outer-element"),
                  })
                    .css({
                      background:
                        "rgba(255,255,255," +
                        (void 0 === e.backgroundOpacity
                          ? 0
                          : e.backgroundOpacity / 100) +
                        ")",
                    })
                    .appendTo(a)),
                  (i = H5P.jQuery("<div>", {
                    class: "h5p-element-inner",
                  }).appendTo(i)),
                  t.on("set-size", function (e) {
                    for (var t in e.data) a.get(0).style[t] = e.data[t];
                  }),
                  t.attach(i),
                  void 0 !== e.action &&
                    "H5P.InteractiveVideo" === e.action.library.substr(0, 20) &&
                    ((i = function () {
                      (t.$container.addClass("h5p-fullscreen"),
                        t.controls.$fullscreen &&
                          t.controls.$fullscreen.remove(),
                        (t.hasFullScreen = !0),
                        t.controls.$play.hasClass("h5p-pause")
                          ? t.$controls.addClass("h5p-autohide")
                          : t.enableAutoHide());
                    }),
                    void 0 !== t.controls ? i() : t.on("controls", i)),
                  this.setOverflowTabIndex()),
              void 0 !== this.editor
                ? this.editor.processElement(e, a, r, t)
                : (e.solution && this.addElementSolutionButton(e, t, a),
                  (this.hasAnswerElements =
                    this.hasAnswerElements || void 0 !== t.exportAnswers)),
              a
            );
          }),
          (ce.prototype.disableTabIndexes = function () {
            var n = this.$container.find(".h5p-popup-container");
            this.$tabbables = this.$container
              .find(
                "a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]",
              )
              .filter(function () {
                var e = y(this),
                  t = y.contains(n.get(0), e.get(0));
                if (e.data("tabindex")) return !0;
                if (t) return !1;
                t = e.attr("tabindex");
                return (e.data("tabindex", t), e.attr("tabindex", "-1"), !0);
              });
          }),
          (ce.prototype.restoreTabIndexes = function () {
            this.$tabbables &&
              this.$tabbables.each(function () {
                var e = y(this),
                  t = e.data("tabindex");
                e.hasClass("ui-slider-handle")
                  ? (e.attr("tabindex", 0), e.removeData("tabindex"))
                  : void 0 !== t
                    ? (e.attr("tabindex", t), e.removeData("tabindex"))
                    : e.removeAttr("tabindex");
              });
          }),
          (ce.prototype.createInteractionButton = function (e, t) {
            var n = this,
              r = e.action.metadata ? e.action.metadata.title : "";
            "" === r &&
              (r =
                (e.action.params && e.action.params.contentName) ||
                e.action.library.split(" ")[0].split(".")[1]);
            var i = this.getLibraryTypePmz(e.action.library),
              o = y("<div>", {
                role: "button",
                tabindex: 0,
                "aria-label": r,
                "aria-popup": !0,
                "aria-expanded": !1,
                class: "h5p-element-button h5p-element-button-"
                  .concat(e.buttonSize, " ")
                  .concat(i, "-button"),
              }),
              a = y('<div class="h5p-button-element"></div>');
            t.attach(a);
            var s = "h5p-advancedtext" === i ? { x: e.x, y: e.y } : null;
            return (
              b(o, function () {
                var e;
                (o.attr("aria-expanded", "true"),
                  n.showInteractionPopup(
                    t,
                    o,
                    a,
                    i,
                    ((e = o),
                    function () {
                      return e.attr("aria-expanded", "false");
                    }),
                    s,
                  ));
              }),
              void 0 !== e.action &&
                "H5P.InteractiveVideo" === e.action.library.substr(0, 20) &&
                t.on("controls", function () {
                  t.controls.$fullscreen && t.controls.$fullscreen.remove();
                }),
              o
            );
          }),
          (ce.prototype.showInteractionPopup = function (e, t, n, r, i) {
            function o() {
              e.trigger("resize");
            }
            var a = this,
              s =
                5 < arguments.length && void 0 !== arguments[5]
                  ? arguments[5]
                  : null;
            this.isEditor() ||
              (this.on("exitFullScreen", o),
              this.showPopup({
                popupContent: n,
                $focusOnClose: t,
                parentPosition: s,
                remove: function () {
                  ((0 < arguments.length &&
                    void 0 !== arguments[0] &&
                    arguments[0]) ||
                    n.detach(),
                    a.off("exitFullScreen", o),
                    i());
                },
                classes: r,
                instance: e,
                keepInDOM: "h5p-interactivevideo" === r,
              }),
              H5P.trigger(e, "resize"),
              "h5p-image" === r && this.resizePopupImage(n),
              setTimeout(function () {
                var e = n.find(":input").add(n.find("[tabindex]"));
                e.length ? e[0].focus() : (n.attr("tabindex", 0), n.focus());
              }, 200),
              c(e.setActivityStarted) &&
                c(e.getScore) &&
                e.setActivityStarted());
          }),
          (ce.prototype.getLibraryTypePmz = function (e) {
            return e.split(" ")[0].replace(/[\W]/g, "-").toLowerCase();
          }),
          (ce.prototype.resizePopupImage = function (n) {
            function e(e, t) {
              t / r < 18.5 ||
                ((e = e / t), n.css({ width: (t = 18.5 * r) * e, height: t }));
            }
            var r = Number(n.css("fontSize").replace("px", "")),
              t = n.find("img");
            t.height()
              ? e(t.width(), t.height())
              : t.one("load", function () {
                  e(this.width, this.height);
                });
          }),
          (ce.prototype.addElementSolutionButton = function (r, e, i) {
            var o = this;
            ((e.showCPComments = function () {
              var t, n, e;
              0 === i.children(".h5p-element-solution").length &&
                ((e = r.solution), 0 < h.html(e).text().trim().length) &&
                ((t = y("<div/>", {
                  role: "button",
                  tabindex: 0,
                  title: o.l10n.solutionsButtonTitle,
                  "aria-haspopup": "dialog",
                  "aria-expanded": !1,
                  class: "h5p-element-solution",
                })
                  .append(
                    '<span class="joubel-icon-comment-normal"><span class="h5p-icon-shadow"></span><span class="h5p-icon-speech-bubble"></span><span class="h5p-icon-question"></span></span>',
                  )
                  .appendTo(i)),
                (n = { x: r.x, y: r.y }),
                r.displayAsButton ||
                  ((n.x += r.width - 4), (n.y += r.height - 12)),
                b(t, function (e) {
                  (o.showPopup({
                    popupContent: r.solution,
                    $focusOnClose: t,
                    parentPosition: n,
                    updateAriaExpanded: !0,
                  }),
                    t.attr("aria-expanded", !0),
                    e.stopPropagation());
                }));
            }),
              void 0 !== r.alwaysDisplayComments &&
                r.alwaysDisplayComments &&
                e.showCPComments());
          }),
          (ce.prototype.showPopup = function (e) {
            var t,
              n = this,
              r = e.popupContent,
              i = e.$focusOnClose,
              o = e.parentPosition,
              a = void 0 === o ? null : o,
              s = e.remove,
              c = e.classes,
              l = void 0 === c ? "h5p-popup-comment-field" : c,
              u = e.instance,
              o = e.keepInDOM,
              d = void 0 !== o && o,
              p = e.updateAriaExpanded,
              h = this;
            this.popupId = void 0 === this.popupId ? 0 : this.popupId + 1;
            function f(e) {
              t
                ? (t = !1)
                : (h.restoreTabIndexes(),
                  i.focus(),
                  p && i.attr("aria-expanded", !1),
                  void 0 !== s &&
                    setTimeout(function () {
                      s(d);
                    }, 100),
                  e.preventDefault(),
                  v.addClass("h5p-animate"),
                  v.find(".h5p-popup-container").addClass("h5p-animate"),
                  setTimeout(function () {
                    d ? v.hide() : v.remove();
                  }, 100));
            }
            var v, m;
            void 0 ===
              (v =
                d && u && h.popups[u.subContentId]
                  ? h.popups[u.subContentId]
                  : v) &&
              ((g = (v = y(
                '<div class="h5p-popup-overlay ' +
                  l +
                  '"><div class="h5p-popup-container" role="dialog"aria-modal="true" aria-live="true" aria-labelledby="popup-title-' +
                  this.popupId +
                  '"> <div role="button" tabindex="0" class="h5p-close-popup" title="' +
                  this.l10n.close +
                  '"></div><div class="h5p-popup-wrapper" role="document"></div></div></div>',
              )).find(".h5p-popup-wrapper")),
              r instanceof H5P.jQuery ? g.append(r) : g.html(r),
              (m = ""),
              g.children().each(function (e, t) {
                (t.setAttribute("id", "popup-content-" + n.popupId + "-" + e),
                  (m += "popup-content-" + n.popupId + "-" + e + " "));
              }),
              v.find(".h5p-popup-container").attr("aria-describedby", m),
              u && u.subContentId && (h.popups[u.subContentId] = v));
            var g,
              c = v.find(".h5p-popup-container");
            return (
              (o = v),
              (e = c),
              (l = a) &&
                (e.css({ visibility: "hidden" }),
                o.prependTo(n.$wrapper),
                (r = e.height()),
                (g = e.width()),
                (a = r * (100 / (u = o.height()))),
                50 < (r = g * (100 / o.width())) && 50 < a
                  ? o.detach()
                  : (a < r &&
                      a < 45 &&
                      ((r = Math.sqrt(r * a)), e.css({ width: r + "%" })),
                    90 < r ? (r = 90) : r < 22 && (r = 22),
                    (g = l.x),
                    l.x > (r = 100 - r - 5) ? (g = r) : l.x < 5 && (g = 5),
                    (u = 100 - (a = e.height() * (100 / u)) - 10),
                    (a = l.y),
                    l.y > u ? (a = u) : l.y < 10 && (a = 10),
                    o.detach(),
                    e.css({ left: g + "%", top: a + "%" }))),
              v.addClass("h5p-animate"),
              c.css({ visibility: "" }).addClass("h5p-animate"),
              0 === v.parent().length ? v.prependTo(this.$wrapper) : v.show(),
              v
                .removeClass("h5p-animate")
                .click(f)
                .find(".h5p-popup-container")
                .removeClass("h5p-animate")
                .click(function () {
                  t = !0;
                })
                .keydown(function (e) {
                  27 === e.which && f(e);
                })
                .find(".h5p-close-popup")
                .focus(),
              this.disableTabIndexes(),
              b(v.find(".h5p-close-popup"), f),
              v
            );
          }),
          (ce.prototype.checkForSolutions = function (e) {
            return void 0 !== e.showSolutions || void 0 !== e.showCPComments;
          }),
          (ce.prototype.initKeyEvents = function () {
            var t, n;
            void 0 !== this.keydown ||
              this.activeSurface ||
              ((n = !1),
              ((t = this).keydown = function (e) {
                n ||
                  ((((37 !== e.keyCode && 33 !== e.keyCode) ||
                    !t.previousSlide(void 0, !1)) &&
                    ((39 !== e.keyCode && 34 !== e.keyCode) ||
                      !t.nextSlide(void 0, !1))) ||
                    (e.preventDefault(), (n = !0)),
                  n &&
                    setTimeout(function () {
                      n = !1;
                    }, 300));
              }),
              H5P.jQuery("body").keydown(this.keydown));
          }),
          (ce.prototype.initTouchEvents = function () {
            function r(e) {
              return {
                "-webkit-transform": e,
                "-moz-transform": e,
                "-ms-transform": e,
                transform: e,
              };
            }
            var i,
              o,
              a,
              s,
              c,
              l,
              u = this,
              d = !1,
              p = !1,
              t = r("");
            this.$slidesWrapper
              .bind("touchstart", function (e) {
                ((p = !1),
                  (a = i = e.originalEvent.touches[0].pageX),
                  (o = e.originalEvent.touches[0].pageY));
                e = u.$slidesWrapper.width();
                ((s = 0 === u.currentSlideIndex ? 0 : -e),
                  (c = u.currentSlideIndex + 1 >= u.slides.length ? 0 : e),
                  (d = !(l = null)));
              })
              .bind("touchmove", function (e) {
                var t = e.originalEvent.touches;
                (d &&
                  (u.$current.prev().addClass("h5p-touch-move"),
                  u.$current.next().addClass("h5p-touch-move"),
                  (d = !1)),
                  (a = t[0].pageX));
                var n = i - a;
                (null === l &&
                  (l =
                    Math.abs(o - e.originalEvent.touches[0].pageY) >
                    Math.abs(n)),
                  1 !== t.length ||
                    l ||
                    (e.preventDefault(),
                    p ||
                      (n < 0
                        ? u.$current
                            .prev()
                            .css(r("translateX(" + (s - n) + "px"))
                        : u.$current
                            .next()
                            .css(r("translateX(" + (c - n) + "px)")),
                      u.$current.css(r("translateX(" + -n + "px)")))));
              })
              .bind("touchend", function () {
                if (!l) {
                  var e = i - a;
                  if (
                    (e > u.swipeThreshold && u.nextSlide(void 0, !1)) ||
                    (e < -u.swipeThreshold && u.previousSlide(void 0, !1))
                  )
                    return;
                }
                u.$slidesWrapper
                  .children()
                  .css(t)
                  .removeClass("h5p-touch-move");
              });
          }),
          (ce.prototype.updateTouchPopup = function (e, t, n, r) {
            var i;
            arguments.length <= 0
              ? void 0 !== this.touchPopup && this.touchPopup.remove()
              : ((i = ""),
                void 0 !== this.$keywords &&
                void 0 !==
                  this.$keywords
                    .children(":eq(" + t + ")")
                    .find("span")
                    .html()
                  ? (i += this.$keywords
                      .children(":eq(" + t + ")")
                      .find("span")
                      .html())
                  : (i += this.l10n.slide + " " + (t + 1)),
                void 0 === this.editor &&
                  t >= this.slides.length - 1 &&
                  (i = this.l10n.showSolutions),
                void 0 === this.touchPopup
                  ? (this.touchPopup = H5P.jQuery("<div/>", {
                      class: "h5p-touch-popup",
                    }).insertAfter(e))
                  : this.touchPopup.insertAfter(e),
                r - 0.15 * e.parent().height() < 0
                  ? (r = 0)
                  : (r -= 0.15 * e.parent().height()),
                this.touchPopup.css({
                  "max-width": e.width() - n,
                  left: n,
                  top: r,
                }),
                this.touchPopup.html(i));
          }),
          (ce.prototype.previousSlide = function (e) {
            var t =
                !(1 < arguments.length && void 0 !== arguments[1]) ||
                arguments[1],
              n = this.$current.prev();
            return (
              !!n.length &&
              (t
                ? this.processJumpToSlide(n.index(), e, !1)
                : this.jumpToSlide(n.index(), e, null, !1))
            );
          }),
          (ce.prototype.nextSlide = function (e) {
            var t =
                !(1 < arguments.length && void 0 !== arguments[1]) ||
                arguments[1],
              n = this.$current.next();
            return (
              !!n.length &&
              (t
                ? this.processJumpToSlide(n.index(), e, !1)
                : this.jumpToSlide(n.index(), e, null, !1))
            );
          }),
          (ce.prototype.isCurrentSlide = function (e) {
            return this.currentSlideIndex === e;
          }),
          (ce.prototype.getCurrentSlideIndex = function () {
            return this.currentSlideIndex;
          }),
          (ce.prototype.attachAllElements = function () {
            for (
              var e = this.$slidesWrapper.children(), t = 0;
              t < this.slides.length;
              t++
            )
              this.attachElements(e.eq(t), t);
            void 0 !== this.summarySlideObject &&
              this.summarySlideObject.updateSummarySlide(
                this.slides.length - 1,
                !0,
              );
          }),
          (ce.prototype.processJumpToSlide = function (e, t, n) {
            var r = this;
            if (
              (void 0 === this.editor &&
                this.contentId &&
                (((c =
                  this.createXAPIEventTemplate(
                    "progressed",
                  )).data.statement.object.definition.extensions[
                  "http://id.tincanapi.com/extension/ending-point"
                ] = e + 1),
                this.trigger(c)),
              !this.$current.hasClass("h5p-animate"))
            ) {
              var i = this.$current.addClass("h5p-animate"),
                o = r.$slidesWrapper.children(),
                a = o.filter(":lt(" + e + ")");
              this.$current = o.eq(e).addClass("h5p-animate");
              var s = this.currentSlideIndex;
              ((this.currentSlideIndex = e),
                this.attachElements(this.$current, e));
              var c = this.$current.next();
              return (
                c.length && this.attachElements(c, e + 1),
                this.setOverflowTabIndex(),
                setTimeout(function () {
                  (i.removeClass("h5p-current"),
                    o
                      .css({
                        "-webkit-transform": "",
                        "-moz-transform": "",
                        "-ms-transform": "",
                        transform: "",
                      })
                      .removeClass("h5p-touch-move")
                      .removeClass("h5p-previous"),
                    a.addClass("h5p-previous"),
                    r.$current.addClass("h5p-current"),
                    r.trigger("changedSlide", r.$current.index()));
                }, 1),
                setTimeout(function () {
                  if (
                    (r.$slidesWrapper.children().removeClass("h5p-animate"),
                    void 0 === r.editor)
                  ) {
                    var e = r.elementInstances[r.currentSlideIndex],
                      t = r.slides[r.currentSlideIndex].elements;
                    if (void 0 !== e)
                      for (var n = 0; n < e.length; n++)
                        t[n].displayAsButton ||
                          "function" != typeof e[n].setActivityStarted ||
                          "function" != typeof e[n].getScore ||
                          e[n].setActivityStarted();
                  }
                }, 250),
                void 0 !== this.$keywords &&
                  (this.keywordMenu.setCurrentSlideIndex(e),
                  (this.$currentKeyword = this.$keywords.find(".h5p-current")),
                  t || this.keywordMenu.scrollToKeywords(e)),
                r.presentation.keywordListEnabled &&
                  r.presentation.keywordListAlwaysShow &&
                  r.showKeywords(),
                r.navigationLine &&
                  (r.navigationLine.updateProgressBar(
                    e,
                    s,
                    this.isSolutionMode,
                  ),
                  r.navigationLine.updateFooter(e),
                  this.setSlideNumberAnnouncer(e, n)),
                r.summarySlideObject &&
                  r.summarySlideObject.updateSummarySlide(e, !0),
                void 0 !== this.editor &&
                  void 0 !== this.editor.dnb &&
                  (this.editor.dnb.setContainer(this.$current),
                  this.editor.dnb.blurAll()),
                this.trigger("resize"),
                this.fitCT(),
                !0
              );
            }
          }),
          (ce.prototype.jumpToSlide = function (e) {
            var t = this,
              n =
                1 < arguments.length && void 0 !== arguments[1] && arguments[1],
              r =
                2 < arguments.length && void 0 !== arguments[2]
                  ? arguments[2]
                  : null,
              i =
                3 < arguments.length && void 0 !== arguments[3] && arguments[3];
            if (
              this.standalone &&
              this.showSummarySlide &&
              e === this.slides.length - 1 &&
              !this.isSolutionMode &&
              this.isReportingEnabled &&
              !(4 < arguments.length && void 0 !== arguments[4] && arguments[4])
            ) {
              if (this.currentSlideIndex === this.slides.length - 1) return !1;
              var o = (function (e) {
                e = new H5P.ConfirmationDialog(e).appendTo(document.body);
                return (
                  e.getElement().classList.add("h5p-cp-confirmation-dialog"),
                  e.show(),
                  e
                );
              })({
                headerText: this.l10n.confirmDialogHeader,
                dialogText: this.l10n.confirmDialogText,
                confirmText: this.l10n.confirmDialogConfirmationText,
              });
              (o.on("canceled", function () {
                return !1;
              }),
                o.on("confirmed", function () {
                  (t.processJumpToSlide(e, n, i), r && r());
                }));
            } else (this.processJumpToSlide(e, n, i), r && r());
          }),
          (ce.prototype.setOverflowTabIndex = function () {
            void 0 !== this.$current &&
              this.$current.find(".h5p-element-inner").each(function () {
                var e,
                  t = y(this);
                this.classList.contains("h5p-table") &&
                  (e = t.find(".h5p-table").outerHeight());
                var n = t.closest(".h5p-element-outer").innerHeight();
                void 0 !== e && null !== n && n < e && t.attr("tabindex", 0);
              });
          }),
          (ce.prototype.setSlideNumberAnnouncer = function (e) {
            var t =
                1 < arguments.length && void 0 !== arguments[1] && arguments[1],
              n = "";
            if (!this.navigationLine) return n;
            var r = this.slides[e];
            (r.keywords &&
              0 < r.keywords.length &&
              !this.navigationLine.isSummarySlide(e) &&
              (n += this.l10n.slide + " " + (e + 1) + ": "),
              (n += this.navigationLine.createSlideTitle(e)),
              this.$slideAnnouncer.html(n),
              t && this.$slideTop.focus());
          }),
          (ce.prototype.resetTask = function () {
            this.summarySlideObject.toggleSolutionMode(!1);
            for (var e = 0; e < this.slidesWithSolutions.length; e++)
              if (void 0 !== this.slidesWithSolutions[e])
                for (var t = 0; t < this.slidesWithSolutions[e].length; t++) {
                  var n = this.slidesWithSolutions[e][t];
                  n.resetTask && n.resetTask();
                }
            (this.navigationLine.updateProgressBar(0),
              this.jumpToSlide(0, !1),
              this.$container.find(".h5p-popup-overlay").remove());
          }),
          (ce.prototype.showSolutions = function () {
            for (
              var e = !1, t = [], n = !1, r = 0;
              r < this.slidesWithSolutions.length;
              r++
            ) {
              if (void 0 !== this.slidesWithSolutions[r]) {
                (this.elementsAttached[r] ||
                  this.attachElements(
                    this.$slidesWrapper.children(":eq(" + r + ")"),
                    r,
                  ),
                  e || (this.jumpToSlide(r, !1), (e = !0)));
                for (
                  var i = 0, o = 0, a = [], s = 0;
                  s < this.slidesWithSolutions[r].length;
                  s++
                ) {
                  var c = this.slidesWithSolutions[r][s];
                  (void 0 !== c.addSolutionButton && c.addSolutionButton(),
                    c.showSolutions && c.showSolutions(),
                    c.showCPComments && c.showCPComments(),
                    void 0 !== c.getMaxScore &&
                      ((o += c.getMaxScore()),
                      (i += c.getScore()),
                      (n = !0),
                      a.push(c.coursePresentationIndexOnSlide)));
                }
                t.push({ indexes: a, slide: r + 1, score: i, maxScore: o });
              }
              if (this.showCommentsAfterSolution[r])
                for (
                  var l = 0;
                  l < this.showCommentsAfterSolution[r].length;
                  l++
                )
                  "function" ==
                    typeof this.showCommentsAfterSolution[r][l]
                      .showCPComments &&
                    this.showCommentsAfterSolution[r][l].showCPComments();
            }
            if (n) return t;
          }),
          (ce.prototype.getSlideScores = function (e) {
            for (
              var t = !0 === e, n = [], r = !1, i = 0;
              i < this.slidesWithSolutions.length;
              i++
            )
              if (void 0 !== this.slidesWithSolutions[i]) {
                (this.elementsAttached[i] ||
                  this.attachElements(
                    this.$slidesWrapper.children(":eq(" + i + ")"),
                    i,
                  ),
                  t || (this.jumpToSlide(i, !1), (t = !0)));
                for (
                  var o = 0, a = 0, s = [], c = 0;
                  c < this.slidesWithSolutions[i].length;
                  c++
                ) {
                  var l = this.slidesWithSolutions[i][c];
                  void 0 !== l.getMaxScore &&
                    ((a += l.getMaxScore()),
                    (o += l.getScore()),
                    (r = !0),
                    s.push(l.coursePresentationIndexOnSlide));
                }
                n.push({ indexes: s, slide: i + 1, score: o, maxScore: a });
              }
            if (r) return n;
          }),
          (ce.prototype.getCopyrights = function () {
            var e,
              t,
              n = new H5P.ContentCopyrights();
            this.presentation &&
              this.presentation.globalBackgroundSelector &&
              this.presentation.globalBackgroundSelector
                .imageGlobalBackground &&
              ((e =
                this.presentation.globalBackgroundSelector
                  .imageGlobalBackground),
              (t = new H5P.MediaCopyright(e.copyright)).setThumbnail(
                new H5P.Thumbnail(
                  H5P.getPath(e.path, this.contentId),
                  e.width,
                  e.height,
                ),
              ),
              n.addMedia(t));
            for (var r = 0; r < this.slides.length; r++) {
              var i,
                o,
                a = new H5P.ContentCopyrights();
              if (
                (a.setLabel(this.l10n.slide + " " + (r + 1)),
                this.slides[r] &&
                  this.slides[r].slideBackgroundSelector &&
                  this.slides[r].slideBackgroundSelector.imageSlideBackground &&
                  ((i =
                    this.slides[r].slideBackgroundSelector
                      .imageSlideBackground),
                  (o = new H5P.MediaCopyright(i.copyright)).setThumbnail(
                    new H5P.Thumbnail(
                      H5P.getPath(i.path, this.contentId),
                      i.width,
                      i.height,
                    ),
                  ),
                  a.addMedia(o)),
                void 0 !== this.elementInstances[r])
              )
                for (var s = 0; s < this.elementInstances[r].length; s++) {
                  var c,
                    l,
                    u,
                    d = this.elementInstances[r][s];
                  this.slides[r].elements[s].action &&
                    ((c = this.slides[r].elements[s].action.params),
                    (u = this.slides[r].elements[s].action.metadata),
                    (l = void 0) ===
                      (l =
                        void 0 !== d.getCopyrights ? d.getCopyrights() : l) &&
                      ((l = new H5P.ContentCopyrights()),
                      H5P.findCopyrights(l, c, this.contentId, {
                        metadata: u,
                        machineName: d.libraryInfo.machineName,
                      })),
                    (u = s + 1),
                    void 0 !== c.contentName
                      ? (u += ": " + c.contentName)
                      : void 0 !== d.getTitle
                        ? (u += ": " + d.getTitle())
                        : c.l10n && c.l10n.name && (u += ": " + c.l10n.name),
                    l.setLabel(u),
                    a.addContent(l));
                }
              n.addContent(a);
            }
            return n;
          }),
          (ce.prototype.getXAPIData = function () {
            var e = this.createXAPIEventTemplate("answered"),
              t = e.getVerifiedStatementValue(["object", "definition"]);
            H5P.jQuery.extend(t, {
              interactionType: "compound",
              type: "http://adlnet.gov/expapi/activities/cmi.interaction",
            });
            var n = this.getScore(),
              t = this.getMaxScore();
            e.setScoredResult(n, t, this, !0, n === t);
            t = r(this.slidesWithSolutions)
              .map(function (e) {
                if (e && e.getXAPIData) return e.getXAPIData();
              })
              .filter(function (e) {
                return !!e;
              });
            return { statement: e.data.statement, children: t };
          }),
          (ce.prototype.getContext = function () {
            return { type: "slide", value: this.currentSlideIndex + 1 };
          }));
        e = ce;
        (((H5P = H5P || {}).Tooltip = H5P.Tooltip || function () {}),
          (H5P.CoursePresentation = e));
      })());
  })(),
  /*!@license H5P.Column-1.16/scripts/h5p-column.js by Joubel licensed under MIT*/ (H5P.Column =
    (function (e) {
      function C(n, a, r) {
        var s,
          c = this;
        (e.call(c),
          void 0 === (n = n || {}).useSeparators && (n.useSeparators = !0),
          (this.contentData = r));
        function t() {
          s = document.createElement("div");
          for (var e = 0; e < n.content.length; e++) {
            var t = n.content[e];
            void 0 !== t.content &&
              (n.useSeparators &&
                g(t.content.library.split(" ")[0], t.useSeparator),
              v(t.content, m(e)));
          }
        }
        var i,
          l = [],
          u = [],
          d = 0,
          o = 0,
          p = [],
          h = function () {
            for (var e = 0, t = 0, n = 0; n < p.length; n++) {
              var r = p[n];
              ((e += r.getScore()), (t += r.getMaxScore()));
            }
            c.triggerXAPIScored(e, t, "completed");
          },
          f = function (t) {
            return function (e) {
              null !== e.getScore() &&
                (void 0 === p[t] && o++,
                (p[t] = e),
                ((e =
                  c.createXAPIEventTemplate(
                    "progressed",
                  )).data.statement.object.definition.extensions[
                  "http://id.tincanapi.com/extension/ending-point"
                ] = t + 1),
                c.trigger(e),
                o === d &&
                  setTimeout(function () {
                    h();
                  }, 0));
            };
          },
          v = function (e, t) {
            var n = document.createElement("div");
            n.classList.add("h5p-column-content");
            var r = e.library.split(" ")[0];
            "H5P.Video" === r && (e.params.visuals.fit = !1);
            var i,
              o,
              t = H5P.newRunnable(e, a, void 0, !0, t);
            ((i = "resize"),
              (o = c),
              t.on(i, function (e) {
                ((o.bubblingUpwards = !0),
                  o.trigger(i, e),
                  (o.bubblingUpwards = !1));
              }),
              C.isTask(t) && (t.on("xAPI", f(d)), d++),
              "H5P.Image" === r &&
                t.on("loaded", function () {
                  c.trigger("resize");
                }),
              l.push(t),
              u.push({
                hasAttached: !1,
                container: n,
                instanceIndex: l.length - 1,
              }),
              s.appendChild(n));
          },
          m = function (e) {
            var t = { parent: c };
            return (
              r.previousState &&
                r.previousState.instances &&
                r.previousState.instances[e] &&
                (t.previousState = r.previousState.instances[e]),
              t
            );
          },
          g = function (e, t) {
            var n,
              r = -1 !== k.indexOf(e);
            (void 0 !== i &&
              ((n = document.createElement("div")),
              r || -1 !== T.indexOf(e)
                ? i
                  ? "disabled" !== t && n.classList.add("h5p-column-ruler")
                  : "enabled" === t &&
                    (n.classList.add("h5p-column-ruler"),
                    n.classList.add("h5p-column-space-before"))
                : i
                  ? "enabled" === t &&
                    (n.classList.add("h5p-column-ruler"),
                    n.classList.add("h5p-column-space-after"))
                  : "enabled" === t
                    ? (n.classList.add("h5p-column-ruler"),
                      n.classList.add("h5p-column-space-before-n-after"))
                    : n.classList.add("h5p-column-space-before"),
              s.appendChild(n)),
              (i = r || -1 !== H.indexOf(e)));
          };
        ((c.attach = function (e) {
          (void 0 === s && t(),
            u
              .filter(function (e) {
                return !e.hasAttached;
              })
              .forEach(function (e) {
                (l[e.instanceIndex].attach(H5P.jQuery(e.container)),
                  (function (e) {
                    switch (e.libraryInfo.machineName) {
                      case "H5P.CoursePresentation":
                        e.$fullScreenButton && e.$fullScreenButton.remove();
                        break;
                      case "H5P.InteractiveVideo":
                        e.on("controls", function () {
                          e.controls.$fullscreen &&
                            e.controls.$fullscreen.remove();
                        });
                    }
                  })(l[e.instanceIndex]));
              }),
            e.addClass("h5p-column").html("").append(s));
        }),
          (c.getCurrentState = function () {
            var e = r.previousState || {};
            e.instances || (e.instances = []);
            for (var t = 0; t < l.length; t++) {
              var n = l[t];
              (n.getCurrentState instanceof Function ||
                "function" == typeof n.getCurrentState) &&
                (e.instances[t] = n.getCurrentState());
            }
            return e;
          }),
          (c.getXAPIData = function () {
            var e = c.createXAPIEventTemplate("answered");
            return (
              x(e),
              e.setScoredResult(
                c.getScore(),
                c.getMaxScore(),
                c,
                !0,
                c.getScore() === c.getMaxScore(),
              ),
              { statement: e.data.statement, children: P(l) }
            );
          }),
          (c.getScore = function () {
            return l.reduce(function (e, t) {
              return e + (t.getScore ? t.getScore() : 0);
            }, 0);
          }),
          (c.getMaxScore = function () {
            return l.reduce(function (e, t) {
              return e + (t.getMaxScore ? t.getMaxScore() : 0);
            }, 0);
          }),
          (c.getAnswerGiven = function () {
            return l.reduce(function (e, t) {
              return e && (t.getAnswerGiven ? t.getAnswerGiven() : e);
            }, !0);
          }),
          (c.showSolutions = function () {
            l.forEach(function (e) {
              (e.toggleReadSpeaker && e.toggleReadSpeaker(!0),
                e.showSolutions && e.showSolutions(),
                e.toggleReadSpeaker && e.toggleReadSpeaker(!1));
            });
          }),
          (c.resetTask = function () {
            l.forEach(function (e) {
              e.resetTask && e.resetTask();
            });
          }),
          (c.getInstances = function () {
            return l;
          }),
          (c.getTitle = function () {
            return H5P.createTitle(
              c.contentData &&
                c.contentData.metadata &&
                c.contentData.metadata.title
                ? c.contentData.metadata.title
                : "Column",
            );
          }));
        var b,
          y,
          w,
          x = function (e) {
            e = e.getVerifiedStatementValue(["object", "definition"]);
            H5P.jQuery.extend(e, S());
          },
          S = function () {
            var e = {
              interactionType: "compound",
              type: "http://adlnet.gov/expapi/activities/cmi.interaction",
              description: { "en-US": "" },
            };
            return e;
          },
          P = function (e) {
            return e
              .map(function (e) {
                if ("function" == typeof e.getXAPIData) return e.getXAPIData();
              })
              .filter(function (e) {
                return !!e;
              });
          };
        ((y = "resize"),
          (w = l),
          (b = c).on(y, function (e) {
            if (!b.bubblingUpwards)
              for (var t = 0; t < w.length; t++) w[t].trigger(y, e);
          }),
          void 0 === s && t(),
          c.setActivityStarted());
      }
      C.prototype = Object.create(e.prototype);
      var n = [
        "H5P.ImageHotspotQuestion",
        "H5P.Blanks",
        "H5P.Essay",
        "H5P.SingleChoiceSet",
        "H5P.MultiChoice",
        "H5P.TrueFalse",
        "H5P.DragQuestion",
        "H5P.Summary",
        "H5P.DragText",
        "H5P.MarkTheWords",
        "H5P.MemoryGame",
        "H5P.QuestionSet",
        "H5P.InteractiveVideo",
        "H5P.CoursePresentation",
        "H5P.DocumentationTool",
        "H5P.MultiMediaChoice",
      ];
      (C.prototype.constructor = C).isTask = function (e) {
        if (void 0 !== e.isTask) return e.isTask;
        for (var t = 0; t < n.length; t++)
          if (e.libraryInfo.machineName === n[t]) return !0;
        return !1;
      };
      var k = [
          "H5P.AdvancedText",
          "H5P.AudioRecorder",
          "H5P.Essay",
          "H5P.Link",
          "H5P.Accordion",
          "H5P.Table",
          "H5P.GuessTheAnswer",
          "H5P.Blanks",
          "H5P.MultiChoice",
          "H5P.TrueFalse",
          "H5P.DragQuestion",
          "H5P.Summary",
          "H5P.DragText",
          "H5P.MarkTheWords",
          "H5P.ImageHotspotQuestion",
          "H5P.MemoryGame",
          "H5P.Dialogcards",
          "H5P.QuestionSet",
          "H5P.DocumentationTool",
        ],
        T = ["H5P.SingleChoiceSet"],
        H = [
          "H5P.CoursePresentation",
          "H5P.Dialogcards",
          "H5P.GuessTheAnswer",
          "H5P.ImageSlider",
        ];
      return C;
    })(
      H5P.EventDispatcher,
    )) /*!@license H5P.InteractiveBook-1.7/dist/h5p-interactive-book.js by Joubel licensed under MIT*/,
  (() => {
    var n = {
        9552: (e) => {
          "use strict";
          e.exports = {
            aliceblue: [240, 248, 255],
            antiquewhite: [250, 235, 215],
            aqua: [0, 255, 255],
            aquamarine: [127, 255, 212],
            azure: [240, 255, 255],
            beige: [245, 245, 220],
            bisque: [255, 228, 196],
            black: [0, 0, 0],
            blanchedalmond: [255, 235, 205],
            blue: [0, 0, 255],
            blueviolet: [138, 43, 226],
            brown: [165, 42, 42],
            burlywood: [222, 184, 135],
            cadetblue: [95, 158, 160],
            chartreuse: [127, 255, 0],
            chocolate: [210, 105, 30],
            coral: [255, 127, 80],
            cornflowerblue: [100, 149, 237],
            cornsilk: [255, 248, 220],
            crimson: [220, 20, 60],
            cyan: [0, 255, 255],
            darkblue: [0, 0, 139],
            darkcyan: [0, 139, 139],
            darkgoldenrod: [184, 134, 11],
            darkgray: [169, 169, 169],
            darkgreen: [0, 100, 0],
            darkgrey: [169, 169, 169],
            darkkhaki: [189, 183, 107],
            darkmagenta: [139, 0, 139],
            darkolivegreen: [85, 107, 47],
            darkorange: [255, 140, 0],
            darkorchid: [153, 50, 204],
            darkred: [139, 0, 0],
            darksalmon: [233, 150, 122],
            darkseagreen: [143, 188, 143],
            darkslateblue: [72, 61, 139],
            darkslategray: [47, 79, 79],
            darkslategrey: [47, 79, 79],
            darkturquoise: [0, 206, 209],
            darkviolet: [148, 0, 211],
            deeppink: [255, 20, 147],
            deepskyblue: [0, 191, 255],
            dimgray: [105, 105, 105],
            dimgrey: [105, 105, 105],
            dodgerblue: [30, 144, 255],
            firebrick: [178, 34, 34],
            floralwhite: [255, 250, 240],
            forestgreen: [34, 139, 34],
            fuchsia: [255, 0, 255],
            gainsboro: [220, 220, 220],
            ghostwhite: [248, 248, 255],
            gold: [255, 215, 0],
            goldenrod: [218, 165, 32],
            gray: [128, 128, 128],
            green: [0, 128, 0],
            greenyellow: [173, 255, 47],
            grey: [128, 128, 128],
            honeydew: [240, 255, 240],
            hotpink: [255, 105, 180],
            indianred: [205, 92, 92],
            indigo: [75, 0, 130],
            ivory: [255, 255, 240],
            khaki: [240, 230, 140],
            lavender: [230, 230, 250],
            lavenderblush: [255, 240, 245],
            lawngreen: [124, 252, 0],
            lemonchiffon: [255, 250, 205],
            lightblue: [173, 216, 230],
            lightcoral: [240, 128, 128],
            lightcyan: [224, 255, 255],
            lightgoldenrodyellow: [250, 250, 210],
            lightgray: [211, 211, 211],
            lightgreen: [144, 238, 144],
            lightgrey: [211, 211, 211],
            lightpink: [255, 182, 193],
            lightsalmon: [255, 160, 122],
            lightseagreen: [32, 178, 170],
            lightskyblue: [135, 206, 250],
            lightslategray: [119, 136, 153],
            lightslategrey: [119, 136, 153],
            lightsteelblue: [176, 196, 222],
            lightyellow: [255, 255, 224],
            lime: [0, 255, 0],
            limegreen: [50, 205, 50],
            linen: [250, 240, 230],
            magenta: [255, 0, 255],
            maroon: [128, 0, 0],
            mediumaquamarine: [102, 205, 170],
            mediumblue: [0, 0, 205],
            mediumorchid: [186, 85, 211],
            mediumpurple: [147, 112, 219],
            mediumseagreen: [60, 179, 113],
            mediumslateblue: [123, 104, 238],
            mediumspringgreen: [0, 250, 154],
            mediumturquoise: [72, 209, 204],
            mediumvioletred: [199, 21, 133],
            midnightblue: [25, 25, 112],
            mintcream: [245, 255, 250],
            mistyrose: [255, 228, 225],
            moccasin: [255, 228, 181],
            navajowhite: [255, 222, 173],
            navy: [0, 0, 128],
            oldlace: [253, 245, 230],
            olive: [128, 128, 0],
            olivedrab: [107, 142, 35],
            orange: [255, 165, 0],
            orangered: [255, 69, 0],
            orchid: [218, 112, 214],
            palegoldenrod: [238, 232, 170],
            palegreen: [152, 251, 152],
            paleturquoise: [175, 238, 238],
            palevioletred: [219, 112, 147],
            papayawhip: [255, 239, 213],
            peachpuff: [255, 218, 185],
            peru: [205, 133, 63],
            pink: [255, 192, 203],
            plum: [221, 160, 221],
            powderblue: [176, 224, 230],
            purple: [128, 0, 128],
            rebeccapurple: [102, 51, 153],
            red: [255, 0, 0],
            rosybrown: [188, 143, 143],
            royalblue: [65, 105, 225],
            saddlebrown: [139, 69, 19],
            salmon: [250, 128, 114],
            sandybrown: [244, 164, 96],
            seagreen: [46, 139, 87],
            seashell: [255, 245, 238],
            sienna: [160, 82, 45],
            silver: [192, 192, 192],
            skyblue: [135, 206, 235],
            slateblue: [106, 90, 205],
            slategray: [112, 128, 144],
            slategrey: [112, 128, 144],
            snow: [255, 250, 250],
            springgreen: [0, 255, 127],
            steelblue: [70, 130, 180],
            tan: [210, 180, 140],
            teal: [0, 128, 128],
            thistle: [216, 191, 216],
            tomato: [255, 99, 71],
            turquoise: [64, 224, 208],
            violet: [238, 130, 238],
            wheat: [245, 222, 179],
            white: [255, 255, 255],
            whitesmoke: [245, 245, 245],
            yellow: [255, 255, 0],
            yellowgreen: [154, 205, 50],
          };
        },
        6855: (e, t, n) => {
          var r,
            a = n(9552),
            i = n(521),
            s = Object.hasOwnProperty,
            o = Object.create(null);
          for (r in a) s.call(a, r) && (o[a[r]] = r);
          var c = (e.exports = { to: {}, get: {} });
          function l(e, t, n) {
            return Math.min(Math.max(t, e), n);
          }
          function u(e) {
            e = Math.round(e).toString(16).toUpperCase();
            return e.length < 2 ? "0" + e : e;
          }
          ((c.get = function (e) {
            var t, n;
            switch (e.substring(0, 3).toLowerCase()) {
              case "hsl":
                ((t = c.get.hsl(e)), (n = "hsl"));
                break;
              case "hwb":
                ((t = c.get.hwb(e)), (n = "hwb"));
                break;
              default:
                ((t = c.get.rgb(e)), (n = "rgb"));
            }
            return t ? { model: n, value: t } : null;
          }),
            (c.get.rgb = function (e) {
              if (!e) return null;
              var t,
                n,
                r,
                i = [0, 0, 0, 1];
              if ((t = e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i))) {
                for (r = t[2], t = t[1], n = 0; n < 3; n++) {
                  var o = 2 * n;
                  i[n] = parseInt(t.slice(o, 2 + o), 16);
                }
                r && (i[3] = parseInt(r, 16) / 255);
              } else if ((t = e.match(/^#([a-f0-9]{3,4})$/i))) {
                for (r = (t = t[1])[3], n = 0; n < 3; n++)
                  i[n] = parseInt(t[n] + t[n], 16);
                r && (i[3] = parseInt(r + r, 16) / 255);
              } else if (
                (t = e.match(
                  /^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,
                ))
              ) {
                for (n = 0; n < 3; n++) i[n] = parseInt(t[n + 1], 0);
                t[4] &&
                  (t[5]
                    ? (i[3] = 0.01 * parseFloat(t[4]))
                    : (i[3] = parseFloat(t[4])));
              } else {
                if (
                  !(t = e.match(
                    /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,
                  ))
                )
                  return (t = e.match(/^(\w+)$/))
                    ? "transparent" === t[1]
                      ? [0, 0, 0, 0]
                      : s.call(a, t[1])
                        ? (((i = a[t[1]])[3] = 1), i)
                        : null
                    : null;
                for (n = 0; n < 3; n++)
                  i[n] = Math.round(2.55 * parseFloat(t[n + 1]));
                t[4] &&
                  (t[5]
                    ? (i[3] = 0.01 * parseFloat(t[4]))
                    : (i[3] = parseFloat(t[4])));
              }
              for (n = 0; n < 3; n++) i[n] = l(i[n], 0, 255);
              return ((i[3] = l(i[3], 0, 1)), i);
            }),
            (c.get.hsl = function (e) {
              if (!e) return null;
              var t = e.match(
                /^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,
              );
              if (t) {
                e = parseFloat(t[4]);
                return [
                  ((parseFloat(t[1]) % 360) + 360) % 360,
                  l(parseFloat(t[2]), 0, 100),
                  l(parseFloat(t[3]), 0, 100),
                  l(isNaN(e) ? 1 : e, 0, 1),
                ];
              }
              return null;
            }),
            (c.get.hwb = function (e) {
              if (!e) return null;
              var t = e.match(
                /^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,
              );
              if (t) {
                e = parseFloat(t[4]);
                return [
                  ((parseFloat(t[1]) % 360) + 360) % 360,
                  l(parseFloat(t[2]), 0, 100),
                  l(parseFloat(t[3]), 0, 100),
                  l(isNaN(e) ? 1 : e, 0, 1),
                ];
              }
              return null;
            }),
            (c.to.hex = function () {
              var e = i(arguments);
              return (
                "#" +
                u(e[0]) +
                u(e[1]) +
                u(e[2]) +
                (e[3] < 1 ? u(Math.round(255 * e[3])) : "")
              );
            }),
            (c.to.rgb = function () {
              var e = i(arguments);
              return e.length < 4 || 1 === e[3]
                ? "rgb(" +
                    Math.round(e[0]) +
                    ", " +
                    Math.round(e[1]) +
                    ", " +
                    Math.round(e[2]) +
                    ")"
                : "rgba(" +
                    Math.round(e[0]) +
                    ", " +
                    Math.round(e[1]) +
                    ", " +
                    Math.round(e[2]) +
                    ", " +
                    e[3] +
                    ")";
            }),
            (c.to.rgb.percent = function () {
              var e = i(arguments),
                t = Math.round((e[0] / 255) * 100),
                n = Math.round((e[1] / 255) * 100),
                r = Math.round((e[2] / 255) * 100);
              return e.length < 4 || 1 === e[3]
                ? "rgb(" + t + "%, " + n + "%, " + r + "%)"
                : "rgba(" + t + "%, " + n + "%, " + r + "%, " + e[3] + ")";
            }),
            (c.to.hsl = function () {
              var e = i(arguments);
              return e.length < 4 || 1 === e[3]
                ? "hsl(" + e[0] + ", " + e[1] + "%, " + e[2] + "%)"
                : "hsla(" +
                    e[0] +
                    ", " +
                    e[1] +
                    "%, " +
                    e[2] +
                    "%, " +
                    e[3] +
                    ")";
            }),
            (c.to.hwb = function () {
              var e = i(arguments),
                t = "";
              return (
                4 <= e.length && 1 !== e[3] && (t = ", " + e[3]),
                "hwb(" + e[0] + ", " + e[1] + "%, " + e[2] + "%" + t + ")"
              );
            }),
            (c.to.keyword = function (e) {
              return o[e.slice(0, 3)];
            }));
        },
        7124: (n, r, e) => {
          const i = e(6855),
            o = e(7747),
            a = ["keyword", "gray", "hex"],
            s = {};
          for (const n of Object.keys(o))
            s[[...o[n].labels].sort().join("")] = n;
          const c = {};
          function l(e, t) {
            if (!(this instanceof l)) return new l(e, t);
            if ((t = t && t in a ? null : t) && !(t in o))
              throw new Error("Unknown model: " + t);
            let n, r;
            if (null == e)
              ((this.model = "rgb"),
                (this.color = [0, 0, 0]),
                (this.valpha = 1));
            else if (e instanceof l)
              ((this.model = e.model),
                (this.color = [...e.color]),
                (this.valpha = e.valpha));
            else if ("string" == typeof e) {
              const t = i.get(e);
              if (null === t)
                throw new Error("Unable to parse color from string: " + e);
              ((this.model = t.model),
                (r = o[this.model].channels),
                (this.color = t.value.slice(0, r)),
                (this.valpha = "number" == typeof t.value[r] ? t.value[r] : 1));
            } else if (0 < e.length) {
              ((this.model = t || "rgb"), (r = o[this.model].channels));
              const n = Array.prototype.slice.call(e, 0, r);
              ((this.color = d(n, r)),
                (this.valpha = "number" == typeof e[r] ? e[r] : 1));
            } else if ("number" == typeof e)
              ((this.model = "rgb"),
                (this.color = [(e >> 16) & 255, (e >> 8) & 255, 255 & e]),
                (this.valpha = 1));
            else {
              this.valpha = 1;
              const t = Object.keys(e);
              "alpha" in e &&
                (t.splice(t.indexOf("alpha"), 1),
                (this.valpha = "number" == typeof e.alpha ? e.alpha : 0));
              const i = t.sort().join("");
              if (!(i in s))
                throw new Error(
                  "Unable to parse color from object: " + JSON.stringify(e),
                );
              this.model = s[i];
              const a = o[this.model]["labels"],
                c = [];
              for (n = 0; n < a.length; n++) c.push(e[a[n]]);
              this.color = d(c);
            }
            if (c[this.model])
              for (r = o[this.model].channels, n = 0; n < r; n++) {
                const e = c[this.model][n];
                e && (this.color[n] = e(this.color[n]));
              }
            ((this.valpha = Math.max(0, Math.min(1, this.valpha))),
              Object.freeze && Object.freeze(this));
          }
          l.prototype = {
            toString() {
              return this.string();
            },
            toJSON() {
              return this[this.model]();
            },
            string(e) {
              let t = this.model in i.to ? this : this.rgb();
              t = t.round("number" == typeof e ? e : 1);
              e = 1 === t.valpha ? t.color : [...t.color, this.valpha];
              return i.to[t.model](e);
            },
            percentString(e) {
              ((e = this.rgb().round("number" == typeof e ? e : 1)),
                (e = 1 === e.valpha ? e.color : [...e.color, this.valpha]));
              return i.to.rgb.percent(e);
            },
            array() {
              return 1 === this.valpha
                ? [...this.color]
                : [...this.color, this.valpha];
            },
            object() {
              const t = {},
                n = o[this.model]["channels"],
                r = o[this.model]["labels"];
              for (let e = 0; e < n; e++) t[r[e]] = this.color[e];
              return (1 !== this.valpha && (t.alpha = this.valpha), t);
            },
            unitArray() {
              const e = this.rgb().color;
              return (
                (e[0] /= 255),
                (e[1] /= 255),
                (e[2] /= 255),
                1 !== this.valpha && e.push(this.valpha),
                e
              );
            },
            unitObject() {
              const e = this.rgb().object();
              return (
                (e.r /= 255),
                (e.g /= 255),
                (e.b /= 255),
                1 !== this.valpha && (e.alpha = this.valpha),
                e
              );
            },
            round(e) {
              return (
                (e = Math.max(e || 0, 0)),
                new l(
                  [
                    ...this.color.map(
                      ((t = e),
                      function (e) {
                        return Number(e.toFixed(t));
                      }),
                    ),
                    this.valpha,
                  ],
                  this.model,
                )
              );
              var t;
            },
            alpha(e) {
              return void 0 !== e
                ? new l(
                    [...this.color, Math.max(0, Math.min(1, e))],
                    this.model,
                  )
                : this.valpha;
            },
            red: t("rgb", 0, u(255)),
            green: t("rgb", 1, u(255)),
            blue: t("rgb", 2, u(255)),
            hue: t(
              ["hsl", "hsv", "hsl", "hwb", "hcg"],
              0,
              (e) => ((e % 360) + 360) % 360,
            ),
            saturationl: t("hsl", 1, u(100)),
            lightness: t("hsl", 2, u(100)),
            saturationv: t("hsv", 1, u(100)),
            value: t("hsv", 2, u(100)),
            chroma: t("hcg", 1, u(100)),
            gray: t("hcg", 2, u(100)),
            white: t("hwb", 1, u(100)),
            wblack: t("hwb", 2, u(100)),
            cyan: t("cmyk", 0, u(100)),
            magenta: t("cmyk", 1, u(100)),
            yellow: t("cmyk", 2, u(100)),
            black: t("cmyk", 3, u(100)),
            x: t("xyz", 0, u(95.047)),
            y: t("xyz", 1, u(100)),
            z: t("xyz", 2, u(108.833)),
            l: t("lab", 0, u(100)),
            a: t("lab", 1),
            b: t("lab", 2),
            keyword(e) {
              return void 0 !== e
                ? new l(e)
                : o[this.model].keyword(this.color);
            },
            hex(e) {
              return void 0 !== e
                ? new l(e)
                : i.to.hex(this.rgb().round().color);
            },
            hexa(e) {
              if (void 0 !== e) return new l(e);
              e = this.rgb().round().color;
              let t = Math.round(255 * this.valpha)
                .toString(16)
                .toUpperCase();
              return (1 === t.length && (t = "0" + t), i.to.hex(e) + t);
            },
            rgbNumber() {
              var e = this.rgb().color;
              return ((255 & e[0]) << 16) | ((255 & e[1]) << 8) | (255 & e[2]);
            },
            luminosity() {
              const e = this.rgb().color,
                t = [];
              for (var [n, r] of e.entries()) {
                const e = r / 255;
                t[n] = e <= 0.04045 ? e / 12.92 : ((0.055 + e) / 1.055) ** 2.4;
              }
              return 0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2];
            },
            contrast(e) {
              var t = this.luminosity(),
                e = e.luminosity();
              return e < t ? (t + 0.05) / (e + 0.05) : (e + 0.05) / (t + 0.05);
            },
            level(e) {
              e = this.contrast(e);
              return 7 <= e ? "AAA" : 4.5 <= e ? "AA" : "";
            },
            isDark() {
              var e = this.rgb().color;
              return (2126 * e[0] + 7152 * e[1] + 722 * e[2]) / 1e4 < 128;
            },
            isLight() {
              return !this.isDark();
            },
            negate() {
              const t = this.rgb();
              for (let e = 0; e < 3; e++) t.color[e] = 255 - t.color[e];
              return t;
            },
            lighten(e) {
              const t = this.hsl();
              return ((t.color[2] += t.color[2] * e), t);
            },
            darken(e) {
              const t = this.hsl();
              return ((t.color[2] -= t.color[2] * e), t);
            },
            saturate(e) {
              const t = this.hsl();
              return ((t.color[1] += t.color[1] * e), t);
            },
            desaturate(e) {
              const t = this.hsl();
              return ((t.color[1] -= t.color[1] * e), t);
            },
            whiten(e) {
              const t = this.hwb();
              return ((t.color[1] += t.color[1] * e), t);
            },
            blacken(e) {
              const t = this.hwb();
              return ((t.color[2] += t.color[2] * e), t);
            },
            grayscale() {
              var e = this.rgb().color,
                e = 0.3 * e[0] + 0.59 * e[1] + 0.11 * e[2];
              return l.rgb(e, e, e);
            },
            fade(e) {
              return this.alpha(this.valpha - this.valpha * e);
            },
            opaquer(e) {
              return this.alpha(this.valpha + this.valpha * e);
            },
            rotate(e) {
              const t = this.hsl();
              let n = t.color[0];
              return (
                (n = (n + e) % 360),
                (n = n < 0 ? 360 + n : n),
                (t.color[0] = n),
                t
              );
            },
            mix(e, t) {
              if (!e || !e.rgb)
                throw new Error(
                  'Argument to "mix" was not a Color instance, but rather an instance of ' +
                    typeof e,
                );
              const n = e.rgb(),
                r = this.rgb(),
                i = void 0 === t ? 0.5 : t,
                o = 2 * i - 1,
                a = n.alpha() - r.alpha(),
                s = (1 + (o * a == -1 ? o : (o + a) / (1 + o * a))) / 2,
                c = 1 - s;
              return l.rgb(
                s * n.red() + c * r.red(),
                s * n.green() + c * r.green(),
                s * n.blue() + c * r.blue(),
                n.alpha() * i + r.alpha() * (1 - i),
              );
            },
          };
          for (const n of Object.keys(o))
            if (!a.includes(n)) {
              const r = o[n]["channels"];
              ((l.prototype[n] = function (...e) {
                return this.model === n
                  ? new l(this)
                  : 0 < e.length
                    ? new l(e, n)
                    : new l(
                        [
                          ...((e = o[this.model][n].raw(this.color)),
                          Array.isArray(e) ? e : [e]),
                          this.valpha,
                        ],
                        n,
                      );
              }),
                (l[n] = function (...e) {
                  let t = e[0];
                  return ("number" == typeof t && (t = d(e, r)), new l(t, n));
                }));
            }
          function t(n, r, i) {
            for (const e of (n = Array.isArray(n) ? n : [n]))
              (c[e] || (c[e] = []))[r] = i;
            return (
              (n = n[0]),
              function (e) {
                let t;
                return (
                  void 0 !== e
                    ? (i && (e = i(e)), (t = this[n]()), (t.color[r] = e))
                    : ((t = this[n]().color[r]), i && (t = i(t))),
                  t
                );
              }
            );
          }
          function u(t) {
            return function (e) {
              return Math.max(0, Math.min(t, e));
            };
          }
          function d(t, n) {
            for (let e = 0; e < n; e++) "number" != typeof t[e] && (t[e] = 0);
            return t;
          }
          n.exports = l;
        },
        5043: (e, t, n) => {
          const a = n(1086),
            s = {};
          for (const e of Object.keys(a)) s[a[e]] = e;
          const c = {
            rgb: { channels: 3, labels: "rgb" },
            hsl: { channels: 3, labels: "hsl" },
            hsv: { channels: 3, labels: "hsv" },
            hwb: { channels: 3, labels: "hwb" },
            cmyk: { channels: 4, labels: "cmyk" },
            xyz: { channels: 3, labels: "xyz" },
            lab: { channels: 3, labels: "lab" },
            lch: { channels: 3, labels: "lch" },
            hex: { channels: 1, labels: ["hex"] },
            keyword: { channels: 1, labels: ["keyword"] },
            ansi16: { channels: 1, labels: ["ansi16"] },
            ansi256: { channels: 1, labels: ["ansi256"] },
            hcg: { channels: 3, labels: ["h", "c", "g"] },
            apple: { channels: 3, labels: ["r16", "g16", "b16"] },
            gray: { channels: 1, labels: ["gray"] },
          };
          e.exports = c;
          for (const e of Object.keys(c)) {
            if (!("channels" in c[e]))
              throw new Error("missing channels property: " + e);
            if (!("labels" in c[e]))
              throw new Error("missing channel labels property: " + e);
            if (c[e].labels.length !== c[e].channels)
              throw new Error("channel and label counts mismatch: " + e);
            const { channels: t, labels: n } = c[e];
            (delete c[e].channels,
              delete c[e].labels,
              Object.defineProperty(c[e], "channels", { value: t }),
              Object.defineProperty(c[e], "labels", { value: n }));
          }
          ((c.rgb.hsl = function (e) {
            var t = e[0] / 255,
              n = e[1] / 255,
              r = e[2] / 255,
              i = Math.min(t, n, r),
              o = Math.max(t, n, r),
              e = o - i;
            let a;
            (o === i
              ? (a = 0)
              : t === o
                ? (a = (n - r) / e)
                : n === o
                  ? (a = 2 + (r - t) / e)
                  : r === o && (a = 4 + (t - n) / e),
              (a = Math.min(60 * a, 360)),
              a < 0 && (a += 360));
            n = (i + o) / 2;
            return [
              a,
              100 * (o === i ? 0 : n <= 0.5 ? e / (o + i) : e / (2 - o - i)),
              100 * n,
            ];
          }),
            (c.rgb.hsv = function (e) {
              let t, n, r, i, o;
              function a(e) {
                return (u - e) / 6 / d + 0.5;
              }
              const s = e[0] / 255,
                c = e[1] / 255,
                l = e[2] / 255,
                u = Math.max(s, c, l),
                d = u - Math.min(s, c, l);
              return (
                0 == d
                  ? ((i = 0), (o = 0))
                  : ((o = d / u),
                    (t = a(s)),
                    (n = a(c)),
                    (r = a(l)),
                    s === u
                      ? (i = r - n)
                      : c === u
                        ? (i = 1 / 3 + t - r)
                        : l === u && (i = 2 / 3 + n - t),
                    i < 0 ? (i += 1) : 1 < i && --i),
                [360 * i, 100 * o, 100 * u]
              );
            }),
            (c.rgb.hwb = function (e) {
              var t = e[0],
                n = e[1],
                r = e[2];
              return [
                c.rgb.hsl(e)[0],
                100 * ((1 / 255) * Math.min(t, Math.min(n, r))),
                100 * (r = 1 - (1 / 255) * Math.max(t, Math.max(n, r))),
              ];
            }),
            (c.rgb.cmyk = function (e) {
              var t = e[0] / 255,
                n = e[1] / 255,
                r = e[2] / 255,
                e = Math.min(1 - t, 1 - n, 1 - r);
              return [
                100 * ((1 - t - e) / (1 - e) || 0),
                100 * ((1 - n - e) / (1 - e) || 0),
                100 * ((1 - r - e) / (1 - e) || 0),
                100 * e,
              ];
            }),
            (c.rgb.keyword = function (e) {
              const t = s[e];
              if (t) return t;
              let n,
                r = 1 / 0;
              for (const t of Object.keys(a)) {
                const s = a[t],
                  o =
                    ((i = s),
                    (e[0] - i[0]) ** 2 +
                      (e[1] - i[1]) ** 2 +
                      (e[2] - i[2]) ** 2);
                o < r && ((r = o), (n = t));
              }
              var i;
              return n;
            }),
            (c.keyword.rgb = function (e) {
              return a[e];
            }),
            (c.rgb.xyz = function (e) {
              let t = e[0] / 255,
                n = e[1] / 255,
                r = e[2] / 255;
              return (
                (t = 0.04045 < t ? ((t + 0.055) / 1.055) ** 2.4 : t / 12.92),
                (n = 0.04045 < n ? ((n + 0.055) / 1.055) ** 2.4 : n / 12.92),
                (r = 0.04045 < r ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92),
                [
                  100 * (0.4124 * t + 0.3576 * n + 0.1805 * r),
                  100 * (0.2126 * t + 0.7152 * n + 0.0722 * r),
                  100 * (0.0193 * t + 0.1192 * n + 0.9505 * r),
                ]
              );
            }),
            (c.rgb.lab = function (e) {
              e = c.rgb.xyz(e);
              let t = e[0],
                n = e[1],
                r = e[2];
              return (
                (t /= 95.047),
                (n /= 100),
                (r /= 108.883),
                (t = 0.008856 < t ? t ** (1 / 3) : 7.787 * t + 16 / 116),
                (n = 0.008856 < n ? n ** (1 / 3) : 7.787 * n + 16 / 116),
                (r = 0.008856 < r ? r ** (1 / 3) : 7.787 * r + 16 / 116),
                [116 * n - 16, 500 * (t - n), 200 * (n - r)]
              );
            }),
            (c.hsl.rgb = function (e) {
              var t = e[0] / 360,
                n = e[1] / 100,
                e = e[2] / 100;
              let r, i, o;
              if (0 == n) return ((o = 255 * e), [o, o, o]);
              const a = 2 * e - (r = e < 0.5 ? e * (1 + n) : e + n - e * n),
                s = [0, 0, 0];
              for (let e = 0; e < 3; e++)
                ((i = t + (1 / 3) * -(e - 1)),
                  i < 0 && i++,
                  1 < i && i--,
                  (o =
                    6 * i < 1
                      ? a + 6 * (r - a) * i
                      : 2 * i < 1
                        ? r
                        : 3 * i < 2
                          ? a + (r - a) * (2 / 3 - i) * 6
                          : a),
                  (s[e] = 255 * o));
              return s;
            }),
            (c.hsl.hsv = function (e) {
              var t = e[0],
                n = e[1] / 100,
                r = e[2] / 100,
                i = n,
                e = Math.max(r, 0.01);
              return (
                (n *= (r *= 2) <= 1 ? r : 2 - r),
                (i *= e <= 1 ? e : 2 - e),
                [
                  t,
                  100 * (0 == r ? (2 * i) / (e + i) : (2 * n) / (r + n)),
                  ((r + n) / 2) * 100,
                ]
              );
            }),
            (c.hsv.rgb = function (e) {
              var t = e[0] / 60,
                n = e[1] / 100,
                r = e[2] / 100,
                e = Math.floor(t) % 6,
                t = t - Math.floor(t),
                i = 255 * r * (1 - n),
                o = 255 * r * (1 - n * t),
                a = 255 * r * (1 - n * (1 - t));
              switch (((r *= 255), e)) {
                case 0:
                  return [r, a, i];
                case 1:
                  return [o, r, i];
                case 2:
                  return [i, r, a];
                case 3:
                  return [i, o, r];
                case 4:
                  return [a, i, r];
                case 5:
                  return [r, i, o];
              }
            }),
            (c.hsv.hsl = function (e) {
              var t = e[0],
                n = e[1] / 100,
                r = e[2] / 100,
                i = Math.max(r, 0.01),
                e = (2 - n) * r,
                r = (2 - n) * i,
                i = n * i;
              return [
                t,
                100 * ((i /= r <= 1 ? r : 2 - r) || 0),
                100 * (e /= 2),
              ];
            }),
            (c.hwb.rgb = function (e) {
              var t = e[0] / 360;
              let n = e[1] / 100,
                r = e[2] / 100;
              e = n + r;
              let i;
              1 < e && ((n /= e), (r /= e));
              var e = Math.floor(6 * t),
                o = 1 - r;
              ((i = 6 * t - e), 0 != (1 & e) && (i = 1 - i));
              var a = n + i * (o - n);
              let s, c, l;
              switch (e) {
                default:
                case 6:
                case 0:
                  ((s = o), (c = a), (l = n));
                  break;
                case 1:
                  ((s = a), (c = o), (l = n));
                  break;
                case 2:
                  ((s = n), (c = o), (l = a));
                  break;
                case 3:
                  ((s = n), (c = a), (l = o));
                  break;
                case 4:
                  ((s = a), (c = n), (l = o));
                  break;
                case 5:
                  ((s = o), (c = n), (l = a));
              }
              return [255 * s, 255 * c, 255 * l];
            }),
            (c.cmyk.rgb = function (e) {
              var t = e[0] / 100,
                n = e[1] / 100,
                r = e[2] / 100,
                e = e[3] / 100;
              return [
                255 * (1 - Math.min(1, t * (1 - e) + e)),
                255 * (1 - Math.min(1, n * (1 - e) + e)),
                255 * (1 - Math.min(1, r * (1 - e) + e)),
              ];
            }),
            (c.xyz.rgb = function (e) {
              var t = e[0] / 100,
                n = e[1] / 100,
                e = e[2] / 100;
              let r, i, o;
              return (
                (r = 3.2406 * t + -1.5372 * n + -0.4986 * e),
                (i = -0.9689 * t + 1.8758 * n + 0.0415 * e),
                (o = 0.0557 * t + -0.204 * n + 1.057 * e),
                (r =
                  0.0031308 < r ? 1.055 * r ** (1 / 2.4) - 0.055 : 12.92 * r),
                (i =
                  0.0031308 < i ? 1.055 * i ** (1 / 2.4) - 0.055 : 12.92 * i),
                (o =
                  0.0031308 < o ? 1.055 * o ** (1 / 2.4) - 0.055 : 12.92 * o),
                (r = Math.min(Math.max(0, r), 1)),
                (i = Math.min(Math.max(0, i), 1)),
                (o = Math.min(Math.max(0, o), 1)),
                [255 * r, 255 * i, 255 * o]
              );
            }),
            (c.xyz.lab = function (e) {
              let t = e[0],
                n = e[1],
                r = e[2];
              return (
                (t /= 95.047),
                (n /= 100),
                (r /= 108.883),
                (t = 0.008856 < t ? t ** (1 / 3) : 7.787 * t + 16 / 116),
                (n = 0.008856 < n ? n ** (1 / 3) : 7.787 * n + 16 / 116),
                (r = 0.008856 < r ? r ** (1 / 3) : 7.787 * r + 16 / 116),
                [116 * n - 16, 500 * (t - n), 200 * (n - r)]
              );
            }),
            (c.lab.xyz = function (e) {
              let t, n, r;
              ((n = (e[0] + 16) / 116),
                (t = e[1] / 500 + n),
                (r = n - e[2] / 200));
              var i = n ** 3,
                o = t ** 3,
                e = r ** 3;
              return (
                (n = 0.008856 < i ? i : (n - 16 / 116) / 7.787),
                (t = 0.008856 < o ? o : (t - 16 / 116) / 7.787),
                (r = 0.008856 < e ? e : (r - 16 / 116) / 7.787),
                (t *= 95.047),
                (n *= 100),
                (r *= 108.883),
                [t, n, r]
              );
            }),
            (c.lab.lch = function (e) {
              var t = e[0],
                n = e[1],
                e = e[2];
              let r;
              return (
                (r = (360 * Math.atan2(e, n)) / 2 / Math.PI),
                r < 0 && (r += 360),
                [t, Math.sqrt(n * n + e * e), r]
              );
            }),
            (c.lch.lab = function (e) {
              var t = e[0],
                n = e[1],
                e = (e[2] / 360) * 2 * Math.PI;
              return [t, n * Math.cos(e), n * Math.sin(e)];
            }),
            (c.rgb.ansi16 = function (e, t = null) {
              var [n, r, i] = e,
                t = null === t ? c.rgb.hsv(e)[2] : t;
              if (0 === (t = Math.round(t / 50))) return 30;
              let o =
                30 +
                ((Math.round(i / 255) << 2) |
                  (Math.round(r / 255) << 1) |
                  Math.round(n / 255));
              return (2 === t && (o += 60), o);
            }),
            (c.hsv.ansi16 = function (e) {
              return c.rgb.ansi16(c.hsv.rgb(e), e[2]);
            }),
            (c.rgb.ansi256 = function (e) {
              var t = e[0],
                n = e[1],
                e = e[2];
              return t === n && n === e
                ? t < 8
                  ? 16
                  : 248 < t
                    ? 231
                    : Math.round(((t - 8) / 247) * 24) + 232
                : 16 +
                    36 * Math.round((t / 255) * 5) +
                    6 * Math.round((n / 255) * 5) +
                    Math.round((e / 255) * 5);
            }),
            (c.ansi16.rgb = function (e) {
              let t = e % 10;
              if (0 === t || 7 === t)
                return (
                  50 < e && (t += 3.5),
                  (t = (t / 10.5) * 255),
                  [t, t, t]
                );
              e = 0.5 * (1 + ~~(50 < e));
              return [
                (1 & t) * e * 255,
                ((t >> 1) & 1) * e * 255,
                ((t >> 2) & 1) * e * 255,
              ];
            }),
            (c.ansi256.rgb = function (e) {
              if (232 <= e) {
                const t = 10 * (e - 232) + 8;
                return [t, t, t];
              }
              let t;
              return (
                (e -= 16),
                [
                  (Math.floor(e / 36) / 5) * 255,
                  (Math.floor((t = e % 36) / 6) / 5) * 255,
                  ((t % 6) / 5) * 255,
                ]
              );
            }),
            (c.rgb.hex = function (e) {
              e = (
                ((255 & Math.round(e[0])) << 16) +
                ((255 & Math.round(e[1])) << 8) +
                (255 & Math.round(e[2]))
              )
                .toString(16)
                .toUpperCase();
              return "000000".substring(e.length) + e;
            }),
            (c.hex.rgb = function (e) {
              e = e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
              if (!e) return [0, 0, 0];
              let t = e[0];
              3 === e[0].length &&
                (t = t
                  .split("")
                  .map((e) => e + e)
                  .join(""));
              e = parseInt(t, 16);
              return [(e >> 16) & 255, (e >> 8) & 255, 255 & e];
            }),
            (c.rgb.hcg = function (e) {
              var t = e[0] / 255,
                n = e[1] / 255,
                r = e[2] / 255,
                i = Math.max(Math.max(t, n), r),
                o = Math.min(Math.min(t, n), r),
                e = i - o,
                n =
                  e <= 0
                    ? 0
                    : i === t
                      ? ((n - r) / e) % 6
                      : i === n
                        ? 2 + (r - t) / e
                        : 4 + (t - n) / e;
              return (
                (n /= 6),
                [360 * (n %= 1), 100 * e, 100 * (e < 1 ? o / (1 - e) : 0)]
              );
            }),
            (c.hsl.hcg = function (e) {
              var t = e[1] / 100,
                n = e[2] / 100,
                t = n < 0.5 ? 2 * t * n : 2 * t * (1 - n);
              let r = t < 1 ? (n - 0.5 * t) / (1 - t) : 0;
              return [e[0], 100 * t, 100 * r];
            }),
            (c.hsv.hcg = function (e) {
              var t = e[1] / 100,
                n = e[2] / 100,
                t = t * n;
              let r = t < 1 ? (n - t) / (1 - t) : 0;
              return [e[0], 100 * t, 100 * r];
            }),
            (c.hcg.rgb = function (e) {
              var t = e[0] / 360,
                n = e[1] / 100,
                e = e[2] / 100;
              if (0 == n) return [255 * e, 255 * e, 255 * e];
              const r = [0, 0, 0],
                i = (t % 1) * 6,
                o = i % 1,
                a = 1 - o;
              switch (Math.floor(i)) {
                case 0:
                  ((r[0] = 1), (r[1] = o), (r[2] = 0));
                  break;
                case 1:
                  ((r[0] = a), (r[1] = 1), (r[2] = 0));
                  break;
                case 2:
                  ((r[0] = 0), (r[1] = 1), (r[2] = o));
                  break;
                case 3:
                  ((r[0] = 0), (r[1] = a), (r[2] = 1));
                  break;
                case 4:
                  ((r[0] = o), (r[1] = 0), (r[2] = 1));
                  break;
                default:
                  ((r[0] = 1), (r[1] = 0), (r[2] = a));
              }
              return (
                (e = (1 - n) * e),
                [
                  255 * (n * r[0] + e),
                  255 * (n * r[1] + e),
                  255 * (n * r[2] + e),
                ]
              );
            }),
            (c.hcg.hsv = function (e) {
              var t = e[1] / 100,
                n = t + (e[2] / 100) * (1 - t);
              let r = 0 < n ? t / n : 0;
              return [e[0], 100 * r, 100 * n];
            }),
            (c.hcg.hsl = function (e) {
              var t = e[1] / 100,
                n = (e[2] / 100) * (1 - t) + 0.5 * t;
              let r = 0;
              return (
                0 < n && n < 0.5
                  ? (r = t / (2 * n))
                  : 0.5 <= n && n < 1 && (r = t / (2 * (1 - n))),
                [e[0], 100 * r, 100 * n]
              );
            }),
            (c.hcg.hwb = function (e) {
              var t = e[1] / 100,
                n = t + (e[2] / 100) * (1 - t);
              return [e[0], 100 * (n - t), 100 * (1 - n)];
            }),
            (c.hwb.hcg = function (e) {
              var t = e[1] / 100,
                n = 1 - e[2] / 100,
                t = n - t;
              let r = t < 1 ? (n - t) / (1 - t) : 0;
              return [e[0], 100 * t, 100 * r];
            }),
            (c.apple.rgb = function (e) {
              return [
                (e[0] / 65535) * 255,
                (e[1] / 65535) * 255,
                (e[2] / 65535) * 255,
              ];
            }),
            (c.rgb.apple = function (e) {
              return [
                (e[0] / 255) * 65535,
                (e[1] / 255) * 65535,
                (e[2] / 255) * 65535,
              ];
            }),
            (c.gray.rgb = function (e) {
              return [
                (e[0] / 100) * 255,
                (e[0] / 100) * 255,
                (e[0] / 100) * 255,
              ];
            }),
            (c.gray.hsl = function (e) {
              return [0, 0, e[0]];
            }),
            (c.gray.hsv = c.gray.hsl),
            (c.gray.hwb = function (e) {
              return [0, 100, e[0]];
            }),
            (c.gray.cmyk = function (e) {
              return [0, 0, 0, e[0]];
            }),
            (c.gray.lab = function (e) {
              return [e[0], 0, 0];
            }),
            (c.gray.hex = function (e) {
              ((e = 255 & Math.round((e[0] / 100) * 255)),
                (e = ((e << 16) + (e << 8) + e).toString(16).toUpperCase()));
              return "000000".substring(e.length) + e;
            }),
            (c.rgb.gray = function (e) {
              return [((e[0] + e[1] + e[2]) / 3 / 255) * 100];
            }));
        },
        7747: (e, t, n) => {
          const r = n(5043),
            i = n(8074),
            c = {};
          (Object.keys(r).forEach((a) => {
            ((c[a] = {}),
              Object.defineProperty(c[a], "channels", { value: r[a].channels }),
              Object.defineProperty(c[a], "labels", { value: r[a].labels }));
            const s = i(a);
            Object.keys(s).forEach((e) => {
              var n,
                r,
                t = s[e];
              function i(...e) {
                var t = e[0];
                return null == t ? t : (1 < t.length && (e = t), n(e));
              }
              function o(...e) {
                var t = e[0];
                if (null == t) return t;
                1 < t.length && (e = t);
                const n = r(e);
                if ("object" == typeof n)
                  for (let e = n.length, t = 0; t < e; t++)
                    n[t] = Math.round(n[t]);
                return n;
              }
              ((c[a][e] =
                ("conversion" in (r = t) && (o.conversion = r.conversion), o)),
                (c[a][e].raw =
                  ("conversion" in (n = t) && (i.conversion = n.conversion),
                  i)));
            });
          }),
            (e.exports = c));
        },
        8074: (e, t, n) => {
          const s = n(5043);
          function a(e, t) {
            const n = [t[e].parent, e];
            let r = s[t[e].parent][e],
              i = t[e].parent;
            for (; t[i].parent; )
              (n.unshift(t[i].parent),
                (r = (function (t, n) {
                  return function (e) {
                    return n(t(e));
                  };
                })(s[t[i].parent][i], r)),
                (i = t[i].parent));
            return ((r.conversion = n), r);
          }
          e.exports = function (n) {
            const r = (function (n) {
                const r = (function () {
                    const n = {},
                      r = Object.keys(s);
                    for (let e = r.length, t = 0; t < e; t++)
                      n[r[t]] = { distance: -1, parent: null };
                    return n;
                  })(),
                  i = [n];
                for (r[n].distance = 0; i.length; ) {
                  const n = i.pop(),
                    o = Object.keys(s[n]);
                  for (let e = o.length, t = 0; t < e; t++) {
                    const s = o[t],
                      a = r[s];
                    -1 === a.distance &&
                      ((a.distance = r[n].distance + 1),
                      (a.parent = n),
                      i.unshift(s));
                  }
                }
                return r;
              })(n),
              i = {},
              o = Object.keys(r);
            for (let e = o.length, t = 0; t < e; t++) {
              const n = o[t];
              null !== r[n].parent && (i[n] = a(n, r));
            }
            return i;
          };
        },
        1086: (e) => {
          "use strict";
          e.exports = {
            aliceblue: [240, 248, 255],
            antiquewhite: [250, 235, 215],
            aqua: [0, 255, 255],
            aquamarine: [127, 255, 212],
            azure: [240, 255, 255],
            beige: [245, 245, 220],
            bisque: [255, 228, 196],
            black: [0, 0, 0],
            blanchedalmond: [255, 235, 205],
            blue: [0, 0, 255],
            blueviolet: [138, 43, 226],
            brown: [165, 42, 42],
            burlywood: [222, 184, 135],
            cadetblue: [95, 158, 160],
            chartreuse: [127, 255, 0],
            chocolate: [210, 105, 30],
            coral: [255, 127, 80],
            cornflowerblue: [100, 149, 237],
            cornsilk: [255, 248, 220],
            crimson: [220, 20, 60],
            cyan: [0, 255, 255],
            darkblue: [0, 0, 139],
            darkcyan: [0, 139, 139],
            darkgoldenrod: [184, 134, 11],
            darkgray: [169, 169, 169],
            darkgreen: [0, 100, 0],
            darkgrey: [169, 169, 169],
            darkkhaki: [189, 183, 107],
            darkmagenta: [139, 0, 139],
            darkolivegreen: [85, 107, 47],
            darkorange: [255, 140, 0],
            darkorchid: [153, 50, 204],
            darkred: [139, 0, 0],
            darksalmon: [233, 150, 122],
            darkseagreen: [143, 188, 143],
            darkslateblue: [72, 61, 139],
            darkslategray: [47, 79, 79],
            darkslategrey: [47, 79, 79],
            darkturquoise: [0, 206, 209],
            darkviolet: [148, 0, 211],
            deeppink: [255, 20, 147],
            deepskyblue: [0, 191, 255],
            dimgray: [105, 105, 105],
            dimgrey: [105, 105, 105],
            dodgerblue: [30, 144, 255],
            firebrick: [178, 34, 34],
            floralwhite: [255, 250, 240],
            forestgreen: [34, 139, 34],
            fuchsia: [255, 0, 255],
            gainsboro: [220, 220, 220],
            ghostwhite: [248, 248, 255],
            gold: [255, 215, 0],
            goldenrod: [218, 165, 32],
            gray: [128, 128, 128],
            green: [0, 128, 0],
            greenyellow: [173, 255, 47],
            grey: [128, 128, 128],
            honeydew: [240, 255, 240],
            hotpink: [255, 105, 180],
            indianred: [205, 92, 92],
            indigo: [75, 0, 130],
            ivory: [255, 255, 240],
            khaki: [240, 230, 140],
            lavender: [230, 230, 250],
            lavenderblush: [255, 240, 245],
            lawngreen: [124, 252, 0],
            lemonchiffon: [255, 250, 205],
            lightblue: [173, 216, 230],
            lightcoral: [240, 128, 128],
            lightcyan: [224, 255, 255],
            lightgoldenrodyellow: [250, 250, 210],
            lightgray: [211, 211, 211],
            lightgreen: [144, 238, 144],
            lightgrey: [211, 211, 211],
            lightpink: [255, 182, 193],
            lightsalmon: [255, 160, 122],
            lightseagreen: [32, 178, 170],
            lightskyblue: [135, 206, 250],
            lightslategray: [119, 136, 153],
            lightslategrey: [119, 136, 153],
            lightsteelblue: [176, 196, 222],
            lightyellow: [255, 255, 224],
            lime: [0, 255, 0],
            limegreen: [50, 205, 50],
            linen: [250, 240, 230],
            magenta: [255, 0, 255],
            maroon: [128, 0, 0],
            mediumaquamarine: [102, 205, 170],
            mediumblue: [0, 0, 205],
            mediumorchid: [186, 85, 211],
            mediumpurple: [147, 112, 219],
            mediumseagreen: [60, 179, 113],
            mediumslateblue: [123, 104, 238],
            mediumspringgreen: [0, 250, 154],
            mediumturquoise: [72, 209, 204],
            mediumvioletred: [199, 21, 133],
            midnightblue: [25, 25, 112],
            mintcream: [245, 255, 250],
            mistyrose: [255, 228, 225],
            moccasin: [255, 228, 181],
            navajowhite: [255, 222, 173],
            navy: [0, 0, 128],
            oldlace: [253, 245, 230],
            olive: [128, 128, 0],
            olivedrab: [107, 142, 35],
            orange: [255, 165, 0],
            orangered: [255, 69, 0],
            orchid: [218, 112, 214],
            palegoldenrod: [238, 232, 170],
            palegreen: [152, 251, 152],
            paleturquoise: [175, 238, 238],
            palevioletred: [219, 112, 147],
            papayawhip: [255, 239, 213],
            peachpuff: [255, 218, 185],
            peru: [205, 133, 63],
            pink: [255, 192, 203],
            plum: [221, 160, 221],
            powderblue: [176, 224, 230],
            purple: [128, 0, 128],
            rebeccapurple: [102, 51, 153],
            red: [255, 0, 0],
            rosybrown: [188, 143, 143],
            royalblue: [65, 105, 225],
            saddlebrown: [139, 69, 19],
            salmon: [250, 128, 114],
            sandybrown: [244, 164, 96],
            seagreen: [46, 139, 87],
            seashell: [255, 245, 238],
            sienna: [160, 82, 45],
            silver: [192, 192, 192],
            skyblue: [135, 206, 235],
            slateblue: [106, 90, 205],
            slategray: [112, 128, 144],
            slategrey: [112, 128, 144],
            snow: [255, 250, 250],
            springgreen: [0, 255, 127],
            steelblue: [70, 130, 180],
            tan: [210, 180, 140],
            teal: [0, 128, 128],
            thistle: [216, 191, 216],
            tomato: [255, 99, 71],
            turquoise: [64, 224, 208],
            violet: [238, 130, 238],
            wheat: [245, 222, 179],
            white: [255, 255, 255],
            whitesmoke: [245, 245, 245],
            yellow: [255, 255, 0],
            yellowgreen: [154, 205, 50],
          };
        },
        5089: (e, t, n) => {
          var r = n(930),
            i = n(9268),
            o = TypeError;
          e.exports = function (e) {
            if (r(e)) return e;
            throw o(i(e) + " is not a function");
          };
        },
        1449: (e, t, n) => {
          var r = n(1956),
            i = n(9268),
            o = TypeError;
          e.exports = function (e) {
            if (r(e)) return e;
            throw o(i(e) + " is not a constructor");
          };
        },
        1378: (e, t, n) => {
          var r = n(930),
            i = String,
            o = TypeError;
          e.exports = function (e) {
            if ("object" == typeof e || r(e)) return e;
            throw o("Can't set " + i(e) + " as a prototype");
          };
        },
        8669: (e, t, n) => {
          var r = n(211),
            i = n(4710),
            n = n(7826).f,
            o = r("unscopables"),
            a = Array.prototype;
          (null == a[o] && n(a, o, { configurable: !0, value: i(null) }),
            (e.exports = function (e) {
              a[o][e] = !0;
            }));
        },
        9966: (e, t, n) => {
          "use strict";
          var r = n(3448).charAt;
          e.exports = function (e, t, n) {
            return t + (n ? r(e, t).length : 1);
          };
        },
        6112: (e, t, n) => {
          var r = n(8759),
            i = String,
            o = TypeError;
          e.exports = function (e) {
            if (r(e)) return e;
            throw o(i(e) + " is not an object");
          };
        },
        1005: (e, t, n) => {
          n = n(3677);
          e.exports = n(function () {
            var e;
            "function" == typeof ArrayBuffer &&
              ((e = new ArrayBuffer(8)),
              Object.isExtensible(e) &&
                Object.defineProperty(e, "a", { value: 8 }));
          });
        },
        1984: (e, t, n) => {
          "use strict";
          var r = n(8062).forEach,
            n = n(2802)("forEach");
          e.exports = n
            ? [].forEach
            : function (e) {
                return r(this, e, 1 < arguments.length ? arguments[1] : void 0);
              };
        },
        1842: (e, t, n) => {
          "use strict";
          var p = n(8516),
            h = n(9413),
            f = n(3060),
            v = n(7850),
            m = n(2814),
            g = n(1956),
            b = n(2871),
            y = n(9720),
            w = n(3546),
            x = n(1667),
            S = Array;
          e.exports = function (e) {
            var t = f(e),
              n = g(this),
              e = arguments.length,
              r = 1 < e ? arguments[1] : void 0,
              i = void 0 !== r;
            i && (r = p(r, 2 < e ? arguments[2] : void 0));
            var o,
              a,
              s,
              c,
              l,
              u,
              e = x(t),
              d = 0;
            if (!e || (this === S && m(e)))
              for (o = b(t), a = n ? new this(o) : S(o); d < o; d++)
                ((u = i ? r(t[d], d) : t[d]), y(a, d, u));
            else
              for (
                l = (c = w(t, e)).next, a = n ? new this() : [];
                !(s = h(l, c)).done;
                d++
              )
                ((u = i ? v(c, r, [s.value, d], !0) : s.value), y(a, d, u));
            return ((a.length = d), a);
          };
        },
        6198: (e, t, n) => {
          function r(s) {
            return function (e, t, n) {
              var r,
                i = c(e),
                o = u(i),
                a = l(n, o);
              if (s && t != t) {
                for (; a < o; ) if ((r = i[a++]) != r) return !0;
              } else
                for (; a < o; a++)
                  if ((s || a in i) && i[a] === t) return s || a || 0;
              return !s && -1;
            };
          }
          var c = n(4088),
            l = n(7740),
            u = n(2871);
          e.exports = { includes: r(!0), indexOf: r(!1) };
        },
        8062: (e, t, n) => {
          function r(p) {
            var h = 1 == p,
              f = 2 == p,
              v = 3 == p,
              m = 4 == p,
              g = 6 == p,
              b = 7 == p,
              y = 5 == p || g;
            return function (e, t, n, r) {
              for (
                var i,
                  o,
                  a = S(e),
                  s = x(a),
                  c = w(t, n),
                  l = P(s),
                  u = 0,
                  r = r || C,
                  d = h ? r(e, l) : f || b ? r(e, 0) : void 0;
                u < l;
                u++
              )
                if ((y || u in s) && ((o = c((i = s[u]), u, a)), p))
                  if (h) d[u] = o;
                  else if (o)
                    switch (p) {
                      case 3:
                        return !0;
                      case 5:
                        return i;
                      case 6:
                        return u;
                      case 2:
                        k(d, i);
                    }
                  else
                    switch (p) {
                      case 4:
                        return !1;
                      case 7:
                        k(d, i);
                    }
              return g ? -1 : v || m ? m : d;
            };
          }
          var w = n(8516),
            i = n(8240),
            x = n(5974),
            S = n(3060),
            P = n(2871),
            C = n(5574),
            k = i([].push);
          e.exports = {
            forEach: r(0),
            map: r(1),
            filter: r(2),
            some: r(3),
            every: r(4),
            find: r(5),
            findIndex: r(6),
            filterReject: r(7),
          };
        },
        9955: (e, t, n) => {
          var r = n(3677),
            i = n(211),
            o = n(1448),
            a = i("species");
          e.exports = function (t) {
            return (
              51 <= o ||
              !r(function () {
                var e = [];
                return (
                  ((e.constructor = {})[a] = function () {
                    return { foo: 1 };
                  }),
                  1 !== e[t](Boolean).foo
                );
              })
            );
          };
        },
        2802: (e, t, n) => {
          "use strict";
          var r = n(3677);
          e.exports = function (e, t) {
            var n = [][e];
            return (
              !!n &&
              r(function () {
                n.call(
                  null,
                  t ||
                    function () {
                      return 1;
                    },
                  1,
                );
              })
            );
          };
        },
        3329: (e, t, n) => {
          var c = n(7740),
            l = n(2871),
            u = n(9720),
            d = Array,
            p = Math.max;
          e.exports = function (e, t, n) {
            for (
              var r = l(e),
                i = c(t, r),
                o = c(void 0 === n ? r : n, r),
                a = d(p(o - i, 0)),
                s = 0;
              i < o;
              i++, s++
            )
              u(a, s, e[i]);
            return ((a.length = s), a);
          };
        },
        745: (e, t, n) => {
          n = n(8240);
          e.exports = n([].slice);
        },
        8789: (e, t, n) => {
          var r = n(6526),
            i = n(1956),
            o = n(8759),
            a = n(211)("species"),
            s = Array;
          e.exports = function (e) {
            var t;
            return (
              r(e) &&
                ((t = e.constructor),
                ((i(t) && (t === s || r(t.prototype))) ||
                  (o(t) && null === (t = t[a]))) &&
                  (t = void 0)),
              void 0 === t ? s : t
            );
          };
        },
        5574: (e, t, n) => {
          var r = n(8789);
          e.exports = function (e, t) {
            return new (r(e))(0 === t ? 0 : t);
          };
        },
        7850: (e, t, n) => {
          var i = n(6112),
            o = n(6737);
          e.exports = function (e, t, n, r) {
            try {
              return r ? t(i(n)[0], n[1]) : t(n);
            } catch (t) {
              o(e, "throw", t);
            }
          };
        },
        8939: (e, t, n) => {
          var i = n(211)("iterator"),
            o = !1;
          try {
            var r = 0,
              a = {
                next: function () {
                  return { done: !!r++ };
                },
                return: function () {
                  o = !0;
                },
              };
            ((a[i] = function () {
              return this;
            }),
              Array.from(a, function () {
                throw 2;
              }));
          } catch (e) {}
          e.exports = function (e, t) {
            if (!t && !o) return !1;
            var n = !1;
            try {
              var r = {};
              ((r[i] = function () {
                return {
                  next: function () {
                    return { done: (n = !0) };
                  },
                };
              }),
                e(r));
            } catch (e) {}
            return n;
          };
        },
        2306: (e, t, n) => {
          var n = n(8240),
            r = n({}.toString),
            i = n("".slice);
          e.exports = function (e) {
            return i(r(e), 8, -1);
          };
        },
        375: (e, t, n) => {
          var r = n(2371),
            i = n(930),
            o = n(2306),
            a = n(211)("toStringTag"),
            s = Object,
            c =
              "Arguments" ==
              o(
                (function () {
                  return arguments;
                })(),
              );
          e.exports = r
            ? o
            : function (e) {
                var t;
                return void 0 === e
                  ? "Undefined"
                  : null === e
                    ? "Null"
                    : "string" ==
                        typeof (e = (function (e, t) {
                          try {
                            return e[t];
                          } catch (e) {}
                        })((t = s(e)), a))
                      ? e
                      : c
                        ? o(t)
                        : "Object" == (e = o(t)) && i(t.callee)
                          ? "Arguments"
                          : e;
              };
        },
        8474: (e, t, n) => {
          var c = n(9606),
            l = n(6095),
            u = n(4399),
            d = n(7826);
          e.exports = function (e, t, n) {
            for (var r = l(t), i = d.f, o = u.f, a = 0; a < r.length; a++) {
              var s = r[a];
              c(e, s) || (n && c(n, s)) || i(e, s, o(t, s));
            }
          };
        },
        7209: (e, t, n) => {
          n = n(3677);
          e.exports = !n(function () {
            function e() {}
            return (
              (e.prototype.constructor = null),
              Object.getPrototypeOf(new e()) !== e.prototype
            );
          });
        },
        471: (e, t, n) => {
          "use strict";
          function i() {
            return this;
          }
          var o = n(3083).IteratorPrototype,
            a = n(4710),
            s = n(5736),
            c = n(914),
            l = n(7719);
          e.exports = function (e, t, n, r) {
            t += " Iterator";
            return (
              (e.prototype = a(o, { next: s(+!r, n) })),
              c(e, t, !1, !0),
              (l[t] = i),
              e
            );
          };
        },
        2585: (e, t, n) => {
          var r = n(5283),
            i = n(7826),
            o = n(5736);
          e.exports = r
            ? function (e, t, n) {
                return i.f(e, t, o(1, n));
              }
            : function (e, t, n) {
                return ((e[t] = n), e);
              };
        },
        5736: (e) => {
          e.exports = function (e, t) {
            return {
              enumerable: !(1 & e),
              configurable: !(2 & e),
              writable: !(4 & e),
              value: t,
            };
          };
        },
        9720: (e, t, n) => {
          "use strict";
          var r = n(2258),
            i = n(7826),
            o = n(5736);
          e.exports = function (e, t, n) {
            t = r(t);
            t in e ? i.f(e, t, o(0, n)) : (e[t] = n);
          };
        },
        1343: (e, t, n) => {
          var a = n(930),
            s = n(7826),
            c = n(3712),
            l = n(9444);
          e.exports = function (e, t, n, r) {
            var i = (r = r || {}).enumerable,
              o = void 0 !== r.name ? r.name : t;
            if ((a(n) && c(n, o, r), r.global)) i ? (e[t] = n) : l(t, n);
            else {
              try {
                r.unsafe ? e[t] && (i = !0) : delete e[t];
              } catch (e) {}
              i
                ? (e[t] = n)
                : s.f(e, t, {
                    value: n,
                    enumerable: !1,
                    configurable: !r.nonConfigurable,
                    writable: !r.nonWritable,
                  });
            }
            return e;
          };
        },
        9444: (e, t, n) => {
          var r = n(2086),
            i = Object.defineProperty;
          e.exports = function (t, n) {
            try {
              i(r, t, { value: n, configurable: !0, writable: !0 });
            } catch (e) {
              r[t] = n;
            }
            return n;
          };
        },
        8432: (e, t, n) => {
          "use strict";
          function m() {
            return this;
          }
          var g = n(1695),
            b = n(9413),
            y = n(3296),
            r = n(4398),
            w = n(930),
            x = n(471),
            S = n(2130),
            P = n(7530),
            C = n(914),
            k = n(2585),
            T = n(1343),
            i = n(211),
            H = n(7719),
            n = n(3083),
            E = r.PROPER,
            A = r.CONFIGURABLE,
            I = n.IteratorPrototype,
            L = n.BUGGY_SAFARI_ITERATORS,
            O = i("iterator"),
            j = "values";
          e.exports = function (e, t, n, r, i, o, a) {
            x(n, t, r);
            function s(e) {
              if (e === i && v) return v;
              if (!L && e in h) return h[e];
              switch (e) {
                case "keys":
                case j:
                case "entries":
                  return function () {
                    return new n(this, e);
                  };
              }
              return function () {
                return new n(this);
              };
            }
            var c,
              l,
              u,
              d = t + " Iterator",
              p = !1,
              h = e.prototype,
              f = h[O] || h["@@iterator"] || (i && h[i]),
              v = (!L && f) || s(i),
              r = ("Array" == t && h.entries) || f;
            if (
              (r &&
                (c = S(r.call(new e()))) !== Object.prototype &&
                c.next &&
                (y || S(c) === I || (P ? P(c, I) : w(c[O]) || T(c, O, m)),
                C(c, d, !0, !0),
                y && (H[d] = m)),
              E &&
                i == j &&
                f &&
                f.name !== j &&
                (!y && A
                  ? k(h, "name", j)
                  : ((p = !0),
                    (v = function () {
                      return b(f, this);
                    }))),
              i)
            )
              if (
                ((l = {
                  values: s(j),
                  keys: o ? v : s("keys"),
                  entries: s("entries"),
                }),
                a)
              )
                for (u in l) (!L && !p && u in h) || T(h, u, l[u]);
              else g({ target: t, proto: !0, forced: L || p }, l);
            return (
              (y && !a) || h[O] === v || T(h, O, v, { name: i }),
              (H[t] = v),
              l
            );
          };
        },
        4145: (e, t, n) => {
          var r = n(9775),
            i = n(9606),
            o = n(9251),
            a = n(7826).f;
          e.exports = function (e) {
            var t = r.Symbol || (r.Symbol = {});
            i(t, e) || a(t, e, { value: o.f(e) });
          };
        },
        5283: (e, t, n) => {
          n = n(3677);
          e.exports = !n(function () {
            return (
              7 !=
              Object.defineProperty({}, 1, {
                get: function () {
                  return 7;
                },
              })[1]
            );
          });
        },
        821: (e, t, n) => {
          var r = n(2086),
            n = n(8759),
            i = r.document,
            o = n(i) && n(i.createElement);
          e.exports = function (e) {
            return o ? i.createElement(e) : {};
          };
        },
        7620: (e) => {
          var t = TypeError;
          e.exports = function (e) {
            if (9007199254740991 < e) throw t("Maximum allowed index exceeded");
            return e;
          };
        },
        933: (e) => {
          e.exports = {
            CSSRuleList: 0,
            CSSStyleDeclaration: 0,
            CSSValueList: 0,
            ClientRectList: 0,
            DOMRectList: 0,
            DOMStringList: 0,
            DOMTokenList: 1,
            DataTransferItemList: 0,
            FileList: 0,
            HTMLAllCollection: 0,
            HTMLCollection: 0,
            HTMLFormElement: 0,
            HTMLSelectElement: 0,
            MediaList: 0,
            MimeTypeArray: 0,
            NamedNodeMap: 0,
            NodeList: 1,
            PaintRequestList: 0,
            Plugin: 0,
            PluginArray: 0,
            SVGLengthList: 0,
            SVGNumberList: 0,
            SVGPathSegList: 0,
            SVGPointList: 0,
            SVGStringList: 0,
            SVGTransformList: 0,
            SourceBufferList: 0,
            StyleSheetList: 0,
            TextTrackCueList: 0,
            TextTrackList: 0,
            TouchList: 0,
          };
        },
        3526: (e, t, n) => {
          ((n = n(821)("span").classList),
            (n = n && n.constructor && n.constructor.prototype));
          e.exports = n === Object.prototype ? void 0 : n;
        },
        4999: (e, t, n) => {
          n = n(563);
          e.exports = n("navigator", "userAgent") || "";
        },
        1448: (e, t, n) => {
          var r,
            i,
            o = n(2086),
            a = n(4999),
            n = o.process,
            o = o.Deno,
            o = (n && n.versions) || (o && o.version),
            o = o && o.v8;
          (!(i = o
            ? 0 < (r = o.split("."))[0] && r[0] < 4
              ? 1
              : +(r[0] + r[1])
            : i) &&
            a &&
            (!(r = a.match(/Edge\/(\d+)/)) || 74 <= r[1]) &&
            (r = a.match(/Chrome\/(\d+)/)) &&
            (i = +r[1]),
            (e.exports = i));
        },
        8684: (e) => {
          e.exports = [
            "constructor",
            "hasOwnProperty",
            "isPrototypeOf",
            "propertyIsEnumerable",
            "toLocaleString",
            "toString",
            "valueOf",
          ];
        },
        1695: (e, t, n) => {
          var l = n(2086),
            u = n(4399).f,
            d = n(2585),
            p = n(1343),
            h = n(9444),
            f = n(8474),
            v = n(7189);
          e.exports = function (e, t) {
            var n,
              r,
              i,
              o,
              a = e.target,
              s = e.global,
              c = e.stat;
            if ((n = s ? l : c ? l[a] || h(a, {}) : (l[a] || {}).prototype))
              for (r in t) {
                if (
                  ((i = t[r]),
                  (o = e.dontCallGetSet ? (o = u(n, r)) && o.value : n[r]),
                  !v(s ? r : a + (c ? "." : "#") + r, e.forced) && void 0 !== o)
                ) {
                  if (typeof i == typeof o) continue;
                  f(i, o);
                }
                ((e.sham || (o && o.sham)) && d(i, "sham", !0), p(n, r, i, e));
              }
          };
        },
        3677: (e) => {
          e.exports = function (e) {
            try {
              return !!e();
            } catch (e) {
              return !0;
            }
          };
        },
        2331: (e, t, n) => {
          "use strict";
          n(2077);
          var c = n(8240),
            l = n(1343),
            u = n(4861),
            d = n(3677),
            p = n(211),
            h = n(2585),
            f = p("species"),
            v = RegExp.prototype;
          e.exports = function (n, e, t, r) {
            var a,
              i = p(n),
              s = !d(function () {
                var e = {};
                return (
                  (e[i] = function () {
                    return 7;
                  }),
                  7 != ""[n](e)
                );
              }),
              o =
                s &&
                !d(function () {
                  var e = !1,
                    t = /a/;
                  return (
                    "split" === n &&
                      (((t = {}).constructor = {}),
                      (t.constructor[f] = function () {
                        return t;
                      }),
                      (t.flags = ""),
                      (t[i] = /./[i])),
                    (t.exec = function () {
                      return ((e = !0), null);
                    }),
                    t[i](""),
                    !e
                  );
                });
            ((s && o && !t) ||
              ((a = c(/./[i])),
              (e = e(i, ""[n], function (e, t, n, r, i) {
                var o = c(e),
                  e = t.exec;
                return e === u || e === v.exec
                  ? s && !i
                    ? { done: !0, value: a(t, n, r) }
                    : { done: !0, value: o(n, t, r) }
                  : { done: !1 };
              })),
              l(String.prototype, n, e[0]),
              l(v, i, e[1])),
              r && h(v[i], "sham", !0));
          };
        },
        6910: (e, t, n) => {
          n = n(3677);
          e.exports = !n(function () {
            return Object.isExtensible(Object.preventExtensions({}));
          });
        },
        7258: (e, t, n) => {
          var r = n(6059),
            n = Function.prototype,
            i = n.apply,
            o = n.call;
          e.exports =
            ("object" == typeof Reflect && Reflect.apply) ||
            (r
              ? o.bind(i)
              : function () {
                  return o.apply(i, arguments);
                });
        },
        8516: (e, t, n) => {
          var r = n(8240),
            i = n(5089),
            o = n(6059),
            a = r(r.bind);
          e.exports = function (e, t) {
            return (
              i(e),
              void 0 === t
                ? e
                : o
                  ? a(e, t)
                  : function () {
                      return e.apply(t, arguments);
                    }
            );
          };
        },
        6059: (e, t, n) => {
          n = n(3677);
          e.exports = !n(function () {
            var e = function () {}.bind();
            return "function" != typeof e || e.hasOwnProperty("prototype");
          });
        },
        2395: (e, t, n) => {
          "use strict";
          var r = n(8240),
            o = n(5089),
            a = n(8759),
            s = n(9606),
            c = n(745),
            n = n(6059),
            l = Function,
            u = r([].concat),
            d = r([].join),
            p = {};
          e.exports = n
            ? l.bind
            : function (t) {
                var n = o(this),
                  e = n.prototype,
                  r = c(arguments, 1),
                  i = function () {
                    var e = u(r, c(arguments));
                    return this instanceof i
                      ? (function (e, t, n) {
                          if (!s(p, t)) {
                            for (var r = [], i = 0; i < t; i++)
                              r[i] = "a[" + i + "]";
                            p[t] = l("C,a", "return new C(" + d(r, ",") + ")");
                          }
                          return p[t](e, n);
                        })(n, e.length, e)
                      : n.apply(t, e);
                  };
                return (a(e) && (i.prototype = e), i);
              };
        },
        9413: (e, t, n) => {
          var n = n(6059),
            r = Function.prototype.call;
          e.exports = n
            ? r.bind(r)
            : function () {
                return r.apply(r, arguments);
              };
        },
        4398: (e, t, n) => {
          var r = n(5283),
            i = n(9606),
            o = Function.prototype,
            a = r && Object.getOwnPropertyDescriptor,
            n = i(o, "name"),
            i = n && "something" === function () {}.name,
            o = n && (!r || a(o, "name").configurable);
          e.exports = { EXISTS: n, PROPER: i, CONFIGURABLE: o };
        },
        8240: (e, t, n) => {
          var r = n(6059),
            i = Function.prototype,
            n = i.bind,
            o = i.call,
            a = r && n.bind(o, o);
          e.exports = r
            ? function (e) {
                return e && a(e);
              }
            : function (e) {
                return (
                  e &&
                  function () {
                    return o.apply(e, arguments);
                  }
                );
              };
        },
        563: (e, t, n) => {
          var r = n(2086),
            i = n(930);
          e.exports = function (e, t) {
            return arguments.length < 2
              ? ((n = r[e]), i(n) ? n : void 0)
              : r[e] && r[e][t];
            var n;
          };
        },
        1667: (e, t, n) => {
          var r = n(375),
            i = n(2964),
            o = n(7719),
            a = n(211)("iterator");
          e.exports = function (e) {
            if (null != e) return i(e, a) || i(e, "@@iterator") || o[r(e)];
          };
        },
        3546: (e, t, n) => {
          var r = n(9413),
            i = n(5089),
            o = n(6112),
            a = n(9268),
            s = n(1667),
            c = TypeError;
          e.exports = function (e, t) {
            var n = arguments.length < 2 ? s(e) : t;
            if (i(n)) return o(r(n, e));
            throw c(a(e) + " is not iterable");
          };
        },
        2964: (e, t, n) => {
          var r = n(5089);
          e.exports = function (e, t) {
            t = e[t];
            return null == t ? void 0 : r(t);
          };
        },
        8509: (e, t, n) => {
          var r = n(8240),
            i = n(3060),
            p = Math.floor,
            h = r("".charAt),
            f = r("".replace),
            v = r("".slice),
            m = /\$([$&'`]|\d{1,2}|<[^>]*>)/g,
            g = /\$([$&'`]|\d{1,2})/g;
          e.exports = function (o, a, s, c, l, e) {
            var u = s + o.length,
              d = c.length,
              t = g;
            return (
              void 0 !== l && ((l = i(l)), (t = m)),
              f(e, t, function (e, t) {
                var n;
                switch (h(t, 0)) {
                  case "$":
                    return "$";
                  case "&":
                    return o;
                  case "`":
                    return v(a, 0, s);
                  case "'":
                    return v(a, u);
                  case "<":
                    n = l[v(t, 1, -1)];
                    break;
                  default:
                    var r = +t;
                    if (0 == r) return e;
                    if (d < r) {
                      var i = p(r / 10);
                      return 0 !== i && i <= d
                        ? void 0 === c[i - 1]
                          ? h(t, 1)
                          : c[i - 1] + h(t, 1)
                        : e;
                    }
                    n = c[r - 1];
                }
                return void 0 === n ? "" : n;
              })
            );
          };
        },
        2086: (e, t, n) => {
          function r(e) {
            return e && e.Math == Math && e;
          }
          e.exports =
            r("object" == typeof globalThis && globalThis) ||
            r("object" == typeof window && window) ||
            r("object" == typeof self && self) ||
            r("object" == typeof n.g && n.g) ||
            (function () {
              return this;
            })() ||
            Function("return this")();
        },
        9606: (e, t, n) => {
          var r = n(8240),
            i = n(3060),
            o = r({}.hasOwnProperty);
          e.exports =
            Object.hasOwn ||
            function (e, t) {
              return o(i(e), t);
            };
        },
        7153: (e) => {
          e.exports = {};
        },
        5963: (e, t, n) => {
          n = n(563);
          e.exports = n("document", "documentElement");
        },
        6761: (e, t, n) => {
          var r = n(5283),
            i = n(3677),
            o = n(821);
          e.exports =
            !r &&
            !i(function () {
              return (
                7 !=
                Object.defineProperty(o("div"), "a", {
                  get: function () {
                    return 7;
                  },
                }).a
              );
            });
        },
        5974: (e, t, n) => {
          var r = n(8240),
            i = n(3677),
            o = n(2306),
            a = Object,
            s = r("".split);
          e.exports = i(function () {
            return !a("z").propertyIsEnumerable(0);
          })
            ? function (e) {
                return "String" == o(e) ? s(e, "") : a(e);
              }
            : a;
        },
        9277: (e, t, n) => {
          var r = n(8240),
            i = n(930),
            n = n(4489),
            o = r(Function.toString);
          (i(n.inspectSource) ||
            (n.inspectSource = function (e) {
              return o(e);
            }),
            (e.exports = n.inspectSource));
        },
        2423: (e, t, n) => {
          function r(e) {
            l(e, m, { value: { objectID: "O" + g++, weakData: {} } });
          }
          var a = n(1695),
            s = n(8240),
            i = n(7153),
            o = n(8759),
            c = n(9606),
            l = n(7826).f,
            u = n(62),
            d = n(3226),
            p = n(3813),
            h = n(5422),
            f = n(6910),
            v = !1,
            m = h("meta"),
            g = 0,
            b = (e.exports = {
              enable: function () {
                ((b.enable = function () {}), (v = !0));
                var i = u.f,
                  o = s([].splice),
                  e = {};
                ((e[m] = 1),
                  i(e).length &&
                    ((u.f = function (e) {
                      for (var t = i(e), n = 0, r = t.length; n < r; n++)
                        if (t[n] === m) {
                          o(t, n, 1);
                          break;
                        }
                      return t;
                    }),
                    a(
                      { target: "Object", stat: !0, forced: !0 },
                      { getOwnPropertyNames: d.f },
                    )));
              },
              fastKey: function (e, t) {
                if (!o(e))
                  return "symbol" == typeof e
                    ? e
                    : ("string" == typeof e ? "S" : "P") + e;
                if (!c(e, m)) {
                  if (!p(e)) return "F";
                  if (!t) return "E";
                  r(e);
                }
                return e[m].objectID;
              },
              getWeakData: function (e, t) {
                if (!c(e, m)) {
                  if (!p(e)) return !0;
                  if (!t) return !1;
                  r(e);
                }
                return e[m].weakData;
              },
              onFreeze: function (e) {
                return (f && v && p(e) && !c(e, m) && r(e), e);
              },
            });
          i[m] = !0;
        },
        3278: (e, t, n) => {
          var r,
            i,
            o,
            a,
            s,
            c,
            l,
            u,
            d = n(9316),
            p = n(2086),
            h = n(8240),
            f = n(8759),
            v = n(2585),
            m = n(9606),
            g = n(4489),
            b = n(8944),
            n = n(7153),
            y = "Object already initialized",
            w = p.TypeError,
            p = p.WeakMap;
          ((l =
            d || g.state
              ? ((r = g.state || (g.state = new p())),
                (i = h(r.get)),
                (o = h(r.has)),
                (a = h(r.set)),
                (s = function (e, t) {
                  if (o(r, e)) throw new w(y);
                  return ((t.facade = e), a(r, e, t), t);
                }),
                (c = function (e) {
                  return i(r, e) || {};
                }),
                function (e) {
                  return o(r, e);
                })
              : ((n[(u = b("state"))] = !0),
                (s = function (e, t) {
                  if (m(e, u)) throw new w(y);
                  return ((t.facade = e), v(e, u, t), t);
                }),
                (c = function (e) {
                  return m(e, u) ? e[u] : {};
                }),
                function (e) {
                  return m(e, u);
                })),
            (e.exports = {
              set: s,
              get: c,
              has: l,
              enforce: function (e) {
                return l(e) ? c(e) : s(e, {});
              },
              getterFor: function (n) {
                return function (e) {
                  var t;
                  if (!f(e) || (t = c(e)).type !== n)
                    throw w("Incompatible receiver, " + n + " required");
                  return t;
                };
              },
            }));
        },
        2814: (e, t, n) => {
          var r = n(211),
            i = n(7719),
            o = r("iterator"),
            a = Array.prototype;
          e.exports = function (e) {
            return void 0 !== e && (i.Array === e || a[o] === e);
          };
        },
        6526: (e, t, n) => {
          var r = n(2306);
          e.exports =
            Array.isArray ||
            function (e) {
              return "Array" == r(e);
            };
        },
        930: (e) => {
          e.exports = function (e) {
            return "function" == typeof e;
          };
        },
        1956: (e, t, n) => {
          function r() {}
          function i(e) {
            if (!c(e)) return !1;
            try {
              return (h(r, p, e), !0);
            } catch (e) {
              return !1;
            }
          }
          function o(e) {
            if (!c(e)) return !1;
            switch (l(e)) {
              case "AsyncFunction":
              case "GeneratorFunction":
              case "AsyncGeneratorFunction":
                return !1;
            }
            try {
              return m || !!v(f, d(e));
            } catch (e) {
              return !0;
            }
          }
          var a = n(8240),
            s = n(3677),
            c = n(930),
            l = n(375),
            u = n(563),
            d = n(9277),
            p = [],
            h = u("Reflect", "construct"),
            f = /^\s*(?:class|function)\b/,
            v = a(f.exec),
            m = !f.exec(r);
          ((o.sham = !0),
            (e.exports =
              !h ||
              s(function () {
                var e;
                return (
                  i(i.call) ||
                  !i(Object) ||
                  !i(function () {
                    e = !0;
                  }) ||
                  e
                );
              })
                ? o
                : i));
        },
        7189: (e, t, n) => {
          function r(e, t) {
            return (e = c[s(e)]) == u || (e != l && (o(t) ? i(t) : !!t));
          }
          var i = n(3677),
            o = n(930),
            a = /#|\.prototype\./,
            s = (r.normalize = function (e) {
              return String(e).replace(a, ".").toLowerCase();
            }),
            c = (r.data = {}),
            l = (r.NATIVE = "N"),
            u = (r.POLYFILL = "P");
          e.exports = r;
        },
        8759: (e, t, n) => {
          var r = n(930);
          e.exports = function (e) {
            return "object" == typeof e ? null !== e : r(e);
          };
        },
        3296: (e) => {
          e.exports = !1;
        },
        7994: (e, t, n) => {
          var r = n(8759),
            i = n(2306),
            o = n(211)("match");
          e.exports = function (e) {
            var t;
            return r(e) && (void 0 !== (t = e[o]) ? !!t : "RegExp" == i(e));
          };
        },
        2071: (e, t, n) => {
          var r = n(563),
            i = n(930),
            o = n(5516),
            n = n(1876),
            a = Object;
          e.exports = n
            ? function (e) {
                return "symbol" == typeof e;
              }
            : function (e) {
                var t = r("Symbol");
                return i(t) && o(t.prototype, a(e));
              };
        },
        6737: (e, t, n) => {
          var o = n(9413),
            a = n(6112),
            s = n(2964);
          e.exports = function (e, t, n) {
            var r, i;
            a(e);
            try {
              if (!(r = s(e, "return"))) {
                if ("throw" === t) throw n;
                return n;
              }
              r = o(r, e);
            } catch (e) {
              ((i = !0), (r = e));
            }
            if ("throw" === t) throw n;
            if (i) throw r;
            return (a(r), n);
          };
        },
        3083: (e, t, n) => {
          "use strict";
          var r,
            i = n(3677),
            o = n(930),
            a = n(4710),
            s = n(2130),
            c = n(1343),
            l = n(211),
            u = n(3296),
            d = l("iterator"),
            n = !1;
          ([].keys &&
            ("next" in (l = [].keys())
              ? (l = s(s(l))) !== Object.prototype && (r = l)
              : (n = !0)),
            null == r ||
            i(function () {
              var e = {};
              return r[d].call(e) !== e;
            })
              ? (r = {})
              : u && (r = a(r)),
            o(r[d]) ||
              c(r, d, function () {
                return this;
              }),
            (e.exports = { IteratorPrototype: r, BUGGY_SAFARI_ITERATORS: n }));
        },
        7719: (e) => {
          e.exports = {};
        },
        2871: (e, t, n) => {
          var r = n(4005);
          e.exports = function (e) {
            return r(e.length);
          };
        },
        3712: (e, t, n) => {
          var r = n(3677),
            i = n(930),
            o = n(9606),
            a = n(5283),
            s = n(4398).CONFIGURABLE,
            c = n(9277),
            n = n(3278),
            l = n.enforce,
            u = n.get,
            d = Object.defineProperty,
            p =
              a &&
              !r(function () {
                return 8 !== d(function () {}, "length", { value: 8 }).length;
              }),
            h = String(String).split("String"),
            e = (e.exports = function (e, t, n) {
              ("Symbol(" === String(t).slice(0, 7) &&
                (t = "[" + String(t).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"),
                n && n.getter && (t = "get " + t),
                n && n.setter && (t = "set " + t),
                (!o(e, "name") || (s && e.name !== t)) &&
                  (a
                    ? d(e, "name", { value: t, configurable: !0 })
                    : (e.name = t)),
                p &&
                  n &&
                  o(n, "arity") &&
                  e.length !== n.arity &&
                  d(e, "length", { value: n.arity }));
              try {
                n && o(n, "constructor") && n.constructor
                  ? a && d(e, "prototype", { writable: !1 })
                  : e.prototype && (e.prototype = void 0);
              } catch (e) {}
              n = l(e);
              return (
                o(n, "source") ||
                  (n.source = h.join("string" == typeof t ? t : "")),
                e
              );
            });
          Function.prototype.toString = e(function () {
            return (i(this) && u(this).source) || c(this);
          }, "toString");
        },
        5681: (e) => {
          var t = Math.ceil,
            n = Math.floor;
          e.exports =
            Math.trunc ||
            function (e) {
              e = +e;
              return (0 < e ? n : t)(e);
            };
        },
        3441: (e, t, n) => {
          n = n(3193);
          e.exports = n && !!Symbol.for && !!Symbol.keyFor;
        },
        3193: (e, t, n) => {
          var r = n(1448),
            n = n(3677);
          e.exports =
            !!Object.getOwnPropertySymbols &&
            !n(function () {
              var e = Symbol();
              return (
                !String(e) ||
                !(Object(e) instanceof Symbol) ||
                (!Symbol.sham && r && r < 41)
              );
            });
        },
        9316: (e, t, n) => {
          var r = n(2086),
            i = n(930),
            n = n(9277),
            r = r.WeakMap;
          e.exports = i(r) && /native code/.test(n(r));
        },
        8675: (e, t, n) => {
          "use strict";
          var p = n(5283),
            r = n(8240),
            h = n(9413),
            i = n(3677),
            f = n(8779),
            v = n(6952),
            m = n(7446),
            g = n(3060),
            b = n(5974),
            o = Object.assign,
            a = Object.defineProperty,
            y = r([].concat);
          e.exports =
            !o ||
            i(function () {
              if (
                p &&
                1 !==
                  o(
                    { b: 1 },
                    o(
                      a({}, "a", {
                        enumerable: !0,
                        get: function () {
                          a(this, "b", { value: 3, enumerable: !1 });
                        },
                      }),
                      { b: 2 },
                    ),
                  ).b
              )
                return !0;
              var e = {},
                t = {},
                n = Symbol(),
                r = "abcdefghijklmnopqrst";
              return (
                (e[n] = 7),
                r.split("").forEach(function (e) {
                  t[e] = e;
                }),
                7 != o({}, e)[n] || f(o({}, t)).join("") != r
              );
            })
              ? function (e, t) {
                  for (
                    var n = g(e), r = arguments.length, i = 1, o = v.f, a = m.f;
                    i < r;

                  )
                    for (
                      var s,
                        c = b(arguments[i++]),
                        l = o ? y(f(c), o(c)) : f(c),
                        u = l.length,
                        d = 0;
                      d < u;

                    )
                      ((s = l[d++]), (p && !h(a, c, s)) || (n[s] = c[s]));
                  return n;
                }
              : o;
        },
        4710: (e, t, n) => {
          function r() {}
          function i(e) {
            (e.write(v("")), e.close());
            var t = e.parentWindow.Object;
            return ((e = null), t);
          }
          var o,
            a = n(6112),
            s = n(7711),
            c = n(8684),
            l = n(7153),
            u = n(5963),
            d = n(821),
            n = n(8944),
            p = "prototype",
            h = "script",
            f = n("IE_PROTO"),
            v = function (e) {
              return "<" + h + ">" + e + "</" + h + ">";
            },
            m = function () {
              try {
                o = new ActiveXObject("htmlfile");
              } catch (e) {}
              var e, t, n;
              m =
                "undefined" == typeof document || (document.domain && o)
                  ? i(o)
                  : ((t = d("iframe")),
                    (n = "java" + h + ":"),
                    (t.style.display = "none"),
                    u.appendChild(t),
                    (t.src = String(n)),
                    (e = t.contentWindow.document).open(),
                    e.write(v("document.F=Object")),
                    e.close(),
                    e.F);
              for (var r = c.length; r--; ) delete m[p][c[r]];
              return m();
            };
          ((l[f] = !0),
            (e.exports =
              Object.create ||
              function (e, t) {
                var n;
                return (
                  null !== e
                    ? ((r[p] = a(e)), (n = new r()), (r[p] = null), (n[f] = e))
                    : (n = m()),
                  void 0 === t ? n : s.f(n, t)
                );
              }));
        },
        7711: (e, t, n) => {
          var r = n(5283),
            i = n(8202),
            s = n(7826),
            c = n(6112),
            l = n(4088),
            u = n(8779);
          t.f =
            r && !i
              ? Object.defineProperties
              : function (e, t) {
                  c(e);
                  for (var n, r = l(t), i = u(t), o = i.length, a = 0; a < o; )
                    s.f(e, (n = i[a++]), r[n]);
                  return e;
                };
        },
        7826: (e, t, n) => {
          var r = n(5283),
            i = n(6761),
            o = n(8202),
            a = n(6112),
            s = n(2258),
            c = TypeError,
            l = Object.defineProperty,
            u = Object.getOwnPropertyDescriptor,
            d = "enumerable",
            p = "configurable",
            h = "writable";
          t.f = r
            ? o
              ? function (e, t, n) {
                  var r;
                  return (
                    a(e),
                    (t = s(t)),
                    a(n),
                    "function" == typeof e &&
                      "prototype" === t &&
                      "value" in n &&
                      h in n &&
                      !n[h] &&
                      (r = u(e, t)) &&
                      r[h] &&
                      ((e[t] = n.value),
                      (n = {
                        configurable: (p in n ? n : r)[p],
                        enumerable: (d in n ? n : r)[d],
                        writable: !1,
                      })),
                    l(e, t, n)
                  );
                }
              : l
            : function (e, t, n) {
                if ((a(e), (t = s(t)), a(n), i))
                  try {
                    return l(e, t, n);
                  } catch (e) {}
                if ("get" in n || "set" in n)
                  throw c("Accessors not supported");
                return ("value" in n && (e[t] = n.value), e);
              };
        },
        4399: (e, t, n) => {
          var r = n(5283),
            i = n(9413),
            o = n(7446),
            a = n(5736),
            s = n(4088),
            c = n(2258),
            l = n(9606),
            u = n(6761),
            d = Object.getOwnPropertyDescriptor;
          t.f = r
            ? d
            : function (e, t) {
                if (((e = s(e)), (t = c(t)), u))
                  try {
                    return d(e, t);
                  } catch (e) {}
                if (l(e, t)) return a(!i(o.f, e, t), e[t]);
              };
        },
        3226: (e, t, n) => {
          var r = n(2306),
            i = n(4088),
            o = n(62).f,
            a = n(3329),
            s =
              "object" == typeof window && window && Object.getOwnPropertyNames
                ? Object.getOwnPropertyNames(window)
                : [];
          e.exports.f = function (e) {
            return s && "Window" == r(e)
              ? (function (e) {
                  try {
                    return o(e);
                  } catch (e) {
                    return a(s);
                  }
                })(e)
              : o(i(e));
          };
        },
        62: (e, t, n) => {
          var r = n(1352),
            i = n(8684).concat("length", "prototype");
          t.f =
            Object.getOwnPropertyNames ||
            function (e) {
              return r(e, i);
            };
        },
        6952: (e, t) => {
          t.f = Object.getOwnPropertySymbols;
        },
        2130: (e, t, n) => {
          var r = n(9606),
            i = n(930),
            o = n(3060),
            a = n(8944),
            n = n(7209),
            s = a("IE_PROTO"),
            c = Object,
            l = c.prototype;
          e.exports = n
            ? c.getPrototypeOf
            : function (e) {
                var t = o(e);
                if (r(t, s)) return t[s];
                e = t.constructor;
                return i(e) && t instanceof e
                  ? e.prototype
                  : t instanceof c
                    ? l
                    : null;
              };
        },
        3813: (e, t, n) => {
          var r = n(3677),
            i = n(8759),
            o = n(2306),
            a = n(1005),
            s = Object.isExtensible,
            r = r(function () {
              s(1);
            });
          e.exports =
            r || a
              ? function (e) {
                  return (
                    !!i(e) && (!a || "ArrayBuffer" != o(e)) && (!s || s(e))
                  );
                }
              : s;
        },
        5516: (e, t, n) => {
          n = n(8240);
          e.exports = n({}.isPrototypeOf);
        },
        1352: (e, t, n) => {
          var r = n(8240),
            a = n(9606),
            s = n(4088),
            c = n(6198).indexOf,
            l = n(7153),
            u = r([].push);
          e.exports = function (e, t) {
            var n,
              r = s(e),
              i = 0,
              o = [];
            for (n in r) !a(l, n) && a(r, n) && u(o, n);
            for (; t.length > i; ) a(r, (n = t[i++])) && (~c(o, n) || u(o, n));
            return o;
          };
        },
        8779: (e, t, n) => {
          var r = n(1352),
            i = n(8684);
          e.exports =
            Object.keys ||
            function (e) {
              return r(e, i);
            };
        },
        7446: (e, t) => {
          "use strict";
          var n = {}.propertyIsEnumerable,
            r = Object.getOwnPropertyDescriptor,
            i = r && !n.call({ 1: 2 }, 1);
          t.f = i
            ? function (e) {
                e = r(this, e);
                return !!e && e.enumerable;
              }
            : n;
        },
        7530: (e, t, n) => {
          var i = n(8240),
            o = n(6112),
            a = n(1378);
          e.exports =
            Object.setPrototypeOf ||
            ("__proto__" in {}
              ? (function () {
                  var n,
                    r = !1,
                    e = {};
                  try {
                    ((n = i(
                      Object.getOwnPropertyDescriptor(
                        Object.prototype,
                        "__proto__",
                      ).set,
                    ))(e, []),
                      (r = e instanceof Array));
                  } catch (n) {}
                  return function (e, t) {
                    return (o(e), a(t), r ? n(e, t) : (e.__proto__ = t), e);
                  };
                })()
              : void 0);
        },
        999: (e, t, n) => {
          "use strict";
          var r = n(2371),
            i = n(375);
          e.exports = r
            ? {}.toString
            : function () {
                return "[object " + i(this) + "]";
              };
        },
        7999: (e, t, n) => {
          var i = n(9413),
            o = n(930),
            a = n(8759),
            s = TypeError;
          e.exports = function (e, t) {
            var n, r;
            if ("string" === t && o((n = e.toString)) && !a((r = i(n, e))))
              return r;
            if (o((n = e.valueOf)) && !a((r = i(n, e)))) return r;
            if ("string" !== t && o((n = e.toString)) && !a((r = i(n, e))))
              return r;
            throw s("Can't convert object to primitive value");
          };
        },
        6095: (e, t, n) => {
          var r = n(563),
            i = n(8240),
            o = n(62),
            a = n(6952),
            s = n(6112),
            c = i([].concat);
          e.exports =
            r("Reflect", "ownKeys") ||
            function (e) {
              var t = o.f(s(e)),
                n = a.f;
              return n ? c(t, n(e)) : t;
            };
        },
        9775: (e, t, n) => {
          n = n(2086);
          e.exports = n;
        },
        1189: (e, t, n) => {
          var r = n(9413),
            i = n(6112),
            o = n(930),
            a = n(2306),
            s = n(4861),
            c = TypeError;
          e.exports = function (e, t) {
            var n = e.exec;
            if (o(n)) {
              n = r(n, e, t);
              return (null !== n && i(n), n);
            }
            if ("RegExp" === a(e)) return r(s, e, t);
            throw c("RegExp#exec called on incompatible receiver");
          };
        },
        4861: (e, t, n) => {
          "use strict";
          var f = n(9413),
            r = n(8240),
            v = n(4059),
            m = n(4276),
            i = n(4930),
            o = n(9197),
            g = n(4710),
            b = n(3278).get,
            a = n(2582),
            n = n(2910),
            y = o("native-string-replace", String.prototype.replace),
            w = RegExp.prototype.exec,
            x = w,
            S = r("".charAt),
            P = r("".indexOf),
            C = r("".replace),
            k = r("".slice),
            T =
              ((o = /b*/g),
              f(w, (r = /a/), "a"),
              f(w, o, "a"),
              0 !== r.lastIndex || 0 !== o.lastIndex),
            H = i.BROKEN_CARET,
            E = void 0 !== /()??/.exec("")[1];
          ((T || E || H || a || n) &&
            (x = function (e) {
              var t,
                n,
                r,
                i,
                o,
                a,
                s = this,
                c = b(s),
                l = v(e),
                u = c.raw;
              if (u)
                return (
                  (u.lastIndex = s.lastIndex),
                  (h = f(x, u, l)),
                  (s.lastIndex = u.lastIndex),
                  h
                );
              var d = c.groups,
                p = H && s.sticky,
                e = f(m, s),
                u = s.source,
                h = 0,
                c = l;
              if (
                (p &&
                  ((e = C(e, "y", "")),
                  -1 === P(e, "g") && (e += "g"),
                  (c = k(l, s.lastIndex)),
                  0 < s.lastIndex &&
                    (!s.multiline ||
                      (s.multiline && "\n" !== S(l, s.lastIndex - 1))) &&
                    ((u = "(?: " + u + ")"), (c = " " + c), h++),
                  (t = new RegExp("^(?:" + u + ")", e))),
                E && (t = new RegExp("^" + u + "$(?!\\s)", e)),
                T && (n = s.lastIndex),
                (r = f(w, p ? t : s, c)),
                p
                  ? r
                    ? ((r.input = k(r.input, h)),
                      (r[0] = k(r[0], h)),
                      (r.index = s.lastIndex),
                      (s.lastIndex += r[0].length))
                    : (s.lastIndex = 0)
                  : T &&
                    r &&
                    (s.lastIndex = s.global ? r.index + r[0].length : n),
                E &&
                  r &&
                  1 < r.length &&
                  f(y, r[0], t, function () {
                    for (i = 1; i < arguments.length - 2; i++)
                      void 0 === arguments[i] && (r[i] = void 0);
                  }),
                r && d)
              )
                for (r.groups = o = g(null), i = 0; i < d.length; i++)
                  o[(a = d[i])[0]] = r[a[1]];
              return r;
            }),
            (e.exports = x));
        },
        4276: (e, t, n) => {
          "use strict";
          var r = n(6112);
          e.exports = function () {
            var e = r(this),
              t = "";
            return (
              e.hasIndices && (t += "d"),
              e.global && (t += "g"),
              e.ignoreCase && (t += "i"),
              e.multiline && (t += "m"),
              e.dotAll && (t += "s"),
              e.unicode && (t += "u"),
              e.unicodeSets && (t += "v"),
              e.sticky && (t += "y"),
              t
            );
          };
        },
        9028: (e, t, n) => {
          var r = n(9413),
            i = n(9606),
            o = n(5516),
            a = n(4276),
            s = RegExp.prototype;
          e.exports = function (e) {
            var t = e.flags;
            return void 0 !== t || "flags" in s || i(e, "flags") || !o(s, e)
              ? t
              : r(a, e);
          };
        },
        4930: (e, t, n) => {
          var r = n(3677),
            i = n(2086).RegExp,
            o = r(function () {
              var e = i("a", "y");
              return ((e.lastIndex = 2), null != e.exec("abcd"));
            }),
            n =
              o ||
              r(function () {
                return !i("a", "y").sticky;
              }),
            r =
              o ||
              r(function () {
                var e = i("^r", "gy");
                return ((e.lastIndex = 2), null != e.exec("str"));
              });
          e.exports = { BROKEN_CARET: r, MISSED_STICKY: n, UNSUPPORTED_Y: o };
        },
        2582: (e, t, n) => {
          var r = n(3677),
            i = n(2086).RegExp;
          e.exports = r(function () {
            var e = i(".", "s");
            return !(e.dotAll && e.exec("\n") && "s" === e.flags);
          });
        },
        2910: (e, t, n) => {
          var r = n(3677),
            i = n(2086).RegExp;
          e.exports = r(function () {
            var e = i("(?<a>b)", "g");
            return (
              "b" !== e.exec("b").groups.a || "bc" !== "b".replace(e, "$<a>c")
            );
          });
        },
        9586: (e) => {
          var t = TypeError;
          e.exports = function (e) {
            if (null == e) throw t("Can't call method on " + e);
            return e;
          };
        },
        914: (e, t, n) => {
          var r = n(7826).f,
            i = n(9606),
            o = n(211)("toStringTag");
          e.exports = function (e, t, n) {
            (e = e && !n ? e.prototype : e) &&
              !i(e, o) &&
              r(e, o, { configurable: !0, value: t });
          };
        },
        8944: (e, t, n) => {
          var r = n(9197),
            i = n(5422),
            o = r("keys");
          e.exports = function (e) {
            return o[e] || (o[e] = i(e));
          };
        },
        4489: (e, t, n) => {
          var r = n(2086),
            i = n(9444),
            n = "__core-js_shared__",
            n = r[n] || i(n, {});
          e.exports = n;
        },
        9197: (e, t, n) => {
          var r = n(3296),
            i = n(4489);
          (e.exports = function (e, t) {
            return i[e] || (i[e] = void 0 !== t ? t : {});
          })("versions", []).push({
            version: "3.23.3",
            mode: r ? "pure" : "global",
            copyright: "© 2014-2022 Denis Pushkarev (zloirock.ru)",
            license: "https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",
            source: "https://github.com/zloirock/core-js",
          });
        },
        8515: (e, t, n) => {
          var r = n(6112),
            i = n(1449),
            o = n(211)("species");
          e.exports = function (e, t) {
            var n,
              e = r(e).constructor;
            return void 0 === e || null == (n = r(e)[o]) ? t : i(n);
          };
        },
        3448: (e, t, n) => {
          function r(o) {
            return function (e, t) {
              var n,
                r = s(c(e)),
                i = a(t),
                e = r.length;
              return i < 0 || e <= i
                ? o
                  ? ""
                  : void 0
                : (t = u(r, i)) < 55296 ||
                    56319 < t ||
                    i + 1 === e ||
                    (n = u(r, i + 1)) < 56320 ||
                    57343 < n
                  ? o
                    ? l(r, i)
                    : t
                  : o
                    ? d(r, i, i + 2)
                    : n - 56320 + ((t - 55296) << 10) + 65536;
            };
          }
          var i = n(8240),
            a = n(9502),
            s = n(4059),
            c = n(9586),
            l = i("".charAt),
            u = i("".charCodeAt),
            d = i("".slice);
          e.exports = { codeAt: r(!1), charAt: r(!0) };
        },
        338: (e, t, n) => {
          var r = n(9413),
            i = n(563),
            o = n(211),
            a = n(1343);
          e.exports = function () {
            var e = i("Symbol"),
              t = e && e.prototype,
              n = t && t.valueOf,
              e = o("toPrimitive");
            t &&
              !t[e] &&
              a(
                t,
                e,
                function (e) {
                  return r(n, this);
                },
                { arity: 1 },
              );
          };
        },
        7740: (e, t, n) => {
          var r = n(9502),
            i = Math.max,
            o = Math.min;
          e.exports = function (e, t) {
            e = r(e);
            return e < 0 ? i(e + t, 0) : o(e, t);
          };
        },
        4088: (e, t, n) => {
          var r = n(5974),
            i = n(9586);
          e.exports = function (e) {
            return r(i(e));
          };
        },
        9502: (e, t, n) => {
          var r = n(5681);
          e.exports = function (e) {
            e = +e;
            return e != e || 0 == e ? 0 : r(e);
          };
        },
        4005: (e, t, n) => {
          var r = n(9502),
            i = Math.min;
          e.exports = function (e) {
            return 0 < e ? i(r(e), 9007199254740991) : 0;
          };
        },
        3060: (e, t, n) => {
          var r = n(9586),
            i = Object;
          e.exports = function (e) {
            return i(r(e));
          };
        },
        1288: (e, t, n) => {
          var r = n(9413),
            i = n(8759),
            o = n(2071),
            a = n(2964),
            s = n(7999),
            n = n(211),
            c = TypeError,
            l = n("toPrimitive");
          e.exports = function (e, t) {
            if (!i(e) || o(e)) return e;
            var n = a(e, l);
            if (n) {
              if (
                ((n = r(n, e, (t = void 0 === t ? "default" : t))),
                !i(n) || o(n))
              )
                return n;
              throw c("Can't convert object to primitive value");
            }
            return s(e, (t = void 0 === t ? "number" : t));
          };
        },
        2258: (e, t, n) => {
          var r = n(1288),
            i = n(2071);
          e.exports = function (e) {
            e = r(e, "string");
            return i(e) ? e : e + "";
          };
        },
        2371: (e, t, n) => {
          var r = {};
          ((r[n(211)("toStringTag")] = "z"),
            (e.exports = "[object z]" === String(r)));
        },
        4059: (e, t, n) => {
          var r = n(375),
            i = String;
          e.exports = function (e) {
            if ("Symbol" === r(e))
              throw TypeError("Cannot convert a Symbol value to a string");
            return i(e);
          };
        },
        9268: (e) => {
          var t = String;
          e.exports = function (e) {
            try {
              return t(e);
            } catch (e) {
              return "Object";
            }
          };
        },
        5422: (e, t, n) => {
          var n = n(8240),
            r = 0,
            i = Math.random(),
            o = n((1).toString);
          e.exports = function (e) {
            return "Symbol(" + (void 0 === e ? "" : e) + ")_" + o(++r + i, 36);
          };
        },
        1876: (e, t, n) => {
          n = n(3193);
          e.exports = n && !Symbol.sham && "symbol" == typeof Symbol.iterator;
        },
        8202: (e, t, n) => {
          var r = n(5283),
            n = n(3677);
          e.exports =
            r &&
            n(function () {
              return (
                42 !=
                Object.defineProperty(function () {}, "prototype", {
                  value: 42,
                  writable: !1,
                }).prototype
              );
            });
        },
        9251: (e, t, n) => {
          n = n(211);
          t.f = n;
        },
        211: (e, t, n) => {
          var r = n(2086),
            i = n(9197),
            o = n(9606),
            a = n(5422),
            s = n(3193),
            c = n(1876),
            l = i("wks"),
            u = r.Symbol,
            d = u && u.for,
            p = c ? u : (u && u.withoutSetter) || a;
          e.exports = function (e) {
            var t;
            return (
              (o(l, e) && (s || "string" == typeof l[e])) ||
                ((t = "Symbol." + e),
                s && o(u, e) ? (l[e] = u[e]) : (l[e] = (c && d ? d : p)(t))),
              l[e]
            );
          };
        },
        3938: (e, t, n) => {
          "use strict";
          var r = n(1695),
            i = n(3677),
            l = n(6526),
            u = n(8759),
            d = n(3060),
            p = n(2871),
            h = n(7620),
            f = n(9720),
            v = n(5574),
            o = n(9955),
            a = n(211),
            n = n(1448),
            m = a("isConcatSpreadable"),
            i =
              51 <= n ||
              !i(function () {
                var e = [];
                return ((e[m] = !1), e.concat()[0] !== e);
              }),
            o = o("concat");
          r(
            { target: "Array", proto: !0, arity: 1, forced: !i || !o },
            {
              concat: function (e) {
                for (
                  var t,
                    n,
                    r,
                    i = d(this),
                    o = v(i, 0),
                    a = 0,
                    s = -1,
                    c = arguments.length;
                  s < c;
                  s++
                )
                  if (
                    (function (e) {
                      if (!u(e)) return !1;
                      var t = e[m];
                      return void 0 !== t ? !!t : l(e);
                    })((r = -1 === s ? i : arguments[s]))
                  )
                    for (n = p(r), h(a + n), t = 0; t < n; t++, a++)
                      t in r && f(o, a, r[t]);
                  else (h(a + 1), f(o, a++, r));
                return ((o.length = a), o);
              },
            },
          );
        },
        8010: (e, t, n) => {
          "use strict";
          var r = n(1695),
            i = n(8062).filter;
          r(
            { target: "Array", proto: !0, forced: !n(9955)("filter") },
            {
              filter: function (e) {
                return i(this, e, 1 < arguments.length ? arguments[1] : void 0);
              },
            },
          );
        },
        5610: (e, t, n) => {
          var r = n(1695),
            i = n(1842);
          r(
            {
              target: "Array",
              stat: !0,
              forced: !n(8939)(function (e) {
                Array.from(e);
              }),
            },
            { from: i },
          );
        },
        5769: (e, t, n) => {
          "use strict";
          var r = n(4088),
            i = n(8669),
            o = n(7719),
            a = n(3278),
            s = n(7826).f,
            c = n(8432),
            l = n(3296),
            n = n(5283),
            u = "Array Iterator",
            d = a.set,
            p = a.getterFor(u);
          e.exports = c(
            Array,
            "Array",
            function (e, t) {
              d(this, { type: u, target: r(e), index: 0, kind: t });
            },
            function () {
              var e = p(this),
                t = e.target,
                n = e.kind,
                r = e.index++;
              return !t || r >= t.length
                ? { value: (e.target = void 0), done: !0 }
                : "keys" == n
                  ? { value: r, done: !1 }
                  : "values" == n
                    ? { value: t[r], done: !1 }
                    : { value: [r, t[r]], done: !1 };
            },
            "values",
          );
          o = o.Arguments = o.Array;
          if (
            (i("keys"),
            i("values"),
            i("entries"),
            !l && n && "values" !== o.name)
          )
            try {
              s(o, "name", { value: "values" });
            } catch (e) {}
        },
        5613: (e, t, n) => {
          "use strict";
          var r = n(1695),
            i = n(8240),
            o = n(5974),
            a = n(4088),
            n = n(2802),
            s = i([].join),
            o = o != Object,
            n = n("join", ",");
          r(
            { target: "Array", proto: !0, forced: o || !n },
            {
              join: function (e) {
                return s(a(this), void 0 === e ? "," : e);
              },
            },
          );
        },
        1013: (e, t, n) => {
          "use strict";
          var r = n(1695),
            i = n(8062).map;
          r(
            { target: "Array", proto: !0, forced: !n(9955)("map") },
            {
              map: function (e) {
                return i(this, e, 1 < arguments.length ? arguments[1] : void 0);
              },
            },
          );
        },
        2410: (e, t, n) => {
          "use strict";
          var r = n(1695),
            l = n(6526),
            u = n(1956),
            d = n(8759),
            p = n(7740),
            h = n(2871),
            f = n(4088),
            v = n(9720),
            i = n(211),
            o = n(9955),
            m = n(745),
            o = o("slice"),
            g = i("species"),
            b = Array,
            y = Math.max;
          r(
            { target: "Array", proto: !0, forced: !o },
            {
              slice: function (e, t) {
                var n,
                  r,
                  i,
                  o = f(this),
                  a = h(o),
                  s = p(e, a),
                  c = p(void 0 === t ? a : t, a);
                if (
                  l(o) &&
                  ((n = o.constructor),
                  (n =
                    (u(n) && (n === b || l(n.prototype))) ||
                    (d(n) && null === (n = n[g]))
                      ? void 0
                      : n) === b || void 0 === n)
                )
                  return m(o, s, c);
                for (
                  r = new (void 0 === n ? b : n)(y(c - s, 0)), i = 0;
                  s < c;
                  s++, i++
                )
                  s in o && v(r, i, o[s]);
                return ((r.length = i), r);
              },
            },
          );
        },
        3352: (e, t, n) => {
          var r = n(5283),
            i = n(4398).EXISTS,
            o = n(8240),
            a = n(7826).f,
            n = Function.prototype,
            s = o(n.toString),
            c =
              /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,
            l = o(c.exec);
          r &&
            !i &&
            a(n, "name", {
              configurable: !0,
              get: function () {
                try {
                  return l(c, s(this))[1];
                } catch (e) {
                  return "";
                }
              },
            });
        },
        5735: (e, t, n) => {
          function i(e, t) {
            var n = v(arguments),
              r = t;
            if ((h(t) || void 0 !== e) && !f(e))
              return (
                d(t) ||
                  (t = function (e, t) {
                    if ((p(r) && (t = c(r, this, e, t)), !f(t))) return t;
                  }),
                (n[1] = t),
                s(m, null, n)
              );
          }
          function o(e, t, n) {
            var r = b(n, t - 1),
              t = b(n, t + 1);
            return (g(P, e) && !g(C, t)) || (g(C, e) && !g(P, r))
              ? "\\u" + x(y(e, 0), 16)
              : e;
          }
          var r = n(1695),
            a = n(563),
            s = n(7258),
            c = n(9413),
            l = n(8240),
            u = n(3677),
            d = n(6526),
            p = n(930),
            h = n(8759),
            f = n(2071),
            v = n(745),
            n = n(3193),
            m = a("JSON", "stringify"),
            g = l(/./.exec),
            b = l("".charAt),
            y = l("".charCodeAt),
            w = l("".replace),
            x = l((1).toString),
            S = /[\uD800-\uDFFF]/g,
            P = /^[\uD800-\uDBFF]$/,
            C = /^[\uDC00-\uDFFF]$/,
            k =
              !n ||
              u(function () {
                var e = a("Symbol")();
                return (
                  "[null]" != m([e]) ||
                  "{}" != m({ a: e }) ||
                  "{}" != m(Object(e))
                );
              }),
            T = u(function () {
              return (
                '"\\udf06\\ud834"' !== m("\udf06\ud834") ||
                '"\\udead"' !== m("\udead")
              );
            });
          m &&
            r(
              { target: "JSON", stat: !0, arity: 3, forced: k || T },
              {
                stringify: function (e, t, n) {
                  var r = v(arguments),
                    r = s(k ? i : m, null, r);
                  return T && "string" == typeof r ? w(r, S, o) : r;
                },
              },
            );
        },
        8410: (e, t, n) => {
          var r = n(1695),
            n = n(8675);
          r(
            {
              target: "Object",
              stat: !0,
              arity: 2,
              forced: Object.assign !== n,
            },
            { assign: n },
          );
        },
        4844: (e, t, n) => {
          var r = n(1695),
            i = n(6910),
            o = n(3677),
            a = n(8759),
            s = n(2423).onFreeze,
            c = Object.freeze;
          r(
            {
              target: "Object",
              stat: !0,
              forced: o(function () {
                c(1);
              }),
              sham: !i,
            },
            {
              freeze: function (e) {
                return c && a(e) ? c(s(e)) : e;
              },
            },
          );
        },
        252: (e, t, n) => {
          var r = n(1695),
            i = n(3677),
            o = n(4088),
            a = n(4399).f,
            n = n(5283),
            i = i(function () {
              a(1);
            });
          r(
            { target: "Object", stat: !0, forced: !n || i, sham: !n },
            {
              getOwnPropertyDescriptor: function (e, t) {
                return a(o(e), t);
              },
            },
          );
        },
        4009: (e, t, n) => {
          var r = n(1695),
            i = n(5283),
            c = n(6095),
            l = n(4088),
            u = n(4399),
            d = n(9720);
          r(
            { target: "Object", stat: !0, sham: !i },
            {
              getOwnPropertyDescriptors: function (e) {
                for (
                  var t, n, r = l(e), i = u.f, o = c(r), a = {}, s = 0;
                  o.length > s;

                )
                  void 0 !== (n = i(r, (t = o[s++]))) && d(a, t, n);
                return a;
              },
            },
          );
        },
        883: (e, t, n) => {
          var r = n(1695),
            i = n(3193),
            o = n(3677),
            a = n(6952),
            s = n(3060);
          r(
            {
              target: "Object",
              stat: !0,
              forced:
                !i ||
                o(function () {
                  a.f(1);
                }),
            },
            {
              getOwnPropertySymbols: function (e) {
                var t = a.f;
                return t ? t(s(e)) : [];
              },
            },
          );
        },
        2274: (e, t, n) => {
          var r = n(1695),
            i = n(3677),
            o = n(3060),
            a = n(2130),
            n = n(7209);
          r(
            {
              target: "Object",
              stat: !0,
              forced: i(function () {
                a(1);
              }),
              sham: !n,
            },
            {
              getPrototypeOf: function (e) {
                return a(o(e));
              },
            },
          );
        },
        2571: (e, t, n) => {
          var r = n(1695),
            i = n(3060),
            o = n(8779);
          r(
            {
              target: "Object",
              stat: !0,
              forced: n(3677)(function () {
                o(1);
              }),
            },
            {
              keys: function (e) {
                return o(i(e));
              },
            },
          );
        },
        3238: (e, t, n) => {
          var r = n(2371),
            i = n(1343),
            n = n(999);
          r || i(Object.prototype, "toString", n, { unsafe: !0 });
        },
        3214: (e, t, n) => {
          var r = n(1695),
            i = n(563),
            o = n(7258),
            a = n(2395),
            s = n(1449),
            c = n(6112),
            l = n(8759),
            u = n(4710),
            n = n(3677),
            d = i("Reflect", "construct"),
            p = Object.prototype,
            h = [].push,
            f = n(function () {
              function e() {}
              return !(d(function () {}, [], e) instanceof e);
            }),
            v = !n(function () {
              d(function () {});
            }),
            n = f || v;
          r(
            { target: "Reflect", stat: !0, forced: n, sham: n },
            {
              construct: function (e, t) {
                (s(e), c(t));
                var n = arguments.length < 3 ? e : s(arguments[2]);
                if (v && !f) return d(e, t, n);
                if (e == n) {
                  switch (t.length) {
                    case 0:
                      return new e();
                    case 1:
                      return new e(t[0]);
                    case 2:
                      return new e(t[0], t[1]);
                    case 3:
                      return new e(t[0], t[1], t[2]);
                    case 4:
                      return new e(t[0], t[1], t[2], t[3]);
                  }
                  var r = [null];
                  return (o(h, r, t), new (o(a, e, r))());
                }
                ((r = n.prototype), (n = u(l(r) ? r : p)), (r = o(e, n, t)));
                return l(r) ? r : n;
              },
            },
          );
        },
        2077: (e, t, n) => {
          "use strict";
          var r = n(1695),
            n = n(4861);
          r(
            { target: "RegExp", proto: !0, forced: /./.exec !== n },
            { exec: n },
          );
        },
        895: (e, t, n) => {
          "use strict";
          var r = n(4398).PROPER,
            i = n(1343),
            o = n(6112),
            a = n(4059),
            s = n(3677),
            c = n(9028),
            n = "toString",
            l = RegExp.prototype[n],
            s = s(function () {
              return "/a/b" != l.call({ source: "a", flags: "b" });
            }),
            r = r && l.name != n;
          (s || r) &&
            i(
              RegExp.prototype,
              n,
              function () {
                var e = o(this);
                return "/" + a(e.source) + "/" + a(c(e));
              },
              { unsafe: !0 },
            );
        },
        7460: (e, t, n) => {
          "use strict";
          var r = n(3448).charAt,
            i = n(4059),
            o = n(3278),
            n = n(8432),
            a = "String Iterator",
            s = o.set,
            c = o.getterFor(a);
          n(
            String,
            "String",
            function (e) {
              s(this, { type: a, string: i(e), index: 0 });
            },
            function () {
              var e = c(this),
                t = e.string,
                n = e.index;
              return n >= t.length
                ? { value: void 0, done: !0 }
                : ((n = r(t, n)),
                  (e.index += n.length),
                  { value: n, done: !1 });
            },
          );
        },
        911: (e, t, n) => {
          "use strict";
          var S = n(7258),
            i = n(9413),
            r = n(8240),
            o = n(2331),
            a = n(3677),
            P = n(6112),
            C = n(930),
            k = n(9502),
            T = n(4005),
            H = n(4059),
            s = n(9586),
            E = n(9966),
            c = n(2964),
            A = n(8509),
            I = n(1189),
            l = n(211)("replace"),
            L = Math.max,
            O = Math.min,
            j = r([].concat),
            D = r([].push),
            M = r("".indexOf),
            B = r("".slice),
            r = "$0" === "a".replace(/./, "$0"),
            u = !!/./[l] && "" === /./[l]("a", "$0");
          o(
            "replace",
            function (e, y, w) {
              var x = u ? "$" : "$0";
              return [
                function (e, t) {
                  var n = s(this),
                    r = null == e ? void 0 : c(e, l);
                  return r ? i(r, e, n, t) : i(y, H(n), e, t);
                },
                function (e, t) {
                  var n = P(this),
                    r = H(e);
                  if (
                    "string" == typeof t &&
                    -1 === M(t, x) &&
                    -1 === M(t, "$<")
                  ) {
                    e = w(y, n, r, t);
                    if (e.done) return e.value;
                  }
                  var i = C(t);
                  i || (t = H(t));
                  var o,
                    a = n.global;
                  a && ((o = n.unicode), (n.lastIndex = 0));
                  for (var s = []; ; ) {
                    var c = I(n, r);
                    if (null === c) break;
                    if ((D(s, c), !a)) break;
                    "" === H(c[0]) && (n.lastIndex = E(r, T(n.lastIndex), o));
                  }
                  for (var l, u = "", d = 0, p = 0; p < s.length; p++) {
                    for (
                      var h = H((c = s[p])[0]),
                        f = L(O(k(c.index), r.length), 0),
                        v = [],
                        m = 1;
                      m < c.length;
                      m++
                    )
                      D(v, void 0 === (l = c[m]) ? l : String(l));
                    var g,
                      b = c.groups,
                      b = i
                        ? ((g = j([h], v, f, r)),
                          void 0 !== b && D(g, b),
                          H(S(t, void 0, g)))
                        : A(h, r, f, v, b, t);
                    d <= f && ((u += B(r, d, f) + b), (d = f + h.length));
                  }
                  return u + B(r, d);
                },
              ];
            },
            !!a(function () {
              var e = /./;
              return (
                (e.exec = function () {
                  var e = [];
                  return ((e.groups = { a: "7" }), e);
                }),
                "7" !== "".replace(e, "$<a>")
              );
            }) ||
              !r ||
              u,
          );
        },
        2482: (e, t, n) => {
          "use strict";
          var u = n(7258),
            d = n(9413),
            r = n(8240),
            i = n(2331),
            p = n(7994),
            g = n(6112),
            h = n(9586),
            b = n(8515),
            y = n(9966),
            w = n(4005),
            x = n(4059),
            o = n(2964),
            S = n(3329),
            P = n(1189),
            C = n(4861),
            a = n(4930),
            n = n(3677),
            k = a.UNSUPPORTED_Y,
            T = Math.min,
            H = [].push,
            E = r(/./.exec),
            A = r(H),
            I = r("".slice);
          i(
            "split",
            function (i, f, v) {
              var m =
                "c" == "abbc".split(/(b)*/)[1] ||
                4 != "test".split(/(?:)/, -1).length ||
                2 != "ab".split(/(?:ab)*/).length ||
                4 != ".".split(/(.?)(.?)/).length ||
                1 < ".".split(/()()/).length ||
                "".split(/.?/).length
                  ? function (e, t) {
                      var n = x(h(this)),
                        r = void 0 === t ? 4294967295 : t >>> 0;
                      if (0 == r) return [];
                      if (void 0 === e) return [n];
                      if (!p(e)) return d(f, n, e, r);
                      for (
                        var i,
                          o,
                          a,
                          s = [],
                          t =
                            (e.ignoreCase ? "i" : "") +
                            (e.multiline ? "m" : "") +
                            (e.unicode ? "u" : "") +
                            (e.sticky ? "y" : ""),
                          c = 0,
                          l = new RegExp(e.source, t + "g");
                        (i = d(C, l, n)) &&
                        !(
                          (o = l.lastIndex) > c &&
                          (A(s, I(n, c, i.index)),
                          1 < i.length &&
                            i.index < n.length &&
                            u(H, s, S(i, 1)),
                          (a = i[0].length),
                          (c = o),
                          r <= s.length)
                        );

                      )
                        l.lastIndex === i.index && l.lastIndex++;
                      return (
                        c === n.length
                          ? (!a && E(l, "")) || A(s, "")
                          : A(s, I(n, c)),
                        r < s.length ? S(s, 0, r) : s
                      );
                    }
                  : "0".split(void 0, 0).length
                    ? function (e, t) {
                        return void 0 === e && 0 === t ? [] : d(f, this, e, t);
                      }
                    : f;
              return [
                function (e, t) {
                  var n = h(this),
                    r = null == e ? void 0 : o(e, i);
                  return r ? d(r, e, n, t) : d(m, x(n), e, t);
                },
                function (e, t) {
                  var n = g(this),
                    r = x(e),
                    i = v(m, n, r, t, m !== f);
                  if (i.done) return i.value;
                  var e = b(n, RegExp),
                    o = n.unicode,
                    i =
                      (n.ignoreCase ? "i" : "") +
                      (n.multiline ? "m" : "") +
                      (n.unicode ? "u" : "") +
                      (k ? "g" : "y"),
                    a = new e(k ? "^(?:" + n.source + ")" : n, i),
                    s = void 0 === t ? 4294967295 : t >>> 0;
                  if (0 == s) return [];
                  if (0 === r.length) return null === P(a, r) ? [r] : [];
                  for (var c = 0, l = 0, u = []; l < r.length; ) {
                    a.lastIndex = k ? 0 : l;
                    var d,
                      p = P(a, k ? I(r, l) : r);
                    if (
                      null === p ||
                      (d = T(w(a.lastIndex + (k ? l : 0)), r.length)) === c
                    )
                      l = y(r, l, o);
                    else {
                      if ((A(u, I(r, c, l)), u.length === s)) return u;
                      for (var h = 1; h <= p.length - 1; h++)
                        if ((A(u, p[h]), u.length === s)) return u;
                      l = c = d;
                    }
                  }
                  return (A(u, I(r, c)), u);
                },
              ];
            },
            !!n(function () {
              var e = /(?:)/,
                t = e.exec;
              e.exec = function () {
                return t.apply(this, arguments);
              };
              e = "ab".split(e);
              return 2 !== e.length || "a" !== e[0] || "b" !== e[1];
            }),
            k,
          );
        },
        4211: (e, t, n) => {
          "use strict";
          function r(e, t) {
            var n = (ie[e] = k(J));
            return (
              X(n, { type: V, tag: e, description: t }),
              v || (n.description = t),
              n
            );
          }
          function i(e, t, n) {
            return (
              e === G && i(oe, t, n),
              w(e),
              (t = S(t)),
              w(n),
              b(ie, t)
                ? (n.enumerable
                    ? (b(e, Q) && e[Q][t] && (e[Q][t] = !1),
                      (n = k(n, { enumerable: C(0, !1) })))
                    : (b(e, Q) || ee(e, Q, C(1, {})), (e[Q][t] = !0)),
                  se(e, t, n))
                : ee(e, t, n)
            );
          }
          function o(t, e) {
            w(t);
            var n = x(e),
              e = T(n).concat(l(n));
            return (
              _(e, function (e) {
                (v && !p(a, n, e)) || i(t, e, n[e]);
              }),
              t
            );
          }
          function a(e) {
            var t = S(e),
              e = p(ne, this, t);
            return (
              !(this === G && b(ie, t) && !b(oe, t)) &&
              (!(e || !b(this, t) || !b(ie, t) || (b(this, Q) && this[Q][t])) ||
                e)
            );
          }
          function s(e, t) {
            var n = x(e),
              e = S(t);
            if (n !== G || !b(ie, e) || b(oe, e)) {
              t = Z(n, e);
              return (
                !t || !b(ie, e) || (b(n, Q) && n[Q][e]) || (t.enumerable = !0),
                t
              );
            }
          }
          function c(e) {
            var e = te(x(e)),
              t = [];
            return (
              _(e, function (e) {
                b(ie, e) || b(N, e) || re(t, e);
              }),
              t
            );
          }
          function l(e) {
            var t = e === G,
              e = te(t ? oe : x(e)),
              n = [];
            return (
              _(e, function (e) {
                !b(ie, e) || (t && !b(G, e)) || re(n, ie[e]);
              }),
              n
            );
          }
          var u = n(1695),
            d = n(2086),
            p = n(9413),
            h = n(8240),
            f = n(3296),
            v = n(5283),
            m = n(3193),
            g = n(3677),
            b = n(9606),
            y = n(5516),
            w = n(6112),
            x = n(4088),
            S = n(2258),
            P = n(4059),
            C = n(5736),
            k = n(4710),
            T = n(8779),
            H = n(62),
            E = n(3226),
            A = n(6952),
            I = n(4399),
            L = n(7826),
            O = n(7711),
            j = n(7446),
            D = n(1343),
            M = n(9197),
            B = n(8944),
            N = n(7153),
            F = n(5422),
            $ = n(211),
            R = n(9251),
            q = n(4145),
            z = n(338),
            W = n(914),
            U = n(3278),
            _ = n(8062).forEach,
            Q = B("hidden"),
            V = "Symbol",
            B = "prototype",
            X = U.set,
            K = U.getterFor(V),
            G = Object[B],
            U = d.Symbol,
            J = U && U[B],
            Y = d.TypeError,
            d = d.QObject,
            Z = I.f,
            ee = L.f,
            te = E.f,
            ne = j.f,
            re = h([].push),
            ie = M("symbols"),
            oe = M("op-symbols"),
            M = M("wks"),
            ae = !d || !d[B] || !d[B].findChild,
            se =
              v &&
              g(function () {
                return (
                  7 !=
                  k(
                    ee({}, "a", {
                      get: function () {
                        return ee(this, "a", { value: 7 }).a;
                      },
                    }),
                  ).a
                );
              })
                ? function (e, t, n) {
                    var r = Z(G, t);
                    (r && delete G[t],
                      ee(e, t, n),
                      r && e !== G && ee(G, t, r));
                  }
                : ee;
          (m ||
            (D(
              (J = (U = function () {
                if (y(J, this)) throw Y("Symbol is not a constructor");
                var e =
                    arguments.length && void 0 !== arguments[0]
                      ? P(arguments[0])
                      : void 0,
                  t = F(e),
                  n = function (e) {
                    (this === G && p(n, oe, e),
                      b(this, Q) && b(this[Q], t) && (this[Q][t] = !1),
                      se(this, t, C(1, e)));
                  };
                return (
                  v && ae && se(G, t, { configurable: !0, set: n }),
                  r(t, e)
                );
              })[B]),
              "toString",
              function () {
                return K(this).tag;
              },
            ),
            D(U, "withoutSetter", function (e) {
              return r(F(e), e);
            }),
            (j.f = a),
            (L.f = i),
            (O.f = o),
            (I.f = s),
            (H.f = E.f = c),
            (A.f = l),
            (R.f = function (e) {
              return r($(e), e);
            }),
            v &&
              (ee(J, "description", {
                configurable: !0,
                get: function () {
                  return K(this).description;
                },
              }),
              f || D(G, "propertyIsEnumerable", a, { unsafe: !0 }))),
            u(
              { global: !0, constructor: !0, wrap: !0, forced: !m, sham: !m },
              { Symbol: U },
            ),
            _(T(M), function (e) {
              q(e);
            }),
            u(
              { target: V, stat: !0, forced: !m },
              {
                useSetter: function () {
                  ae = !0;
                },
                useSimple: function () {
                  ae = !1;
                },
              },
            ),
            u(
              { target: "Object", stat: !0, forced: !m, sham: !v },
              {
                create: function (e, t) {
                  return void 0 === t ? k(e) : o(k(e), t);
                },
                defineProperty: i,
                defineProperties: o,
                getOwnPropertyDescriptor: s,
              },
            ),
            u(
              { target: "Object", stat: !0, forced: !m },
              { getOwnPropertyNames: c },
            ),
            z(),
            W(U, V),
            (N[Q] = !0));
        },
        2189: (e, t, n) => {
          "use strict";
          var r,
            i,
            o,
            a,
            s,
            c,
            l,
            u = n(1695),
            d = n(5283),
            p = n(2086),
            h = n(8240),
            f = n(9606),
            v = n(930),
            m = n(5516),
            g = n(4059),
            b = n(7826).f,
            n = n(8474),
            y = p.Symbol,
            w = y && y.prototype;
          !d ||
            !v(y) ||
            ("description" in w && void 0 === y().description) ||
            ((r = {}),
            n(
              (n = function () {
                var e =
                    arguments.length < 1 || void 0 === arguments[0]
                      ? void 0
                      : g(arguments[0]),
                  t = m(w, this) ? new y(e) : void 0 === e ? y() : y(e);
                return ("" === e && (r[t] = !0), t);
              }),
              y,
            ),
            ((n.prototype = w).constructor = n),
            (i = "Symbol(test)" == String(y("test"))),
            (o = h(w.toString)),
            (a = h(w.valueOf)),
            (s = /^Symbol\((.*)\)[^)]+$/),
            (c = h("".replace)),
            (l = h("".slice)),
            b(w, "description", {
              configurable: !0,
              get: function () {
                var e = a(this),
                  t = o(e);
                if (f(r, e)) return "";
                t = i ? l(t, 7, -1) : c(t, s, "$1");
                return "" === t ? void 0 : t;
              },
            }),
            u({ global: !0, constructor: !0, forced: !0 }, { Symbol: n }));
        },
        8028: (e, t, n) => {
          var r = n(1695),
            i = n(563),
            o = n(9606),
            a = n(4059),
            s = n(9197),
            n = n(3441),
            c = s("string-to-symbol-registry"),
            l = s("symbol-to-string-registry");
          r(
            { target: "Symbol", stat: !0, forced: !n },
            {
              for: function (e) {
                var t = a(e);
                if (o(c, t)) return c[t];
                e = i("Symbol")(t);
                return ((c[t] = e), (l[e] = t), e);
              },
            },
          );
        },
        1047: (e, t, n) => {
          n(4145)("iterator");
        },
        5901: (e, t, n) => {
          (n(4211), n(8028), n(9819), n(5735), n(883));
        },
        9819: (e, t, n) => {
          var r = n(1695),
            i = n(9606),
            o = n(2071),
            a = n(9268),
            s = n(9197),
            n = n(3441),
            c = s("symbol-to-string-registry");
          r(
            { target: "Symbol", stat: !0, forced: !n },
            {
              keyFor: function (e) {
                if (!o(e)) throw TypeError(a(e) + " is not a symbol");
                if (i(c, e)) return c[e];
              },
            },
          );
        },
        5849: (e, t, n) => {
          function r(t) {
            if (t && t.forEach !== c)
              try {
                l(t, "forEach", c);
              } catch (e) {
                t.forEach = c;
              }
          }
          var i,
            o = n(2086),
            a = n(933),
            s = n(3526),
            c = n(1984),
            l = n(2585);
          for (i in a) a[i] && r(o[i] && o[i].prototype);
          r(s);
        },
        4078: (e, t, n) => {
          function r(e, t) {
            if (e) {
              if (e[u] !== p)
                try {
                  l(e, u, p);
                } catch (t) {
                  e[u] = p;
                }
              if ((e[d] || l(e, d, t), a[t]))
                for (var n in c)
                  if (e[n] !== c[n])
                    try {
                      l(e, n, c[n]);
                    } catch (t) {
                      e[n] = c[n];
                    }
            }
          }
          var i,
            o = n(2086),
            a = n(933),
            s = n(3526),
            c = n(5769),
            l = n(2585),
            n = n(211),
            u = n("iterator"),
            d = n("toStringTag"),
            p = c.values;
          for (i in a) r(o[i] && o[i].prototype, i);
          r(s, "DOMTokenList");
        },
        2062: () => {
          var c = function (e) {
            return ((e = +e), isNaN(e) || e == 1 / 0 || e == -1 / 0 ? 0 : e);
          };
          (Element.prototype.scroll ||
            (Element.prototype.scroll = function () {
              var e,
                t = arguments.length,
                n = this.ownerDocument,
                r = n.defaultView,
                i = "BackCompat" == n.compatMode,
                o = document.getElementsByTagName("BODY")[0],
                a = {};
              if (n == window.document && r && 0 !== t) {
                if (1 === t) {
                  var s = arguments[0];
                  if ("object" != typeof s)
                    throw "Failed to execute 'scrollBy' on 'Element': parameter 1 ('options') is not an object.";
                  ("left" in s && (a.left = c(s.left)),
                    "top" in s && (a.top = c(s.top)),
                    (e = "left" in a ? a.left : this.scrollLeft),
                    (s = "top" in a ? a.top : this.scrollTop));
                } else
                  ((a.left = e = c(arguments[0])),
                    (a.top = s = c(arguments[1])));
                this != document.documentElement
                  ? this != o ||
                    !i ||
                    (function (e) {
                      e = o || document.getElementsByTagName("BODY")[0];
                      var t = window.getComputedStyle(e),
                        n = window.getComputedStyle(e.parent),
                        r = t.overflowX,
                        i = t.overflowY,
                        e = n.overflowX,
                        n = n.overflowY;
                      return (
                        ("table-column" == t.display ||
                          "table-column-group" == t.display) &&
                        "visible" != e &&
                        "clip" != e &&
                        "visible" != n &&
                        "clip" != n &&
                        "visible" != r &&
                        "clip" != r &&
                        "visible" != i &&
                        "clip" != i
                      );
                    })()
                    ? ((this.scrollLeft = e), (this.scrollTop = s))
                    : r.scroll(a.left, a.top)
                  : i ||
                    r.scroll(
                      "scrollX" in r
                        ? r.scrollX
                        : "pageXOffset" in r
                          ? r.pageXOffset
                          : this.scrollLeft,
                      s,
                    );
              }
            }),
            Element.prototype.scrollTo ||
              (Element.prototype.scrollTo = Element.prototype.scroll),
            Element.prototype.scrollBy ||
              (Element.prototype.scrollBy = function () {
                var e = arguments.length,
                  t = {};
                if (0 !== e) {
                  if (1 === e) {
                    e = arguments[0];
                    if ("object" != typeof e)
                      throw "Failed to execute 'scrollBy' on 'Element': parameter 1 ('options') is not an object.";
                    ("left" in e && (t.left = c(e.left)),
                      "top" in e && (t.top = c(e.top)));
                  } else
                    ((t.left = c(arguments[0])), (t.top = c(arguments[1])));
                  ((t.left =
                    "left" in t ? t.left + this.scrollLeft : this.scrollLeft),
                    (t.top =
                      "top" in t ? t.top + this.scrollTop : this.scrollTop),
                    this.scroll(t));
                }
              }));
        },
        7190: (e) => {
          e.exports = function (e) {
            return (
              !(!e || "string" == typeof e) &&
              (e instanceof Array ||
                Array.isArray(e) ||
                (0 <= e.length &&
                  (e.splice instanceof Function ||
                    (Object.getOwnPropertyDescriptor(e, e.length - 1) &&
                      "String" !== e.constructor.name))))
            );
          };
        },
        7159: (e, t, n) => {
          var r = [n(5998)];
          void 0 ===
            (n =
              "function" ==
              typeof (n = function (p) {
                function a(e) {
                  this.init(e);
                }
                ((a.prototype = {
                  value: 0,
                  size: 100,
                  startAngle: -Math.PI,
                  thickness: "auto",
                  fill: { gradient: ["#3aeabb", "#fdd250"] },
                  emptyFill: "rgba(0, 0, 0, .1)",
                  animation: { duration: 1200, easing: "circleProgressEasing" },
                  animationStartValue: 0,
                  reverse: !1,
                  lineCap: "butt",
                  insertMode: "prepend",
                  constructor: a,
                  el: null,
                  canvas: null,
                  ctx: null,
                  radius: 0,
                  arcFill: null,
                  lastFrameValue: 0,
                  init: function (e) {
                    (p.extend(this, e),
                      (this.radius = this.size / 2),
                      this.initWidget(),
                      this.initFill(),
                      this.draw(),
                      this.el.trigger("circle-inited"));
                  },
                  initWidget: function () {
                    this.canvas ||
                      (this.canvas = p("<canvas>")[
                        "prepend" == this.insertMode ? "prependTo" : "appendTo"
                      ](this.el)[0]);
                    var e,
                      t = this.canvas;
                    ((t.width = this.size),
                      (t.height = this.size),
                      (this.ctx = t.getContext("2d")),
                      1 < window.devicePixelRatio &&
                        ((e = window.devicePixelRatio),
                        (t.style.width = t.style.height = this.size + "px"),
                        (t.width = t.height = this.size * e),
                        this.ctx.scale(e, e)));
                  },
                  initFill: function () {
                    var t,
                      n = this,
                      e = this.fill,
                      r = this.ctx,
                      i = this.size;
                    if (!e) throw Error("The fill is not specified!");
                    if (
                      ((e = "string" == typeof e ? { color: e } : e).color &&
                        (this.arcFill = e.color),
                      e.gradient)
                    ) {
                      var o = e.gradient;
                      if (1 == o.length) this.arcFill = o[0];
                      else if (1 < o.length) {
                        for (
                          var a = e.gradientAngle || 0,
                            a = e.gradientDirection || [
                              (i / 2) * (1 - Math.cos(a)),
                              (i / 2) * (1 + Math.sin(a)),
                              (i / 2) * (1 + Math.cos(a)),
                              (i / 2) * (1 - Math.sin(a)),
                            ],
                            s = r.createLinearGradient.apply(r, a),
                            c = 0;
                          c < o.length;
                          c++
                        ) {
                          var l = o[c],
                            u = c / (o.length - 1);
                          (p.isArray(l) && ((u = l[1]), (l = l[0])),
                            s.addColorStop(u, l));
                        }
                        this.arcFill = s;
                      }
                    }
                    function d() {
                      var e = p("<canvas>")[0];
                      ((e.width = n.size),
                        (e.height = n.size),
                        e.getContext("2d").drawImage(t, 0, 0, i, i),
                        (n.arcFill = n.ctx.createPattern(e, "no-repeat")),
                        n.drawFrame(n.lastFrameValue));
                    }
                    e.image &&
                      (e.image instanceof Image
                        ? (t = e.image)
                        : ((t = new Image()).src = e.image),
                      t.complete ? d() : (t.onload = d));
                  },
                  draw: function () {
                    this.animation
                      ? this.drawAnimated(this.value)
                      : this.drawFrame(this.value);
                  },
                  drawFrame: function (e) {
                    ((this.lastFrameValue = e),
                      this.ctx.clearRect(0, 0, this.size, this.size),
                      this.drawEmptyArc(e),
                      this.drawArc(e));
                  },
                  drawArc: function (e) {
                    var t, n, r, i;
                    0 !== e &&
                      ((t = this.ctx),
                      (n = this.radius),
                      (r = this.getThickness()),
                      (i = this.startAngle),
                      t.save(),
                      t.beginPath(),
                      this.reverse
                        ? t.arc(n, n, n - r / 2, i - 2 * Math.PI * e, i)
                        : t.arc(n, n, n - r / 2, i, i + 2 * Math.PI * e),
                      (t.lineWidth = r),
                      (t.lineCap = this.lineCap),
                      (t.strokeStyle = this.arcFill),
                      t.stroke(),
                      t.restore());
                  },
                  drawEmptyArc: function (e) {
                    var t = this.ctx,
                      n = this.radius,
                      r = this.getThickness(),
                      i = this.startAngle;
                    e < 1 &&
                      (t.save(),
                      t.beginPath(),
                      e <= 0
                        ? t.arc(n, n, n - r / 2, 0, 2 * Math.PI)
                        : this.reverse
                          ? t.arc(n, n, n - r / 2, i, i - 2 * Math.PI * e)
                          : t.arc(n, n, n - r / 2, i + 2 * Math.PI * e, i),
                      (t.lineWidth = r),
                      (t.strokeStyle = this.emptyFill),
                      t.stroke(),
                      t.restore());
                  },
                  drawAnimated: function (n) {
                    var r = this,
                      i = this.el,
                      e = p(this.canvas);
                    (e.stop(!0, !1),
                      i.trigger("circle-animation-start"),
                      e
                        .css({ animationProgress: 0 })
                        .animate(
                          { animationProgress: 1 },
                          p.extend({}, this.animation, {
                            step: function (e) {
                              var t = r.animationStartValue * (1 - e) + n * e;
                              (r.drawFrame(t),
                                i.trigger("circle-animation-progress", [e, t]));
                            },
                          }),
                        )
                        .promise()
                        .always(function () {
                          i.trigger("circle-animation-end");
                        }));
                  },
                  getThickness: function () {
                    return p.isNumeric(this.thickness)
                      ? this.thickness
                      : this.size / 14;
                  },
                  getValue: function () {
                    return this.value;
                  },
                  setValue: function (e) {
                    (this.animation &&
                      (this.animationStartValue = this.lastFrameValue),
                      (this.value = e),
                      this.draw());
                  },
                }),
                  (p.circleProgress = { defaults: a.prototype }),
                  (p.easing.circleProgressEasing = function (e) {
                    return e < 0.5
                      ? 0.5 * (e *= 2) * e * e
                      : 1 - 0.5 * (e = 2 - 2 * e) * e * e;
                  }),
                  (p.fn.circleProgress = function (i, e) {
                    var o = "circle-progress",
                      t = this.data(o);
                    if ("widget" == i) {
                      if (!t)
                        throw Error(
                          'Calling "widget" method on not initialized instance is forbidden',
                        );
                      return t.canvas;
                    }
                    if ("value" != i)
                      return this.each(function () {
                        var e,
                          t = p(this),
                          n = t.data(o),
                          r = p.isPlainObject(i) ? i : {};
                        n
                          ? n.init(r)
                          : ("string" ==
                              typeof (e = p.extend({}, t.data())).fill &&
                              (e.fill = JSON.parse(e.fill)),
                            "string" == typeof e.animation &&
                              (e.animation = JSON.parse(e.animation)),
                            ((r = p.extend(e, r)).el = t),
                            (n = new a(r)),
                            t.data(o, n));
                      });
                    if (!t)
                      throw Error(
                        'Calling "value" method on not initialized instance is forbidden',
                      );
                    if (void 0 === e) return t.getValue();
                    var n = e;
                    return this.each(function () {
                      p(this).data(o).setValue(n);
                    });
                  }));
              })
                ? n.apply(t, r)
                : n) || (e.exports = n);
        },
        521: (e, t, n) => {
          "use strict";
          var o = n(7190),
            a = Array.prototype.concat,
            s = Array.prototype.slice,
            r = (e.exports = function (e) {
              for (var t = [], n = 0, r = e.length; n < r; n++) {
                var i = e[n];
                o(i) ? (t = a.call(t, s.call(i))) : t.push(i);
              }
              return t;
            });
          r.wrap = function (e) {
            return function () {
              return e(r(arguments));
            };
          };
        },
        5998: (e) => {
          "use strict";
          e.exports = H5P.jQuery;
        },
      },
      r = {};
    function G(e) {
      var t = r[e];
      if (void 0 !== t) return t.exports;
      t = r[e] = { exports: {} };
      return (n[e](t, t.exports, G), t.exports);
    }
    ((G.n = (e) => {
      var t = e && e.__esModule ? () => e.default : () => e;
      return (G.d(t, { a: t }), t);
    }),
      (G.d = (e, t) => {
        for (var n in t)
          G.o(t, n) &&
            !G.o(e, n) &&
            Object.defineProperty(e, n, { enumerable: !0, get: t[n] });
      }),
      (G.g = (function () {
        if ("object" == typeof globalThis) return globalThis;
        try {
          return this || new Function("return this")();
        } catch (e) {
          if ("object" == typeof window) return window;
        }
      })()),
      (G.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t)),
      (() => {
        "use strict";
        function e(e, t) {
          for (var n = 0; n < t.length; n++) {
            var r = t[n];
            ((r.enumerable = r.enumerable || !1),
              (r.configurable = !0),
              "value" in r && (r.writable = !0),
              Object.defineProperty(e, r.key, r));
          }
        }
        (G(3214),
          G(8410),
          G(2571),
          G(5901),
          G(252),
          G(4009),
          G(2189),
          G(1047),
          G(5769),
          G(7460),
          G(4078),
          G(3238),
          G(5849),
          G(1013),
          G(8010),
          G(3938),
          G(2410),
          G(2077),
          G(911),
          G(2274),
          G(2482),
          G(5613),
          G(895));
        const d =
          ((K = t),
          (n = [
            {
              key: "extractFragmentsFromURL",
              value: function (e, t) {
                if (!t.location.hash) return {};
                var n = {};
                return (
                  t.location.hash
                    .replace("#", "")
                    .split("&")
                    .forEach(function (e) {
                      -1 !== e.indexOf("=") &&
                        ((e = e.split("=")), (n[e[0]] = e[1]));
                    }),
                  "function" != typeof e || e(n) ? n : {}
                );
              },
            },
            {
              key: "createFragmentsString",
              value: function (e) {
                var t,
                  n = [];
                for (t in e) n.push("".concat(t, "=").concat(e[t]));
                return "#".concat(n.join("&"));
              },
            },
            {
              key: "areFragmentsEqual",
              value: function (e, t) {
                var n,
                  r =
                    2 < arguments.length && void 0 !== arguments[2]
                      ? arguments[2]
                      : [];
                for (n in e)
                  if (e.hasOwnProperty(n)) {
                    if (0 < r.length && -1 === r.indexOf(n)) continue;
                    if (!t[n] || e[n].toString() !== t[n].toString()) return !1;
                  }
                return !0;
              },
            },
          ]),
          null && e(K.prototype, null),
          e(K, n),
          Object.defineProperty(K, "prototype", { writable: !1 }),
          t);
        function t() {
          !(function (e) {
            if (!(e instanceof t))
              throw new TypeError("Cannot call a class as a function");
          })(this);
        }
        function i(e) {
          return (i =
            "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
              ? function (e) {
                  return typeof e;
                }
              : function (e) {
                  return e &&
                    "function" == typeof Symbol &&
                    e.constructor === Symbol &&
                    e !== Symbol.prototype
                    ? "symbol"
                    : typeof e;
                })(e);
        }
        function s(e, t) {
          (null == t || t > e.length) && (t = e.length);
          for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
          return r;
        }
        function c(e, t) {
          for (var n = 0; n < t.length; n++) {
            var r = t[n];
            ((r.enumerable = r.enumerable || !1),
              (r.configurable = !0),
              "value" in r && (r.writable = !0),
              Object.defineProperty(e, r.key, r));
          }
        }
        function l(e, t) {
          return (l = Object.setPrototypeOf
            ? Object.setPrototypeOf.bind()
            : function (e, t) {
                return ((e.__proto__ = t), e);
              })(e, t);
        }
        function u(e) {
          return (u = Object.setPrototypeOf
            ? Object.getPrototypeOf.bind()
            : function (e) {
                return e.__proto__ || Object.getPrototypeOf(e);
              })(e);
        }
        (G(4844), G(3352), G(5610));
        const p = (function () {
          !(function (e, t) {
            if ("function" != typeof t && null !== t)
              throw new TypeError(
                "Super expression must either be null or a function",
              );
            ((e.prototype = Object.create(t && t.prototype, {
              constructor: { value: e, writable: !0, configurable: !0 },
            })),
              Object.defineProperty(e, "prototype", { writable: !1 }),
              t && l(e, t));
          })(a, H5P.EventDispatcher);
          var e,
            n,
            r,
            o =
              ((n = a),
              (r = (function () {
                if ("undefined" == typeof Reflect || !Reflect.construct)
                  return !1;
                if (Reflect.construct.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                  return (
                    Boolean.prototype.valueOf.call(
                      Reflect.construct(Boolean, [], function () {}),
                    ),
                    !0
                  );
                } catch (e) {
                  return !1;
                }
              })()),
              function () {
                var e,
                  t = u(n);
                return (function (e, t) {
                  if (t && ("object" === i(t) || "function" == typeof t))
                    return t;
                  if (void 0 !== t)
                    throw new TypeError(
                      "Derived constructors may only return object or undefined",
                    );
                  return (function (e) {
                    if (void 0 === e)
                      throw new ReferenceError(
                        "this hasn't been initialised - super() hasn't been called",
                      );
                    return e;
                  })(e);
                })(
                  this,
                  r
                    ? ((e = u(this).constructor),
                      Reflect.construct(t, arguments, e))
                    : t.apply(this, arguments),
                );
              });
          function a(e, t, n, r) {
            var i;
            return (
              (function (e) {
                if (!(e instanceof a))
                  throw new TypeError("Cannot call a class as a function");
              })(this),
              ((i = o.call(this)).id = t),
              (i.parent = r),
              (i.behaviour = e.behaviour),
              (i.content = document.createElement("ul")),
              i.content.classList.add("navigation-list"),
              (i.container = i.addSideBar()),
              (i.l10n = e.l10n),
              (i.chapters = i.findAllChapters(e.chapters)),
              (i.chapterNodes = i.getChapterNodes()),
              n &&
                ((i.titleElem = i.addMainTitle(n)),
                i.container.appendChild(i.titleElem)),
              i.chapterNodes.forEach(function (e) {
                i.content.appendChild(e);
              }),
              20 < i.chapters.length &&
                i.content.classList.add("large-navigation-list"),
              i.container.appendChild(i.content),
              i.addTransformListener(),
              i.initializeNavigationControls(),
              i
            );
          }
          return (
            c((e = a).prototype, [
              {
                key: "initializeNavigationControls",
                value: function () {
                  var i = this,
                    o = Object.freeze({ UP: 38, DOWN: 40 });
                  this.chapterNodes.forEach(function (e, n) {
                    e.querySelector(
                      ".h5p-interactive-book-navigation-chapter-button",
                    ).addEventListener("keydown", function (e) {
                      switch (e.keyCode) {
                        case o.UP:
                          (i.setFocusToChapterItem(n, -1), e.preventDefault());
                          break;
                        case o.DOWN:
                          (i.setFocusToChapterItem(n, 1), e.preventDefault());
                      }
                    });
                    for (
                      var r = e.querySelectorAll(
                          ".h5p-interactive-book-navigation-section",
                        ),
                        t = 0;
                      t < r.length;
                      t++
                    )
                      !(function (t) {
                        r[t]
                          .querySelector(".section-button")
                          .addEventListener("keydown", function (e) {
                            switch (e.keyCode) {
                              case o.UP:
                                (i.setFocusToSectionItem(n, t, -1),
                                  e.preventDefault());
                                break;
                              case o.DOWN:
                                (i.setFocusToSectionItem(n, t, 1),
                                  e.preventDefault());
                            }
                          });
                      })(t);
                  });
                },
              },
              {
                key: "focus",
                value: function () {
                  this.content.querySelector("button").focus();
                },
              },
              {
                key: "setFocusToChapterItem",
                value: function (e) {
                  var t =
                      1 < arguments.length && void 0 !== arguments[1]
                        ? arguments[1]
                        : 0,
                    n = e + t;
                  if (
                    (n < 0
                      ? (n = this.chapterNodes.length - 1)
                      : n > this.chapterNodes.length - 1 && (n = 0),
                    t)
                  ) {
                    var r = 0 < t ? e : n,
                      e = this.chapterNodes[r];
                    if (
                      !e.classList.contains(
                        "h5p-interactive-book-navigation-closed",
                      )
                    ) {
                      e = e.querySelectorAll(
                        ".h5p-interactive-book-navigation-section",
                      );
                      if (e.length) {
                        var i = 0 < t ? 0 : e.length - 1;
                        return void this.setFocusToSectionItem(r, i);
                      }
                    }
                  }
                  i = this.chapterNodes[n].querySelector(
                    ".h5p-interactive-book-navigation-chapter-button",
                  );
                  this.setFocusToItem(i, n);
                },
              },
              {
                key: "setFocusToSectionItem",
                value: function (e, t) {
                  var n =
                      2 < arguments.length && void 0 !== arguments[2]
                        ? arguments[2]
                        : 0,
                    r = this.chapterNodes[e].querySelectorAll(
                      ".h5p-interactive-book-navigation-section",
                    ),
                    n = t + n;
                  n > r.length - 1
                    ? this.setFocusToChapterItem(e + 1)
                    : n < 0
                      ? this.setFocusToChapterItem(e)
                      : ((n = r[n].querySelector(".section-button")),
                        this.setFocusToItem(n, e));
                },
              },
              {
                key: "setFocusToItem",
                value: function (e, o) {
                  var t =
                    2 < arguments.length &&
                    void 0 !== arguments[2] &&
                    arguments[2];
                  (this.chapterNodes.forEach(function (e, t) {
                    var n = e.querySelector(
                      ".h5p-interactive-book-navigation-chapter-button",
                    );
                    (t === o
                      ? n.classList.add(
                          "h5p-interactive-book-navigation-current",
                        )
                      : n.classList.remove(
                          "h5p-interactive-book-navigation-current",
                        ),
                      n.setAttribute("tabindex", "-1"));
                    for (
                      var r = e.querySelectorAll(
                          ".h5p-interactive-book-navigation-section",
                        ),
                        i = 0;
                      i < r.length;
                      i++
                    )
                      r[i]
                        .querySelector(".section-button")
                        .setAttribute("tabindex", "-1");
                  }),
                    e.setAttribute("tabindex", "0"),
                    (this.focusedChapter = o),
                    t || e.focus());
                },
              },
              {
                key: "addSideBar",
                value: function () {
                  var e = document.createElement("div");
                  return (
                    (e.id = "h5p-interactive-book-navigation-menu"),
                    e.classList.add("h5p-interactive-book-navigation"),
                    e
                  );
                },
              },
              {
                key: "addMainTitle",
                value: function (e) {
                  var t = document.createElement("h2");
                  (t.classList.add("navigation-title"),
                    (t.innerHTML = e),
                    t.setAttribute("title", e));
                  e = document.createElement("div");
                  return (
                    e.classList.add(
                      "h5p-interactive-book-navigation-maintitle",
                    ),
                    e.appendChild(t),
                    e
                  );
                },
              },
              {
                key: "findSectionsInChapter",
                value: function (e) {
                  for (
                    var t = [], n = e.params.content, r = 0;
                    r < n.length;
                    r++
                  ) {
                    var i = n[r].content,
                      o =
                        "H5P.Link" === i.library.split(" ")[0]
                          ? i.params.title || "New link"
                          : i.metadata.title;
                    t.push({
                      title: o,
                      id: i.subContentId
                        ? "h5p-interactive-book-section-".concat(i.subContentId)
                        : void 0,
                    });
                  }
                  return t;
                },
              },
              {
                key: "findAllChapters",
                value: function (e) {
                  for (var t = [], n = 0; n < e.length; n++) {
                    var r = this.findSectionsInChapter(e[n]),
                      i = e[n].metadata.title,
                      o = "h5p-interactive-book-chapter-".concat(
                        e[n].subContentId,
                      );
                    t.push({ sections: r, title: i, id: o, isSummary: !1 });
                  }
                  return (
                    this.parent.hasSummary() &&
                      t.push({
                        sections: [],
                        title: this.l10n.summaryHeader,
                        id: "h5p-interactive-book-chapter-summary",
                        isSummary: !0,
                      }),
                    t
                  );
                },
              },
              {
                key: "toggleChapter",
                value: function (e, t) {
                  t =
                    void 0 !== t
                      ? t
                      : !e.classList.contains(
                          "h5p-interactive-book-navigation-closed",
                        );
                  var n = e.querySelector(
                      ".h5p-interactive-book-navigation-sectionlist",
                    ),
                    r = e.getElementsByClassName(
                      "h5p-interactive-book-navigation-chapter-accordion",
                    )[0];
                  (e
                    .querySelector(
                      ".h5p-interactive-book-navigation-chapter-button",
                    )
                    .setAttribute("aria-expanded", (!t).toString()),
                    !0 === t
                      ? (e.classList.add(
                          "h5p-interactive-book-navigation-closed",
                        ),
                        r &&
                          (r.classList.remove("icon-expanded"),
                          r.classList.add("icon-collapsed"),
                          n &&
                            (n.setAttribute("aria-hidden", !0),
                            n.setAttribute("tabindex", "-1"))))
                      : (e.classList.remove(
                          "h5p-interactive-book-navigation-closed",
                        ),
                        r &&
                          (r.classList.remove("icon-collapsed"),
                          r.classList.add("icon-expanded"),
                          n &&
                            (n.removeAttribute("aria-hidden"),
                            n.removeAttribute("tabindex")))));
                },
              },
              {
                key: "redirectHandler",
                value: function (n) {
                  var e,
                    r = this;
                  (this.chapterNodes.forEach(function (e, t) {
                    r.toggleChapter(e, t !== n);
                  }),
                    this.parent.trigger("resize"),
                    n !== this.focusedChapter &&
                      ((e = this.chapterNodes[n].querySelector(
                        ".h5p-interactive-book-navigation-chapter-button",
                      )),
                      this.setFocusToItem(e, n, !0)));
                },
              },
              {
                key: "resetIndicators",
                value: function () {
                  var o = this;
                  this.chapterNodes.forEach(function (e, t) {
                    o.updateChapterProgressIndicator(t, "BLANK");
                    var n,
                      r = (function (e, t) {
                        var n =
                          ("undefined" != typeof Symbol &&
                            e[Symbol.iterator]) ||
                          e["@@iterator"];
                        if (!n) {
                          if (
                            Array.isArray(e) ||
                            (n = (function (e) {
                              if (e) {
                                if ("string" == typeof e) return s(e, void 0);
                                var t = Object.prototype.toString
                                  .call(e)
                                  .slice(8, -1);
                                return "Map" ===
                                  (t =
                                    "Object" === t && e.constructor
                                      ? e.constructor.name
                                      : t) || "Set" === t
                                  ? Array.from(e)
                                  : "Arguments" === t ||
                                      /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(
                                        t,
                                      )
                                    ? s(e, void 0)
                                    : void 0;
                              }
                            })(e)) ||
                            (t && e && "number" == typeof e.length)
                          ) {
                            n && (e = n);
                            var r = 0,
                              t = function () {};
                            return {
                              s: t,
                              n: function () {
                                return r >= e.length
                                  ? { done: !0 }
                                  : { done: !1, value: e[r++] };
                              },
                              e: function (e) {
                                throw e;
                              },
                              f: t,
                            };
                          }
                          throw new TypeError(
                            "Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.",
                          );
                        }
                        var i,
                          o = !0,
                          a = !1;
                        return {
                          s: function () {
                            n = n.call(e);
                          },
                          n: function () {
                            var e = n.next();
                            return ((o = e.done), e);
                          },
                          e: function (e) {
                            ((a = !0), (i = e));
                          },
                          f: function () {
                            try {
                              o || null == n.return || n.return();
                            } finally {
                              if (a) throw i;
                            }
                          },
                        };
                      })(
                        e.getElementsByClassName(
                          "h5p-interactive-book-navigation-section",
                        ),
                      );
                    try {
                      for (r.s(); !(n = r.n()).done; ) {
                        var i = n.value.querySelector(
                          ".h5p-interactive-book-navigation-section-icon",
                        );
                        i &&
                          (i.classList.remove("icon-question-answered"),
                          i.classList.add("icon-chapter-blank"));
                      }
                    } catch (e) {
                      r.e(e);
                    } finally {
                      r.f();
                    }
                  });
                },
              },
              {
                key: "updateChapterProgressIndicator",
                value: function (e, t) {
                  this.behaviour.progressIndicators &&
                    !this.chapters[e].isSummary &&
                    ((e = this.chapterNodes[e].getElementsByClassName(
                      "h5p-interactive-book-navigation-chapter-progress",
                    )[0]),
                    "BLANK" === t
                      ? (e.classList.remove("icon-chapter-started"),
                        e.classList.remove("icon-chapter-done"),
                        e.classList.add("icon-chapter-blank"))
                      : "DONE" === t
                        ? (e.classList.remove("icon-chapter-blank"),
                          e.classList.remove("icon-chapter-started"),
                          e.classList.add("icon-chapter-done"))
                        : "STARTED" === t &&
                          (e.classList.remove("icon-chapter-blank"),
                          e.classList.remove("icon-chapter-done"),
                          e.classList.add("icon-chapter-started")));
                },
              },
              {
                key: "setSectionMarker",
                value: function (e, t) {
                  t = this.chapterNodes[e].querySelector(
                    ".h5p-interactive-book-navigation-section-" +
                      t +
                      " .h5p-interactive-book-navigation-section-icon",
                  );
                  t &&
                    (t.classList.remove("icon-chapter-blank"),
                    t.classList.add("icon-question-answered"));
                },
              },
              {
                key: "getNodesFromChapter",
                value: function (e, r) {
                  var i = this,
                    t = document.createElement("li"),
                    n = "h5p-interactive-book-sectionlist-" + r;
                  if (
                    (t.classList.add("h5p-interactive-book-navigation-chapter"),
                    e.isSummary)
                  ) {
                    t.classList.add(
                      "h5p-interactive-book-navigation-summary-button",
                    );
                    var o = this.parent.chapters[r].instance.summaryMenuButton;
                    return (
                      o.classList.add(
                        "h5p-interactive-book-navigation-chapter-button",
                      ),
                      t.appendChild(o),
                      t
                    );
                  }
                  var a = document.createElement("div");
                  a.classList.add(
                    "h5p-interactive-book-navigation-chapter-accordion",
                  );
                  var s = document.createElement("div");
                  (s.classList.add(
                    "h5p-interactive-book-navigation-chapter-title-text",
                  ),
                    (s.innerHTML = e.title),
                    s.setAttribute("title", e.title));
                  var c = document.createElement("div");
                  this.behaviour.progressIndicators &&
                    (c.classList.add("icon-chapter-blank"),
                    c.classList.add(
                      "h5p-interactive-book-navigation-chapter-progress",
                    ));
                  o = document.createElement("button");
                  (o.setAttribute("tabindex", 0 === r ? "0" : "-1"),
                    o.classList.add(
                      "h5p-interactive-book-navigation-chapter-button",
                    ),
                    this.parent.activeChapter !== r
                      ? (a.classList.add("icon-collapsed"),
                        o.setAttribute("aria-expanded", "false"))
                      : (a.classList.add("icon-expanded"),
                        o.setAttribute("aria-expanded", "true")),
                    o.setAttribute("aria-controls", n),
                    (o.onclick = function (e) {
                      var t = !e.currentTarget
                          .querySelector(
                            ".h5p-interactive-book-navigation-chapter-accordion",
                          )
                          .classList.contains("hidden"),
                        n =
                          "true" ===
                          e.currentTarget.getAttribute("aria-expanded");
                      (i.isOpenOnMobile() && i.parent.trigger("toggleMenu"),
                        (!i.isOpenOnMobile() && t && n) ||
                          ((n = {
                            h5pbookid: i.parent.contentId,
                            chapter: i.chapters[r].id,
                            section: 0,
                          }),
                          i.parent.trigger("newChapter", n)),
                        t &&
                          (i.toggleChapter(e.currentTarget.parentElement),
                          i.parent.trigger("resize")));
                    }),
                    o.appendChild(a),
                    o.appendChild(s),
                    o.appendChild(c),
                    t.appendChild(o),
                    this.parent.activeChapter === r
                      ? t
                          .querySelector(
                            ".h5p-interactive-book-navigation-chapter-button",
                          )
                          .classList.add(
                            "h5p-interactive-book-navigation-current",
                          )
                      : this.toggleChapter(t, !0));
                  var l = document.createElement("ul");
                  (l.classList.add(
                    "h5p-interactive-book-navigation-sectionlist",
                  ),
                    (l.id = n));
                  for (
                    var u, d = [], p = 0;
                    p < this.chapters[r].sections.length;
                    p++
                  )
                    if (this.parent.chapters[r].sections[p].isTask) {
                      var h = this.createSectionLink(r, p);
                      (d.push(h), l.appendChild(h));
                    } else {
                      var f =
                        this.parent.params.chapters[r].params.content[p]
                          .content;
                      if ("H5P.AdvancedText" === f.library.split(" ")[0]) {
                        h = document.createElement("div");
                        h.innerHTML = f.params.text;
                        for (
                          var v = h.querySelectorAll("h2, h3"), m = 0;
                          m < v.length;
                          m++
                        ) {
                          var g = v[m],
                            g = this.createSectionLink(r, p, g.textContent, m);
                          (d.push(g), l.appendChild(g));
                        }
                      }
                    }
                  return (
                    e.tasksLeft && (e.maxTasks = e.tasksLeft),
                    0 === d.length &&
                      (u = t.querySelector(
                        ".h5p-interactive-book-navigation-chapter-accordion",
                      )) &&
                      u.classList.add("hidden"),
                    t.appendChild(l),
                    t
                  );
                },
              },
              {
                key: "createSectionLink",
                value: function (n, e) {
                  var r = this,
                    t =
                      2 < arguments.length && void 0 !== arguments[2]
                        ? arguments[2]
                        : null,
                    i =
                      3 < arguments.length && void 0 !== arguments[3]
                        ? arguments[3]
                        : null,
                    o = this.chapters[n].sections[e],
                    a = document.createElement("div");
                  ((a.innerHTML = t || o.title),
                    a.setAttribute("title", t || o.title),
                    a.classList.add(
                      "h5p-interactive-book-navigation-section-title",
                    ));
                  var s = document.createElement("div");
                  (s.classList.add(
                    "h5p-interactive-book-navigation-section-icon",
                  ),
                    s.classList.add("icon-chapter-blank"),
                    this.parent.chapters[n].sections[e].isTask &&
                      s.classList.add(
                        "h5p-interactive-book-navigation-section-task",
                      ));
                  t = document.createElement("button");
                  (t.classList.add("section-button"),
                    t.setAttribute("tabindex", "-1"),
                    (t.onclick = function (e) {
                      var t = {
                        h5pbookid: r.parent.contentId,
                        chapter: r.chapters[n].id,
                        section: o.id,
                      };
                      (null !== i && (t.headerNumber = i),
                        r.parent.trigger("newChapter", t),
                        r.isOpenOnMobile() && r.parent.trigger("toggleMenu"),
                        e.preventDefault());
                    }),
                    t.appendChild(s),
                    t.appendChild(a));
                  a = document.createElement("li");
                  return (
                    a.classList.add("h5p-interactive-book-navigation-section"),
                    a.classList.add(
                      "h5p-interactive-book-navigation-section-" + e,
                    ),
                    a.appendChild(t),
                    a
                  );
                },
              },
              {
                key: "getChapterNodes",
                value: function () {
                  var n = this;
                  return this.chapters.map(function (e, t) {
                    return n.getNodesFromChapter(e, t);
                  });
                },
              },
              {
                key: "isOpenOnMobile",
                value: function () {
                  return (
                    this.parent.isMenuOpen() && this.parent.isSmallSurface()
                  );
                },
              },
              {
                key: "addTransformListener",
                value: function () {
                  var t = this;
                  this.container.addEventListener(
                    "transitionend",
                    function (e) {
                      "flex-basis" === e.propertyName &&
                        t.parent.trigger("resize");
                    },
                  );
                },
              },
            ]),
            Object.defineProperty(e, "prototype", { writable: !1 }),
            a
          );
        })();
        function o(e) {
          return (o =
            "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
              ? function (e) {
                  return typeof e;
                }
              : function (e) {
                  return e &&
                    "function" == typeof Symbol &&
                    e.constructor === Symbol &&
                    e !== Symbol.prototype
                    ? "symbol"
                    : typeof e;
                })(e);
        }
        function h() {
          return (h = Object.assign
            ? Object.assign.bind()
            : function (e) {
                for (var t = 1; t < arguments.length; t++) {
                  var n,
                    r = arguments[t];
                  for (n in r)
                    Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
                }
                return e;
              }).apply(this, arguments);
        }
        function f(e, t) {
          for (var n = 0; n < t.length; n++) {
            var r = t[n];
            ((r.enumerable = r.enumerable || !1),
              (r.configurable = !0),
              "value" in r && (r.writable = !0),
              Object.defineProperty(e, r.key, r));
          }
        }
        function v(e, t) {
          return (v = Object.setPrototypeOf
            ? Object.setPrototypeOf.bind()
            : function (e, t) {
                return ((e.__proto__ = t), e);
              })(e, t);
        }
        function m(e) {
          return (m = Object.setPrototypeOf
            ? Object.getPrototypeOf.bind()
            : function (e) {
                return e.__proto__ || Object.getPrototypeOf(e);
              })(e);
        }
        const g = (function () {
          !(function (e, t) {
            if ("function" != typeof t && null !== t)
              throw new TypeError(
                "Super expression must either be null or a function",
              );
            ((e.prototype = Object.create(t && t.prototype, {
              constructor: { value: e, writable: !0, configurable: !0 },
            })),
              Object.defineProperty(e, "prototype", { writable: !1 }),
              t && v(e, t));
          })(s, H5P.EventDispatcher);
          var e,
            n,
            r,
            a =
              ((n = s),
              (r = (function () {
                if ("undefined" == typeof Reflect || !Reflect.construct)
                  return !1;
                if (Reflect.construct.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                  return (
                    Boolean.prototype.valueOf.call(
                      Reflect.construct(Boolean, [], function () {}),
                    ),
                    !0
                  );
                } catch (e) {
                  return !1;
                }
              })()),
              function () {
                var e,
                  t = m(n);
                return (function (e, t) {
                  if (t && ("object" === o(t) || "function" == typeof t))
                    return t;
                  if (void 0 !== t)
                    throw new TypeError(
                      "Derived constructors may only return object or undefined",
                    );
                  return (function (e) {
                    if (void 0 === e)
                      throw new ReferenceError(
                        "this hasn't been initialised - super() hasn't been called",
                      );
                    return e;
                  })(e);
                })(
                  this,
                  r
                    ? ((e = m(this).constructor),
                      Reflect.construct(t, arguments, e))
                    : t.apply(this, arguments),
                );
              });
          function s(e, t, n, r, i) {
            var o;
            (!(function (e) {
              if (!(e instanceof s))
                throw new TypeError("Cannot call a class as a function");
            })(this),
              ((o = a.call(this)).id = e),
              (o.parent = n),
              (o.params = r || {}),
              (o.params.l10n = r.l10n),
              (o.params.a11y = h(
                {
                  progress: "Page @page of @total",
                  menu: "Toggle navigation menu",
                },
                o.params.a11y || {},
              )),
              (o.totalChapters = t),
              (o.arrows = o.addArrows()),
              (o.progressBar = o.createProgressBar()),
              (o.progressIndicator = o.createProgressIndicator()),
              (o.chapterTitle = o.createChapterTitle()),
              (o.menuToggleButton = o.createMenuToggleButton()));
            t = document.createElement("div");
            return (
              t.classList.add("h5p-interactive-book-status"),
              o.params.displayToTopButton &&
                t.appendChild(o.createToTopButton()),
              o.params.displayFullScreenButton &&
                H5P.fullscreenSupported &&
                t.appendChild(o.createFullScreenButton()),
              t.appendChild(o.arrows.buttonWrapperNext),
              t.appendChild(o.arrows.buttonWrapperPrevious),
              o.params.displayMenuToggleButton &&
                t.appendChild(o.menuToggleButton),
              t.appendChild(o.progressIndicator.wrapper),
              t.appendChild(o.chapterTitle.wrapper),
              (o.wrapper = document.createElement("div")),
              o.wrapper.classList.add(i),
              o.wrapper.setAttribute("tabindex", "-1"),
              o.wrapper.appendChild(o.progressBar.wrapper),
              o.wrapper.appendChild(t),
              o.on("updateStatusBar", o.updateStatusBar),
              o.on("seqChapter", function (e) {
                var t = { h5pbookid: o.parent.contentId };
                (e.data.toTop && (t.section = "top"),
                  "next" === e.data.direction
                    ? o.parent.activeChapter + 1 < o.parent.chapters.length
                      ? (t.chapter = "h5p-interactive-book-chapter-".concat(
                          o.parent.chapters[o.parent.activeChapter + 1].instance
                            .subContentId,
                        ))
                      : o.parent.hasSummary() &&
                        o.parent.activeChapter + 1 ===
                          o.parent.chapters.length &&
                        o.parent.trigger("viewSummary", t)
                    : "prev" === e.data.direction &&
                      0 < o.parent.activeChapter &&
                      (t.chapter = "h5p-interactive-book-chapter-".concat(
                        o.parent.chapters[o.parent.activeChapter - 1].instance
                          .subContentId,
                      )),
                  t.chapter && o.parent.trigger("newChapter", t));
              }),
              o
            );
          }
          return (
            f((e = s).prototype, [
              {
                key: "updateProgressBar",
                value: function (e) {
                  var t = "".concat((e / this.totalChapters) * 100, "%");
                  this.progressBar.progress.style.width = t;
                  e = this.params.a11y.progress
                    .replace("@page", e)
                    .replace("@total", this.totalChapters);
                  this.progressBar.progress.title = e;
                },
              },
              {
                key: "updateA11yProgress",
                value: function (e) {
                  this.progressIndicator.hiddenButRead.innerHTML =
                    this.params.a11y.progress
                      .replace("@page", e)
                      .replace("@total", this.totalChapters);
                },
              },
              {
                key: "updateStatusBar",
                value: function () {
                  var e = this.parent.getActiveChapter() + 1,
                    t = this.parent.chapters[e - 1].title;
                  ((this.progressIndicator.current.innerHTML = e),
                    this.updateA11yProgress(e),
                    this.updateProgressBar(e),
                    (this.chapterTitle.text.innerHTML = t),
                    this.chapterTitle.text.setAttribute("title", t),
                    this.parent.activeChapter <= 0
                      ? this.setButtonStatus("Previous", !0)
                      : this.setButtonStatus("Previous", !1),
                    this.parent.activeChapter + 1 >= this.totalChapters
                      ? this.setButtonStatus("Next", !0)
                      : this.setButtonStatus("Next", !1));
                },
              },
              {
                key: "addArrows",
                value: function () {
                  var e = this,
                    t = {};
                  return (
                    (t.buttonPrevious = document.createElement("div")),
                    t.buttonPrevious.classList.add(
                      "navigation-button",
                      "icon-previous",
                    ),
                    t.buttonPrevious.setAttribute(
                      "title",
                      this.params.l10n.previousPage,
                    ),
                    (t.buttonWrapperPrevious =
                      document.createElement("button")),
                    t.buttonWrapperPrevious.classList.add(
                      "h5p-interactive-book-status-arrow",
                      "h5p-interactive-book-status-button",
                      "previous",
                    ),
                    t.buttonWrapperPrevious.setAttribute(
                      "aria-label",
                      this.params.l10n.previousPage,
                    ),
                    (t.buttonWrapperPrevious.onclick = function () {
                      e.trigger("seqChapter", { direction: "prev", toTop: !0 });
                    }),
                    t.buttonWrapperPrevious.appendChild(t.buttonPrevious),
                    (t.buttonNext = document.createElement("div")),
                    t.buttonNext.classList.add(
                      "navigation-button",
                      "icon-next",
                    ),
                    t.buttonNext.setAttribute(
                      "title",
                      this.params.l10n.nextPage,
                    ),
                    (t.buttonWrapperNext = document.createElement("button")),
                    t.buttonWrapperNext.classList.add(
                      "h5p-interactive-book-status-arrow",
                      "h5p-interactive-book-status-button",
                      "next",
                    ),
                    t.buttonWrapperNext.setAttribute(
                      "aria-label",
                      this.params.l10n.nextPage,
                    ),
                    (t.buttonWrapperNext.onclick = function () {
                      e.trigger("seqChapter", { direction: "next", toTop: !0 });
                    }),
                    t.buttonWrapperNext.appendChild(t.buttonNext),
                    t
                  );
                },
              },
              {
                key: "createMenuToggleButton",
                value: function () {
                  var e = this,
                    t = document.createElement("a");
                  t.classList.add("icon-menu");
                  var n = document.createElement("button");
                  return (
                    n.classList.add("h5p-interactive-book-status-menu"),
                    n.classList.add("h5p-interactive-book-status-button"),
                    n.setAttribute("aria-label", this.params.a11y.menu),
                    n.setAttribute("aria-expanded", "false"),
                    n.setAttribute(
                      "aria-controls",
                      "h5p-interactive-book-navigation-menu",
                    ),
                    (n.onclick = function () {
                      e.parent.trigger("toggleMenu");
                    }),
                    n.appendChild(t),
                    n
                  );
                },
              },
              {
                key: "isMenuOpen",
                value: function () {
                  return this.menuToggleButton.classList.contains(
                    "h5p-interactive-book-status-menu-active",
                  );
                },
              },
              {
                key: "createProgressBar",
                value: function () {
                  var e = document.createElement("div");
                  (e.classList.add(
                    "h5p-interactive-book-status-progressbar-front",
                  ),
                    e.setAttribute("tabindex", "-1"));
                  var t = document.createElement("div");
                  return (
                    t.classList.add(
                      "h5p-interactive-book-status-progressbar-back",
                    ),
                    t.appendChild(e),
                    { wrapper: t, progress: e }
                  );
                },
              },
              {
                key: "createChapterTitle",
                value: function () {
                  var e = document.createElement("h1");
                  e.classList.add("title");
                  var t = document.createElement("div");
                  return (
                    t.classList.add("h5p-interactive-book-status-chapter"),
                    t.appendChild(e),
                    { wrapper: t, text: e }
                  );
                },
              },
              {
                key: "createToTopButton",
                value: function () {
                  var e = this,
                    t = document.createElement("div");
                  (t.classList.add("icon-up"),
                    t.classList.add("navigation-button"));
                  var n = document.createElement("button");
                  return (
                    n.classList.add("h5p-interactive-book-status-to-top"),
                    n.classList.add("h5p-interactive-book-status-button"),
                    n.classList.add("h5p-interactive-book-status-arrow"),
                    n.setAttribute(
                      "aria-label",
                      this.params.l10n.navigateToTop,
                    ),
                    n.addEventListener("click", function () {
                      (e.parent.trigger("scrollToTop"),
                        document
                          .querySelector(".h5p-interactive-book-status-menu")
                          .focus());
                    }),
                    n.appendChild(t),
                    n
                  );
                },
              },
              {
                key: "setVisibility",
                value: function (e) {
                  e
                    ? this.wrapper.classList.add("footer-hidden")
                    : this.wrapper.classList.remove("footer-hidden");
                },
              },
              {
                key: "createProgressIndicator",
                value: function () {
                  var e = document.createElement("span");
                  (e.classList.add(
                    "h5p-interactive-book-status-progress-number",
                  ),
                    e.setAttribute("aria-hidden", "true"));
                  var t = document.createElement("span");
                  (t.classList.add(
                    "h5p-interactive-book-status-progress-divider",
                  ),
                    (t.innerHTML = " / "),
                    t.setAttribute("aria-hidden", "true"));
                  var n = document.createElement("span");
                  (n.classList.add(
                    "h5p-interactive-book-status-progress-number",
                  ),
                    (n.innerHTML = this.totalChapters),
                    n.setAttribute("aria-hidden", "true"));
                  var r = document.createElement("p");
                  r.classList.add("hidden-but-read");
                  var i = document.createElement("p");
                  (i.classList.add("h5p-interactive-book-status-progress"),
                    i.appendChild(e),
                    i.appendChild(t),
                    i.appendChild(n),
                    i.appendChild(r));
                  var o = document.createElement("div");
                  return (
                    o.classList.add(
                      "h5p-interactive-book-status-progress-wrapper",
                    ),
                    o.appendChild(i),
                    {
                      wrapper: o,
                      current: e,
                      total: n,
                      divider: t,
                      progressText: i,
                      hiddenButRead: r,
                    }
                  );
                },
              },
              {
                key: "setButtonStatus",
                value: function (e, t) {
                  t
                    ? (this.arrows["buttonWrapper" + e].setAttribute(
                        "disabled",
                        "disabled",
                      ),
                      this.arrows["button" + e].classList.add("disabled"))
                    : (this.arrows["buttonWrapper" + e].removeAttribute(
                        "disabled",
                      ),
                      this.arrows["button" + e].classList.remove("disabled"));
                },
              },
              {
                key: "createFullScreenButton",
                value: function () {
                  function t() {
                    !0 === H5P.isFullscreen
                      ? H5P.exitFullScreen()
                      : H5P.fullScreen(e.parent.mainWrapper, e.parent);
                  }
                  var e = this,
                    n = document.createElement("button");
                  return (
                    n.classList.add("h5p-interactive-book-status-fullscreen"),
                    n.classList.add("h5p-interactive-book-status-button"),
                    n.classList.add("h5p-interactive-book-enter-fullscreen"),
                    n.setAttribute("title", this.params.l10n.fullscreen),
                    n.setAttribute("aria-label", this.params.l10n.fullscreen),
                    n.addEventListener("click", t),
                    n.addEventListener("keyPress", function (e) {
                      (13 !== e.which && 32 !== e.which) ||
                        (t(), e.preventDefault());
                    }),
                    this.parent.on("enterFullScreen", function () {
                      ((e.parent.isFullscreen = !0),
                        n.classList.remove(
                          "h5p-interactive-book-enter-fullscreen",
                        ),
                        n.classList.add("h5p-interactive-book-exit-fullscreen"),
                        n.setAttribute("title", e.params.l10n.exitFullscreen),
                        n.setAttribute(
                          "aria-label",
                          e.params.l10n.exitFullScreen,
                        ),
                        e.parent.pageContent.updateFooter());
                    }),
                    this.parent.on("exitFullScreen", function () {
                      ((e.parent.isFullscreen = !1),
                        n.classList.remove(
                          "h5p-interactive-book-exit-fullscreen",
                        ),
                        n.classList.add(
                          "h5p-interactive-book-enter-fullscreen",
                        ),
                        n.setAttribute("title", e.params.l10n.fullscreen),
                        n.setAttribute("aria-label", e.params.l10n.fullscreen),
                        e.parent.pageContent.updateFooter());
                    }),
                    n
                  );
                },
              },
            ]),
            Object.defineProperty(e, "prototype", { writable: !1 }),
            s
          );
        })();
        function b(e) {
          return (b =
            "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
              ? function (e) {
                  return typeof e;
                }
              : function (e) {
                  return e &&
                    "function" == typeof Symbol &&
                    e.constructor === Symbol &&
                    e !== Symbol.prototype
                    ? "symbol"
                    : typeof e;
                })(e);
        }
        function y(e, t) {
          for (var n = 0; n < t.length; n++) {
            var r = t[n];
            ((r.enumerable = r.enumerable || !1),
              (r.configurable = !0),
              "value" in r && (r.writable = !0),
              Object.defineProperty(e, r.key, r));
          }
        }
        function w(e, t) {
          return (w = Object.setPrototypeOf
            ? Object.setPrototypeOf.bind()
            : function (e, t) {
                return ((e.__proto__ = t), e);
              })(e, t);
        }
        function x(e) {
          return (x = Object.setPrototypeOf
            ? Object.getPrototypeOf.bind()
            : function (e) {
                return e.__proto__ || Object.getPrototypeOf(e);
              })(e);
        }
        const S = (function () {
          !(function (e, t) {
            if ("function" != typeof t && null !== t)
              throw new TypeError(
                "Super expression must either be null or a function",
              );
            ((e.prototype = Object.create(t && t.prototype, {
              constructor: { value: e, writable: !0, configurable: !0 },
            })),
              Object.defineProperty(e, "prototype", { writable: !1 }),
              t && w(e, t));
          })(s, H5P.EventDispatcher);
          var e,
            n,
            r,
            a =
              ((n = s),
              (r = (function () {
                if ("undefined" == typeof Reflect || !Reflect.construct)
                  return !1;
                if (Reflect.construct.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                  return (
                    Boolean.prototype.valueOf.call(
                      Reflect.construct(Boolean, [], function () {}),
                    ),
                    !0
                  );
                } catch (e) {
                  return !1;
                }
              })()),
              function () {
                var e,
                  t = x(n);
                return (function (e, t) {
                  if (t && ("object" === b(t) || "function" == typeof t))
                    return t;
                  if (void 0 !== t)
                    throw new TypeError(
                      "Derived constructors may only return object or undefined",
                    );
                  return (function (e) {
                    if (void 0 === e)
                      throw new ReferenceError(
                        "this hasn't been initialised - super() hasn't been called",
                      );
                    return e;
                  })(e);
                })(
                  this,
                  r
                    ? ((e = x(this).constructor),
                      Reflect.construct(t, arguments, e))
                    : t.apply(this, arguments),
                );
              });
          function s(e, t, n, r, i) {
            var o;
            return (
              (function (e) {
                if (!(e instanceof s))
                  throw new TypeError("Cannot call a class as a function");
              })(this),
              ((o = a.call(this)).parent = i),
              (o.params = e),
              (o.contentId = r),
              (o.container = o.createContainer()),
              e.coverMedium
                ? ((o.visuals = o.createVisualsElement(e.coverMedium)),
                  o.visuals && o.container.appendChild(o.visuals))
                : o.container.classList.add("h5p-cover-nographics"),
              o.container.appendChild(o.createTitleElement(t)),
              e.coverDescription &&
                o.container.appendChild(
                  o.createDescriptionElement(e.coverDescription),
                ),
              o.container.appendChild(o.createReadButton(n)),
              o
            );
          }
          return (
            y((e = s).prototype, [
              {
                key: "createContainer",
                value: function () {
                  var e = document.createElement("div");
                  return (e.classList.add("h5p-interactive-book-cover"), e);
                },
              },
              {
                key: "createVisualsElement",
                value: function (e) {
                  if (!e || !e.params) return null;
                  e = document.createElement("div");
                  return (
                    e.classList.add("h5p-interactive-book-cover-graphics"),
                    e
                  );
                },
              },
              {
                key: "initMedia",
                value: function () {
                  var e;
                  this.visuals &&
                    this.params.coverMedium &&
                    ("H5P.Video" ===
                      ((e = this.params.coverMedium).library || "").split(
                        " ",
                      )[0] && (e.params.visuals.fit = !1),
                    H5P.newRunnable(
                      e,
                      this.contentId,
                      H5P.jQuery(this.visuals),
                      !1,
                      { metadata: e.medatata },
                    ),
                    "H5P.Image" === (e.library || "").split(" ")[0] &&
                      (((e =
                        this.visuals.querySelector("img") ||
                        this.visuals.querySelector(
                          ".h5p-placeholder",
                        )).style.height = "auto"),
                      (e.style.width = "auto")),
                    this.visuals.appendChild(this.createCoverBar()));
                },
              },
              {
                key: "createImage",
                value: function (e, t, n) {
                  var r = document.createElement("img");
                  return (
                    r.classList.add("h5p-interactive-book-cover-image"),
                    (r.src = H5P.getPath(e, t)),
                    r.setAttribute("draggable", "false"),
                    n && (r.alt = n),
                    r
                  );
                },
              },
              {
                key: "createCoverBar",
                value: function () {
                  var e = document.createElement("div");
                  return (e.classList.add("h5p-interactive-book-cover-bar"), e);
                },
              },
              {
                key: "createTitleElement",
                value: function (e) {
                  var t = document.createElement("p");
                  t.innerHTML = e;
                  e = document.createElement("div");
                  return (
                    e.classList.add("h5p-interactive-book-cover-title"),
                    e.appendChild(t),
                    e
                  );
                },
              },
              {
                key: "createDescriptionElement",
                value: function (e) {
                  if (!e) return null;
                  var t = document.createElement("div");
                  return (
                    t.classList.add("h5p-interactive-book-cover-description"),
                    (t.innerHTML = e),
                    t
                  );
                },
              },
              {
                key: "createReadButton",
                value: function (e) {
                  var t = this,
                    n = document.createElement("button");
                  ((n.innerHTML = e),
                    (n.onclick = function () {
                      t.removeCover();
                    }));
                  e = document.createElement("div");
                  return (
                    e.classList.add("h5p-interactive-book-cover-readbutton"),
                    e.appendChild(n),
                    e
                  );
                },
              },
              {
                key: "removeCover",
                value: function () {
                  (this.container.parentElement.classList.remove("covered"),
                    this.container.parentElement.removeChild(this.container),
                    (this.hidden = !0),
                    this.parent.trigger("coverRemoved"));
                },
              },
            ]),
            Object.defineProperty(e, "prototype", { writable: !1 }),
            s
          );
        })();
        G(7159);
        var n = G(7124),
          a = G.n(n);
        function r(e, t) {
          for (var n = 0; n < t.length; n++) {
            var r = t[n];
            ((r.enumerable = r.enumerable || !1),
              (r.configurable = !0),
              "value" in r && (r.writable = !0),
              Object.defineProperty(e, r.key, r));
          }
        }
        var P =
          ((K = C),
          (n = [
            {
              key: "setBase",
              value: function (e) {
                e &&
                  ((C.colorBase = a()(e)),
                  (C.colorText = [
                    C.DEFAULT_COLOR_BG,
                    C.computeContrastColor(C.colorBase),
                    C.computeContrastColor(C.colorBase, C.DEFAULT_COLOR_BG),
                  ]
                    .map(function (e) {
                      return { color: e, contrast: C.colorBase.contrast(e) };
                    })
                    .reduce(
                      function (e, t) {
                        return t.contrast > e.contrast ? t : e;
                      },
                      { contrast: 0 },
                    ).color));
              },
            },
            {
              key: "getColor",
              value: function (e) {
                var n =
                  1 < arguments.length && void 0 !== arguments[1]
                    ? arguments[1]
                    : {};
                if (
                  ("string" == typeof n.opacity &&
                    /^([0-9]|[1-8][0-9]|9[0-9]|100)(\.\d+)?\s?%$/.test(
                      n.opacity,
                    ) &&
                    (n.opacity = parseInt(n.opacity) / 100),
                  "number" != typeof n.opacity ||
                    n.opacity < 0 ||
                    1 < n.opacity)
                )
                  return e;
                var r = a()("#ffffff").rgb().array();
                return a().rgb(
                  e
                    .rgb()
                    .array()
                    .map(function (e, t) {
                      return n.opacity * e + (1 - n.opacity) * r[t];
                    }),
                );
              },
            },
            {
              key: "isBaseColor",
              value: function (e) {
                return a()(e).hex() === C.colorBase.hex();
              },
            },
            {
              key: "computeContrastColor",
              value: function (e, n) {
                for (
                  var r, i = (n = n || e).luminosity(), t = 0;
                  t <= 1 &&
                  "break" !==
                    (function (t) {
                      if (
                        (r = a().rgb(
                          e
                            .rgb()
                            .array()
                            .map(function (e) {
                              return e * (0.5 < i ? 1 - t : 1 + t);
                            }),
                        )).contrast(n) >= C.MINIMUM_ACCEPTABLE_CONTRAST
                      )
                        return "break";
                    })(t);
                  t += 0.05
                );
                return r;
              },
            },
            {
              key: "getContentTypeCSS",
              value: function (e) {
                return C.COLOR_OVERRIDES[e]
                  ? C.COLOR_OVERRIDES[e].getCSS()
                  : "";
              },
            },
            {
              key: "getCSS",
              value: function () {
                return ":root{\n      --color-base: "
                  .concat(C.colorBase, ";\n      --color-base-5: ")
                  .concat(
                    C.getColor(C.colorBase, { opacity: 0.05 }),
                    ";\n      --color-base-10: ",
                  )
                  .concat(
                    C.getColor(C.colorBase, { opacity: 0.1 }),
                    ";\n      --color-base-20: ",
                  )
                  .concat(
                    C.getColor(C.colorBase, { opacity: 0.2 }),
                    ";\n      --color-base-75: ",
                  )
                  .concat(
                    C.getColor(C.colorBase, { opacity: 0.75 }),
                    ";\n      --color-base-80: ",
                  )
                  .concat(
                    C.getColor(C.colorBase, { opacity: 0.8 }),
                    ";\n      --color-base-85: ",
                  )
                  .concat(
                    C.getColor(C.colorBase, { opacity: 0.85 }),
                    ";\n      --color-base-90: ",
                  )
                  .concat(
                    C.getColor(C.colorBase, { opacity: 0.9 }),
                    ";\n      --color-base-95: ",
                  )
                  .concat(
                    C.getColor(C.colorBase, { opacity: 0.95 }),
                    ";\n      --color-text: ",
                  )
                  .concat(C.colorText, ";\n      --color-contrast: ")
                  .concat(
                    C.computeContrastColor(C.colorBase, C.DEFAULT_COLOR_BG),
                    ";\n    }",
                  );
              },
            },
          ]),
          null && r(K.prototype, null),
          r(K, n),
          Object.defineProperty(K, "prototype", { writable: !1 }),
          C);
        function C() {
          !(function (e) {
            if (!(e instanceof C))
              throw new TypeError("Cannot call a class as a function");
          })(this);
        }
        function k(e) {
          return (k =
            "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
              ? function (e) {
                  return typeof e;
                }
              : function (e) {
                  return e &&
                    "function" == typeof Symbol &&
                    e.constructor === Symbol &&
                    e !== Symbol.prototype
                    ? "symbol"
                    : typeof e;
                })(e);
        }
        function T(e, t) {
          var n =
            ("undefined" != typeof Symbol && e[Symbol.iterator]) ||
            e["@@iterator"];
          if (!n) {
            if (
              Array.isArray(e) ||
              (n = (function (e) {
                if (e) {
                  if ("string" == typeof e) return H(e, void 0);
                  var t = Object.prototype.toString.call(e).slice(8, -1);
                  return "Map" ===
                    (t =
                      "Object" === t && e.constructor
                        ? e.constructor.name
                        : t) || "Set" === t
                    ? Array.from(e)
                    : "Arguments" === t ||
                        /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)
                      ? H(e, void 0)
                      : void 0;
                }
              })(e)) ||
              (t && e && "number" == typeof e.length)
            ) {
              n && (e = n);
              var r = 0,
                t = function () {};
              return {
                s: t,
                n: function () {
                  return r >= e.length
                    ? { done: !0 }
                    : { done: !1, value: e[r++] };
                },
                e: function (e) {
                  throw e;
                },
                f: t,
              };
            }
            throw new TypeError(
              "Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.",
            );
          }
          var i,
            o = !0,
            a = !1;
          return {
            s: function () {
              n = n.call(e);
            },
            n: function () {
              var e = n.next();
              return ((o = e.done), e);
            },
            e: function (e) {
              ((a = !0), (i = e));
            },
            f: function () {
              try {
                o || null == n.return || n.return();
              } finally {
                if (a) throw i;
              }
            },
          };
        }
        function H(e, t) {
          (null == t || t > e.length) && (t = e.length);
          for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
          return r;
        }
        function E(e, t) {
          for (var n = 0; n < t.length; n++) {
            var r = t[n];
            ((r.enumerable = r.enumerable || !1),
              (r.configurable = !0),
              "value" in r && (r.writable = !0),
              Object.defineProperty(e, r.key, r));
          }
        }
        function A(e, t) {
          return (A = Object.setPrototypeOf
            ? Object.setPrototypeOf.bind()
            : function (e, t) {
                return ((e.__proto__ = t), e);
              })(e, t);
        }
        function I(e) {
          return (I = Object.setPrototypeOf
            ? Object.getPrototypeOf.bind()
            : function (e) {
                return e.__proto__ || Object.getPrototypeOf(e);
              })(e);
        }
        ((P.DEFAULT_COLOR_BASE = a()("#1768c4")),
          (P.DEFAULT_COLOR_BG = a()("#ffffff")),
          (P.MINIMUM_ACCEPTABLE_CONTRAST = 4.5),
          (P.colorBase = P.DEFAULT_COLOR_BASE),
          (P.colorText = P.DEFAULT_COLOR_BG));
        const L = (function () {
          !(function (e, t) {
            if ("function" != typeof t && null !== t)
              throw new TypeError(
                "Super expression must either be null or a function",
              );
            ((e.prototype = Object.create(t && t.prototype, {
              constructor: { value: e, writable: !0, configurable: !0 },
            })),
              Object.defineProperty(e, "prototype", { writable: !1 }),
              t && A(e, t));
          })(o, H5P.EventDispatcher);
          var e,
            n,
            r,
            i =
              ((n = o),
              (r = (function () {
                if ("undefined" == typeof Reflect || !Reflect.construct)
                  return !1;
                if (Reflect.construct.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                  return (
                    Boolean.prototype.valueOf.call(
                      Reflect.construct(Boolean, [], function () {}),
                    ),
                    !0
                  );
                } catch (e) {
                  return !1;
                }
              })()),
              function () {
                var e,
                  t = I(n);
                return (function (e, t) {
                  if (t && ("object" === k(t) || "function" == typeof t))
                    return t;
                  if (void 0 !== t)
                    throw new TypeError(
                      "Derived constructors may only return object or undefined",
                    );
                  return (function (e) {
                    if (void 0 === e)
                      throw new ReferenceError(
                        "this hasn't been initialised - super() hasn't been called",
                      );
                    return e;
                  })(e);
                })(
                  this,
                  r
                    ? ((e = I(this).constructor),
                      Reflect.construct(t, arguments, e))
                    : t.apply(this, arguments),
                );
              });
          function o(e, t, n) {
            var r;
            return (
              (function (e) {
                if (!(e instanceof o))
                  throw new TypeError("Cannot call a class as a function");
              })(this),
              ((r = i.call(this)).parent = t),
              (r.behaviour = e.behaviour),
              (r.l10n = e.l10n),
              (r.chapters = n || []),
              (r.subContentId = "summary"),
              (r.wrapper = null),
              (r.summaryMenuButton = r.createSummaryButton()),
              (r.filterActionAll = "all"),
              (r.filterActionUnanswered = "unanswered"),
              (r.bookCompleted = !1),
              (r.tempState = JSON.stringify(
                r.parent.previousState && r.parent.previousState.chapters
                  ? r.parent.previousState.chapters
                  : r.getChapterStats(),
              )),
              t.on("bookCompleted", function (e) {
                return r.setBookComplete(e.data.completed);
              }),
              t.on("toggleMenu", function () {
                var e = document.querySelector(
                  ".h5p-interactive-book-summary-footer",
                );
                e &&
                  r.bookCompleted &&
                  (r.parent.isMenuOpen()
                    ? e.classList.add("menu-open")
                    : e.classList.remove("menu-open"));
              }),
              r
            );
          }
          return (
            E((e = o).prototype, [
              {
                key: "setBookComplete",
                value: function (t) {
                  var e = this.parent.mainWrapper
                    ? this.parent.mainWrapper[0].querySelector(
                        ".h5p-interactive-book-summary-footer",
                      )
                    : null;
                  (!e &&
                    this.parent.isSmallSurface() &&
                    ((e = document.createElement("div")).classList.add(
                      "h5p-interactive-book-summary-footer",
                    ),
                    e.appendChild(this.createSummaryButton()),
                    this.parent.mainWrapper.append(e)),
                    e &&
                      t &&
                      setTimeout(function () {
                        return e.classList.add("show-footer");
                      }, 0),
                    (this.bookCompleted = t),
                    Array.from(
                      document.querySelectorAll(
                        ".h5p-interactive-book-summary-menu-button",
                      ),
                    ).forEach(function (e) {
                      return e.setAttribute(
                        "data-book-completed",
                        t.toString(),
                      );
                    }));
                },
              },
              {
                key: "setChapters",
                value: function (e) {
                  this.chapters = Array.isArray(e) ? e : [];
                },
              },
              {
                key: "setSummaryMenuButtonDisabled",
                value: function () {
                  this.summaryMenuButton.disabled =
                    !(0 < arguments.length && void 0 !== arguments[0]) ||
                    arguments[0];
                },
              },
              {
                key: "setFilter",
                value: function (e) {
                  var t = this,
                    n = this.wrapper.querySelector(
                      ".h5p-interactive-book-summary-overview-list",
                    ),
                    r = Array.from(
                      n.querySelectorAll(
                        ".h5p-interactive-book-summary-overview-section",
                      ),
                    );
                  r.forEach(function (e) {
                    (e.classList.remove(
                      "h5p-interactive-book-summary-top-section",
                    ),
                      e.classList.remove(
                        "h5p-interactive-book-summary-bottom-section",
                      ));
                  });
                  var i = n.querySelector(
                    ".h5p-interactive-book-summary-overview-list-empty",
                  );
                  ((i.style.display = "none"),
                    e === this.filterActionUnanswered
                      ? (n.classList.add(
                          "h5p-interactive-book-summary-overview-list-only-unanswered",
                        ),
                        (r = r.filter(function (e) {
                          return !e.classList.contains(
                            "h5p-interactive-book-summary-no-interactions",
                          );
                        })).length
                          ? (r[0].classList.add(
                              "h5p-interactive-book-summary-top-section",
                            ),
                            r[r.length - 1].classList.add(
                              "h5p-interactive-book-summary-bottom-section",
                            ))
                          : (i.style.display = "block"))
                      : e === this.filterActionAll &&
                        n.classList.remove(
                          "h5p-interactive-book-summary-overview-list-only-unanswered",
                        ),
                    setTimeout(function () {
                      return t.trigger("resize");
                    }, 1));
                },
              },
              {
                key: "createSummaryButton",
                value: function () {
                  var t = this,
                    e = document.createElement("button");
                  (e.classList.add("h5p-interactive-book-summary-menu-button"),
                    (e.onclick = function () {
                      var e = {
                        h5pbookid: t.parent.contentId,
                        chapter: "h5p-interactive-book-chapter-summary",
                        section: "top",
                      };
                      (t.parent.trigger("newChapter", e),
                        t.parent.isMenuOpen() &&
                          t.parent.isSmallSurface() &&
                          t.parent.trigger("toggleMenu"));
                    }));
                  var n = document.createElement("span");
                  (n.classList.add("h5p-interactive-book-summary-icon"),
                    n.classList.add("icon-paper"),
                    n.setAttribute("aria-hidden", "true"));
                  var r = document.createElement("span");
                  (r.classList.add("h5p-interactive-book-summary-text"),
                    (r.innerHTML = this.l10n.summaryAndSubmit));
                  var i = document.createElement("span");
                  return (
                    i.classList.add(
                      "h5p-interactive-book-summary-menu-button-arrow",
                    ),
                    i.classList.add("icon-up"),
                    i.setAttribute("aria-hidden", "true"),
                    e.appendChild(n),
                    e.appendChild(r),
                    e.appendChild(i),
                    e
                  );
                },
              },
              {
                key: "createCircle",
                value: function (e) {
                  var t = P.computeContrastColor(
                      P.colorBase,
                      P.DEFAULT_COLOR_BG,
                    ),
                    n = document.createElement("div");
                  return (
                    n.classList.add(
                      "h5p-interactive-book-summary-progress-circle",
                    ),
                    n.setAttribute("data-value", e),
                    n.setAttribute("data-start-angle", -Math.PI / 3),
                    n.setAttribute("data-thickness", 13),
                    n.setAttribute(
                      "data-empty-fill",
                      "rgba(".concat(t.rgb().array().join(", "), ", .1)"),
                    ),
                    n.setAttribute(
                      "data-fill",
                      JSON.stringify({ color: t.hex() }),
                    ),
                    n
                  );
                },
              },
              {
                key: "createProgress",
                value: function (e, t, n, r) {
                  var i =
                      4 < arguments.length &&
                      void 0 !== arguments[4] &&
                      arguments[4],
                    o = 5 < arguments.length ? arguments[5] : void 0,
                    a = 6 < arguments.length ? arguments[6] : void 0,
                    s = document.createElement("div"),
                    c = document.createElement("h3");
                  c.innerHTML = e;
                  var l = (100 * n) / r;
                  (void 0 === o && (o = n), void 0 === a && (a = r));
                  e = document.createElement("p");
                  (e.classList.add(
                    "h5p-interactive-book-summary-progressbox-bigtext",
                  ),
                    (e.innerHTML = Math.round(l) + "%"),
                    i &&
                      ((l = document.createElement("span")).classList.add(
                        "absolute-value",
                      ),
                      (l.innerHTML = n),
                      (i = document.createElement("span")).classList.add(
                        "separator",
                      ),
                      (i.innerHTML = "/"),
                      (u = document.createElement("span")).classList.add(
                        "absolute-value",
                      ),
                      (u.innerHTML = r),
                      (e.innerHTML = ""),
                      e.appendChild(l),
                      e.appendChild(i),
                      e.appendChild(u)));
                  var u = document.createElement("span");
                  (u.classList.add(
                    "h5p-interactive-book-summary-progressbox-smalltext",
                  ),
                    (u.innerHTML = t.replace("@count", o).replace("@total", a)),
                    s.appendChild(c),
                    s.appendChild(e),
                    s.appendChild(u));
                  u = document.createElement("div");
                  return (
                    u.appendChild(s),
                    u.appendChild(this.createCircle(n / r)),
                    u
                  );
                },
              },
              {
                key: "addScoreProgress",
                value: function () {
                  var e,
                    t = 0,
                    n = 0,
                    r = T(this.chapters);
                  try {
                    for (r.s(); !(e = r.n()).done; ) {
                      var i = e.value;
                      ((t += i.maxTasks), (n += i.tasksLeft));
                    }
                  } catch (e) {
                    r.e(e);
                  } finally {
                    r.f();
                  }
                  var o = this.createProgress(
                    this.l10n.totalScoreLabel,
                    this.l10n.interactionsProgressSubtext,
                    this.parent.getScore(),
                    this.parent.getMaxScore(),
                    !0,
                    Math.max(t - n, 0),
                    t,
                  );
                  (o.classList.add(
                    "h5p-interactive-book-summary-progress-container",
                  ),
                    o.classList.add(
                      "h5p-interactive-book-summary-score-progress",
                    ));
                  var a = o.querySelector(
                    ".h5p-interactive-book-summary-progress-circle",
                  );
                  return (
                    a.setAttribute("data-empty-fill", "rgb(198, 220, 212)"),
                    a.setAttribute(
                      "data-fill",
                      JSON.stringify({ color: "#0e7c57" }),
                    ),
                    o
                  );
                },
              },
              {
                key: "addBookProgress",
                value: function () {
                  var e = this.createProgress(
                    this.l10n.bookProgress,
                    this.l10n.bookProgressSubtext,
                    this.chapters.filter(function (e) {
                      return e.completed;
                    }).length,
                    this.chapters.length,
                  );
                  return (
                    e.classList.add(
                      "h5p-interactive-book-summary-progress-container",
                    ),
                    e.classList.add(
                      "h5p-interactive-book-summary-book-progress",
                    ),
                    e
                  );
                },
              },
              {
                key: "addInteractionsProgress",
                value: function () {
                  var e,
                    t = 0,
                    n = 0,
                    r = T(this.chapters);
                  try {
                    for (r.s(); !(e = r.n()).done; ) {
                      var i = e.value;
                      ((t += i.maxTasks), (n += i.tasksLeft));
                    }
                  } catch (e) {
                    r.e(e);
                  } finally {
                    r.f();
                  }
                  var o = this.createProgress(
                    this.l10n.interactionsProgress,
                    this.l10n.interactionsProgressSubtext,
                    Math.max(t - n, 0),
                    t,
                  );
                  return (
                    o.classList.add(
                      "h5p-interactive-book-summary-progress-container",
                    ),
                    o.classList.add(
                      "h5p-interactive-book-summary-interactions-progress",
                    ),
                    o
                  );
                },
              },
              {
                key: "addProgressIndicators",
                value: function () {
                  var e;
                  this.behaviour.progressIndicators &&
                    ((e = document.createElement("div")).classList.add(
                      "h5p-interactive-box-summary-progress",
                    ),
                    e.appendChild(this.addScoreProgress()),
                    e.appendChild(this.addBookProgress()),
                    e.appendChild(this.addInteractionsProgress()),
                    setTimeout(function () {
                      return H5P.jQuery(
                        ".h5p-interactive-book-summary-progress-circle",
                      ).circleProgress();
                    }, 100),
                    this.wrapper.appendChild(e));
                },
              },
              {
                key: "addActionButtons",
                value: function () {
                  var e,
                    t = this,
                    n = document.createElement("div");
                  (n.classList.add("h5p-interactive-book-summary-buttons"),
                    this.checkTheAnswerIsUpdated(),
                    this.parent.isSubmitButtonEnabled &&
                      this.parent.isAnswerUpdated &&
                      ((e = this.addButton(
                        "icon-paper-pencil",
                        this.l10n.submitReport,
                      )).classList.add("h5p-interactive-book-summary-submit"),
                      (e.onclick = function () {
                        (t.trigger("submitted"),
                          t.parent.triggerXAPIScored(
                            t.parent.getScore(),
                            t.parent.getMaxScore(),
                            "completed",
                          ),
                          n.classList.add("submitted"),
                          n.querySelector(".answers-submitted").focus(),
                          (t.tempState = JSON.stringify(t.getChapterStats())),
                          (t.parent.isAnswerUpdated = !1));
                      }),
                      n.appendChild(e)),
                    this.behaviour.enableRetry &&
                      n.appendChild(this.createRestartButton()),
                    n.appendChild(this.createSubmittedConfirmation()),
                    this.wrapper.appendChild(n));
                },
              },
              {
                key: "createRestartButton",
                value: function () {
                  var e = this,
                    t = this.addButton("icon-restart", this.l10n.restartLabel);
                  return (
                    t.classList.add("h5p-interactive-book-summary-restart"),
                    (t.onclick = function () {
                      return e.parent.resetTask();
                    }),
                    t
                  );
                },
              },
              {
                key: "createSubmittedConfirmation",
                value: function () {
                  var e = document.createElement("div");
                  e.classList.add("h5p-interactive-book-summary-submitted");
                  var t = document.createElement("span");
                  (t.classList.add("icon-chapter-done"),
                    t.classList.add("icon-check-mark"),
                    e.appendChild(t));
                  t = document.createElement("p");
                  return (
                    (t.innerHTML = this.l10n.yourAnswersAreSubmittedForReview),
                    (t.tabIndex = -1),
                    t.classList.add("answers-submitted"),
                    e.appendChild(t),
                    this.behaviour.enableRetry &&
                      e.appendChild(this.createRestartButton()),
                    e
                  );
                },
              },
              {
                key: "addButton",
                value: function (e, t) {
                  var n = document.createElement("button");
                  ((n.type = "button"),
                    n.classList.add("h5p-interactive-book-summary-button"),
                    (n.innerHTML = t));
                  t = document.createElement("span");
                  return (
                    t.classList.add(e),
                    t.setAttribute("aria-hidden", "true"),
                    n.appendChild(t),
                    n
                  );
                },
              },
              {
                key: "createSectionList",
                value: function (e, o) {
                  var a,
                    t,
                    n,
                    s = this,
                    c = [],
                    l = !1,
                    r = T(e);
                  try {
                    for (r.s(); !(a = r.n()).done; )
                      !(function () {
                        var t = a.value,
                          e = document.createElement("li");
                        (e.classList.add(
                          "h5p-interactive-book-summary-overview-section-details",
                        ),
                          s.behaviour.progressIndicators &&
                            ((i = document.createElement("span")).classList.add(
                              "h5p-interactive-book-summary-section-icon",
                            ),
                            i.classList.add(
                              t.taskDone
                                ? "icon-chapter-done"
                                : "icon-chapter-blank",
                            ),
                            e.appendChild(i)));
                        var n = document.createElement("button");
                        ((n.type = "button"),
                          n.classList.add(
                            "h5p-interactive-book-summary-section-title",
                          ),
                          (n.onclick = function () {
                            var e = {
                              h5pbookid: s.parent.contentId,
                              chapter: "h5p-interactive-book-chapter-".concat(
                                o,
                              ),
                              section: "h5p-interactive-book-section-".concat(
                                t.instance.subContentId,
                              ),
                            };
                            s.parent.trigger("newChapter", e);
                          }));
                        var r =
                            t.instance.contentData &&
                            t.instance.contentData.metadata &&
                            t.instance.contentData.metadata.title,
                          i =
                            t.content &&
                            t.content.metadata &&
                            t.content.metadata.title;
                        n.innerHTML = r || i || "Untitled";
                        i = document.createElement("div");
                        (i.classList.add(
                          "h5p-interactive-book-summary-section-score",
                        ),
                          (i.innerHTML = "-"),
                          "function" == typeof t.instance.getScore &&
                            (i.innerHTML = s.l10n.scoreText
                              .replace("@score", t.instance.getScore())
                              .replace("@maxscore", t.instance.getMaxScore())),
                          t.taskDone
                            ? e.classList.add(
                                "h5p-interactive-book-summary-overview-section-details-task-done",
                              )
                            : (l = !0),
                          e.appendChild(n),
                          e.appendChild(i),
                          c.push(e));
                      })();
                  } catch (e) {
                    r.e(e);
                  } finally {
                    r.f();
                  }
                  return (
                    c.length &&
                      ((t = document.createElement("div")).classList.add(
                        "h5p-interactive-book-summary-overview-section-score-header",
                      ),
                      ((n = document.createElement("div")).innerHTML =
                        this.l10n.score),
                      t.appendChild(n),
                      c.unshift(t)),
                    { hasUnansweredInteractions: l, sectionElements: c }
                  );
                },
              },
              {
                key: "createChapterOverview",
                value: function (t) {
                  var n = this,
                    e = document.createElement("li");
                  e.classList.add(
                    "h5p-interactive-book-summary-overview-section",
                  );
                  var r = document.createElement("h4");
                  r.onclick = function () {
                    var e = {
                      h5pbookid: n.parent.contentId,
                      chapter: "h5p-interactive-book-chapter-".concat(
                        t.instance.subContentId,
                      ),
                      section: "top",
                    };
                    n.parent.trigger("newChapter", e);
                  };
                  var i = document.createElement("span");
                  ((i.innerHTML = t.title),
                    r.appendChild(i),
                    this.behaviour.progressIndicators &&
                      ((o = document.createElement("span")),
                      (i = this.parent.getChapterStatus(t)),
                      o.classList.add("icon-chapter-".concat(i.toLowerCase())),
                      r.appendChild(o)),
                    e.appendChild(r));
                  var o = this.createSectionList(
                      t.sections.filter(function (e) {
                        return e.isTask;
                      }),
                      t.instance.subContentId,
                    ),
                    r = o.sectionElements;
                  !1 === o.hasUnansweredInteractions &&
                    e.classList.add(
                      "h5p-interactive-book-summary-no-interactions",
                    );
                  o = document.createElement("div");
                  (o.classList.add(
                    "h5p-interactive-book-summary-chapter-subheader",
                  ),
                    t.maxTasks
                      ? (o.innerHTML = this.l10n.leftOutOfTotalCompleted
                          .replace(
                            "@left",
                            Math.max(t.maxTasks - t.tasksLeft, 0),
                          )
                          .replace("@max", t.maxTasks))
                      : (o.innerHTML = this.l10n.noInteractions),
                    e.appendChild(o));
                  var a = document.createElement("ul");
                  return (
                    r.length &&
                      r.map(function (e) {
                        return a.appendChild(e);
                      }),
                    e.appendChild(a),
                    e
                  );
                },
              },
              {
                key: "createFilterDropdown",
                value: function () {
                  function e(e, t) {
                    var n = document.createElement("li");
                    n.role = "menuitem";
                    var r = document.createElement("button");
                    return (
                      (r.textContent = e),
                      (r.type = "button"),
                      (r.onclick = function (e) {
                        (i.setFilter(t),
                          o.removeAttribute("active"),
                          a.setAttribute("aria-expanded", "false"),
                          (s.textContent = e.currentTarget.innerHTML));
                      }),
                      n.appendChild(r),
                      n
                    );
                  }
                  var i = this,
                    o = document.createElement("div");
                  o.classList.add("h5p-interactive-book-summary-dropdown");
                  var a = document.createElement("button");
                  (a.setAttribute("aria-haspopup", "true"),
                    a.setAttribute("aria-expanded", "false"),
                    (a.type = "button"),
                    (a.onclick = function () {
                      o.hasAttribute("active")
                        ? (o.removeAttribute("active"),
                          a.setAttribute("aria-expanded", "false"))
                        : (o.setAttribute("active", ""),
                          a.setAttribute("aria-expanded", "true"),
                          a.focus());
                    }));
                  var s = document.createElement("span");
                  ((s.textContent = this.l10n.allInteractions),
                    a.appendChild(s));
                  var t = document.createElement("span");
                  (t.classList.add(
                    "h5p-interactive-book-summary-dropdown-icon",
                  ),
                    t.classList.add("icon-expanded"),
                    t.setAttribute("aria-hidden", "true"),
                    a.appendChild(t));
                  var n = document.createElement("ul");
                  ((n.role = "menu"),
                    n.classList.add(
                      "h5p-interactive-book-summary-dropdown-menu",
                    ));
                  var r = e(this.l10n.allInteractions, this.filterActionAll),
                    t = e(
                      this.l10n.unansweredInteractions,
                      this.filterActionUnanswered,
                    );
                  return (
                    n.appendChild(r),
                    n.appendChild(t),
                    o.appendChild(a),
                    o.appendChild(n),
                    o
                  );
                },
              },
              {
                key: "addSummaryOverview",
                value: function () {
                  var e = document.createElement("ul");
                  e.classList.add("h5p-interactive-book-summary-list");
                  var t = document.createElement("li");
                  t.classList.add(
                    "h5p-interactive-book-summary-overview-header",
                  );
                  var n = document.createElement("h3");
                  ((n.innerHTML = this.l10n.summaryHeader),
                    t.appendChild(n),
                    t.appendChild(this.createFilterDropdown()),
                    e.appendChild(t));
                  var r = document.createElement("ol");
                  r.classList.add("h5p-interactive-book-summary-overview-list");
                  var i,
                    o = T(this.chapters);
                  try {
                    for (o.s(); !(i = o.n()).done; ) {
                      var a = i.value;
                      r.appendChild(this.createChapterOverview(a));
                    }
                  } catch (e) {
                    o.e(e);
                  } finally {
                    o.f();
                  }
                  t = document.createElement("p");
                  (t.classList.add(
                    "h5p-interactive-book-summary-overview-list-empty",
                  ),
                    t.classList.add("h5p-interactive-book-summary-top-section"),
                    t.classList.add(
                      "h5p-interactive-book-summary-bottom-section",
                    ),
                    (t.innerHTML = this.l10n.noInteractions),
                    r.appendChild(t),
                    e.appendChild(r),
                    this.wrapper.appendChild(e));
                },
              },
              {
                key: "addScoreBar",
                value: function () {
                  var e = document.createElement("div");
                  e.classList.add("h5p-interactive-book-summary-score-bar");
                  var t = H5P.JoubelUI.createScoreBar(
                    this.parent.getMaxScore(),
                  );
                  (t.setScore(this.parent.getScore()),
                    t.appendTo(e),
                    this.wrapper.appendChild(e));
                },
              },
              {
                key: "noChapterInteractions",
                value: function () {
                  var e = document.createElement("div");
                  e.classList.add(
                    "h5p-interactive-book-summary-no-chapter-interactions",
                  );
                  var t = document.createElement("p");
                  t.innerHTML = this.l10n.noChapterInteractionBoldText;
                  var n = document.createElement("p");
                  (n.classList.add(
                    "h5p-interactive-book-summary-no-initialized-chapters",
                  ),
                    (n.innerHTML = this.l10n.noChapterInteractionText),
                    e.appendChild(t),
                    e.appendChild(n),
                    this.wrapper.appendChild(e));
                },
              },
              {
                key: "addSummaryPage",
                value: function (e) {
                  if (
                    ((this.wrapper = document.createElement("div")),
                    this.wrapper.classList.add(
                      "h5p-interactive-book-summary-page",
                    ),
                    0 <
                      this.chapters.filter(function (e) {
                        return e.isInitialized;
                      }).length ||
                      this.chapters.some(function (e) {
                        return e.sections.some(function (e) {
                          return e.taskDone;
                        });
                      }))
                  ) {
                    if (
                      (this.parent.pageContent &&
                        this.parent.chapters[
                          this.parent.getChapterId(
                            this.parent.pageContent.targetPage.chapter,
                          )
                        ].isSummary) ||
                      0 === this.parent.chapters.length
                    ) {
                      if (0 < this.parent.chapters.length)
                        for (var t in this.chapters)
                          this.parent.pageContent.initializeChapter(t);
                      (this.addProgressIndicators(),
                        this.addActionButtons(),
                        this.addSummaryOverview(),
                        this.addScoreBar());
                    }
                  } else this.noChapterInteractions();
                  return (
                    Array.from(
                      document.querySelectorAll(
                        ".h5p-interactive-book-summary-footer",
                      ),
                    ).forEach(function (e) {
                      return e.remove();
                    }),
                    e.append(this.wrapper),
                    e
                  );
                },
              },
              {
                key: "checkTheAnswerIsUpdated",
                value: function () {
                  var e,
                    t = this.getChapterStats(),
                    n = JSON.parse(this.tempState),
                    r = T(t.keys());
                  try {
                    for (r.s(); !(e = r.n()).done; ) {
                      var i,
                        o = e.value,
                        a = n[o].state.instances,
                        s = t[o].state.instances,
                        c = t[o].sections,
                        l = T(a.keys());
                      try {
                        for (l.s(); !(i = l.n()).done; ) {
                          var u = i.value;
                          null !== a[u] &&
                            void 0 !== a[u] &&
                            (Array.isArray(a[u]) &&
                              !this.compareStates(a[u], s[u]) &&
                              c[u].taskDone &&
                              (this.parent.isAnswerUpdated = !0),
                            "object" === k(a[u]) &&
                              !Array.isArray(a[u]) &&
                              JSON.stringify(a[u]) !== JSON.stringify(s[u]) &&
                              c[u].taskDone &&
                              (this.parent.isAnswerUpdated = !0));
                        }
                      } catch (e) {
                        l.e(e);
                      } finally {
                        l.f();
                      }
                      if (this.parent.isAnswerUpdated) break;
                    }
                  } catch (e) {
                    r.e(e);
                  } finally {
                    r.f();
                  }
                },
              },
              {
                key: "getChapterStats",
                value: function () {
                  return this.chapters
                    .filter(function (e) {
                      return !e.isSummary;
                    })
                    .map(function (e) {
                      return {
                        sections: e.sections.map(function (e) {
                          return { taskDone: e.taskDone };
                        }),
                        state: e.instance.getCurrentState(),
                      };
                    });
                },
              },
              {
                key: "compareStates",
                value: function (e, n) {
                  return (
                    Array.isArray(e) &&
                    Array.isArray(n) &&
                    e.length === n.length &&
                    e.every(function (e, t) {
                      return e === n[t] || "" === n[t];
                    })
                  );
                },
              },
            ]),
            Object.defineProperty(e, "prototype", { writable: !1 }),
            o
          );
        })();
        function O(e) {
          return (O =
            "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
              ? function (e) {
                  return typeof e;
                }
              : function (e) {
                  return e &&
                    "function" == typeof Symbol &&
                    e.constructor === Symbol &&
                    e !== Symbol.prototype
                    ? "symbol"
                    : typeof e;
                })(e);
        }
        function j(t, e) {
          var n,
            r = Object.keys(t);
          return (
            Object.getOwnPropertySymbols &&
              ((n = Object.getOwnPropertySymbols(t)),
              e &&
                (n = n.filter(function (e) {
                  return Object.getOwnPropertyDescriptor(t, e).enumerable;
                })),
              r.push.apply(r, n)),
            r
          );
        }
        function D(r) {
          for (var e = 1; e < arguments.length; e++) {
            var i = null != arguments[e] ? arguments[e] : {};
            e % 2
              ? j(Object(i), !0).forEach(function (e) {
                  var t, n;
                  ((t = r),
                    (e = i[(n = e)]),
                    n in t
                      ? Object.defineProperty(t, n, {
                          value: e,
                          enumerable: !0,
                          configurable: !0,
                          writable: !0,
                        })
                      : (t[n] = e));
                })
              : Object.getOwnPropertyDescriptors
                ? Object.defineProperties(
                    r,
                    Object.getOwnPropertyDescriptors(i),
                  )
                : j(Object(i)).forEach(function (e) {
                    Object.defineProperty(
                      r,
                      e,
                      Object.getOwnPropertyDescriptor(i, e),
                    );
                  });
          }
          return r;
        }
        function M() {
          return (M = Object.assign
            ? Object.assign.bind()
            : function (e) {
                for (var t = 1; t < arguments.length; t++) {
                  var n,
                    r = arguments[t];
                  for (n in r)
                    Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
                }
                return e;
              }).apply(this, arguments);
        }
        function B(e, t) {
          for (var n = 0; n < t.length; n++) {
            var r = t[n];
            ((r.enumerable = r.enumerable || !1),
              (r.configurable = !0),
              "value" in r && (r.writable = !0),
              Object.defineProperty(e, r.key, r));
          }
        }
        function N(e, t) {
          return (N = Object.setPrototypeOf
            ? Object.setPrototypeOf.bind()
            : function (e, t) {
                return ((e.__proto__ = t), e);
              })(e, t);
        }
        function F(e) {
          return (F = Object.setPrototypeOf
            ? Object.getPrototypeOf.bind()
            : function (e) {
                return e.__proto__ || Object.getPrototypeOf(e);
              })(e);
        }
        const $ = (function () {
          !(function (e, t) {
            if ("function" != typeof t && null !== t)
              throw new TypeError(
                "Super expression must either be null or a function",
              );
            ((e.prototype = Object.create(t && t.prototype, {
              constructor: { value: e, writable: !0, configurable: !0 },
            })),
              Object.defineProperty(e, "prototype", { writable: !1 }),
              t && N(e, t));
          })(s, H5P.EventDispatcher);
          var e,
            n,
            r,
            a =
              ((n = s),
              (r = (function () {
                if ("undefined" == typeof Reflect || !Reflect.construct)
                  return !1;
                if (Reflect.construct.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                  return (
                    Boolean.prototype.valueOf.call(
                      Reflect.construct(Boolean, [], function () {}),
                    ),
                    !0
                  );
                } catch (e) {
                  return !1;
                }
              })()),
              function () {
                var e,
                  t = F(n);
                return (function (e, t) {
                  if (t && ("object" === O(t) || "function" == typeof t))
                    return t;
                  if (void 0 !== t)
                    throw new TypeError(
                      "Derived constructors may only return object or undefined",
                    );
                  return (function (e) {
                    if (void 0 === e)
                      throw new ReferenceError(
                        "this hasn't been initialised - super() hasn't been called",
                      );
                    return e;
                  })(e);
                })(
                  this,
                  r
                    ? ((e = F(this).constructor),
                      Reflect.construct(t, arguments, e))
                    : t.apply(this, arguments),
                );
              });
          function s(e, t, n, r, i) {
            var o;
            return (
              (function (e) {
                if (!(e instanceof s))
                  throw new TypeError("Cannot call a class as a function");
              })(this),
              ((o = a.call(this)).parent = r),
              (o.behaviour = e.behaviour),
              (o.params = i),
              (o.targetPage = {}),
              (o.targetPage.redirectFromComponent = !1),
              (o.columnNodes = []),
              (o.chapters = []),
              (o.l10n = e.l10n),
              (o.sidebarIsOpen = !1),
              (o.previousState =
                n.previousState && 0 < Object.keys(n.previousState).length
                  ? n.previousState
                  : null),
              r.hasValidChapters() &&
                ((n = o.createColumns(e, t, n)), o.preloadChapter(n)),
              (o.content = o.createPageContent()),
              (o.container = document.createElement("div")),
              o.container.classList.add(
                "h5p-interactive-book-main",
                "h5p-interactive-book-navigation-hidden",
              ),
              o.container.appendChild(o.content),
              o
            );
          }
          return (
            B((e = s).prototype, [
              {
                key: "getChapters",
                value: function () {
                  var t =
                    !(0 < arguments.length && void 0 !== arguments[0]) ||
                    arguments[0];
                  return this.chapters.filter(function (e) {
                    return !e.isSummary || (e.isSummary && !!t);
                  });
                },
              },
              {
                key: "resetChapters",
                value: function () {
                  this.behaviour.progressIndicators &&
                    !this.behaviour.progressAuto &&
                    this.columnNodes.forEach(function (e) {
                      Array.from(
                        e.querySelectorAll(
                          ".h5p-interactive-book-status-progress-marker > input[type=checkbox]",
                        ),
                      ).forEach(function (e) {
                        return (e.checked = !1);
                      });
                    });
                },
              },
              {
                key: "createPageContent",
                value: function () {
                  var t = document.createElement("div");
                  return (
                    t.classList.add("h5p-interactive-book-content"),
                    this.columnNodes.forEach(function (e) {
                      t.appendChild(e);
                    }),
                    this.setChapterOrder(this.parent.getActiveChapter()),
                    t
                  );
                },
              },
              {
                key: "setChapterOrder",
                value: function (n) {
                  n < 0 ||
                    n > this.columnNodes.length - 1 ||
                    this.columnNodes.forEach(function (e, t) {
                      (e.classList.remove("h5p-interactive-book-previous"),
                        e.classList.remove("h5p-interactive-book-current"),
                        e.classList.remove("h5p-interactive-book-next"),
                        t === n - 1 ||
                          (t === n &&
                            e.classList.add("h5p-interactive-book-current")));
                    });
                },
              },
              {
                key: "createChapterReadCheckbox",
                value: function (e) {
                  var t = this,
                    n = document.createElement("input");
                  (n.setAttribute("type", "checkbox"),
                    (n.checked = e),
                    (n.onclick = function (e) {
                      t.parent.setChapterRead(void 0, e.target.checked);
                    }));
                  var r = document.createElement("p");
                  r.innerHTML = this.params.l10n.markAsFinished;
                  e = document.createElement("label");
                  return (
                    e.classList.add(
                      "h5p-interactive-book-status-progress-marker",
                    ),
                    e.appendChild(n),
                    e.appendChild(r),
                    e
                  );
                },
              },
              {
                key: "injectSectionId",
                value: function (e, t) {
                  for (
                    var n = t.getElementsByClassName("h5p-column-content"),
                      r = 0;
                    r < e.length;
                    r++
                  )
                    n[r].id = "h5p-interactive-book-section-".concat(
                      e[r].instance.subContentId,
                    );
                },
              },
              {
                key: "preloadChapter",
                value: function (e) {
                  (this.initializeChapter(e), this.initializeChapter(e + 1));
                },
              },
              {
                key: "initializeChapter",
                value: function (e) {
                  if (!(e < 0 || e > this.chapters.length - 1)) {
                    var t,
                      n = this.chapters[e];
                    if (n.isSummary) {
                      var r = this.columnNodes[e];
                      return (
                        n.isInitialized &&
                          (n.instance.setChapters(this.getChapters(!1)),
                          (r.innerHTML = "")),
                        n.instance.addSummaryPage(H5P.jQuery(r)),
                        void (n.isInitialized = !0)
                      );
                    }
                    n.isInitialized ||
                      ((r = this.columnNodes[e]),
                      n.instance.attach(H5P.jQuery(r)),
                      this.injectSectionId(n.sections, r),
                      this.behaviour.progressIndicators &&
                        !this.behaviour.progressAuto &&
                        r.appendChild(
                          this.createChapterReadCheckbox(
                            !(
                              null === (r = this.previousState) ||
                              void 0 === r ||
                              null === (t = r.chapters) ||
                              void 0 === t ||
                              !t[e].completed
                            ),
                          ),
                        ),
                      (n.isInitialized = !0));
                  }
                },
              },
              {
                key: "createColumns",
                value: function (i, o, a) {
                  var s = this,
                    c =
                      (a = M({}, a)).previousState &&
                      0 < Object.keys(a.previousState).length
                        ? a.previousState
                        : null,
                    e = d.extractFragmentsFromURL(
                      this.parent.validateFragments,
                      this.parent.hashWindow,
                    );
                  0 === Object.keys(e).length &&
                    a &&
                    c &&
                    c.urlFragments &&
                    (e = c.urlFragments);
                  var l = [];
                  this.chapters = l;
                  for (var t, n = 0; n < i.chapters.length; n++)
                    !(function (n) {
                      var e = document.createElement("div"),
                        t = D(
                          D({}, a),
                          {},
                          {
                            metadata: D({}, a.metadata),
                            previousState: c ? c.chapters[n].state : {},
                          },
                        ),
                        t = H5P.newRunnable(
                          i.chapters[n],
                          o,
                          void 0,
                          void 0,
                          t,
                        );
                      s.parent.bubbleUp(t, "resize", s.parent);
                      var r = {
                        isInitialized: !1,
                        instance: t,
                        title: i.chapters[n].metadata.title,
                        completed: !!c && c.chapters[n].completed,
                        tasksLeft: c ? c.chapters[n].tasksLeft : 0,
                        isSummary: !1,
                        sections: t.getInstances().map(function (e, t) {
                          return {
                            content: i.chapters[n].params.content[t].content,
                            instance: e,
                            isTask: !1,
                          };
                        }),
                      };
                      (e.classList.add("h5p-interactive-book-chapter"),
                        (e.id = "h5p-interactive-book-chapter-".concat(
                          t.subContentId,
                        )),
                        (r.maxTasks = 0),
                        (r.tasksLeft = 0),
                        r.sections.forEach(function (e, t) {
                          H5P.Column.isTask(e.instance) &&
                            ((e.isTask = !0),
                            r.maxTasks++,
                            r.tasksLeft++,
                            s.behaviour.progressIndicators &&
                              ((e.taskDone =
                                !!c && c.chapters[n].sections[t].taskDone),
                              e.taskDone && r.tasksLeft--));
                        }),
                        l.push(r),
                        s.columnNodes.push(e));
                    })(n);
                  if (
                    (this.parent.hasSummary(l) &&
                      ((u = document.createElement("div")),
                      (t = new L(D({}, i), this.parent, this.getChapters(!1))),
                      this.parent.bubbleUp(t, "resize", this.parent),
                      (t = {
                        isInitialized: !1,
                        instance: t,
                        title: this.l10n.summaryHeader,
                        isSummary: !0,
                        sections: [],
                      }),
                      u.classList.add("h5p-interactive-book-chapter"),
                      (u.id = "h5p-interactive-book-chapter-summary"),
                      (t.maxTasks = t.tasksLeft),
                      l.push(t),
                      this.columnNodes.push(u)),
                    e.chapter && e.h5pbookid == this.parent.contentId)
                  ) {
                    var r,
                      u = this.findChapterIndex(e.chapter);
                    return -1 === u
                      ? 0
                      : (this.parent.setActiveChapter(u),
                        e.section &&
                          ((r = e.headerNumber),
                          setTimeout(function () {
                            (s.redirectSection(e.section, r),
                              s.parent.hasCover() &&
                                s.parent.cover.removeCover());
                          }, 1e3)),
                        u);
                  }
                  return 0;
                },
              },
              {
                key: "redirectSection",
                value: function (e) {
                  var t,
                    n,
                    r =
                      1 < arguments.length && void 0 !== arguments[1]
                        ? arguments[1]
                        : null;
                  "top" === e
                    ? this.parent.trigger("scrollToTop")
                    : (t = document.getElementById(e)) &&
                      (null === r ||
                        ((e = t.querySelectorAll("h2, h3"))[r] && (t = e[r])),
                      (n = document.createElement("div")).setAttribute(
                        "tabindex",
                        "-1",
                      ),
                      t.parentNode.insertBefore(n, t),
                      n.focus(),
                      n.addEventListener("blur", function () {
                        n.parentNode.removeChild(n);
                      }),
                      (this.targetPage.redirectFromComponent = !1),
                      setTimeout(function () {
                        t.scrollIntoView(!0);
                      }, 100));
                },
              },
              {
                key: "findChapterIndex",
                value: function (n) {
                  var r = -1;
                  return (
                    this.columnNodes.forEach(function (e, t) {
                      -1 === r && e.id === n && (r = t);
                    }),
                    r
                  );
                },
              },
              {
                key: "changeChapter",
                value: function (e, t) {
                  var n,
                    r,
                    i,
                    o,
                    a,
                    s = this;
                  this.columnNodes[
                    this.parent.getActiveChapter()
                  ].classList.contains("h5p-interactive-book-animate") ||
                    ((this.targetPage = t),
                    (t =
                      (n = this.parent.getActiveChapter()) !==
                      (r = this.parent.getChapterId(this.targetPage.chapter))),
                    e || this.parent.updateChapterProgress(n, t),
                    this.preloadChapter(r),
                    r < this.columnNodes.length &&
                      ((i = this.columnNodes[n]),
                      (o = this.columnNodes[r]),
                      t && !e
                        ? (this.parent.setActiveChapter(r),
                          o.classList.add(
                            "h5p-interactive-book-".concat(
                              (a = n < r ? "next" : "previous"),
                            ),
                          ),
                          o.classList.add("h5p-interactive-book-animate"),
                          i.classList.add("h5p-interactive-book-animate"),
                          setTimeout(function () {
                            ("previous" == a
                              ? i.classList.add("h5p-interactive-book-next")
                              : (i.classList.remove(
                                  "h5p-interactive-book-current",
                                ),
                                i.classList.add(
                                  "h5p-interactive-book-previous",
                                )),
                              o.classList.remove(
                                "h5p-interactive-book-".concat(a),
                              ));
                          }, 1),
                          setTimeout(function () {
                            (i.classList.remove("h5p-interactive-book-next"),
                              i.classList.remove(
                                "h5p-interactive-book-previous",
                              ),
                              i.classList.remove(
                                "h5p-interactive-book-current",
                              ),
                              o.classList.add("h5p-interactive-book-current"),
                              o.classList.remove(
                                "h5p-interactive-book-animate",
                              ),
                              i.classList.remove(
                                "h5p-interactive-book-animate",
                              ),
                              s.redirectSection(
                                s.targetPage.section,
                                s.targetPage.headerNumber,
                              ),
                              s.parent.trigger("resize"));
                          }, 250))
                        : this.parent.cover && !this.parent.cover.hidden
                          ? this.parent.on("coverRemoved", function () {
                              s.redirectSection(
                                s.targetPage.section,
                                s.targetPage.headerNumber,
                              );
                            })
                          : this.redirectSection(
                              this.targetPage.section,
                              this.targetPage.headerNumber,
                            ),
                      this.parent.sideBar.redirectHandler(r)));
                },
              },
              {
                key: "updateFooter",
                value: function () {
                  var e, t;
                  0 !== this.chapters.length &&
                    ((e = this.parent.getActiveChapter()),
                    (t = this.columnNodes[e]),
                    (e = this.parent.shouldFooterBeHidden(t.clientHeight)),
                    (t = this.parent.statusBarFooter.wrapper.parentNode),
                    e
                      ? t !== this.content &&
                        this.content.appendChild(
                          this.parent.statusBarFooter.wrapper,
                        )
                      : t !== this.parent.$wrapper &&
                        this.parent.$wrapper.append(
                          this.parent.statusBarFooter.wrapper,
                        ));
                },
              },
              {
                key: "toggleNavigationMenu",
                value: function () {
                  var e = this;
                  (this.sidebarIsOpen
                    ? (H5P.Transition.onTransitionEnd(
                        H5P.jQuery(this.container),
                        function () {
                          e.container.classList.add(
                            "h5p-interactive-book-navigation-hidden",
                          );
                        },
                        500,
                      ),
                      this.container.classList.remove(
                        "h5p-interactive-book-navigation-open",
                      ))
                    : (this.container.classList.remove(
                        "h5p-interactive-book-navigation-hidden",
                      ),
                      setTimeout(function () {
                        e.container.classList.add(
                          "h5p-interactive-book-navigation-open",
                        );
                      }, 1)),
                    (this.sidebarIsOpen = !this.sidebarIsOpen));
                },
              },
            ]),
            Object.defineProperty(e, "prototype", { writable: !1 }),
            s
          );
        })();
        function R(e) {
          return (R =
            "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
              ? function (e) {
                  return typeof e;
                }
              : function (e) {
                  return e &&
                    "function" == typeof Symbol &&
                    e.constructor === Symbol &&
                    e !== Symbol.prototype
                    ? "symbol"
                    : typeof e;
                })(e);
        }
        G(2062);
        var q = [
          "read",
          "displayTOC",
          "hideTOC",
          "nextPage",
          "previousPage",
          "chapterCompleted",
          "partCompleted",
          "incompleteChapter",
          "navigateToTop",
          "markAsFinished",
          "fullscreen",
          "exitFullscreen",
          "bookProgressSubtext",
          "interactionsProgressSubtext",
          "submitReport",
          "restartLabel",
          "summaryHeader",
          "allInteractions",
          "unansweredInteractions",
          "scoreText",
          "leftOutOfTotalCompleted",
          "noInteractions",
          "score",
          "summaryAndSubmit",
          "noChapterInteractionBoldText",
          "noChapterInteractionText",
          "yourAnswersAreSubmittedForReview",
          "bookProgress",
          "interactionsProgress",
          "totalScoreLabel",
        ];
        function z(t, e) {
          var n,
            r = Object.keys(t);
          return (
            Object.getOwnPropertySymbols &&
              ((n = Object.getOwnPropertySymbols(t)),
              e &&
                (n = n.filter(function (e) {
                  return Object.getOwnPropertyDescriptor(t, e).enumerable;
                })),
              r.push.apply(r, n)),
            r
          );
        }
        function W(r) {
          for (var e = 1; e < arguments.length; e++) {
            var i = null != arguments[e] ? arguments[e] : {};
            e % 2
              ? z(Object(i), !0).forEach(function (e) {
                  var t, n;
                  ((t = r),
                    (e = i[(n = e)]),
                    n in t
                      ? Object.defineProperty(t, n, {
                          value: e,
                          enumerable: !0,
                          configurable: !0,
                          writable: !0,
                        })
                      : (t[n] = e));
                })
              : Object.getOwnPropertyDescriptors
                ? Object.defineProperties(
                    r,
                    Object.getOwnPropertyDescriptors(i),
                  )
                : z(Object(i)).forEach(function (e) {
                    Object.defineProperty(
                      r,
                      e,
                      Object.getOwnPropertyDescriptor(i, e),
                    );
                  });
          }
          return r;
        }
        function U() {
          return (U = Object.assign
            ? Object.assign.bind()
            : function (e) {
                for (var t = 1; t < arguments.length; t++) {
                  var n,
                    r = arguments[t];
                  for (n in r)
                    Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
                }
                return e;
              }).apply(this, arguments);
        }
        function _(e, t) {
          for (var n = 0; n < t.length; n++) {
            var r = t[n];
            ((r.enumerable = r.enumerable || !1),
              (r.configurable = !0),
              "value" in r && (r.writable = !0),
              Object.defineProperty(e, r.key, r));
          }
        }
        function Q(e, t) {
          return (Q = Object.setPrototypeOf
            ? Object.setPrototypeOf.bind()
            : function (e, t) {
                return ((e.__proto__ = t), e);
              })(e, t);
        }
        function V(e) {
          if (void 0 === e)
            throw new ReferenceError(
              "this hasn't been initialised - super() hasn't been called",
            );
          return e;
        }
        function X(e) {
          return (X = Object.setPrototypeOf
            ? Object.getPrototypeOf.bind()
            : function (e) {
                return e.__proto__ || Object.getPrototypeOf(e);
              })(e);
        }
        var K = (function () {
          !(function (e, t) {
            if ("function" != typeof t && null !== t)
              throw new TypeError(
                "Super expression must either be null or a function",
              );
            ((e.prototype = Object.create(t && t.prototype, {
              constructor: { value: e, writable: !0, configurable: !0 },
            })),
              Object.defineProperty(e, "prototype", { writable: !1 }),
              t && Q(e, t));
          })(s, H5P.EventDispatcher);
          var e,
            t,
            n,
            r,
            a =
              ((n = s),
              (r = (function () {
                if ("undefined" == typeof Reflect || !Reflect.construct)
                  return !1;
                if (Reflect.construct.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                  return (
                    Boolean.prototype.valueOf.call(
                      Reflect.construct(Boolean, [], function () {}),
                    ),
                    !0
                  );
                } catch (e) {
                  return !1;
                }
              })()),
              function () {
                var e,
                  t = X(n);
                return (function (e, t) {
                  if (t && ("object" === R(t) || "function" == typeof t))
                    return t;
                  if (void 0 !== t)
                    throw new TypeError(
                      "Derived constructors may only return object or undefined",
                    );
                  return V(e);
                })(
                  this,
                  r
                    ? ((e = X(this).constructor),
                      Reflect.construct(t, arguments, e))
                    : t.apply(this, arguments),
                );
              });
          function s(e, t) {
            var o,
              n =
                2 < arguments.length && void 0 !== arguments[2]
                  ? arguments[2]
                  : {};
            !(function (e) {
              if (!(e instanceof s))
                throw new TypeError("Cannot call a class as a function");
            })(this);
            var r = V((o = a.call(this)));
            ((o.contentId = t),
              (o.previousState = n.previousState),
              e &&
                e.behaviour &&
                e.behaviour.baseColor &&
                !P.isBaseColor(e.behaviour.baseColor) &&
                (P.setBase(e.behaviour.baseColor),
                (i = document.createElement("style")).styleSheet
                  ? (i.styleSheet.cssText = P.getCSS())
                  : i.appendChild(document.createTextNode(P.getCSS())),
                document.head.appendChild(i)),
              (o.activeChapter = 0),
              (o.newHandler = {}),
              (o.completed = !1),
              (o.params = s.sanitizeConfig(e)),
              (o.l10n = o.params.l10n),
              (o.params.behaviour = o.params.behaviour || {}),
              (o.mainWrapper = null),
              (o.currentRatio = null),
              (o.smallSurface = "h5p-interactive-book-small"),
              (o.mediumSurface = "h5p-interactive-book-medium"),
              (o.largeSurface = "h5p-interactive-book-large"),
              (o.chapters = []),
              (o.isSubmitButtonEnabled = !1),
              (o.isAnswerUpdated = !0),
              void 0 !== n.isScoringEnabled || void 0 !== n.isReportingEnabled
                ? (o.isSubmitButtonEnabled =
                    n.isScoringEnabled || n.isReportingEnabled)
                : void 0 !== H5PIntegration.reportingIsEnabled &&
                  (o.isSubmitButtonEnabled = H5PIntegration.reportingIsEnabled),
              (o.params.behaviour.enableSolutionsButton = !1),
              (o.params.behaviour.enableRetry =
                null === (i = o.params.behaviour.enableRetry) ||
                void 0 === i ||
                i),
              (o.getAnswerGiven = function () {
                return o.chapters.reduce(function (e, t) {
                  return "function" == typeof t.instance.getAnswerGiven
                    ? e && t.instance.getAnswerGiven()
                    : e;
                }, !0);
              }),
              (o.getScore = function () {
                return 0 < o.chapters.length
                  ? o.chapters.reduce(function (e, t) {
                      return "function" == typeof t.instance.getScore
                        ? e + t.instance.getScore()
                        : e;
                    }, 0)
                  : (o.previousState && o.previousState.score) || 0;
              }),
              (o.getMaxScore = function () {
                return 0 < o.chapters.length
                  ? o.chapters.reduce(function (e, t) {
                      return "function" == typeof t.instance.getMaxScore
                        ? e + t.instance.getMaxScore()
                        : e;
                    }, 0)
                  : (o.previousState && o.previousState.maxScore) || 0;
              }),
              (o.showSolutions = function () {
                o.chapters.forEach(function (e) {
                  ("function" == typeof e.instance.toggleReadSpeaker &&
                    e.instance.toggleReadSpeaker(!0),
                    "function" == typeof e.instance.showSolutions &&
                      e.instance.showSolutions(),
                    "function" == typeof e.instance.toggleReadSpeaker &&
                      e.instance.toggleReadSpeaker(!1));
                });
              }),
              (o.resetTask = function () {
                if (o.hasValidChapters()) {
                  for (var e in (o.chapters.forEach(function (e, t) {
                    ("function" == typeof e.instance.resetTask &&
                      e.instance.resetTask(),
                      (e.completed = !1),
                      (e.tasksLeft = e.maxTasks),
                      e.sections.forEach(function (e) {
                        return (e.taskDone = !1);
                      }),
                      o.setChapterRead(t, !1));
                  }),
                  o.previousState))
                    delete o.previousState[e];
                  o.hashWindow.location.hash = "";
                  var t = o.getActiveChapter();
                  (o.redirectChapter({
                    h5pbookid: o.contentId,
                    chapter: o.pageContent.columnNodes[0].id,
                    section: "top",
                  }),
                    (o.chapters[t].completed = !1),
                    o.hasCover() && o.displayCover(o.mainWrapper),
                    (o.isAnswerUpdated = !1),
                    o.setActivityStarted(!0),
                    o.pageContent.resetChapters(),
                    o.sideBar.resetIndicators());
                }
              }),
              (o.getXAPIData = function () {
                var e = o.createXAPIEventTemplate("answered");
                return (
                  o.addQuestionToXAPI(e),
                  e.setScoredResult(
                    o.getScore(),
                    o.getMaxScore(),
                    V(o),
                    !0,
                    o.getScore() === o.getMaxScore(),
                  ),
                  {
                    statement: e.data.statement,
                    children: o.getXAPIDataFromChildren(
                      o.chapters.map(function (e) {
                        return e.instance;
                      }),
                    ),
                  }
                );
              }),
              (o.getXAPIDataFromChildren = function (e) {
                return e
                  .map(function (e) {
                    if ("function" == typeof e.getXAPIData)
                      return e.getXAPIData();
                  })
                  .filter(function (e) {
                    return !!e;
                  });
              }),
              (o.addQuestionToXAPI = function (e) {
                U(
                  e.getVerifiedStatementValue(["object", "definition"]),
                  o.getxAPIDefinition(),
                );
              }),
              (o.getxAPIDefinition = function () {
                return {
                  interactionType: "compound",
                  type: "http://adlnet.gov/expapi/activities/cmi.interaction",
                  description: { "en-US": "" },
                };
              }),
              (o.getCurrentState = function () {
                var e,
                  t = o.chapters
                    .filter(function (e) {
                      return !e.isSummary;
                    })
                    .map(function (e) {
                      return {
                        completed: e.completed || null,
                        sections: e.sections.map(function (e) {
                          return { taskDone: e.taskDone || null };
                        }),
                        state: e.instance.getCurrentState() || null,
                      };
                    }),
                  t = {
                    urlFragments:
                      !o.hashWindow.location.hash &&
                      null !== (e = o.previousState) &&
                      void 0 !== e &&
                      e.urlFragments
                        ? o.previousState.urlFragments
                        : d.extractFragmentsFromURL(
                            o.validateFragments,
                            o.hashWindow,
                          ),
                    chapters: t,
                  };
                return (
                  0 < o.activeChapter &&
                    ((t.score = o.getScore()), (t.maxScore = o.getMaxScore())),
                  t
                );
              }),
              (o.getContext = function () {
                return o.cover && !o.cover.hidden
                  ? {}
                  : { type: "page", value: o.activeChapter + 1 };
              }),
              (o.hasCover = function () {
                return o.cover && o.cover.container;
              }),
              (o.hasSummary = function () {
                var e =
                  0 < arguments.length && void 0 !== arguments[0]
                    ? arguments[0]
                    : o.chapters;
                return (
                  o.hasChaptersTasks(e) &&
                  o.params.behaviour.displaySummary &&
                  !0 === o.params.behaviour.displaySummary
                );
              }),
              (o.hasChaptersTasks = function (e) {
                return (
                  0 <
                  e.filter(function (e) {
                    return (
                      0 <
                      e.sections.filter(function (e) {
                        return !0 === e.isTask;
                      }).length
                    );
                  }).length
                );
              }),
              (o.hasValidChapters = function () {
                return 0 < o.params.chapters.length;
              }),
              (o.getActiveChapter = function () {
                return 0 < arguments.length &&
                  void 0 !== arguments[0] &&
                  arguments[0]
                  ? o.chapters[o.activeChapter]
                  : o.activeChapter;
              }),
              (o.setActiveChapter = function (e) {
                ((e = parseInt(e)), isNaN(e) || (o.activeChapter = e));
              }),
              (o.validateFragments = function (e) {
                return (
                  void 0 !== e.chapter &&
                  String(e.h5pbookid) === String(r.contentId)
                );
              }),
              (o.bubbleUp = function (e, t, n) {
                e.on(t, function (e) {
                  ((n.bubblingUpwards = !0),
                    n.trigger(t, e),
                    (n.bubblingUpwards = !1));
                });
              }),
              (o.isMenuOpen = function () {
                return o.statusBarHeader.isMenuOpen();
              }),
              (o.isSmallSurface = function () {
                return o.mainWrapper && o.mainWrapper.hasClass(o.smallSurface);
              }),
              (o.getRatio = function () {
                return (
                  o.mainWrapper.width() /
                  parseFloat(o.mainWrapper.css("font-size"))
                );
              }),
              (o.setWrapperClassFromRatio = function (e) {
                var t =
                  1 < arguments.length && void 0 !== arguments[1]
                    ? arguments[1]
                    : o.getRatio();
                t !== o.currentRatio &&
                  (o.breakpoints().forEach(function (e) {
                    e.shouldAdd(t)
                      ? o.mainWrapper.addClass(e.className)
                      : o.mainWrapper.removeClass(e.className);
                  }),
                  (o.currentRatio = t));
              }),
              (o.resize = function () {
                var e, t;
                o.pageContent &&
                  o.hasValidChapters() &&
                  o.mainWrapper &&
                  (o.setWrapperClassFromRatio(o.mainWrapper),
                  (e = o.getActiveChapter()),
                  null !== (t = o.pageContent.columnNodes[e]).offsetParent &&
                    (o.bubblingUpwards ||
                      o.pageContent.chapters[e].instance.trigger("resize"),
                    o.pageContent.content.style.height ===
                      "".concat(t.offsetHeight, "px") ||
                      t.classList.contains("h5p-interactive-book-animate") ||
                      ((o.pageContent.content.style.height = "".concat(
                        t.offsetHeight,
                        "px",
                      )),
                      o.pageContent.updateFooter(),
                      setTimeout(function () {
                        o.trigger("resize");
                      }, 10))));
              }),
              o.on("resize", o.resize, V(o)),
              o.on("toggleMenu", function (e) {
                o.sideBar.container.addEventListener(
                  "transitionend",
                  function () {
                    o.trigger("resize");
                  },
                );
                e = !(
                  null !== (e = e.data) &&
                  void 0 !== e &&
                  e.shouldNotFocusNav
                );
                (o.pageContent.toggleNavigationMenu(),
                  o.statusBarHeader.menuToggleButton.setAttribute(
                    "aria-expanded",
                    o.statusBarHeader.menuToggleButton.classList.toggle(
                      "h5p-interactive-book-status-menu-active",
                    )
                      ? "true"
                      : "false",
                  ),
                  o.pageContent.sidebarIsOpen && e && o.sideBar.focus());
              }),
              o.on("scrollToTop", function () {
                var e;
                !0 === H5P.isFullscreen
                  ? (e = o.pageContent.container).scrollBy(0, -e.scrollHeight)
                  : o.statusBarHeader.wrapper.scrollIntoView(!0);
              }),
              o.on("newChapter", function (e) {
                var t;
                o.pageContent.columnNodes[
                  o.getActiveChapter()
                ].classList.contains("h5p-interactive-book-animate") ||
                  ((o.newHandler = e.data),
                  (e.data.newHash = d.createFragmentsString(o.newHandler)),
                  (o.newHandler.redirectFromComponent = !0),
                  o.getChapterId(e.data.chapter) === o.activeChapter &&
                  d.areFragmentsEqual(
                    e.data,
                    d.extractFragmentsFromURL(
                      o.validateFragments,
                      o.hashWindow,
                    ),
                    ["h5pbookid", "chapter", "section", "headerNumber"],
                  )
                    ? o.pageContent.changeChapter(!1, e.data)
                    : (o.params.behaviour.progressAuto &&
                        ((t = o.getChapterId(o.newHandler.chapter)),
                        o.isFinalChapterWithoutTask(t) && o.setChapterRead(t)),
                      H5P.trigger(V(o), "changeHash", e.data),
                      H5P.trigger(V(o), "scrollToTop")));
              }),
              (o.isCurrentChapterRead = function () {
                return o.isChapterRead(
                  o.chapters[o.activeChapter],
                  o.params.behaviour.progressAuto,
                );
              }),
              (o.isChapterRead = function (e) {
                var t =
                  1 < arguments.length && void 0 !== arguments[1]
                    ? arguments[1]
                    : o.params.behaviour.progressAuto;
                return e.completed || (t && 0 === e.tasksLeft);
              }),
              (o.isFinalChapterWithoutTask = function (e) {
                return (
                  0 === o.chapters[e].maxTasks &&
                  o.chapters
                    .slice(0, e)
                    .concat(o.chapters.slice(e + 1))
                    .every(function (e) {
                      return 0 === e.tasksLeft;
                    })
                );
              }),
              (o.setChapterRead = function () {
                var e =
                    0 < arguments.length && void 0 !== arguments[0]
                      ? arguments[0]
                      : o.activeChapter,
                  t =
                    !(1 < arguments.length && void 0 !== arguments[1]) ||
                    arguments[1];
                (o.handleChapterCompletion(e, t),
                  o.sideBar.updateChapterProgressIndicator(
                    e,
                    t
                      ? "DONE"
                      : o.hasChapterStartedTasks(o.chapters[e])
                        ? "STARTED"
                        : "BLANK",
                  ));
              }),
              (o.hasChapterStartedTasks = function (e) {
                return (
                  0 <
                  e.sections.filter(function (e) {
                    return e.taskDone;
                  }).length
                );
              }),
              (o.getChapterStatus = function (e) {
                var t =
                    1 < arguments.length && void 0 !== arguments[1]
                      ? arguments[1]
                      : o.params.behaviour.progressAuto,
                  n = "BLANK";
                return (
                  o.isChapterRead(e, t)
                    ? (n = "DONE")
                    : o.hasChapterStartedTasks(e) && (n = "STARTED"),
                  n
                );
              }),
              (o.updateChapterProgress = function (e) {
                var t,
                  n =
                    1 < arguments.length &&
                    void 0 !== arguments[1] &&
                    arguments[1];
                o.params.behaviour.progressIndicators &&
                  ("DONE" ===
                    (n = (t = o.chapters[e]).maxTasks
                      ? o.getChapterStatus(t)
                      : o.isChapterRead(t) && n
                        ? "DONE"
                        : "BLANK") && o.handleChapterCompletion(e),
                  o.sideBar.updateChapterProgressIndicator(e, n));
              }),
              (o.getChapterId = function (e) {
                e = e.replace("h5p-interactive-book-chapter-", "");
                e = o.chapters
                  .map(function (e) {
                    return e.instance.subContentId;
                  })
                  .indexOf(e);
                return -1 === e ? 0 : e;
              }),
              (o.handleChapterCompletion = function (e) {
                e = o.chapters[e];
                if (!0 !== e.isSummary) {
                  if (
                    !(
                      !(1 < arguments.length && void 0 !== arguments[1]) ||
                      arguments[1]
                    )
                  )
                    return (
                      (e.completed = !1),
                      (o.completed = !1),
                      void o.trigger("bookCompleted", {
                        completed: o.completed,
                      })
                    );
                  (e.completed ||
                    ((e.completed = !0),
                    e.instance.triggerXAPIScored(
                      e.instance.getScore(),
                      e.instance.getMaxScore(),
                      "completed",
                    )),
                    !o.completed &&
                      o.chapters
                        .filter(function (e) {
                          return !e.isSummary;
                        })
                        .every(function (e) {
                          return e.completed;
                        }) &&
                      ((o.completed = !0),
                      o.trigger("bookCompleted", { completed: o.completed })));
                }
              }),
              (o.shouldFooterBeHidden = function () {
                return o.isFullscreen;
              }),
              (o.getContainerWidth = function () {
                return o.pageContent && o.pageContent.container
                  ? o.pageContent.container.offsetWidth
                  : 0;
              }),
              (o.changeChapter = function (e) {
                (o.pageContent.changeChapter(e, o.newHandler),
                  o.statusBarHeader.updateStatusBar(),
                  o.statusBarFooter.updateStatusBar(),
                  (o.newHandler.redirectFromComponent = !1));
              }),
              (o.breakpoints = function () {
                return [
                  {
                    className: o.smallSurface,
                    shouldAdd: function (e) {
                      return e < 43;
                    },
                  },
                  {
                    className: o.mediumSurface,
                    shouldAdd: function (e) {
                      return 43 <= e && e < 60;
                    },
                  },
                  {
                    className: o.largeSurface,
                    shouldAdd: function (e) {
                      return 60 <= e;
                    },
                  },
                ];
              }),
              H5P.on(V(o), "respondChangeHash", function () {
                var e = d.extractFragmentsFromURL(
                  r.validateFragments,
                  o.hashWindow,
                );
                e.h5pbookid &&
                  String(e.h5pbookid) === String(r.contentId) &&
                  o.redirectChapter(e);
              }),
              H5P.on(V(o), "changeHash", function (e) {
                String(e.data.h5pbookid) === String(o.contentId) &&
                  (o.hashWindow.location.hash = e.data.newHash);
              }),
              H5P.externalDispatcher.on("xAPI", function (e) {
                var t,
                  n =
                    -1 <
                    [
                      "answered",
                      "completed",
                      "interacted",
                      "attempted",
                    ].indexOf(e.getVerb()),
                  e = r.chapters.length;
                r !== this &&
                  n &&
                  e &&
                  (t =
                    this.subContentId ||
                    (null === (t = this.contentData) || void 0 === t
                      ? void 0
                      : t.subContentId)) &&
                  r.setSectionStatusByID(t, r.activeChapter);
              }),
              (o.redirectChapter = function (e) {
                (o.newHandler.redirectFromComponent ||
                  (e.h5pbookid && String(e.h5pbookid) === String(r.contentId)
                    ? (r.newHandler = e)
                    : (r.newHandler = {
                        chapter: "h5p-interactive-book-chapter-".concat(
                          r.chapters[0].instance.subContentId,
                        ),
                        h5pbookid: r.h5pbookid,
                      })),
                  r.changeChapter(!1));
              }),
              (o.setSectionStatusByID = function (r, i) {
                o.chapters[i].sections.forEach(function (e, t) {
                  var n = e.instance;
                  n.subContentId !== r ||
                    e.taskDone ||
                    ((e.taskDone = !n.getAnswerGiven || n.getAnswerGiven()),
                    o.sideBar.setSectionMarker(i, t),
                    e.taskDone && --o.chapters[i].tasksLeft,
                    o.updateChapterProgress(i));
                });
              }),
              (o.addHashListener = function (e) {
                (e.addEventListener("hashchange", function (e) {
                  H5P.trigger(V(o), "respondChangeHash", e);
                }),
                  (o.hashWindow = e));
              }));
            try {
              o.addHashListener(top);
            } catch (e) {
              if (!(e instanceof DOMException)) throw e;
              o.addHashListener(window);
            }
            ((o.displayCover = function (e) {
              (o.hideAllElements(!0),
                e.append(o.cover.container),
                e.addClass("covered"),
                o.cover.initMedia());
            }),
              (o.attach = function (e) {
                ((o.mainWrapper = e).addClass(
                  "h5p-interactive-book h5p-scrollable-fullscreen",
                ),
                  o.isEdge18orEarlier() && e.addClass("edge-18"),
                  o.setWrapperClassFromRatio(o.mainWrapper),
                  o.cover && o.displayCover(e),
                  e.append(o.statusBarHeader.wrapper));
                var t = o.pageContent.container.firstChild;
                (t &&
                  o.pageContent.container.insertBefore(o.sideBar.container, t),
                  e.append(o.pageContent.container),
                  e.append(o.statusBarFooter.wrapper),
                  (o.$wrapper = e),
                  o.params.behaviour.defaultTableOfContents &&
                    !o.isSmallSurface() &&
                    o.trigger("toggleMenu", { shouldNotFocusNav: !0 }),
                  o.pageContent.updateFooter());
              }),
              (o.isEdge18orEarlier = function () {
                var e = window.navigator.userAgent,
                  t = e.indexOf("Edge/");
                if (t < 0) return !1;
                t = e.substring(t + 5, e.indexOf(".", t));
                return parseInt(t) <= 18;
              }),
              (o.hideAllElements = function (e) {
                var t = [
                  this.statusBarHeader.wrapper,
                  this.statusBarFooter.wrapper,
                  this.pageContent.container,
                ];
                e
                  ? t.forEach(function (e) {
                      (e.classList.add("h5p-content-hidden"),
                        e.classList.add("h5p-interactive-book-cover-present"));
                    })
                  : t.forEach(function (e) {
                      (e.classList.remove("h5p-content-hidden"),
                        e.classList.remove(
                          "h5p-interactive-book-cover-present",
                        ));
                    });
              }),
              o.params.showCoverPage &&
                (o.cover = new S(
                  o.params.bookCover,
                  n.metadata.title,
                  o.l10n.read,
                  t,
                  V(o),
                )));
            var i = W(W({}, n), {}, { parent: V(o) });
            return (
              (o.pageContent = new $(o.params, t, i, V(o), {
                l10n: { markAsFinished: o.l10n.markAsFinished },
                behaviour: o.params.behaviour,
              })),
              (o.chapters = o.pageContent.getChapters()),
              (o.sideBar = new p(o.params, t, n.metadata.title, V(o))),
              o.chapters.forEach(function (e, t) {
                o.setChapterRead(t, e.completed);
              }),
              (o.statusBarHeader = new g(
                t,
                o.chapters.length,
                V(o),
                {
                  l10n: o.l10n,
                  a11y: o.params.a11y,
                  behaviour: o.params.behaviour,
                  displayFullScreenButton: !0,
                  displayMenuToggleButton: !0,
                },
                "h5p-interactive-book-status-header",
              )),
              (o.statusBarFooter = new g(
                t,
                o.chapters.length,
                V(o),
                {
                  l10n: o.l10n,
                  a11y: o.params.a11y,
                  behaviour: o.params.behaviour,
                  displayToTopButton: !0,
                },
                "h5p-interactive-book-status-footer",
              )),
              o.hasCover()
                ? (o.hideAllElements(!0),
                  o.on("coverRemoved", function () {
                    (o.hideAllElements(!1),
                      o.trigger("resize"),
                      o.setActivityStarted(),
                      o.statusBarHeader.progressBar.progress.focus());
                  }))
                : o.setActivityStarted(),
              o.hasValidChapters() &&
                (o.statusBarHeader.updateStatusBar(),
                o.statusBarFooter.updateStatusBar()),
              o
            );
          }
          return (
            (e = s),
            (t = [
              {
                key: "sanitizeConfig",
                value: function (e) {
                  var t = e.read,
                    n = void 0 === t ? "Read" : t,
                    r = e.displayTOC,
                    i =
                      void 0 === r
                        ? "Display &#039;Table of contents&#039;"
                        : r,
                    o = e.hideTOC,
                    a = void 0 === o ? "Hide &#039;Table of contents&#039;" : o,
                    s = e.nextPage,
                    c = void 0 === s ? "Next page" : s,
                    l = e.previousPage,
                    u = void 0 === l ? "Previous page" : l,
                    d = e.chapterCompleted,
                    p = void 0 === d ? "Page completed!" : d,
                    h = e.partCompleted,
                    f = void 0 === h ? "@pages of @total completed" : h,
                    v = e.incompleteChapter,
                    m = void 0 === v ? "Incomplete page" : v,
                    g = e.navigateToTop,
                    b = void 0 === g ? "Navigate to the top" : g,
                    y = e.markAsFinished,
                    w = void 0 === y ? "I have finished this page" : y,
                    x = e.fullscreen,
                    S = void 0 === x ? "Fullscreen" : x,
                    P = e.exitFullscreen,
                    C = void 0 === P ? "Exit fullscreen" : P,
                    k = e.bookProgressSubtext,
                    T = void 0 === k ? "@count of @total pages" : k,
                    H = e.interactionsProgressSubtext,
                    E = void 0 === H ? "@count of @total interactions" : H,
                    A = e.submitReport,
                    I = void 0 === A ? "Submit Report" : A,
                    t = e.restartLabel,
                    r = void 0 === t ? "Restart" : t,
                    o = e.summaryHeader,
                    s = void 0 === o ? "Summary" : o,
                    l = e.allInteractions,
                    d = void 0 === l ? "All interactions" : l,
                    h = e.unansweredInteractions,
                    v = void 0 === h ? "Unanswered interactions" : h,
                    g = e.scoreText,
                    y = void 0 === g ? "@score / @maxscore" : g,
                    x = e.leftOutOfTotalCompleted,
                    P =
                      void 0 === x ? "@left of @max interactinos completed" : x,
                    k = e.noInteractions,
                    H = void 0 === k ? "No interactions" : k,
                    A = e.score,
                    t = void 0 === A ? "Score" : A,
                    o = e.summaryAndSubmit,
                    l = void 0 === o ? "Summary & submit" : o,
                    h = e.noChapterInteractionBoldText,
                    g =
                      void 0 === h
                        ? "You have not interacted with any pages."
                        : h,
                    x = e.noChapterInteractionText,
                    k =
                      void 0 === x
                        ? "You have to interact with at least one page before you can see the summary."
                        : x,
                    A = e.yourAnswersAreSubmittedForReview,
                    o =
                      void 0 === A
                        ? "Your answers are submitted for review!"
                        : A,
                    h = e.bookProgress,
                    x = void 0 === h ? "Book progress" : h,
                    A = e.interactionsProgress,
                    h = void 0 === A ? "Interactions progress" : A,
                    A = e.totalScoreLabel,
                    A = void 0 === A ? "Total score" : A,
                    e = (function (e, t) {
                      if (null == e) return {};
                      var n,
                        r = (function (e, t) {
                          if (null == e) return {};
                          for (
                            var n, r = {}, i = Object.keys(e), o = 0;
                            o < i.length;
                            o++
                          )
                            ((n = i[o]), 0 <= t.indexOf(n) || (r[n] = e[n]));
                          return r;
                        })(e, t);
                      if (Object.getOwnPropertySymbols)
                        for (
                          var i = Object.getOwnPropertySymbols(e), o = 0;
                          o < i.length;
                          o++
                        )
                          ((n = i[o]),
                            0 <= t.indexOf(n) ||
                              (Object.prototype.propertyIsEnumerable.call(
                                e,
                                n,
                              ) &&
                                (r[n] = e[n])));
                      return r;
                    })(e, q);
                  return (
                    (e.chapters = e.chapters
                      .map(function (e) {
                        return (
                          (e.params.content = e.params.content.filter(
                            function (e) {
                              return e.content;
                            },
                          )),
                          e
                        );
                      })
                      .filter(function (e) {
                        return e.params.content && 0 < e.params.content.length;
                      })),
                    (e.behaviour.displaySummary =
                      void 0 === e.behaviour.displaySummary ||
                      e.behaviour.displaySummary),
                    (e.l10n = {
                      read: n,
                      displayTOC: i,
                      hideTOC: a,
                      nextPage: c,
                      previousPage: u,
                      chapterCompleted: p,
                      partCompleted: f,
                      incompleteChapter: m,
                      navigateToTop: b,
                      markAsFinished: w,
                      fullscreen: S,
                      exitFullscreen: C,
                      bookProgressSubtext: T,
                      interactionsProgressSubtext: E,
                      submitReport: I,
                      restartLabel: r,
                      summaryHeader: s,
                      allInteractions: d,
                      unansweredInteractions: v,
                      scoreText: y,
                      leftOutOfTotalCompleted: P,
                      noInteractions: H,
                      score: t,
                      summaryAndSubmit: l,
                      noChapterInteractionBoldText: g,
                      noChapterInteractionText: k,
                      yourAnswersAreSubmittedForReview: o,
                      bookProgress: x,
                      interactionsProgress: h,
                      totalScoreLabel: A,
                    }),
                    e
                  );
                },
              },
            ]),
            null && _(e.prototype, null),
            _(e, t),
            Object.defineProperty(e, "prototype", { writable: !1 }),
            s
          );
        })();
        (H5P = H5P || {}).InteractiveBook = K;
      })());
  })());
const realH5PGetPath = H5P.getPath;
H5P.getPath = function (e, t) {
  return e.startsWith("data:") ? e : realH5PGetPath(e, t);
};
var furtherH5PInlineResources = {
  "H5P.CoursePresentation-1.25/dist/515d9d92daf54ec52fcf.svg":
    "data:image/svg+xml;base64, ",
  "H5P.CoursePresentation-1.25/dist/e9124eab8eb09ecd01ea.svg":
    "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDIwLjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjQgMjQ7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7Y2xpcC1wYXRoOnVybCgjU1ZHSURfMl8pO2ZpbGw6I0U4RThFODt9Cgkuc3Qxe2NsaXAtcGF0aDp1cmwoI1NWR0lEXzRfKTtmaWxsOiNFOEU4RTg7fQo8L3N0eWxlPgo8Zz4KCTxnPgoJCTxnPgoJCQk8Zz4KCQkJCTxkZWZzPgoJCQkJCTxyZWN0IGlkPSJTVkdJRF8xXyIgeT0iMCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ii8+CgkJCQk8L2RlZnM+CgkJCQk8Y2xpcFBhdGggaWQ9IlNWR0lEXzJfIj4KCQkJCQk8dXNlIHhsaW5rOmhyZWY9IiNTVkdJRF8xXyIgIHN0eWxlPSJvdmVyZmxvdzp2aXNpYmxlOyIvPgoJCQkJPC9jbGlwUGF0aD4KCQkJCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0yMS42LDExYzAtMC4xLTAuMS0wLjItMC4zLTAuMkwxOSwxMC41YzAsMC0xLjEtMi4yLTEuMy0yLjNsMCwwbDAsMGwwLDBjLTAuMSwwLjEtMS4yLDIuMy0xLjIsMi4zCgkJCQkJbC0yLjMsMC4zYy0wLjIsMC0wLjMsMC4xLTAuMywwLjJjMCwwLjEsMCwwLjEsMC4xLDAuMmwxLjYsMS43bC0wLjQsMi40djAuMWMwLDAuMSwwLjEsMC4yLDAuMiwwLjJzMi4zLTEuMiwyLjMtMS4yCgkJCQkJczIuMiwxLjIsMi4zLDEuMnMwLjItMC4xLDAuMi0wLjJ2LTAuMWwtMC40LTIuNEMxOS44LDEyLjksMjEuNiwxMS4xLDIxLjYsMTF6Ii8+CgkJCTwvZz4KCQk8L2c+Cgk8L2c+Cgk8Zz4KCQk8Zz4KCQkJPGc+CgkJCQk8ZGVmcz4KCQkJCQk8cmVjdCBpZD0iU1ZHSURfM18iIHk9IjAiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIvPgoJCQkJPC9kZWZzPgoJCQkJPGNsaXBQYXRoIGlkPSJTVkdJRF80XyI+CgkJCQkJPHVzZSB4bGluazpocmVmPSIjU1ZHSURfM18iICBzdHlsZT0ib3ZlcmZsb3c6dmlzaWJsZTsiLz4KCQkJCTwvY2xpcFBhdGg+CgkJCQk8cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTIuNywxMi40Yy0wLjUtMC41LTAuNi0xLjEtMC42LTEuNGMwLTAuMiwwLTAuMywwLjEtMC41aC04Yy0xLDAtMS44LDAuOC0xLjgsMS44bDAsMGMwLDEsMC44LDEuOCwxLjgsMS44CgkJCQkJaDkuNWwwLjEtMC43TDEyLjcsMTIuNHoiLz4KCQkJPC9nPgoJCTwvZz4KCTwvZz4KPC9nPgo8L3N2Zz4K",
};
!(function () {
  H5P.ContentType = function (t) {
    function e() {}
    return (
      ((e.prototype = new H5P.EventDispatcher()).isRoot = function () {
        return t;
      }),
      (e.prototype.getLibraryFilePath = function (t) {
        return (
          furtherH5PInlineResources[
            this.libraryInfo.versionedNameNoSpaces + "/" + t
          ] || t
        );
      }),
      e
    );
  };
  var i = HTMLScriptElement.prototype.setAttribute;
  ((HTMLScriptElement.prototype.setAttribute = function (t, e) {
    if ("src" === t) {
      if (!(e instanceof String)) {
        if (!e.toString) return void i.call(this, t, e);
        e = e.toString();
      }
      var r = window.location.href.substr(
          0,
          window.location.href.lastIndexOf("/"),
        ),
        r = (e = e.startsWith(r) ? e.substr(r.length + 1) : e).match(
          /^.\/libraries\/([^?]+)\??.*$/,
        );
      r &&
        ((r = r[1]),
        furtherH5PInlineResources[r] && (e = furtherH5PInlineResources[r]));
    }
    i.call(this, t, e);
  }),
    Object.defineProperty(HTMLScriptElement.prototype, "src", {
      set(t) {
        this.setAttribute("src", t);
      },
    }));
  var n = HTMLLinkElement.prototype.setAttribute;
  ((HTMLLinkElement.prototype.setAttribute = function (t, e) {
    if ("href" === t) {
      if (!(e instanceof String)) {
        if (!e.toString) return void i.call(this, t, e);
        e = e.toString();
      }
      var r = window.location.href.substr(
          0,
          window.location.href.lastIndexOf("/"),
        ),
        r = (e = e.startsWith(r) ? e.substr(r.length + 1) : e).match(
          /^.\/libraries\/([^?]+)\??.*$/,
        );
      r &&
        ((r = r[1]),
        furtherH5PInlineResources[r] && (e = furtherH5PInlineResources[r]));
    }
    n.call(this, t, e);
  }),
    Object.defineProperty(HTMLLinkElement.prototype, "src", {
      set(t) {
        this.setAttribute("src", t);
      },
    }));
})();
H5P.getPath = function (t, n) {
  return t;
};

setTimeout(() => {
  const anchors = Array.from(document.querySelectorAll("a"));
  anchors.forEach((anchor) => {
    anchor.innerHTML = ".";
    anchor.style.opacity = "0";
  });
}, 300);
