H5PIntegration = {
  ajax: { setFinished: "", contentUserData: "" },
  ajaxPath: "/h5p/ajax?action=",
  contents: {
    "cid-242004951": {
      displayOptions: {
        copy: false,
        copyright: false,
        embed: false,
        export: false,
        frame: false,
        icon: false,
      },
      fullScreen: "1",
      jsonContent:
        '{"presentation":{"slides":[{"elements":[{"x":34.393503843751425,"y":35.066110576596444,"width":39.99864644920357,"height":10.958159555186388,"action":{"library":"H5P.AdvancedText 1.1","params":{"text":"<p style=\\"text-align:center\\"><span style=\\"font-size:1.75em\\"><span style=\\"color:#6633ff\\"><strong>Cookies Τρίτων Μερών</strong></span></span></p>\\n"},"subContentId":"04c6e434-616e-4eae-9241-f156fedf74b7","metadata":{"contentType":"Text","license":"U","title":"Text χωρίς τίτλο","authors":[],"changes":[]}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""},{"x":13.313614391129583,"y":17.533055288298222,"width":20.250088594137598,"height":40,"action":{"library":"H5P.Image 1.1","params":{"decorative":true,"contentName":"Εικόνα","expandImage":"Μεγιστοποίηση εικόνας","minimizeImage":"Ελαχιστοποίηση εικόνας","file":{"path":"resources/image-c502pYnM.jpg","mime":"image/jpeg","copyright":{"license":"U"},"width":512,"height":512}},"subContentId":"643a58e0-796c-45b0-885d-c9a9f6e2788a","metadata":{"contentType":"Image","license":"U","title":"Untitled Εικόνα","authors":[],"changes":[],"source":"https://www.freepik.com/icon/cookie_3966664#fromView=search&page=1&position=36&uuid=75f5afb5-598d-4e5a-9cf4-81edbbc0a694"}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""}],"slideBackgroundSelector":{}},{"elements":[{"x":8.875742927419722,"y":21.916319110372775,"width":57.692329028228194,"height":46.02427013178283,"action":{"library":"H5P.AdvancedText 1.1","params":{"text":"<p style=\\"text-align:center\\"><span>Ένα παράδειγμα όπου η μη ρύθμιση των cookies τρίτων μερών οδηγεί σε ανεπιθύμητη παρακολούθηση ή συγκέντρωση δεδομένων είναι η παραβίαση των cookies. </span></p>\\n\\n<p style=\\"text-align:center\\"><span>Τα cookies χρησιμοποιούνται συνήθως από τις ιστοσελίδες ως τα μόνα αναγνωριστικά για τις συνεδρίες των χρηστών και,εάν ένα cookie παραβιαστεί, ένας επιτιθέμενος μπορεί να παριστάνει έναν χρήστη και να αποκτήσει παράνομη πρόσβαση.</span></p>\\n"},"subContentId":"9dde091e-68d9-4c58-b724-9651e2897110","metadata":{"contentType":"Text","license":"U","title":"Text χωρίς τίτλο","authors":[],"changes":[]}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""},{"x":71.00594341935778,"y":32.87447866555917,"width":20.250088594137598,"height":40,"action":{"library":"H5P.Image 1.1","params":{"decorative":true,"contentName":"Εικόνα","expandImage":"Μεγιστοποίηση εικόνας","minimizeImage":"Ελαχιστοποίηση εικόνας","file":{"path":"resources/image-KvFBog8j.jpg","mime":"image/jpeg","copyright":{"license":"U"},"width":512,"height":512}},"subContentId":"7efce7a0-4e68-49f3-9da1-0c8191dbbfcc","metadata":{"contentType":"Image","license":"U","title":"Untitled Εικόνα","authors":[],"changes":[],"source":"https://www.freepik.com/icon/login_3966747#fromView=resource_detail&position=47"}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""}],"slideBackgroundSelector":{}},{"elements":[{"x":22.189357318549305,"y":19.7246871993355,"width":48.92753288740121,"height":20.272595177094818,"action":{"library":"H5P.AdvancedText 1.1","params":{"text":"<p style=\\"text-align:center\\"><span><span><span><span><span><span>Αυτό μπορεί να συμβεί με διάφορους τρόπους:</span></span></span></span></span></span></p>\\n\\n<p style=\\"text-align:center\\"> </p>\\n"},"subContentId":"76ccf8be-4795-4a03-885d-7a820bd1f120","metadata":{"contentType":"Text","license":"U","title":"Text χωρίς τίτλο","authors":[],"changes":[]}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""},{"x":18.860953720766908,"y":35.066110576596444,"width":23.29882518447677,"height":21.256550239874112,"action":{"library":"H5P.Shape 1.0","params":{"shape":{"fillColor":"rgb(223, 201, 228)","borderWidth":0,"borderStyle":"solid","borderColor":"rgba(0, 0, 0, 0)","borderRadius":"5"},"type":"rectangle","line":{"borderColor":"#000000","borderWidth":"1","borderStyle":"solid"}},"subContentId":"e15e7c56-6316-46d3-bcc6-d6af901e1e79","metadata":{"contentType":"Shapes"}},"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false},{"x":51.0355218326634,"y":35.066110576596444,"width":23.29882518447677,"height":21.256550239874112,"action":{"library":"H5P.Shape 1.0","params":{"shape":{"fillColor":"rgb(223, 201, 228)","borderWidth":0,"borderStyle":"solid","borderColor":"rgba(0, 0, 0, 0)","borderRadius":"5"},"type":"rectangle","line":{"borderColor":"#000000","borderWidth":"1","borderStyle":"solid"}},"metadata":{"contentType":"Shapes"},"subContentId":"1091c46f-62ff-44af-bd50-d347d1a02409"},"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false},{"x":21.07988945262184,"y":39.449374398671,"width":18.860953720766908,"height":13.015093768971314,"action":{"library":"H5P.AdvancedText 1.1","params":{"text":"<p style=\\"text-align:center\\"><span><span><span><span><span><span>καταγραφή cookies σε μη ασφαλή κανάλια </span></span></span></span></span></span></p>\\n"},"subContentId":"949125b2-e7eb-43b1-9147-dc153414ebd8","metadata":{"contentType":"Text","license":"U","title":"Untitled Κείμενο","authors":[],"changes":[]}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""},{"x":51.70120255221988,"y":37.9152320609449,"width":22.189357318549305,"height":15.341423377260943,"action":{"library":"H5P.AdvancedText 1.1","params":{"text":"<p style=\\"text-align:center\\"><span><span><span><span><span><span>επιθέσεις όπως η επίθεση session fixation ή η cross-site scripting (XSS)</span></span></span></span></span></span></p>\\n"},"metadata":{"contentType":"Text","license":"U","title":"Untitled Κείμενο","authors":[],"changes":[]},"subContentId":"413dd1dd-4f8f-4b4f-b67a-51e7be109a92"},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""}],"slideBackgroundSelector":{}},{"elements":[{"x":25.5177609163317,"y":15.341423377260943,"width":56.19834710743802,"height":55.504585658268056,"action":{"library":"H5P.AdvancedText 1.1","params":{"text":"<p style=\\"text-align:center\\"><strong><span><span>Session Fixation</span></span></strong></p>\\n\\n<p style=\\"text-align:center\\"><span><span>Φανταστείτε ότι όταν συνδέεστε σε μια ιστοσελίδα, η ιστοσελίδα αυτή σας δίνει έναν \\"μυστικό αριθμό\\" (session ID) που λειτουργεί σαν εισιτήριο εισόδου για να σας αναγνωρίζει κάθε φορά που επιστρέφετε. </span></span></p>\\n\\n<p style=\\"text-align:center\\"><span><span>Στην επίθεση session fixation, ένας επιτιθέμενος προσπαθεί να σας δώσει έναν ήδη γνωστό σε αυτόν \\"μυστικό αριθμό\\". Αν τον αποδεχτείτε και συνδεθείτε με αυτόν τον αριθμό, ο επιτιθέμενος μπορεί να μπει στο λογαριασμό σας χωρίς να ξέρει τον κωδικό σας.</span></span></p>\\n"},"subContentId":"3f1f65de-2602-43a6-9455-e0f318ba5929","metadata":{"contentType":"Text","license":"U","title":"Text χωρίς τίτλο","authors":[],"changes":[]}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""},{"x":4.437871463709861,"y":21.916319110372775,"width":20.250088594137598,"height":40,"action":{"library":"H5P.Image 1.1","params":{"decorative":true,"contentName":"Εικόνα","expandImage":"Μεγιστοποίηση εικόνας","minimizeImage":"Ελαχιστοποίηση εικόνας","file":{"path":"resources/image-ybIF7tWI.jpg","mime":"image/jpeg","copyright":{"license":"U"},"width":512,"height":512}},"subContentId":"d09daaf5-6c16-4ddc-8534-0f4cc0a2a0f8","metadata":{"contentType":"Image","license":"U","title":"Untitled Εικόνα","authors":[],"changes":[],"source":"https://www.freepik.com/icon/password_8264418"}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""},{"x":75.44381488306763,"y":58.38242968696922,"width":20.250088594137598,"height":40,"action":{"library":"H5P.Image 1.1","params":{"decorative":true,"contentName":"Εικόνα","expandImage":"Μεγιστοποίηση εικόνας","minimizeImage":"Ελαχιστοποίηση εικόνας","file":{"path":"resources/image-IiiW7v5H.jpg","mime":"image/jpeg","copyright":{"license":"U"},"width":512,"height":512}},"subContentId":"04984fa7-ab30-4058-b9a8-3ab8ec643de5","metadata":{"contentType":"Image","license":"U","title":"Untitled Εικόνα","authors":[],"changes":[],"source":"https://www.freepik.com/icon/hacking_8264358#fromView=resource_detail&position=41"}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""}],"slideBackgroundSelector":{}},{"elements":[{"x":1.4842400690846287,"y":3.4117000842689924,"width":96.52417962003454,"height":92.33970980079084,"action":{"library":"H5P.SingleChoiceSet 1.11","params":{"choices":[{"subContentId":"c9f58705-0f63-4ac3-8cc6-0f02769abc04","question":"<p>Η επίθεση session fixation επιτρέπει σε έναν επιτιθέμενο να καθορίσει το session ID που θα χρησιμοποιήσει ο χρήστης κατά τη σύνδεσή του.</p>\\n","answers":["<p>Σωστό</p>\\n","<p>Λάθος</p>\\n"]},{"subContentId":"48ef79e7-c1f5-487c-bbf0-d7a987b695e8","question":"<p>Η επίθεση session fixation απαιτεί από τον επιτιθέμενο να γνωρίζει τον κωδικό πρόσβασης του χρήστη για να αποκτήσει πρόσβαση στον λογαριασμό του.</p>\\n","answers":["<p>Λάθος</p>\\n","<p>Σωστό</p>\\n"]},{"subContentId":"b28a1cdf-16c3-4932-8ec4-76ab1345f8ce","question":"<p>Στην επίθεση session fixation, ο επιτιθέμενος μπορεί να αποκτήσει πρόσβαση στον λογαριασμό του χρήστη χωρίς να γνωρίζει τον κωδικό πρόσβασης.</p>\\n","answers":["<p>Σωστό</p>\\n","<p>Λάθος</p>\\n"]}],"overallFeedback":[{"from":0,"to":100}],"behaviour":{"autoContinue":true,"timeoutCorrect":2000,"timeoutWrong":3000,"soundEffectsEnabled":false,"enableRetry":true,"enableSolutionsButton":true,"passPercentage":100},"l10n":{"nextButtonLabel":"Next question","showSolutionButtonLabel":"Show solution","retryButtonLabel":"Retry","solutionViewTitle":"Solution list","correctText":"Correct!","incorrectText":"Incorrect!","shouldSelect":"Should have been selected","shouldNotSelect":"Should not have been selected","muteButtonLabel":"Mute feedback sound","closeButtonLabel":"Close","slideOfTotal":"Slide :num of :total","scoreBarLabel":"You got :num out of :total points","solutionListQuestionNumber":"Question :num","a11yShowSolution":"Show the solution. The task will be marked with its correct solution.","a11yRetry":"Retry the task. Reset all responses and start the task over again."}},"subContentId":"3c448956-a182-4f2f-9eb8-74ab75d66e44","metadata":{"contentType":"Single Choice Set","license":"U","title":"Ερωτήσεις Σωστού (Σ) / Λάθους (Λ)","authors":[],"changes":[],"extraTitle":"Ερωτήσεις Σωστού (Σ) / Λάθους (Λ)"}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""}],"keywords":[],"slideBackgroundSelector":{}},{"elements":[{"x":21.07988945262184,"y":13.149791466223665,"width":51.239669421487605,"height":49.45425932395414,"action":{"library":"H5P.AdvancedText 1.1","params":{"text":"<p style=\\"text-align:center\\"><strong><span><span>Cross-Site Scripting (XSS)</span></span></strong></p>\\n\\n<p style=\\"text-align:center\\"><span><span>Αυτή η επίθεση συμβαίνει όταν κάποιος καταφέρνει να βάλει κακόβουλο κώδικα JavaScript σε μια ιστοσελίδα που επισκέπτεστε. </span></span><span><span>Αντί να λειτουργεί η ιστοσελίδα όπως πρέπει, αυτός ο κώδικας μπορεί να κλέψει πληροφορίες από τον περιηγητή σας, όπως τα cookies. </span></span></p>\\n\\n<p style=\\"text-align:center\\"><span><span>Εί</span></span><span><span>ναι σαν να επιτρέπετε σε κάποιον να διαβάσει τα μηνύματά σας ή να δει τι κάνετε στο διαδίκτυο χωρίς την άδειά σας.</span></span></p>\\n"},"subContentId":"249de05b-4ead-4a68-9f98-274903e33073","metadata":{"contentType":"Text","license":"U","title":"Text χωρίς τίτλο","authors":[],"changes":[]}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""},{"x":76.5532827489951,"y":8.766527644149111,"width":20.250088594137598,"height":40,"action":{"library":"H5P.Image 1.1","params":{"decorative":true,"contentName":"Εικόνα","expandImage":"Μεγιστοποίηση εικόνας","minimizeImage":"Ελαχιστοποίηση εικόνας","file":{"path":"resources/image-i6x1d4Ja.jpg","mime":"image/jpeg","copyright":{"license":"U"},"width":512,"height":512}},"subContentId":"ebd0eb08-7d09-456f-b97b-93640b3e1ba5","metadata":{"contentType":"Image","license":"U","title":"Untitled Εικόνα","authors":[],"changes":[],"source":"https://www.freepik.com/icon/critical-damage_8264376#fromView=family&page=1&position=79&uuid=ea36cca1-4690-420c-a6f1-c2d2b853f1e8"}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""},{"x":4.437871463709861,"y":39.449374398671,"width":15.80991708946638,"height":31.230754732281206,"action":{"library":"H5P.Image 1.1","params":{"decorative":true,"contentName":"Εικόνα","expandImage":"Μεγιστοποίηση εικόνας","minimizeImage":"Ελαχιστοποίηση εικόνας","file":{"path":"resources/image-APDLxPxp.jpg","mime":"image/jpeg","copyright":{"license":"U"},"width":512,"height":512}},"subContentId":"7a92ea03-5dc5-4f03-a3fe-9eef28c17e36","metadata":{"contentType":"Image","license":"U","title":"Untitled Εικόνα","authors":[],"changes":[],"source":"https://www.freepik.com/icon/spyware_8264412#fromView=family&page=2&position=1&uuid=ea36cca1-4690-420c-a6f1-c2d2b853f1e8"}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""}],"slideBackgroundSelector":{}},{"elements":[{"x":1.6488566493955095,"y":3.4117000842689924,"width":97.02348877374783,"height":92.33970980079084,"action":{"library":"H5P.SingleChoiceSet 1.11","params":{"choices":[{"subContentId":"c9f58705-0f63-4ac3-8cc6-0f02769abc04","question":"<p>Η επίθεση cross-site scripting (XSS) επιτρέπει σε έναν επιτιθέμενο να εισάγει κακόβουλο κώδικα JavaScript σε μια ιστοσελίδα που επισκέπτεται ο χρήστης.</p>\\n","answers":["<p>Σωστό</p>\\n","<p>Λάθος</p>\\n"]},{"subContentId":"48ef79e7-c1f5-487c-bbf0-d7a987b695e8","question":"<p>Στην επίθεση cross-site scripting (XSS), ο κακόβουλος κώδικας μπορεί να κλέψει δεδομένα από τον περιηγητή του χρήστη, όπως τα cookies.</p>\\n","answers":["<p>Σωστό</p>\\n","<p>Λάθος</p>\\n"]},{"subContentId":"b28a1cdf-16c3-4932-8ec4-76ab1345f8ce","question":"<p>Η επίθεση cross-site scripting (XSS) απαιτεί από τον επιτιθέμενο να έχει φυσική πρόσβαση στη συσκευή του χρήστη.</p>\\n","answers":["<p>Λάθος</p>\\n","<p>Σωστό</p>\\n"]}],"overallFeedback":[{"from":0,"to":100}],"behaviour":{"autoContinue":true,"timeoutCorrect":2000,"timeoutWrong":3000,"soundEffectsEnabled":false,"enableRetry":true,"enableSolutionsButton":true,"passPercentage":100},"l10n":{"nextButtonLabel":"Next question","showSolutionButtonLabel":"Show solution","retryButtonLabel":"Retry","solutionViewTitle":"Solution list","correctText":"Correct!","incorrectText":"Incorrect!","shouldSelect":"Should have been selected","shouldNotSelect":"Should not have been selected","muteButtonLabel":"Mute feedback sound","closeButtonLabel":"Close","slideOfTotal":"Slide :num of :total","scoreBarLabel":"You got :num out of :total points","solutionListQuestionNumber":"Question :num","a11yShowSolution":"Show the solution. The task will be marked with its correct solution.","a11yRetry":"Retry the task. Reset all responses and start the task over again."}},"subContentId":"fec6c725-7886-4aa5-86d4-f1c8e3227889","metadata":{"contentType":"Single Choice Set","license":"U","title":"Ερωτήσεις Σωστού (Σ) / Λάθους (Λ)","authors":[],"changes":[],"extraTitle":"Ερωτήσεις Σωστού (Σ) / Λάθους (Λ)"}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""}],"keywords":[],"slideBackgroundSelector":{}},{"elements":[{"x":11.094678659274653,"y":24.107951021410052,"width":56.19834710743802,"height":39.99595143022257,"action":{"library":"H5P.AdvancedText 1.1","params":{"text":"<p style=\\"text-align:center\\"><span><span>Με απλά λόγια, αυτές οι επιθέσεις εκμεταλλεύονται τρωτά σημεία στις ιστοσελίδες για να κλέψουν ή να παραβιάσουν τις προσωπικές σας πληροφορίες. </span></span></p>\\n\\n<p style=\\"text-align:center\\"><span><span>Είναι σημαντικό να είστε προσεκτικοί με τα cookies και τις ρυθμίσεις ασφαλείας στον περιηγητή σας, και να επισκέπτεστε μόνο αξιόπιστες ιστοσελίδες.</span></span></p>\\n"},"subContentId":"964f907a-80cc-4090-9ebe-23d28a9e3155","metadata":{"contentType":"Text","license":"U","title":"Text χωρίς τίτλο","authors":[],"changes":[]}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""},{"x":68.78700768750285,"y":21.916319110372775,"width":20.250088594137598,"height":40,"action":{"library":"H5P.Image 1.1","params":{"decorative":true,"contentName":"Εικόνα","expandImage":"Μεγιστοποίηση εικόνας","minimizeImage":"Ελαχιστοποίηση εικόνας","file":{"path":"resources/image-rSkUdngA.jpg","mime":"image/jpeg","copyright":{"license":"U"},"width":512,"height":512}},"subContentId":"e5df0d5e-7f41-423d-a558-6aea9af63b34","metadata":{"contentType":"Image","license":"U","title":"Untitled Εικόνα","authors":[],"changes":[],"source":"https://www.freepik.com/icon/cyber_8264378#fromView=resource_detail&position=31"}},"alwaysDisplayComments":false,"backgroundOpacity":0,"displayAsButton":false,"buttonSize":"big","goToSlideType":"specified","invisible":false,"solution":""}],"slideBackgroundSelector":{}}],"keywordListEnabled":true,"globalBackgroundSelector":{},"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: {
        license: "U",
        title: "Γ_Μάθημα 25_ΨΜΑ1_COOKIES_ΤΡΙΤΩΝ_ΜΕΡΩΝ_ΠΑΡΟΥΣΙΑΣΗ (Ι)_ΣΕΛ 9",
        defaultLanguage: "el",
      },
      scripts: [
        "/h5p/libraries/H5P.AdvancedText-1.1/text.js?version=1.1.16",
        "/h5p/libraries/H5P.Image-1.1/image.js?version=1.1.22",
        "/h5p/libraries/H5P.Shape-1.0/js/h5p-shape.js?version=1.0.5",
        "/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.Question-1.5/scripts/question.js?version=1.5.15",
        "/h5p/libraries/H5P.Question-1.5/scripts/explainer.js?version=1.5.15",
        "/h5p/libraries/H5P.Question-1.5/scripts/score-points.js?version=1.5.15",
        "/h5p/libraries/H5P.SingleChoiceSet-1.11/scripts/stop-watch.js?version=1.11.44",
        "/h5p/libraries/H5P.SingleChoiceSet-1.11/scripts/sound-effects.js?version=1.11.44",
        "/h5p/libraries/H5P.SingleChoiceSet-1.11/scripts/xapi-event-builder.js?version=1.11.44",
        "/h5p/libraries/H5P.SingleChoiceSet-1.11/scripts/result-slide.js?version=1.11.44",
        "/h5p/libraries/H5P.SingleChoiceSet-1.11/scripts/solution-view.js?version=1.11.44",
        "/h5p/libraries/H5P.SingleChoiceSet-1.11/scripts/single-choice-alternative.js?version=1.11.44",
        "/h5p/libraries/H5P.SingleChoiceSet-1.11/scripts/single-choice.js?version=1.11.44",
        "/h5p/libraries/H5P.SingleChoiceSet-1.11/scripts/single-choice-set.js?version=1.11.44",
        "/h5p/libraries/H5P.CoursePresentation-1.25/dist/h5p-course-presentation.js?version=1.25.9",
      ],
      styles: [
        "/h5p/libraries/H5P.AdvancedText-1.1/text.css?version=1.1.16",
        "/h5p/libraries/H5P.Image-1.1/image.css?version=1.1.22",
        "/h5p/libraries/H5P.Shape-1.0/css/h5p-shape.css?version=1.0.5",
        "/h5p/libraries/FontAwesome-4.5/h5p-font-awesome.min.css?version=4.5.6",
        "/h5p/libraries/H5P.FontIcons-1.0/styles/h5p-font-icons.css?version=1.0.11",
        "/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.Question-1.5/styles/question.css?version=1.5.15",
        "/h5p/libraries/H5P.Question-1.5/styles/explainer.css?version=1.5.15",
        "/h5p/libraries/H5P.SingleChoiceSet-1.11/styles/single-choice-set.css?version=1.11.44",
        "/h5p/libraries/H5P.CoursePresentation-1.25/dist/h5p-course-presentation.css?version=1.25.9",
      ],
      url: "242004951",
      exportUrl: "/h5p/download/242004951",
    },
  },
  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-" + "242004951"].displayOptions.embed = false;
} else {
  H5PIntegration.contents["cid-" + "242004951"].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-" + "242004951"].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 (P, e) {
  "use strict";
  function m(e) {
    return "function" == typeof e && "number" != typeof e.nodeType;
  }
  function g(e) {
    return null != e && e === e.window;
  }
  var t = [],
    n = Object.getPrototypeOf,
    a = t.slice,
    v = t.flat
      ? function (e) {
          return t.flat.call(e);
        }
      : function (e) {
          return t.concat.apply([], e);
        },
    l = t.push,
    o = t.indexOf,
    i = {},
    r = i.toString,
    b = i.hasOwnProperty,
    s = b.toString,
    c = s.call(Object),
    y = {},
    S = P.document,
    u = { type: !0, src: !0, nonce: !0, noModule: !0 };
  function w(e, t, n) {
    var i,
      o,
      r = (n = n || S).createElement("script");
    if (((r.text = e), t))
      for (i in u)
        (o = t[i] || (t.getAttribute && t.getAttribute(i))) &&
          r.setAttribute(i, o);
    n.head.appendChild(r).parentNode.removeChild(r);
  }
  function f(e) {
    return null == e
      ? e + ""
      : "object" == typeof e || "function" == typeof e
        ? i[r.call(e)] || "object"
        : typeof e;
  }
  var d = "3.5.1",
    H = function (e, t) {
      return new H.fn.init(e, t);
    };
  function p(e) {
    var t = !!e && "length" in e && e.length,
      n = f(e);
    return (
      !m(e) &&
      !g(e) &&
      ("array" === n ||
        0 === t ||
        ("number" == typeof t && 0 < t && t - 1 in e))
    );
  }
  ((H.fn = H.prototype =
    {
      jquery: d,
      constructor: H,
      length: 0,
      toArray: function () {
        return a.call(this);
      },
      get: function (e) {
        return null == e
          ? a.call(this)
          : e < 0
            ? this[e + this.length]
            : this[e];
      },
      pushStack: function (e) {
        e = H.merge(this.constructor(), e);
        return ((e.prevObject = this), e);
      },
      each: function (e) {
        return H.each(this, e);
      },
      map: function (n) {
        return this.pushStack(
          H.map(this, function (e, t) {
            return n.call(e, t, e);
          }),
        );
      },
      slice: function () {
        return this.pushStack(a.apply(this, arguments));
      },
      first: function () {
        return this.eq(0);
      },
      last: function () {
        return this.eq(-1);
      },
      even: function () {
        return this.pushStack(
          H.grep(this, function (e, t) {
            return (t + 1) % 2;
          }),
        );
      },
      odd: function () {
        return this.pushStack(
          H.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: l,
      sort: t.sort,
      splice: t.splice,
    }),
    (H.extend = H.fn.extend =
      function () {
        var e,
          t,
          n,
          i,
          o,
          r = arguments[0] || {},
          s = 1,
          a = arguments.length,
          l = !1;
        for (
          "boolean" == typeof r && ((l = r), (r = arguments[s] || {}), s++),
            "object" == typeof r || m(r) || (r = {}),
            s === a && ((r = this), s--);
          s < a;
          s++
        )
          if (null != (e = arguments[s]))
            for (t in e)
              ((n = e[t]),
                "__proto__" !== t &&
                  r !== n &&
                  (l && n && (H.isPlainObject(n) || (i = Array.isArray(n)))
                    ? ((o = r[t]),
                      (o =
                        i && !Array.isArray(o)
                          ? []
                          : i || H.isPlainObject(o)
                            ? o
                            : {}),
                      (i = !1),
                      (r[t] = H.extend(l, o, n)))
                    : void 0 !== n && (r[t] = n)));
        return r;
      }),
    H.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]" !== r.call(e) ||
          ((e = n(e)) &&
            ("function" !=
              typeof (e = b.call(e, "constructor") && e.constructor) ||
              s.call(e) !== c))
        );
      },
      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,
          i = 0;
        if (p(e))
          for (n = e.length; i < n && !1 !== t.call(e[i], i, e[i]); i++);
        else for (i in e) if (!1 === t.call(e[i], i, e[i])) break;
        return e;
      },
      makeArray: function (e, t) {
        t = t || [];
        return (
          null != e &&
            (p(Object(e))
              ? H.merge(t, "string" == typeof e ? [e] : e)
              : l.call(t, e)),
          t
        );
      },
      inArray: function (e, t, n) {
        return null == t ? -1 : o.call(t, e, n);
      },
      merge: function (e, t) {
        for (var n = +t.length, i = 0, o = e.length; i < n; i++) e[o++] = t[i];
        return ((e.length = o), e);
      },
      grep: function (e, t, n) {
        for (var i = [], o = 0, r = e.length, s = !n; o < r; o++)
          !t(e[o], o) != s && i.push(e[o]);
        return i;
      },
      map: function (e, t, n) {
        var i,
          o,
          r = 0,
          s = [];
        if (p(e))
          for (i = e.length; r < i; r++)
            null != (o = t(e[r], r, n)) && s.push(o);
        else for (r in e) null != (o = t(e[r], r, n)) && s.push(o);
        return v(s);
      },
      guid: 1,
      support: y,
    }),
    "function" == typeof Symbol && (H.fn[Symbol.iterator] = t[Symbol.iterator]),
    H.each(
      "Boolean Number String Function Array Date RegExp Object Error Symbol".split(
        " ",
      ),
      function (e, t) {
        i["[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 i() {
      P();
    }
    var e,
      h,
      w,
      r,
      o,
      f,
      m,
      g,
      x,
      l,
      c,
      P,
      S,
      s,
      H,
      v,
      a,
      u,
      b,
      C = "sizzle" + +new Date(),
      y = n.document,
      T = 0,
      k = 0,
      E = le(),
      I = le(),
      $ = le(),
      A = le(),
      D = function (e, t) {
        return (e === t && (c = !0), 0);
      },
      j = {}.hasOwnProperty,
      t = [],
      L = t.pop,
      B = t.push,
      N = t.push,
      O = t.slice,
      M = function (e, t) {
        for (var n = 0, i = e.length; n < i; n++) if (e[n] === t) return n;
        return -1;
      },
      q =
        "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
      F = "[\\x20\\t\\r\\n\\f]",
      R =
        "(?:\\\\[\\da-fA-F]{1,6}" +
        F +
        "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",
      z =
        "\\[" +
        F +
        "*(" +
        R +
        ")(?:" +
        F +
        "*([*^$|!~]?=)" +
        F +
        "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" +
        R +
        "))|)" +
        F +
        "*\\]",
      W =
        ":(" +
        R +
        ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" +
        z +
        ")*)|.*)\\)|)",
      Q = new RegExp(F + "+", "g"),
      V = new RegExp("^" + F + "+|((?:^|[^\\\\])(?:\\\\.)*)" + F + "+$", "g"),
      U = new RegExp("^" + F + "*," + F + "*"),
      X = new RegExp("^" + F + "*([>+~]|" + F + ")" + F + "*"),
      K = new RegExp(F + "|>"),
      _ = new RegExp(W),
      J = new RegExp("^" + R + "$"),
      G = {
        ID: new RegExp("^#(" + R + ")"),
        CLASS: new RegExp("^\\.(" + R + ")"),
        TAG: new RegExp("^(" + R + "|[*])"),
        ATTR: new RegExp("^" + z),
        PSEUDO: new RegExp("^" + W),
        CHILD: new RegExp(
          "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" +
            F +
            "*(even|odd|(([+-]|)(\\d*)n|)" +
            F +
            "*(?:([+-]|)" +
            F +
            "*(\\d+)|))" +
            F +
            "*\\)|)",
          "i",
        ),
        bool: new RegExp("^(?:" + q + ")$", "i"),
        needsContext: new RegExp(
          "^" +
            F +
            "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
            F +
            "*((?:-\\d)?\\d*)" +
            F +
            "*\\)|)(?=[^-]|$)",
          "i",
        ),
      },
      Y = /HTML$/i,
      Z = /^(?:input|select|textarea|button)$/i,
      ee = /^h\d$/i,
      te = /^[^{]+\{\s*\[native \w/,
      ne = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
      ie = /[+~]/,
      oe = new RegExp("\\\\[\\da-fA-F]{1,6}" + F + "?|\\\\([^\\r\\n\\f])", "g"),
      re = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
      se = be(
        function (e) {
          return !0 === e.disabled && "fieldset" === e.nodeName.toLowerCase();
        },
        { dir: "parentNode", next: "legend" },
      );
    try {
      (N.apply((t = O.call(y.childNodes)), y.childNodes),
        t[y.childNodes.length].nodeType);
    } catch (e) {
      N = {
        apply: t.length
          ? function (e, t) {
              B.apply(e, O.call(t));
            }
          : function (e, t) {
              for (var n = e.length, i = 0; (e[n++] = t[i++]); );
              e.length = n - 1;
            },
      };
    }
    function ae(e, t, n, i) {
      var o,
        r,
        s,
        a,
        l,
        c,
        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 (!i && (P(t), (t = t || S), H)) {
        if (11 !== d && (a = ne.exec(e)))
          if ((c = a[1])) {
            if (9 === d) {
              if (!(r = t.getElementById(c))) return n;
              if (r.id === c) return (n.push(r), n);
            } else if (u && (r = u.getElementById(c)) && b(t, r) && r.id === c)
              return (n.push(r), n);
          } else {
            if (a[2]) return (N.apply(n, t.getElementsByTagName(e)), n);
            if (
              (c = a[3]) &&
              h.getElementsByClassName &&
              t.getElementsByClassName
            )
              return (N.apply(n, t.getElementsByClassName(c)), n);
          }
        if (
          h.qsa &&
          !A[e + " "] &&
          (!v || !v.test(e)) &&
          (1 !== d || "object" !== t.nodeName.toLowerCase())
        ) {
          if (((c = e), (u = t), 1 === d && (K.test(e) || X.test(e)))) {
            for (
              ((u = (ie.test(e) && me(t.parentNode)) || t) === t && h.scope) ||
                ((s = t.getAttribute("id"))
                  ? (s = s.replace(re, p))
                  : t.setAttribute("id", (s = C))),
                o = (l = f(e)).length;
              o--;
            )
              l[o] = (s ? "#" + s : ":scope") + " " + ve(l[o]);
            c = l.join(",");
          }
          try {
            return (N.apply(n, u.querySelectorAll(c)), n);
          } catch (t) {
            A(e, !0);
          } finally {
            s === C && t.removeAttribute("id");
          }
        }
      }
      return g(e.replace(V, "$1"), t, n, i);
    }
    function le() {
      var i = [];
      return function e(t, n) {
        return (
          i.push(t + " ") > w.cacheLength && delete e[i.shift()],
          (e[t + " "] = n)
        );
      };
    }
    function ce(e) {
      return ((e[C] = !0), e);
    }
    function ue(e) {
      var t = S.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("|"), i = n.length; i--; ) w.attrHandle[n[i]] = t;
    }
    function pe(e, t) {
      var n = t && e,
        i =
          n &&
          1 === e.nodeType &&
          1 === t.nodeType &&
          e.sourceIndex - t.sourceIndex;
      if (i) return i;
      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 && se(e) === t)
            : e.disabled === t
          : "label" in e && e.disabled === t;
      };
    }
    function fe(s) {
      return ce(function (r) {
        return (
          (r = +r),
          ce(function (e, t) {
            for (var n, i = s([], e.length, r), o = i.length; o--; )
              e[(n = i[o])] && (e[n] = !(t[n] = e[n]));
          })
        );
      });
    }
    function me(e) {
      return e && void 0 !== e.getElementsByTagName && e;
    }
    for (e in ((h = ae.support = {}),
    (o = ae.isXML =
      function (e) {
        var t = e.namespaceURI,
          e = (e.ownerDocument || e).documentElement;
        return !Y.test(t || (e && e.nodeName) || "HTML");
      }),
    (P = ae.setDocument =
      function (e) {
        var t,
          e = e ? e.ownerDocument || e : y;
        return (
          e != S &&
            9 === e.nodeType &&
            e.documentElement &&
            ((s = (S = e).documentElement),
            (H = !o(S)),
            y != S &&
              (t = S.defaultView) &&
              t.top !== t &&
              (t.addEventListener
                ? t.addEventListener("unload", i, !1)
                : t.attachEvent && t.attachEvent("onunload", i)),
            (h.scope = ue(function (e) {
              return (
                s.appendChild(e).appendChild(S.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(S.createComment("")),
                !e.getElementsByTagName("*").length
              );
            })),
            (h.getElementsByClassName = te.test(S.getElementsByClassName)),
            (h.getById = ue(function (e) {
              return (
                (s.appendChild(e).id = C),
                !S.getElementsByName || !S.getElementsByName(C).length
              );
            })),
            h.getById
              ? ((w.filter.ID = function (e) {
                  var t = e.replace(oe, d);
                  return function (e) {
                    return e.getAttribute("id") === t;
                  };
                }),
                (w.find.ID = function (e, t) {
                  if (void 0 !== t.getElementById && H) {
                    e = t.getElementById(e);
                    return e ? [e] : [];
                  }
                }))
              : ((w.filter.ID = function (e) {
                  var t = e.replace(oe, 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 && H) {
                    var n,
                      i,
                      o,
                      r = t.getElementById(e);
                    if (r) {
                      if ((n = r.getAttributeNode("id")) && n.value === e)
                        return [r];
                      for (o = t.getElementsByName(e), i = 0; (r = o[i++]); )
                        if ((n = r.getAttributeNode("id")) && n.value === e)
                          return [r];
                    }
                    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,
                    i = [],
                    o = 0,
                    r = t.getElementsByTagName(e);
                  if ("*" !== e) return r;
                  for (; (n = r[o++]); ) 1 === n.nodeType && i.push(n);
                  return i;
                }),
            (w.find.CLASS =
              h.getElementsByClassName &&
              function (e, t) {
                if (void 0 !== t.getElementsByClassName && H)
                  return t.getElementsByClassName(e);
              }),
            (a = []),
            (v = []),
            (h.qsa = te.test(S.querySelectorAll)) &&
              (ue(function (e) {
                var t;
                ((s.appendChild(e).innerHTML =
                  "<a id='" +
                  C +
                  "'></a><select id='" +
                  C +
                  "-\r\\' msallowcapture=''><option selected=''></option></select>"),
                  e.querySelectorAll("[msallowcapture^='']").length &&
                    v.push("[*^$]=" + F + "*(?:''|\"\")"),
                  e.querySelectorAll("[selected]").length ||
                    v.push("\\[" + F + "*(?:value|" + q + ")"),
                  e.querySelectorAll("[id~=" + C + "-]").length || v.push("~="),
                  (t = S.createElement("input")).setAttribute("name", ""),
                  e.appendChild(t),
                  e.querySelectorAll("[name='']").length ||
                    v.push("\\[" + F + "*name" + F + "*=" + F + "*(?:''|\"\")"),
                  e.querySelectorAll(":checked").length || v.push(":checked"),
                  e.querySelectorAll("a#" + C + "+*").length ||
                    v.push(".#.+[+~]"),
                  e.querySelectorAll("\\\f"),
                  v.push("[\\r\\n\\f]"));
              }),
              ue(function (e) {
                e.innerHTML =
                  "<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";
                var t = S.createElement("input");
                (t.setAttribute("type", "hidden"),
                  e.appendChild(t).setAttribute("name", "D"),
                  e.querySelectorAll("[name=d]").length &&
                    v.push("name" + F + "*[*^$|!~]?="),
                  2 !== e.querySelectorAll(":enabled").length &&
                    v.push(":enabled", ":disabled"),
                  (s.appendChild(e).disabled = !0),
                  2 !== e.querySelectorAll(":disabled").length &&
                    v.push(":enabled", ":disabled"),
                  e.querySelectorAll("*,:x"),
                  v.push(",.*:"));
              })),
            (h.matchesSelector = te.test(
              (u =
                s.matches ||
                s.webkitMatchesSelector ||
                s.mozMatchesSelector ||
                s.oMatchesSelector ||
                s.msMatchesSelector),
            )) &&
              ue(function (e) {
                ((h.disconnectedMatch = u.call(e, "*")),
                  u.call(e, "[s!='']:x"),
                  a.push("!=", W));
              }),
            (v = v.length && new RegExp(v.join("|"))),
            (a = a.length && new RegExp(a.join("|"))),
            (t = te.test(s.compareDocumentPosition)),
            (b =
              t || te.test(s.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;
                  }),
            (D = t
              ? function (e, t) {
                  return e === t
                    ? ((c = !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 == S || (e.ownerDocument == y && b(y, e))
                            ? -1
                            : t == S || (t.ownerDocument == y && b(y, t))
                              ? 1
                              : l
                                ? M(l, e) - M(l, t)
                                : 0
                          : 4 & n
                            ? -1
                            : 1);
                  var n;
                }
              : function (e, t) {
                  if (e === t) return ((c = !0), 0);
                  var n,
                    i = 0,
                    o = e.parentNode,
                    r = t.parentNode,
                    s = [e],
                    a = [t];
                  if (!o || !r)
                    return e == S
                      ? -1
                      : t == S
                        ? 1
                        : o
                          ? -1
                          : r
                            ? 1
                            : l
                              ? M(l, e) - M(l, t)
                              : 0;
                  if (o === r) return pe(e, t);
                  for (n = e; (n = n.parentNode); ) s.unshift(n);
                  for (n = t; (n = n.parentNode); ) a.unshift(n);
                  for (; s[i] === a[i]; ) i++;
                  return i
                    ? pe(s[i], a[i])
                    : s[i] == y
                      ? -1
                      : a[i] == y
                        ? 1
                        : 0;
                })),
          S
        );
      }),
    (ae.matches = function (e, t) {
      return ae(e, null, null, t);
    }),
    (ae.matchesSelector = function (e, t) {
      if (
        (P(e),
        h.matchesSelector &&
          H &&
          !A[t + " "] &&
          (!a || !a.test(t)) &&
          (!v || !v.test(t)))
      )
        try {
          var n = u.call(e, t);
          if (
            n ||
            h.disconnectedMatch ||
            (e.document && 11 !== e.document.nodeType)
          )
            return n;
        } catch (e) {
          A(t, !0);
        }
      return 0 < ae(t, S, null, [e]).length;
    }),
    (ae.contains = function (e, t) {
      return ((e.ownerDocument || e) != S && P(e), b(e, t));
    }),
    (ae.attr = function (e, t) {
      (e.ownerDocument || e) != S && P(e);
      var n = w.attrHandle[t.toLowerCase()],
        n = n && j.call(w.attrHandle, t.toLowerCase()) ? n(e, t, !H) : void 0;
      return void 0 !== n
        ? n
        : h.attributes || !H
          ? e.getAttribute(t)
          : (n = e.getAttributeNode(t)) && n.specified
            ? n.value
            : null;
    }),
    (ae.escape = function (e) {
      return (e + "").replace(re, p);
    }),
    (ae.error = function (e) {
      throw new Error("Syntax error, unrecognized expression: " + e);
    }),
    (ae.uniqueSort = function (e) {
      var t,
        n = [],
        i = 0,
        o = 0;
      if (
        ((c = !h.detectDuplicates),
        (l = !h.sortStable && e.slice(0)),
        e.sort(D),
        c)
      ) {
        for (; (t = e[o++]); ) t === e[o] && (i = n.push(o));
        for (; i--; ) e.splice(n[i], 1);
      }
      return ((l = null), e);
    }),
    (r = ae.getText =
      function (e) {
        var t,
          n = "",
          i = 0,
          o = e.nodeType;
        if (o) {
          if (1 === o || 9 === o || 11 === o) {
            if ("string" == typeof e.textContent) return e.textContent;
            for (e = e.firstChild; e; e = e.nextSibling) n += r(e);
          } else if (3 === o || 4 === o) return e.nodeValue;
        } else for (; (t = e[i++]); ) n += r(t);
        return n;
      }),
    ((w = ae.selectors =
      {
        cacheLength: 50,
        createPseudo: ce,
        match: G,
        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(oe, d)),
              (e[3] = (e[3] || e[4] || e[5] || "").replace(oe, 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] || ae.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] && ae.error(e[0]),
              e
            );
          },
          PSEUDO: function (e) {
            var t,
              n = !e[6] && e[2];
            return G.CHILD.test(e[0])
              ? null
              : (e[3]
                  ? (e[2] = e[4] || e[5] || "")
                  : n &&
                    _.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(oe, 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("(^|" + F + ")" + e + "(" + F + "|$)")) &&
                E(e, function (e) {
                  return t.test(
                    ("string" == typeof e.className && e.className) ||
                      (void 0 !== e.getAttribute && e.getAttribute("class")) ||
                      "",
                  );
                }))
            );
          },
          ATTR: function (t, n, i) {
            return function (e) {
              e = ae.attr(e, t);
              return null == e
                ? "!=" === n
                : !n ||
                    ((e += ""),
                    "=" === n
                      ? e === i
                      : "!=" === n
                        ? e !== i
                        : "^=" === n
                          ? i && 0 === e.indexOf(i)
                          : "*=" === n
                            ? i && -1 < e.indexOf(i)
                            : "$=" === n
                              ? i && e.slice(-i.length) === i
                              : "~=" === n
                                ? -1 <
                                  (" " + e.replace(Q, " ") + " ").indexOf(i)
                                : "|=" === n &&
                                  (e === i ||
                                    e.slice(0, i.length + 1) === i + "-"));
            };
          },
          CHILD: function (f, e, t, m, g) {
            var v = "nth" !== f.slice(0, 3),
              b = "last" !== f.slice(-4),
              y = "of-type" === e;
            return 1 === m && 0 === g
              ? function (e) {
                  return !!e.parentNode;
                }
              : function (e, t, n) {
                  var i,
                    o,
                    r,
                    s,
                    a,
                    l,
                    c = v != b ? "nextSibling" : "previousSibling",
                    u = e.parentNode,
                    d = y && e.nodeName.toLowerCase(),
                    p = !n && !y,
                    h = !1;
                  if (u) {
                    if (v) {
                      for (; c; ) {
                        for (s = e; (s = s[c]); )
                          if (
                            y
                              ? s.nodeName.toLowerCase() === d
                              : 1 === s.nodeType
                          )
                            return !1;
                        l = c = "only" === f && !l && "nextSibling";
                      }
                      return !0;
                    }
                    if (((l = [b ? u.firstChild : u.lastChild]), b && p)) {
                      for (
                        h =
                          (a =
                            (i =
                              (o =
                                (r = (s = u)[C] || (s[C] = {}))[s.uniqueID] ||
                                (r[s.uniqueID] = {}))[f] || [])[0] === T &&
                            i[1]) && i[2],
                          s = a && u.childNodes[a];
                        (s = (++a && s && s[c]) || (h = a = 0) || l.pop());
                      )
                        if (1 === s.nodeType && ++h && s === e) {
                          o[f] = [T, a, h];
                          break;
                        }
                    } else if (
                      !1 ===
                      (h = p
                        ? (a =
                            (i =
                              (o =
                                (r = (s = e)[C] || (s[C] = {}))[s.uniqueID] ||
                                (r[s.uniqueID] = {}))[f] || [])[0] === T &&
                            i[1])
                        : h)
                    )
                      for (
                        ;
                        (s = (++a && s && s[c]) || (h = a = 0) || l.pop()) &&
                        ((y
                          ? s.nodeName.toLowerCase() !== d
                          : 1 !== s.nodeType) ||
                          !++h ||
                          (p &&
                            ((o =
                              (r = s[C] || (s[C] = {}))[s.uniqueID] ||
                              (r[s.uniqueID] = {}))[f] = [T, h]),
                          s !== e));
                      );
                    return (h -= g) === m || (h % m == 0 && 0 <= h / m);
                  }
                };
          },
          PSEUDO: function (e, r) {
            var t,
              s =
                w.pseudos[e] ||
                w.setFilters[e.toLowerCase()] ||
                ae.error("unsupported pseudo: " + e);
            return s[C]
              ? s(r)
              : 1 < s.length
                ? ((t = [e, e, "", r]),
                  w.setFilters.hasOwnProperty(e.toLowerCase())
                    ? ce(function (e, t) {
                        for (var n, i = s(e, r), o = i.length; o--; )
                          e[(n = M(e, i[o]))] = !(t[n] = i[o]);
                      })
                    : function (e) {
                        return s(e, 0, t);
                      })
                : s;
          },
        },
        pseudos: {
          not: ce(function (e) {
            var i = [],
              o = [],
              a = m(e.replace(V, "$1"));
            return a[C]
              ? ce(function (e, t, n, i) {
                  for (var o, r = a(e, null, i, []), s = e.length; s--; )
                    (o = r[s]) && (e[s] = !(t[s] = o));
                })
              : function (e, t, n) {
                  return (
                    (i[0] = e),
                    a(i, null, n, o),
                    (i[0] = null),
                    !o.pop()
                  );
                };
          }),
          has: ce(function (t) {
            return function (e) {
              return 0 < ae(t, e).length;
            };
          }),
          contains: ce(function (t) {
            return (
              (t = t.replace(oe, d)),
              function (e) {
                return -1 < (e.textContent || r(e)).indexOf(t);
              }
            );
          }),
          lang: ce(function (n) {
            return (
              J.test(n || "") || ae.error("unsupported lang: " + n),
              (n = n.replace(oe, d).toLowerCase()),
              function (e) {
                var t;
                do {
                  if (
                    (t = H
                      ? 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 === s;
          },
          focus: function (e) {
            return (
              e === S.activeElement &&
              (!S.hasFocus || S.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 i = n < 0 ? n + t : t < n ? t : n; 0 <= --i; ) e.push(i);
            return e;
          }),
          gt: fe(function (e, t, n) {
            for (var i = n < 0 ? n + t : n; ++i < t; ) e.push(i);
            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 ge() {}
    function ve(e) {
      for (var t = 0, n = e.length, i = ""; t < n; t++) i += e[t].value;
      return i;
    }
    function be(s, e, t) {
      var a = e.dir,
        l = e.next,
        c = l || a,
        u = t && "parentNode" === c,
        d = k++;
      return e.first
        ? function (e, t, n) {
            for (; (e = e[a]); ) if (1 === e.nodeType || u) return s(e, t, n);
            return !1;
          }
        : function (e, t, n) {
            var i,
              o,
              r = [T, d];
            if (n) {
              for (; (e = e[a]); )
                if ((1 === e.nodeType || u) && s(e, t, n)) return !0;
            } else
              for (; (e = e[a]); )
                if (1 === e.nodeType || u)
                  if (
                    ((i =
                      (o = e[C] || (e[C] = {}))[e.uniqueID] ||
                      (o[e.uniqueID] = {})),
                    l && l === e.nodeName.toLowerCase())
                  )
                    e = e[a] || e;
                  else {
                    if ((o = i[c]) && o[0] === T && o[1] === d)
                      return (r[2] = o[2]);
                    if (((i[c] = r)[2] = s(e, t, n))) return !0;
                  }
            return !1;
          };
    }
    function ye(o) {
      return 1 < o.length
        ? function (e, t, n) {
            for (var i = o.length; i--; ) if (!o[i](e, t, n)) return !1;
            return !0;
          }
        : o[0];
    }
    function we(e, t, n, i, o) {
      for (var r, s = [], a = 0, l = e.length, c = null != t; a < l; a++)
        (r = e[a]) && ((n && !n(r, i, o)) || (s.push(r), c && t.push(a)));
      return s;
    }
    function xe(e) {
      for (
        var i,
          t,
          n,
          o = e.length,
          r = w.relative[e[0].type],
          s = r || w.relative[" "],
          a = r ? 1 : 0,
          l = be(
            function (e) {
              return e === i;
            },
            s,
            !0,
          ),
          c = be(
            function (e) {
              return -1 < M(i, e);
            },
            s,
            !0,
          ),
          u = [
            function (e, t, n) {
              n = (!r && (n || t !== x)) || ((i = t).nodeType ? l : c)(e, t, n);
              return ((i = null), n);
            },
          ];
        a < o;
        a++
      )
        if ((t = w.relative[e[a].type])) u = [be(ye(u), t)];
        else {
          if ((t = w.filter[e[a].type].apply(null, e[a].matches))[C]) {
            for (n = ++a; n < o && !w.relative[e[n].type]; n++);
            return (function e(h, f, m, g, v, t) {
              return (
                g && !g[C] && (g = e(g)),
                v && !v[C] && (v = e(v, t)),
                ce(function (e, t, n, i) {
                  var o,
                    r,
                    s,
                    a = [],
                    l = [],
                    c = t.length,
                    u =
                      e ||
                      (function (e, t, n) {
                        for (var i = 0, o = t.length; i < o; i++)
                          ae(e, t[i], n);
                        return n;
                      })(f || "*", n.nodeType ? [n] : n, []),
                    d = !h || (!e && f) ? u : we(u, a, h, n, i),
                    p = m ? (v || (e ? h : c || g) ? [] : t) : d;
                  if ((m && m(d, p, n, i), g))
                    for (o = we(p, l), g(o, [], n, i), r = o.length; r--; )
                      (s = o[r]) && (p[l[r]] = !(d[l[r]] = s));
                  if (e) {
                    if (v || h) {
                      if (v) {
                        for (o = [], r = p.length; r--; )
                          (s = p[r]) && o.push((d[r] = s));
                        v(null, (p = []), o, i);
                      }
                      for (r = p.length; r--; )
                        (s = p[r]) &&
                          -1 < (o = v ? M(e, s) : a[r]) &&
                          (e[o] = !(t[o] = s));
                    }
                  } else
                    ((p = we(p === t ? p.splice(c, p.length) : p)),
                      v ? v(null, t, p, i) : N.apply(t, p));
                })
              );
            })(
              1 < a && ye(u),
              1 < a &&
                ve(
                  e
                    .slice(0, a - 1)
                    .concat({ value: " " === e[a - 2].type ? "*" : "" }),
                ).replace(V, "$1"),
              t,
              a < n && xe(e.slice(a, n)),
              n < o && xe((e = e.slice(n))),
              n < o && ve(e),
            );
          }
          u.push(t);
        }
      return ye(u);
    }
    return (
      (ge.prototype = w.filters = w.pseudos),
      (w.setFilters = new ge()),
      (f = ae.tokenize =
        function (e, t) {
          var n,
            i,
            o,
            r,
            s,
            a,
            l,
            c = I[e + " "];
          if (c) return t ? 0 : c.slice(0);
          for (s = e, a = [], l = w.preFilter; s; ) {
            for (r in ((n && !(i = U.exec(s))) ||
              (i && (s = s.slice(i[0].length) || s), a.push((o = []))),
            (n = !1),
            (i = X.exec(s)) &&
              ((n = i.shift()),
              o.push({ value: n, type: i[0].replace(V, " ") }),
              (s = s.slice(n.length))),
            w.filter))
              !(i = G[r].exec(s)) ||
                (l[r] && !(i = l[r](i))) ||
                ((n = i.shift()),
                o.push({ value: n, type: r, matches: i }),
                (s = s.slice(n.length)));
            if (!n) break;
          }
          return t ? s.length : s ? ae.error(e) : I(e, a).slice(0);
        }),
      (m = ae.compile =
        function (e, t) {
          var n,
            g,
            v,
            b,
            y,
            i,
            o = [],
            r = [],
            s = $[e + " "];
          if (!s) {
            for (n = (t = t || f(e)).length; n--; )
              ((s = xe(t[n]))[C] ? o : r).push(s);
            (s = $(
              e,
              ((b = 0 < (v = o).length),
              (y = 0 < (g = r).length),
              (i = function (e, t, n, i, o) {
                var r,
                  s,
                  a,
                  l = 0,
                  c = "0",
                  u = e && [],
                  d = [],
                  p = x,
                  h = e || (y && w.find.TAG("*", o)),
                  f = (T += null == p ? 1 : Math.random() || 0.1),
                  m = h.length;
                for (
                  o && (x = t == S || t || o);
                  c !== m && null != (r = h[c]);
                  c++
                ) {
                  if (y && r) {
                    for (
                      s = 0, t || r.ownerDocument == S || (P(r), (n = !H));
                      (a = g[s++]);
                    )
                      if (a(r, t || S, n)) {
                        i.push(r);
                        break;
                      }
                    o && (T = f);
                  }
                  b && ((r = !a && r) && l--, e && u.push(r));
                }
                if (((l += c), b && c !== l)) {
                  for (s = 0; (a = v[s++]); ) a(u, d, t, n);
                  if (e) {
                    if (0 < l) for (; c--; ) u[c] || d[c] || (d[c] = L.call(i));
                    d = we(d);
                  }
                  (N.apply(i, d),
                    o &&
                      !e &&
                      0 < d.length &&
                      1 < l + v.length &&
                      ae.uniqueSort(i));
                }
                return (o && ((T = f), (x = p)), u);
              }),
              b ? ce(i) : i),
            )).selector = e;
          }
          return s;
        }),
      (g = ae.select =
        function (e, t, n, i) {
          var o,
            r,
            s,
            a,
            l,
            c = "function" == typeof e && e,
            u = !i && f((e = c.selector || e));
          if (((n = n || []), 1 === u.length)) {
            if (
              2 < (r = u[0] = u[0].slice(0)).length &&
              "ID" === (s = r[0]).type &&
              9 === t.nodeType &&
              H &&
              w.relative[r[1].type]
            ) {
              if (!(t = (w.find.ID(s.matches[0].replace(oe, d), t) || [])[0]))
                return n;
              (c && (t = t.parentNode), (e = e.slice(r.shift().value.length)));
            }
            for (
              o = G.needsContext.test(e) ? 0 : r.length;
              o-- && ((s = r[o]), !w.relative[(a = s.type)]);
            )
              if (
                (l = w.find[a]) &&
                (i = l(
                  s.matches[0].replace(oe, d),
                  (ie.test(r[0].type) && me(t.parentNode)) || t,
                ))
              ) {
                if ((r.splice(o, 1), !(e = i.length && ve(r))))
                  return (N.apply(n, i), n);
                break;
              }
          }
          return (
            (c || m(e, u))(
              i,
              t,
              !H,
              n,
              !t || (ie.test(e) && me(t.parentNode)) || t,
            ),
            n
          );
        }),
      (h.sortStable = C.split("").sort(D).join("") === C),
      (h.detectDuplicates = !!c),
      P(),
      (h.sortDetached = ue(function (e) {
        return 1 & e.compareDocumentPosition(S.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(q, function (e, t, n) {
          if (!n)
            return !0 === e[t]
              ? t.toLowerCase()
              : (t = e.getAttributeNode(t)) && t.specified
                ? t.value
                : null;
        }),
      ae
    );
  })(P);
  ((H.find = h),
    (H.expr = h.selectors),
    (H.expr[":"] = H.expr.pseudos),
    (H.uniqueSort = H.unique = h.uniqueSort),
    (H.text = h.getText),
    (H.isXMLDoc = h.isXML),
    (H.contains = h.contains),
    (H.escapeSelector = h.escape));
  function x(e, t, n) {
    for (var i = [], o = void 0 !== n; (e = e[t]) && 9 !== e.nodeType; )
      if (1 === e.nodeType) {
        if (o && H(e).is(n)) break;
        i.push(e);
      }
    return i;
  }
  function C(e, t) {
    for (var n = []; e; e = e.nextSibling)
      1 === e.nodeType && e !== t && n.push(e);
    return n;
  }
  var T = H.expr.match.needsContext;
  function k(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 I(e, n, i) {
    return m(n)
      ? H.grep(e, function (e, t) {
          return !!n.call(e, t, e) !== i;
        })
      : n.nodeType
        ? H.grep(e, function (e) {
            return (e === n) !== i;
          })
        : "string" != typeof n
          ? H.grep(e, function (e) {
              return -1 < o.call(n, e) !== i;
            })
          : H.filter(n, e, i);
  }
  ((H.filter = function (e, t, n) {
    var i = t[0];
    return (
      n && (e = ":not(" + e + ")"),
      1 === t.length && 1 === i.nodeType
        ? H.find.matchesSelector(i, e)
          ? [i]
          : []
        : H.find.matches(
            e,
            H.grep(t, function (e) {
              return 1 === e.nodeType;
            }),
          )
    );
  }),
    H.fn.extend({
      find: function (e) {
        var t,
          n,
          i = this.length,
          o = this;
        if ("string" != typeof e)
          return this.pushStack(
            H(e).filter(function () {
              for (t = 0; t < i; t++) if (H.contains(o[t], this)) return !0;
            }),
          );
        for (n = this.pushStack([]), t = 0; t < i; t++) H.find(e, o[t], n);
        return 1 < i ? H.uniqueSort(n) : n;
      },
      filter: function (e) {
        return this.pushStack(I(this, e || [], !1));
      },
      not: function (e) {
        return this.pushStack(I(this, e || [], !0));
      },
      is: function (e) {
        return !!I(this, "string" == typeof e && T.test(e) ? H(e) : e || [], !1)
          .length;
      },
    }));
  var $ = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;
  (H.fn.init = function (e, t, n) {
    if (!e) return this;
    if (((n = n || A), "string" != typeof e))
      return e.nodeType
        ? ((this[0] = e), (this.length = 1), this)
        : m(e)
          ? void 0 !== n.ready
            ? n.ready(e)
            : e(H)
          : H.makeArray(e, this);
    if (
      !(i =
        "<" === e[0] && ">" === e[e.length - 1] && 3 <= e.length
          ? [null, e, null]
          : $.exec(e)) ||
      (!i[1] && t)
    )
      return (!t || t.jquery ? t || n : this.constructor(t)).find(e);
    if (i[1]) {
      if (
        ((t = t instanceof H ? t[0] : t),
        H.merge(
          this,
          H.parseHTML(i[1], t && t.nodeType ? t.ownerDocument || t : S, !0),
        ),
        E.test(i[1]) && H.isPlainObject(t))
      )
        for (var i in t) m(this[i]) ? this[i](t[i]) : this.attr(i, t[i]);
      return this;
    }
    return (
      (e = S.getElementById(i[2])) && ((this[0] = e), (this.length = 1)),
      this
    );
  }).prototype = H.fn;
  var A = H(S),
    D = /^(?:parents|prev(?:Until|All))/,
    j = { children: !0, contents: !0, next: !0, prev: !0 };
  function L(e, t) {
    for (; (e = e[t]) && 1 !== e.nodeType; );
    return e;
  }
  (H.fn.extend({
    has: function (e) {
      var t = H(e, this),
        n = t.length;
      return this.filter(function () {
        for (var e = 0; e < n; e++) if (H.contains(this, t[e])) return !0;
      });
    },
    closest: function (e, t) {
      var n,
        i = 0,
        o = this.length,
        r = [],
        s = "string" != typeof e && H(e);
      if (!T.test(e))
        for (; i < o; i++)
          for (n = this[i]; n && n !== t; n = n.parentNode)
            if (
              n.nodeType < 11 &&
              (s
                ? -1 < s.index(n)
                : 1 === n.nodeType && H.find.matchesSelector(n, e))
            ) {
              r.push(n);
              break;
            }
      return this.pushStack(1 < r.length ? H.uniqueSort(r) : r);
    },
    index: function (e) {
      return e
        ? "string" == typeof e
          ? o.call(H(e), this[0])
          : o.call(this, e.jquery ? e[0] : e)
        : this[0] && this[0].parentNode
          ? this.first().prevAll().length
          : -1;
    },
    add: function (e, t) {
      return this.pushStack(H.uniqueSort(H.merge(this.get(), H(e, t))));
    },
    addBack: function (e) {
      return this.add(null == e ? this.prevObject : this.prevObject.filter(e));
    },
  }),
    H.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 L(e, "nextSibling");
        },
        prev: function (e) {
          return L(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 C((e.parentNode || {}).firstChild, e);
        },
        children: function (e) {
          return C(e.firstChild);
        },
        contents: function (e) {
          return null != e.contentDocument && n(e.contentDocument)
            ? e.contentDocument
            : (k(e, "template") && (e = e.content || e),
              H.merge([], e.childNodes));
        },
      },
      function (i, o) {
        H.fn[i] = function (e, t) {
          var n = H.map(this, o, e);
          return (
            (t = "Until" !== i.slice(-5) ? e : t) &&
              "string" == typeof t &&
              (n = H.filter(t, n)),
            1 < this.length &&
              (j[i] || H.uniqueSort(n), D.test(i) && n.reverse()),
            this.pushStack(n)
          );
        };
      },
    ));
  var B = /[^\x20\t\r\n\f]+/g;
  function N(e) {
    return e;
  }
  function O(e) {
    throw e;
  }
  function M(e, t, n, i) {
    var o;
    try {
      e && m((o = e.promise))
        ? o.call(e).done(t).fail(n)
        : e && m((o = e.then))
          ? o.call(e, t, n)
          : t.apply(void 0, [e].slice(i));
    } catch (e) {
      n.apply(void 0, [e]);
    }
  }
  ((H.Callbacks = function (i) {
    var e, n;
    i =
      "string" == typeof i
        ? ((e = i),
          (n = {}),
          H.each(e.match(B) || [], function (e, t) {
            n[t] = !0;
          }),
          n)
        : H.extend({}, i);
    function o() {
      for (a = a || i.once, s = r = !0; c.length; u = -1)
        for (t = c.shift(); ++u < l.length; )
          !1 === l[u].apply(t[0], t[1]) &&
            i.stopOnFalse &&
            ((u = l.length), (t = !1));
      (i.memory || (t = !1), (r = !1), a && (l = t ? [] : ""));
    }
    var r,
      t,
      s,
      a,
      l = [],
      c = [],
      u = -1,
      d = {
        add: function () {
          return (
            l &&
              (t && !r && ((u = l.length - 1), c.push(t)),
              (function n(e) {
                H.each(e, function (e, t) {
                  m(t)
                    ? (i.unique && d.has(t)) || l.push(t)
                    : t && t.length && "string" !== f(t) && n(t);
                });
              })(arguments),
              t && !r && o()),
            this
          );
        },
        remove: function () {
          return (
            H.each(arguments, function (e, t) {
              for (var n; -1 < (n = H.inArray(t, l, n)); )
                (l.splice(n, 1), n <= u && u--);
            }),
            this
          );
        },
        has: function (e) {
          return e ? -1 < H.inArray(e, l) : 0 < l.length;
        },
        empty: function () {
          return ((l = l && []), this);
        },
        disable: function () {
          return ((a = c = []), (l = t = ""), this);
        },
        disabled: function () {
          return !l;
        },
        lock: function () {
          return ((a = c = []), t || r || (l = t = ""), this);
        },
        locked: function () {
          return !!a;
        },
        fireWith: function (e, t) {
          return (
            a ||
              ((t = [e, (t = t || []).slice ? t.slice() : t]),
              c.push(t),
              r || o()),
            this
          );
        },
        fire: function () {
          return (d.fireWith(this, arguments), this);
        },
        fired: function () {
          return !!s;
        },
      };
    return d;
  }),
    H.extend({
      Deferred: function (e) {
        var r = [
            [
              "notify",
              "progress",
              H.Callbacks("memory"),
              H.Callbacks("memory"),
              2,
            ],
            [
              "resolve",
              "done",
              H.Callbacks("once memory"),
              H.Callbacks("once memory"),
              0,
              "resolved",
            ],
            [
              "reject",
              "fail",
              H.Callbacks("once memory"),
              H.Callbacks("once memory"),
              1,
              "rejected",
            ],
          ],
          o = "pending",
          s = {
            state: function () {
              return o;
            },
            always: function () {
              return (a.done(arguments).fail(arguments), this);
            },
            catch: function (e) {
              return s.then(null, e);
            },
            pipe: function () {
              var o = arguments;
              return H.Deferred(function (i) {
                (H.each(r, function (e, t) {
                  var n = m(o[t[4]]) && o[t[4]];
                  a[t[1]](function () {
                    var e = n && n.apply(this, arguments);
                    e && m(e.promise)
                      ? e
                          .promise()
                          .progress(i.notify)
                          .done(i.resolve)
                          .fail(i.reject)
                      : i[t[0] + "With"](this, n ? [e] : arguments);
                  });
                }),
                  (o = null));
              }).promise();
            },
            then: function (t, n, i) {
              var l = 0;
              function c(o, r, s, a) {
                return function () {
                  function e() {
                    var e, t;
                    if (!(o < l)) {
                      if ((e = s.apply(n, i)) === r.promise())
                        throw new TypeError("Thenable self-resolution");
                      ((t =
                        e &&
                        ("object" == typeof e || "function" == typeof e) &&
                        e.then),
                        m(t)
                          ? a
                            ? t.call(e, c(l, r, N, a), c(l, r, O, a))
                            : (l++,
                              t.call(
                                e,
                                c(l, r, N, a),
                                c(l, r, O, a),
                                c(l, r, N, r.notifyWith),
                              ))
                          : (s !== N && ((n = void 0), (i = [e])),
                            (a || r.resolveWith)(n, i)));
                    }
                  }
                  var n = this,
                    i = arguments,
                    t = a
                      ? e
                      : function () {
                          try {
                            e();
                          } catch (e) {
                            (H.Deferred.exceptionHook &&
                              H.Deferred.exceptionHook(e, t.stackTrace),
                              l <= o + 1 &&
                                (s !== O && ((n = void 0), (i = [e])),
                                r.rejectWith(n, i)));
                          }
                        };
                  o
                    ? t()
                    : (H.Deferred.getStackHook &&
                        (t.stackTrace = H.Deferred.getStackHook()),
                      P.setTimeout(t));
                };
              }
              return H.Deferred(function (e) {
                (r[0][3].add(c(0, e, m(i) ? i : N, e.notifyWith)),
                  r[1][3].add(c(0, e, m(t) ? t : N)),
                  r[2][3].add(c(0, e, m(n) ? n : O)));
              }).promise();
            },
            promise: function (e) {
              return null != e ? H.extend(e, s) : s;
            },
          },
          a = {};
        return (
          H.each(r, function (e, t) {
            var n = t[2],
              i = t[5];
            ((s[t[1]] = n.add),
              i &&
                n.add(
                  function () {
                    o = i;
                  },
                  r[3 - e][2].disable,
                  r[3 - e][3].disable,
                  r[0][2].lock,
                  r[0][3].lock,
                ),
              n.add(t[3].fire),
              (a[t[0]] = function () {
                return (
                  a[t[0] + "With"](this === a ? void 0 : this, arguments),
                  this
                );
              }),
              (a[t[0] + "With"] = n.fireWith));
          }),
          s.promise(a),
          e && e.call(a, a),
          a
        );
      },
      when: function (e) {
        function t(t) {
          return function (e) {
            ((o[t] = this),
              (r[t] = 1 < arguments.length ? a.call(arguments) : e),
              --n || s.resolveWith(o, r));
          };
        }
        var n = arguments.length,
          i = n,
          o = Array(i),
          r = a.call(arguments),
          s = H.Deferred();
        if (
          n <= 1 &&
          (M(e, s.done(t(i)).resolve, s.reject, !n),
          "pending" === s.state() || m(r[i] && r[i].then))
        )
          return s.then();
        for (; i--; ) M(r[i], t(i), s.reject);
        return s.promise();
      },
    }));
  var q = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
  ((H.Deferred.exceptionHook = function (e, t) {
    P.console &&
      P.console.warn &&
      e &&
      q.test(e.name) &&
      P.console.warn("jQuery.Deferred exception: " + e.message, e.stack, t);
  }),
    (H.readyException = function (e) {
      P.setTimeout(function () {
        throw e;
      });
    }));
  var F = H.Deferred();
  function R() {
    (S.removeEventListener("DOMContentLoaded", R),
      P.removeEventListener("load", R),
      H.ready());
  }
  ((H.fn.ready = function (e) {
    return (
      F.then(e).catch(function (e) {
        H.readyException(e);
      }),
      this
    );
  }),
    H.extend({
      isReady: !1,
      readyWait: 1,
      ready: function (e) {
        (!0 === e ? --H.readyWait : H.isReady) ||
          ((H.isReady = !0) !== e && 0 < --H.readyWait) ||
          F.resolveWith(S, [H]);
      },
    }),
    (H.ready.then = F.then),
    "complete" === S.readyState ||
    ("loading" !== S.readyState && !S.documentElement.doScroll)
      ? P.setTimeout(H.ready)
      : (S.addEventListener("DOMContentLoaded", R),
        P.addEventListener("load", R)));
  function z(e, t, n, i, o, r, s) {
    var a = 0,
      l = e.length,
      c = null == n;
    if ("object" === f(n)) for (a in ((o = !0), n)) z(e, t, a, n[a], !0, r, s);
    else if (
      void 0 !== i &&
      ((o = !0),
      m(i) || (s = !0),
      (t = c
        ? s
          ? (t.call(e, i), null)
          : ((c = t),
            function (e, t, n) {
              return c.call(H(e), n);
            })
        : t))
    )
      for (; a < l; a++) t(e[a], n, s ? i : i.call(e[a], a, t(e[a], n)));
    return o ? e : c ? t.call(e) : l ? t(e[0], n) : r;
  }
  var W = /^-ms-/,
    Q = /-([a-z])/g;
  function V(e, t) {
    return t.toUpperCase();
  }
  function U(e) {
    return e.replace(W, "ms-").replace(Q, V);
  }
  function X(e) {
    return 1 === e.nodeType || 9 === e.nodeType || !+e.nodeType;
  }
  function K() {
    this.expando = H.expando + K.uid++;
  }
  ((K.uid = 1),
    (K.prototype = {
      cache: function (e) {
        var t = e[this.expando];
        return (
          t ||
            ((t = {}),
            X(e) &&
              (e.nodeType
                ? (e[this.expando] = t)
                : Object.defineProperty(e, this.expando, {
                    value: t,
                    configurable: !0,
                  }))),
          t
        );
      },
      set: function (e, t, n) {
        var i,
          o = this.cache(e);
        if ("string" == typeof t) o[U(t)] = n;
        else for (i in t) o[U(i)] = t[i];
        return o;
      },
      get: function (e, t) {
        return void 0 === t
          ? this.cache(e)
          : e[this.expando] && e[this.expando][U(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,
          i = e[this.expando];
        if (void 0 !== i) {
          if (void 0 !== t) {
            n = (t = Array.isArray(t)
              ? t.map(U)
              : (t = U(t)) in i
                ? [t]
                : t.match(B) || []).length;
            for (; n--; ) delete i[t[n]];
          }
          (void 0 !== t && !H.isEmptyObject(i)) ||
            (e.nodeType ? (e[this.expando] = void 0) : delete e[this.expando]);
        }
      },
      hasData: function (e) {
        e = e[this.expando];
        return void 0 !== e && !H.isEmptyObject(e);
      },
    }));
  var _ = new K(),
    J = new K(),
    G = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
    Y = /[A-Z]/g;
  function Z(e, t, n) {
    var i, o;
    if (void 0 === n && 1 === e.nodeType)
      if (
        ((i = "data-" + t.replace(Y, "-$&").toLowerCase()),
        "string" == typeof (n = e.getAttribute(i)))
      ) {
        try {
          n =
            "true" === (o = n) ||
            ("false" !== o &&
              ("null" === o
                ? null
                : o === +o + ""
                  ? +o
                  : G.test(o)
                    ? JSON.parse(o)
                    : o));
        } catch (e) {}
        J.set(e, t, n);
      } else n = void 0;
    return n;
  }
  (H.extend({
    hasData: function (e) {
      return J.hasData(e) || _.hasData(e);
    },
    data: function (e, t, n) {
      return J.access(e, t, n);
    },
    removeData: function (e, t) {
      J.remove(e, t);
    },
    _data: function (e, t, n) {
      return _.access(e, t, n);
    },
    _removeData: function (e, t) {
      _.remove(e, t);
    },
  }),
    H.fn.extend({
      data: function (n, e) {
        var t,
          i,
          o,
          r = this[0],
          s = r && r.attributes;
        if (void 0 !== n)
          return "object" == typeof n
            ? this.each(function () {
                J.set(this, n);
              })
            : z(
                this,
                function (e) {
                  var t;
                  return r && void 0 === e
                    ? void 0 !== (t = J.get(r, n)) || void 0 !== (t = Z(r, n))
                      ? t
                      : void 0
                    : void this.each(function () {
                        J.set(this, n, e);
                      });
                },
                null,
                e,
                1 < arguments.length,
                null,
                !0,
              );
        if (
          this.length &&
          ((o = J.get(r)), 1 === r.nodeType && !_.get(r, "hasDataAttrs"))
        ) {
          for (t = s.length; t--; )
            s[t] &&
              0 === (i = s[t].name).indexOf("data-") &&
              ((i = U(i.slice(5))), Z(r, i, o[i]));
          _.set(r, "hasDataAttrs", !0);
        }
        return o;
      },
      removeData: function (e) {
        return this.each(function () {
          J.remove(this, e);
        });
      },
    }),
    H.extend({
      queue: function (e, t, n) {
        var i;
        if (e)
          return (
            (i = _.get(e, (t = (t || "fx") + "queue"))),
            n &&
              (!i || Array.isArray(n)
                ? (i = _.access(e, t, H.makeArray(n)))
                : i.push(n)),
            i || []
          );
      },
      dequeue: function (e, t) {
        t = t || "fx";
        var n = H.queue(e, t),
          i = n.length,
          o = n.shift(),
          r = H._queueHooks(e, t);
        ("inprogress" === o && ((o = n.shift()), i--),
          o &&
            ("fx" === t && n.unshift("inprogress"),
            delete r.stop,
            o.call(
              e,
              function () {
                H.dequeue(e, t);
              },
              r,
            )),
          !i && r && r.empty.fire());
      },
      _queueHooks: function (e, t) {
        var n = t + "queueHooks";
        return (
          _.get(e, n) ||
          _.access(e, n, {
            empty: H.Callbacks("once memory").add(function () {
              _.remove(e, [t + "queue", n]);
            }),
          })
        );
      },
    }),
    H.fn.extend({
      queue: function (t, n) {
        var e = 2;
        return (
          "string" != typeof t && ((n = t), (t = "fx"), e--),
          arguments.length < e
            ? H.queue(this[0], t)
            : void 0 === n
              ? this
              : this.each(function () {
                  var e = H.queue(this, t, n);
                  (H._queueHooks(this, t),
                    "fx" === t && "inprogress" !== e[0] && H.dequeue(this, t));
                })
        );
      },
      dequeue: function (e) {
        return this.each(function () {
          H.dequeue(this, e);
        });
      },
      clearQueue: function (e) {
        return this.queue(e || "fx", []);
      },
      promise: function (e, t) {
        function n() {
          --o || r.resolveWith(s, [s]);
        }
        var i,
          o = 1,
          r = H.Deferred(),
          s = this,
          a = this.length;
        for (
          "string" != typeof e && ((t = e), (e = void 0)), e = e || "fx";
          a--;
        )
          (i = _.get(s[a], e + "queueHooks")) &&
            i.empty &&
            (o++, i.empty.add(n));
        return (n(), r.promise(t));
      },
    }));
  var ee = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
    te = new RegExp("^(?:([+-])=|)(" + ee + ")([a-z%]*)$", "i"),
    ne = ["Top", "Right", "Bottom", "Left"],
    ie = S.documentElement,
    oe = function (e) {
      return H.contains(e.ownerDocument, e);
    },
    re = { composed: !0 };
  ie.getRootNode &&
    (oe = function (e) {
      return (
        H.contains(e.ownerDocument, e) || e.getRootNode(re) === e.ownerDocument
      );
    });
  function se(e, t) {
    return (
      "none" === (e = t || e).style.display ||
      ("" === e.style.display && oe(e) && "none" === H.css(e, "display"))
    );
  }
  function ae(e, t, n, i) {
    var o,
      r,
      s = 20,
      a = i
        ? function () {
            return i.cur();
          }
        : function () {
            return H.css(e, t, "");
          },
      l = a(),
      c = (n && n[3]) || (H.cssNumber[t] ? "" : "px"),
      u =
        e.nodeType &&
        (H.cssNumber[t] || ("px" !== c && +l)) &&
        te.exec(H.css(e, t));
    if (u && u[3] !== c) {
      for (c = c || u[3], u = +(l /= 2) || 1; s--; )
        (H.style(e, t, u + c),
          (1 - r) * (1 - (r = a() / l || 0.5)) <= 0 && (s = 0),
          (u /= r));
      (H.style(e, t, (u *= 2) + c), (n = n || []));
    }
    return (
      n &&
        ((u = +u || +l || 0),
        (o = n[1] ? u + (n[1] + 1) * n[2] : +n[2]),
        i && ((i.unit = c), (i.start = u), (i.end = o))),
      o
    );
  }
  var le = {};
  function ce(e, t) {
    for (var n, i, o, r, s, a, l = [], c = 0, u = e.length; c < u; c++)
      (i = e[c]).style &&
        ((n = i.style.display),
        t
          ? ("none" === n &&
              ((l[c] = _.get(i, "display") || null),
              l[c] || (i.style.display = "")),
            "" === i.style.display &&
              se(i) &&
              (l[c] =
                ((a = r = o = void 0),
                (r = i.ownerDocument),
                (s = i.nodeName),
                (a = le[s]) ||
                  ((o = r.body.appendChild(r.createElement(s))),
                  (a = H.css(o, "display")),
                  o.parentNode.removeChild(o),
                  (le[s] = a = "none" === a ? "block" : a)))))
          : "none" !== n && ((l[c] = "none"), _.set(i, "display", n)));
    for (c = 0; c < u; c++) null != l[c] && (e[c].style.display = l[c]);
    return e;
  }
  H.fn.extend({
    show: function () {
      return ce(this, !0);
    },
    hide: function () {
      return ce(this);
    },
    toggle: function (e) {
      return "boolean" == typeof e
        ? e
          ? this.show()
          : this.hide()
        : this.each(function () {
            se(this) ? H(this).show() : H(this).hide();
          });
    },
  });
  var ue = /^(?:checkbox|radio)$/i,
    de = /<([a-z][^\/\0>\x20\t\r\n\f]*)/i,
    pe = /^$|^module$|\/(?:java|ecma)script/i,
    d = S.createDocumentFragment().appendChild(S.createElement("div"));
  ((h = S.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 && k(e, t)) ? H.merge([e], n) : n;
  }
  function me(e, t) {
    for (var n = 0, i = e.length; n < i; n++)
      _.set(e[n], "globalEval", !t || _.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 ge = /<|&#?\w+;/;
  function ve(e, t, n, i, o) {
    for (
      var r,
        s,
        a,
        l,
        c,
        u = t.createDocumentFragment(),
        d = [],
        p = 0,
        h = e.length;
      p < h;
      p++
    )
      if ((r = e[p]) || 0 === r)
        if ("object" === f(r)) H.merge(d, r.nodeType ? [r] : r);
        else if (ge.test(r)) {
          for (
            s = s || u.appendChild(t.createElement("div")),
              a = (de.exec(r) || ["", ""])[1].toLowerCase(),
              a = he[a] || he._default,
              s.innerHTML = a[1] + H.htmlPrefilter(r) + a[2],
              c = a[0];
            c--;
          )
            s = s.lastChild;
          (H.merge(d, s.childNodes), ((s = u.firstChild).textContent = ""));
        } else d.push(t.createTextNode(r));
    for (u.textContent = "", p = 0; (r = d[p++]); )
      if (i && -1 < H.inArray(r, i)) o && o.push(r);
      else if (
        ((l = oe(r)), (s = fe(u.appendChild(r), "script")), l && me(s), n)
      )
        for (c = 0; (r = s[c++]); ) pe.test(r.type || "") && n.push(r);
    return u;
  }
  var be = /^key/,
    ye = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
    we = /^([^.]*)(?:\.(.+)|)/;
  function xe() {
    return !0;
  }
  function Pe() {
    return !1;
  }
  function Se(e, t) {
    return (
      (e ===
        (function () {
          try {
            return S.activeElement;
          } catch (e) {}
        })()) ==
      ("focus" === t)
    );
  }
  function He(e, t, n, i, o, r) {
    var s, a;
    if ("object" == typeof t) {
      for (a in ("string" != typeof n && ((i = i || n), (n = void 0)), t))
        He(e, a, n, i, t[a], r);
      return e;
    }
    if (
      (null == i && null == o
        ? ((o = n), (i = n = void 0))
        : null == o &&
          ("string" == typeof n
            ? ((o = i), (i = void 0))
            : ((o = i), (i = n), (n = void 0))),
      !1 === o)
    )
      o = Pe;
    else if (!o) return e;
    return (
      1 === r &&
        ((s = o),
        ((o = function (e) {
          return (H().off(e), s.apply(this, arguments));
        }).guid = s.guid || (s.guid = H.guid++))),
      e.each(function () {
        H.event.add(this, t, o, i, n);
      })
    );
  }
  function Ce(e, o, r) {
    r
      ? (_.set(e, o, !1),
        H.event.add(e, o, {
          namespace: !1,
          handler: function (e) {
            var t,
              n,
              i = _.get(this, o);
            if (1 & e.isTrigger && this[o]) {
              if (i.length)
                (H.event.special[o] || {}).delegateType && e.stopPropagation();
              else if (
                ((i = a.call(arguments)),
                _.set(this, o, i),
                (t = r(this, o)),
                this[o](),
                i !== (n = _.get(this, o)) || t ? _.set(this, o, !1) : (n = {}),
                i !== n)
              )
                return (
                  e.stopImmediatePropagation(),
                  e.preventDefault(),
                  n.value
                );
            } else
              i.length &&
                (_.set(this, o, {
                  value: H.event.trigger(
                    H.extend(i[0], H.Event.prototype),
                    i.slice(1),
                    this,
                  ),
                }),
                e.stopImmediatePropagation());
          },
        }))
      : void 0 === _.get(e, o) && H.event.add(e, o, xe);
  }
  ((H.event = {
    global: {},
    add: function (t, e, n, i, o) {
      var r,
        s,
        a,
        l,
        c,
        u,
        d,
        p,
        h,
        f = _.get(t);
      if (X(t))
        for (
          n.handler && ((n = (r = n).handler), (o = r.selector)),
            o && H.find.matchesSelector(ie, o),
            n.guid || (n.guid = H.guid++),
            (a = f.events) || (a = f.events = Object.create(null)),
            (s = f.handle) ||
              (s = f.handle =
                function (e) {
                  return void 0 !== H && H.event.triggered !== e.type
                    ? H.event.dispatch.apply(t, arguments)
                    : void 0;
                }),
            l = (e = (e || "").match(B) || [""]).length;
          l--;
        )
          ((d = h = (c = we.exec(e[l]) || [])[1]),
            (p = (c[2] || "").split(".").sort()),
            d &&
              ((u = H.event.special[d] || {}),
              (d = (o ? u.delegateType : u.bindType) || d),
              (u = H.event.special[d] || {}),
              (c = H.extend(
                {
                  type: d,
                  origType: h,
                  data: i,
                  handler: n,
                  guid: n.guid,
                  selector: o,
                  needsContext: o && H.expr.match.needsContext.test(o),
                  namespace: p.join("."),
                },
                r,
              )),
              (h = a[d]) ||
                (((h = a[d] = []).delegateCount = 0),
                (u.setup && !1 !== u.setup.call(t, i, p, s)) ||
                  (t.addEventListener && t.addEventListener(d, s))),
              u.add &&
                (u.add.call(t, c), c.handler.guid || (c.handler.guid = n.guid)),
              o ? h.splice(h.delegateCount++, 0, c) : h.push(c),
              (H.event.global[d] = !0)));
    },
    remove: function (e, t, n, i, o) {
      var r,
        s,
        a,
        l,
        c,
        u,
        d,
        p,
        h,
        f,
        m,
        g = _.hasData(e) && _.get(e);
      if (g && (l = g.events)) {
        for (c = (t = (t || "").match(B) || [""]).length; c--; )
          if (
            ((h = m = (a = we.exec(t[c]) || [])[1]),
            (f = (a[2] || "").split(".").sort()),
            h)
          ) {
            for (
              d = H.event.special[h] || {},
                p = l[(h = (i ? d.delegateType : d.bindType) || h)] || [],
                a =
                  a[2] &&
                  new RegExp("(^|\\.)" + f.join("\\.(?:.*\\.|)") + "(\\.|$)"),
                s = r = p.length;
              r--;
            )
              ((u = p[r]),
                (!o && m !== u.origType) ||
                  (n && n.guid !== u.guid) ||
                  (a && !a.test(u.namespace)) ||
                  (i && i !== u.selector && ("**" !== i || !u.selector)) ||
                  (p.splice(r, 1),
                  u.selector && p.delegateCount--,
                  d.remove && d.remove.call(e, u)));
            s &&
              !p.length &&
              ((d.teardown && !1 !== d.teardown.call(e, f, g.handle)) ||
                H.removeEvent(e, h, g.handle),
              delete l[h]);
          } else for (h in l) H.event.remove(e, h + t[c], n, i, !0);
        H.isEmptyObject(l) && _.remove(e, "handle events");
      }
    },
    dispatch: function (e) {
      var t,
        n,
        i,
        o,
        r,
        s = new Array(arguments.length),
        a = H.event.fix(e),
        l = (_.get(this, "events") || Object.create(null))[a.type] || [],
        e = H.event.special[a.type] || {};
      for (s[0] = a, t = 1; t < arguments.length; t++) s[t] = arguments[t];
      if (
        ((a.delegateTarget = this),
        !e.preDispatch || !1 !== e.preDispatch.call(this, a))
      ) {
        for (
          r = H.event.handlers.call(this, a, l), t = 0;
          (i = r[t++]) && !a.isPropagationStopped();
        )
          for (
            a.currentTarget = i.elem, n = 0;
            (o = i.handlers[n++]) && !a.isImmediatePropagationStopped();
          )
            (a.rnamespace &&
              !1 !== o.namespace &&
              !a.rnamespace.test(o.namespace)) ||
              ((a.handleObj = o),
              (a.data = o.data),
              void 0 !==
                (o = (
                  (H.event.special[o.origType] || {}).handle || o.handler
                ).apply(i.elem, s)) &&
                !1 === (a.result = o) &&
                (a.preventDefault(), a.stopPropagation()));
        return (e.postDispatch && e.postDispatch.call(this, a), a.result);
      }
    },
    handlers: function (e, t) {
      var n,
        i,
        o,
        r,
        s,
        a = [],
        l = t.delegateCount,
        c = e.target;
      if (l && c.nodeType && !("click" === e.type && 1 <= e.button))
        for (; c !== this; c = c.parentNode || this)
          if (1 === c.nodeType && ("click" !== e.type || !0 !== c.disabled)) {
            for (r = [], s = {}, n = 0; n < l; n++)
              (void 0 === s[(o = (i = t[n]).selector + " ")] &&
                (s[o] = i.needsContext
                  ? -1 < H(o, this).index(c)
                  : H.find(o, this, null, [c]).length),
                s[o] && r.push(i));
            r.length && a.push({ elem: c, handlers: r });
          }
      return (
        (c = this),
        l < t.length && a.push({ elem: c, handlers: t.slice(l) }),
        a
      );
    },
    addProp: function (t, e) {
      Object.defineProperty(H.Event.prototype, t, {
        enumerable: !0,
        configurable: !0,
        get: m(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[H.expando] ? e : new H.Event(e);
    },
    special: {
      load: { noBubble: !0 },
      click: {
        setup: function (e) {
          e = this || e;
          return (
            ue.test(e.type) && e.click && k(e, "input") && Ce(e, "click", xe),
            !1
          );
        },
        trigger: function (e) {
          e = this || e;
          return (
            ue.test(e.type) && e.click && k(e, "input") && Ce(e, "click"),
            !0
          );
        },
        _default: function (e) {
          e = e.target;
          return (
            (ue.test(e.type) &&
              e.click &&
              k(e, "input") &&
              _.get(e, "click")) ||
            k(e, "a")
          );
        },
      },
      beforeunload: {
        postDispatch: function (e) {
          void 0 !== e.result &&
            e.originalEvent &&
            (e.originalEvent.returnValue = e.result);
        },
      },
    },
  }),
    (H.removeEvent = function (e, t, n) {
      e.removeEventListener && e.removeEventListener(t, n);
    }),
    (H.Event = function (e, t) {
      if (!(this instanceof H.Event)) return new H.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
              : Pe),
          (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 && H.extend(this, t),
        (this.timeStamp = (e && e.timeStamp) || Date.now()),
        (this[H.expando] = !0));
    }),
    (H.Event.prototype = {
      constructor: H.Event,
      isDefaultPrevented: Pe,
      isPropagationStopped: Pe,
      isImmediatePropagationStopped: Pe,
      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());
      },
    }),
    H.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;
        },
      },
      H.event.addProp,
    ),
    H.each({ focus: "focusin", blur: "focusout" }, function (e, t) {
      H.event.special[e] = {
        setup: function () {
          return (Ce(this, e, Se), !1);
        },
        trigger: function () {
          return (Ce(this, e), !0);
        },
        delegateType: t,
      };
    }),
    H.each(
      {
        mouseenter: "mouseover",
        mouseleave: "mouseout",
        pointerenter: "pointerover",
        pointerleave: "pointerout",
      },
      function (e, o) {
        H.event.special[e] = {
          delegateType: o,
          bindType: o,
          handle: function (e) {
            var t,
              n = e.relatedTarget,
              i = e.handleObj;
            return (
              (n && (n === this || H.contains(this, n))) ||
                ((e.type = i.origType),
                (t = i.handler.apply(this, arguments)),
                (e.type = o)),
              t
            );
          },
        };
      },
    ),
    H.fn.extend({
      on: function (e, t, n, i) {
        return He(this, e, t, n, i);
      },
      one: function (e, t, n, i) {
        return He(this, e, t, n, i, 1);
      },
      off: function (e, t, n) {
        var i, o;
        if (e && e.preventDefault && e.handleObj)
          return (
            (i = e.handleObj),
            H(e.delegateTarget).off(
              i.namespace ? i.origType + "." + i.namespace : i.origType,
              i.selector,
              i.handler,
            ),
            this
          );
        if ("object" != typeof e)
          return (
            (!1 !== t && "function" != typeof t) || ((n = t), (t = void 0)),
            !1 === n && (n = Pe),
            this.each(function () {
              H.event.remove(this, e, n, t);
            })
          );
        for (o in e) this.off(o, t, e[o]);
        return this;
      },
    }));
  var Te = /<script|<style|<link/i,
    ke = /checked\s*(?:[^=]|=\s*.checked.)/i,
    Ee = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
  function Ie(e, t) {
    return (
      (k(e, "table") &&
        k(11 !== t.nodeType ? t : t.firstChild, "tr") &&
        H(e).children("tbody")[0]) ||
      e
    );
  }
  function $e(e) {
    return ((e.type = (null !== e.getAttribute("type")) + "/" + e.type), e);
  }
  function Ae(e) {
    return (
      "true/" === (e.type || "").slice(0, 5)
        ? (e.type = e.type.slice(5))
        : e.removeAttribute("type"),
      e
    );
  }
  function De(e, t) {
    var n, i, o, r;
    if (1 === t.nodeType) {
      if (_.hasData(e) && (r = _.get(e).events))
        for (o in (_.remove(t, "handle events"), r))
          for (n = 0, i = r[o].length; n < i; n++) H.event.add(t, o, r[o][n]);
      J.hasData(e) && ((e = J.access(e)), (e = H.extend({}, e)), J.set(t, e));
    }
  }
  function je(n, i, o, r) {
    i = v(i);
    var e,
      t,
      s,
      a,
      l,
      c,
      u = 0,
      d = n.length,
      p = d - 1,
      h = i[0],
      f = m(h);
    if (f || (1 < d && "string" == typeof h && !y.checkClone && ke.test(h)))
      return n.each(function (e) {
        var t = n.eq(e);
        (f && (i[0] = h.call(this, e, t.html())), je(t, i, o, r));
      });
    if (
      d &&
      ((t = (e = ve(i, n[0].ownerDocument, !1, n, r)).firstChild),
      1 === e.childNodes.length && (e = t),
      t || r)
    ) {
      for (a = (s = H.map(fe(e, "script"), $e)).length; u < d; u++)
        ((l = e),
          u !== p &&
            ((l = H.clone(l, !0, !0)), a && H.merge(s, fe(l, "script"))),
          o.call(n[u], l, u));
      if (a)
        for (c = s[s.length - 1].ownerDocument, H.map(s, Ae), u = 0; u < a; u++)
          ((l = s[u]),
            pe.test(l.type || "") &&
              !_.access(l, "globalEval") &&
              H.contains(c, l) &&
              (l.src && "module" !== (l.type || "").toLowerCase()
                ? H._evalUrl &&
                  !l.noModule &&
                  H._evalUrl(
                    l.src,
                    { nonce: l.nonce || l.getAttribute("nonce") },
                    c,
                  )
                : w(l.textContent.replace(Ee, ""), l, c)));
    }
    return n;
  }
  function Le(e, t, n) {
    for (var i, o = t ? H.filter(t, e) : e, r = 0; null != (i = o[r]); r++)
      (n || 1 !== i.nodeType || H.cleanData(fe(i)),
        i.parentNode &&
          (n && oe(i) && me(fe(i, "script")), i.parentNode.removeChild(i)));
    return e;
  }
  (H.extend({
    htmlPrefilter: function (e) {
      return e;
    },
    clone: function (e, t, n) {
      var i,
        o,
        r,
        s,
        a,
        l,
        c,
        u = e.cloneNode(!0),
        d = oe(e);
      if (
        !(
          y.noCloneChecked ||
          (1 !== e.nodeType && 11 !== e.nodeType) ||
          H.isXMLDoc(e)
        )
      )
        for (s = fe(u), i = 0, o = (r = fe(e)).length; i < o; i++)
          ((a = r[i]),
            "input" === (c = (l = s[i]).nodeName.toLowerCase()) &&
            ue.test(a.type)
              ? (l.checked = a.checked)
              : ("input" !== c && "textarea" !== c) ||
                (l.defaultValue = a.defaultValue));
      if (t)
        if (n)
          for (r = r || fe(e), s = s || fe(u), i = 0, o = r.length; i < o; i++)
            De(r[i], s[i]);
        else De(e, u);
      return (
        0 < (s = fe(u, "script")).length && me(s, !d && fe(e, "script")),
        u
      );
    },
    cleanData: function (e) {
      for (var t, n, i, o = H.event.special, r = 0; void 0 !== (n = e[r]); r++)
        if (X(n)) {
          if ((t = n[_.expando])) {
            if (t.events)
              for (i in t.events)
                o[i] ? H.event.remove(n, i) : H.removeEvent(n, i, t.handle);
            n[_.expando] = void 0;
          }
          n[J.expando] && (n[J.expando] = void 0);
        }
    },
  }),
    H.fn.extend({
      detach: function (e) {
        return Le(this, e, !0);
      },
      remove: function (e) {
        return Le(this, e);
      },
      text: function (e) {
        return z(
          this,
          function (e) {
            return void 0 === e
              ? H.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) ||
            Ie(this, e).appendChild(e);
        });
      },
      prepend: function () {
        return je(this, arguments, function (e) {
          var t;
          (1 !== this.nodeType &&
            11 !== this.nodeType &&
            9 !== this.nodeType) ||
            (t = Ie(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 && (H.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 H.clone(this, e, t);
          })
        );
      },
      html: function (e) {
        return z(
          this,
          function (e) {
            var t = this[0] || {},
              n = 0,
              i = 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 = H.htmlPrefilter(e);
              try {
                for (; n < i; n++)
                  1 === (t = this[n] || {}).nodeType &&
                    (H.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;
            H.inArray(this, n) < 0 &&
              (H.cleanData(fe(this)), t && t.replaceChild(e, this));
          },
          n,
        );
      },
    }),
    H.each(
      {
        appendTo: "append",
        prependTo: "prepend",
        insertBefore: "before",
        insertAfter: "after",
        replaceAll: "replaceWith",
      },
      function (e, s) {
        H.fn[e] = function (e) {
          for (var t, n = [], i = H(e), o = i.length - 1, r = 0; r <= o; r++)
            ((t = r === o ? this : this.clone(!0)),
              H(i[r])[s](t),
              l.apply(n, t.get()));
          return this.pushStack(n);
        };
      },
    ));
  function Be(e) {
    var t = e.ownerDocument.defaultView;
    return (t = !t || !t.opener ? P : t).getComputedStyle(e);
  }
  function Ne(e, t, n) {
    var i,
      o = {};
    for (i in t) ((o[i] = e.style[i]), (e.style[i] = t[i]));
    for (i in ((n = n.call(e)), t)) e.style[i] = o[i];
    return n;
  }
  var Oe,
    Me,
    qe,
    Fe,
    Re,
    ze,
    We,
    Qe,
    Ve = new RegExp("^(" + ee + ")(?!px)[a-z%]+$", "i"),
    Ue = new RegExp(ne.join("|"), "i");
  function Xe(e, t, n) {
    var i,
      o,
      r = e.style;
    return (
      (n = n || Be(e)) &&
        ("" !== (o = n.getPropertyValue(t) || n[t]) ||
          oe(e) ||
          (o = H.style(e, t)),
        !y.pixelBoxStyles() &&
          Ve.test(o) &&
          Ue.test(t) &&
          ((i = r.width),
          (e = r.minWidth),
          (t = r.maxWidth),
          (r.minWidth = r.maxWidth = r.width = o),
          (o = n.width),
          (r.width = i),
          (r.minWidth = e),
          (r.maxWidth = t))),
      void 0 !== o ? o + "" : o
    );
  }
  function Ke(e, t) {
    return {
      get: function () {
        if (!e()) return (this.get = t).apply(this, arguments);
        delete this.get;
      },
    };
  }
  function _e() {
    var e;
    Qe &&
      ((We.style.cssText =
        "position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0"),
      (Qe.style.cssText =
        "position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%"),
      ie.appendChild(We).appendChild(Qe),
      (e = P.getComputedStyle(Qe)),
      (Oe = "1%" !== e.top),
      (ze = 12 === Je(e.marginLeft)),
      (Qe.style.right = "60%"),
      (Fe = 36 === Je(e.right)),
      (Me = 36 === Je(e.width)),
      (Qe.style.position = "absolute"),
      (qe = 12 === Je(Qe.offsetWidth / 3)),
      ie.removeChild(We),
      (Qe = null));
  }
  function Je(e) {
    return Math.round(parseFloat(e));
  }
  ((We = S.createElement("div")),
    (Qe = S.createElement("div")).style &&
      ((Qe.style.backgroundClip = "content-box"),
      (Qe.cloneNode(!0).style.backgroundClip = ""),
      (y.clearCloneStyle = "content-box" === Qe.style.backgroundClip),
      H.extend(y, {
        boxSizingReliable: function () {
          return (_e(), Me);
        },
        pixelBoxStyles: function () {
          return (_e(), Fe);
        },
        pixelPosition: function () {
          return (_e(), Oe);
        },
        reliableMarginLeft: function () {
          return (_e(), ze);
        },
        scrollboxSize: function () {
          return (_e(), qe);
        },
        reliableTrDimensions: function () {
          var e, t, n;
          return (
            null == Re &&
              ((e = S.createElement("table")),
              (n = S.createElement("tr")),
              (t = S.createElement("div")),
              (e.style.cssText = "position:absolute;left:-11111px"),
              (n.style.height = "1px"),
              (t.style.height = "9px"),
              ie.appendChild(e).appendChild(n).appendChild(t),
              (n = P.getComputedStyle(n)),
              (Re = 3 < parseInt(n.height)),
              ie.removeChild(e)),
            Re
          );
        },
      })));
  var Ge = ["Webkit", "Moz", "ms"],
    Ye = S.createElement("div").style,
    Ze = {};
  function et(e) {
    return (
      H.cssProps[e] ||
      Ze[e] ||
      (e in Ye
        ? e
        : (Ze[e] =
            (function (e) {
              for (
                var t = e[0].toUpperCase() + e.slice(1), n = Ge.length;
                n--;
              )
                if ((e = Ge[n] + t) in Ye) return e;
            })(e) || e))
    );
  }
  var tt = /^(none|table(?!-c[ea]).+)/,
    nt = /^--/,
    it = { position: "absolute", visibility: "hidden", display: "block" },
    ot = { letterSpacing: "0", fontWeight: "400" };
  function rt(e, t, n) {
    var i = te.exec(t);
    return i ? Math.max(0, i[2] - (n || 0)) + (i[3] || "px") : t;
  }
  function st(e, t, n, i, o, r) {
    var s = "width" === t ? 1 : 0,
      a = 0,
      l = 0;
    if (n === (i ? "border" : "content")) return 0;
    for (; s < 4; s += 2)
      ("margin" === n && (l += H.css(e, n + ne[s], !0, o)),
        i
          ? ("content" === n && (l -= H.css(e, "padding" + ne[s], !0, o)),
            "margin" !== n &&
              (l -= H.css(e, "border" + ne[s] + "Width", !0, o)))
          : ((l += H.css(e, "padding" + ne[s], !0, o)),
            "padding" !== n
              ? (l += H.css(e, "border" + ne[s] + "Width", !0, o))
              : (a += H.css(e, "border" + ne[s] + "Width", !0, o))));
    return (
      !i &&
        0 <= r &&
        (l +=
          Math.max(
            0,
            Math.ceil(
              e["offset" + t[0].toUpperCase() + t.slice(1)] - r - l - a - 0.5,
            ),
          ) || 0),
      l
    );
  }
  function at(e, t, n) {
    var i = Be(e),
      o =
        (!y.boxSizingReliable() || n) &&
        "border-box" === H.css(e, "boxSizing", !1, i),
      r = o,
      s = Xe(e, t, i),
      a = "offset" + t[0].toUpperCase() + t.slice(1);
    if (Ve.test(s)) {
      if (!n) return s;
      s = "auto";
    }
    return (
      ((!y.boxSizingReliable() && o) ||
        (!y.reliableTrDimensions() && k(e, "tr")) ||
        "auto" === s ||
        (!parseFloat(s) && "inline" === H.css(e, "display", !1, i))) &&
        e.getClientRects().length &&
        ((o = "border-box" === H.css(e, "boxSizing", !1, i)),
        (r = a in e) && (s = e[a])),
      (s = parseFloat(s) || 0) +
        st(e, t, n || (o ? "border" : "content"), r, i, s) +
        "px"
    );
  }
  function lt(e, t, n, i, o) {
    return new lt.prototype.init(e, t, n, i, o);
  }
  (H.extend({
    cssHooks: {
      opacity: {
        get: function (e, t) {
          if (t) {
            e = Xe(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, i) {
      if (e && 3 !== e.nodeType && 8 !== e.nodeType && e.style) {
        var o,
          r,
          s,
          a = U(t),
          l = nt.test(t),
          c = e.style;
        if (
          (l || (t = et(a)), (s = H.cssHooks[t] || H.cssHooks[a]), void 0 === n)
        )
          return s && "get" in s && void 0 !== (o = s.get(e, !1, i)) ? o : c[t];
        ("string" == (r = typeof n) &&
          (o = te.exec(n)) &&
          o[1] &&
          ((n = ae(e, t, o)), (r = "number")),
          null != n &&
            n == n &&
            ("number" !== r ||
              l ||
              (n += (o && o[3]) || (H.cssNumber[a] ? "" : "px")),
            y.clearCloneStyle ||
              "" !== n ||
              0 !== t.indexOf("background") ||
              (c[t] = "inherit"),
            (s && "set" in s && void 0 === (n = s.set(e, n, i))) ||
              (l ? c.setProperty(t, n) : (c[t] = n))));
      }
    },
    css: function (e, t, n, i) {
      var o,
        r = U(t);
      return (
        nt.test(t) || (t = et(r)),
        "normal" ===
          (o =
            void 0 ===
            (o =
              (r = H.cssHooks[t] || H.cssHooks[r]) && "get" in r
                ? r.get(e, !0, n)
                : o)
              ? Xe(e, t, i)
              : o) &&
          t in ot &&
          (o = ot[t]),
        "" === n || n
          ? ((t = parseFloat(o)), !0 === n || isFinite(t) ? t || 0 : o)
          : o
      );
    },
  }),
    H.each(["height", "width"], function (e, a) {
      H.cssHooks[a] = {
        get: function (e, t, n) {
          if (t)
            return !tt.test(H.css(e, "display")) ||
              (e.getClientRects().length && e.getBoundingClientRect().width)
              ? at(e, a, n)
              : Ne(e, it, function () {
                  return at(e, a, n);
                });
        },
        set: function (e, t, n) {
          var i,
            o = Be(e),
            r = !y.scrollboxSize() && "absolute" === o.position,
            s = (r || n) && "border-box" === H.css(e, "boxSizing", !1, o),
            n = n ? st(e, a, n, s, o) : 0;
          return (
            s &&
              r &&
              (n -= Math.ceil(
                e["offset" + a[0].toUpperCase() + a.slice(1)] -
                  parseFloat(o[a]) -
                  st(e, a, "border", !1, o) -
                  0.5,
              )),
            n &&
              (i = te.exec(t)) &&
              "px" !== (i[3] || "px") &&
              ((e.style[a] = t), (t = H.css(e, a))),
            rt(0, t, n)
          );
        },
      };
    }),
    (H.cssHooks.marginLeft = Ke(y.reliableMarginLeft, function (e, t) {
      if (t)
        return (
          (parseFloat(Xe(e, "marginLeft")) ||
            e.getBoundingClientRect().left -
              Ne(e, { marginLeft: 0 }, function () {
                return e.getBoundingClientRect().left;
              })) + "px"
        );
    })),
    H.each({ margin: "", padding: "", border: "Width" }, function (o, r) {
      ((H.cssHooks[o + r] = {
        expand: function (e) {
          for (
            var t = 0, n = {}, i = "string" == typeof e ? e.split(" ") : [e];
            t < 4;
            t++
          )
            n[o + ne[t] + r] = i[t] || i[t - 2] || i[0];
          return n;
        },
      }),
        "margin" !== o && (H.cssHooks[o + r].set = rt));
    }),
    H.fn.extend({
      css: function (e, t) {
        return z(
          this,
          function (e, t, n) {
            var i,
              o,
              r = {},
              s = 0;
            if (Array.isArray(t)) {
              for (i = Be(e), o = t.length; s < o; s++)
                r[t[s]] = H.css(e, t[s], !1, i);
              return r;
            }
            return void 0 !== n ? H.style(e, t, n) : H.css(e, t);
          },
          e,
          t,
          1 < arguments.length,
        );
      },
    }),
    (((H.Tween = lt).prototype = {
      constructor: lt,
      init: function (e, t, n, i, o, r) {
        ((this.elem = e),
          (this.prop = n),
          (this.easing = o || H.easing._default),
          (this.options = t),
          (this.start = this.now = this.cur()),
          (this.end = i),
          (this.unit = r || (H.cssNumber[n] ? "" : "px")));
      },
      cur: function () {
        var e = lt.propHooks[this.prop];
        return (e && e.get ? e : lt.propHooks._default).get(this);
      },
      run: function (e) {
        var t,
          n = lt.propHooks[this.prop];
        return (
          this.options.duration
            ? (this.pos = t =
                H.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 : lt.propHooks._default).set(this),
          this
        );
      },
    }).init.prototype = lt.prototype),
    ((lt.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 = H.css(e.elem, e.prop, "")) && "auto" !== e
              ? e
              : 0;
        },
        set: function (e) {
          H.fx.step[e.prop]
            ? H.fx.step[e.prop](e)
            : 1 !== e.elem.nodeType ||
                (!H.cssHooks[e.prop] && null == e.elem.style[et(e.prop)])
              ? (e.elem[e.prop] = e.now)
              : H.style(e.elem, e.prop, e.now + e.unit);
        },
      },
    }).scrollTop = lt.propHooks.scrollLeft =
      {
        set: function (e) {
          e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now);
        },
      }),
    (H.easing = {
      linear: function (e) {
        return e;
      },
      swing: function (e) {
        return 0.5 - Math.cos(e * Math.PI) / 2;
      },
      _default: "swing",
    }),
    (H.fx = lt.prototype.init),
    (H.fx.step = {}));
  var ct,
    ut,
    dt = /^(?:toggle|show|hide)$/,
    pt = /queueHooks$/;
  function ht() {
    ut &&
      (!1 === S.hidden && P.requestAnimationFrame
        ? P.requestAnimationFrame(ht)
        : P.setTimeout(ht, H.fx.interval),
      H.fx.tick());
  }
  function ft() {
    return (
      P.setTimeout(function () {
        ct = void 0;
      }),
      (ct = Date.now())
    );
  }
  function mt(e, t) {
    var n,
      i = 0,
      o = { height: e };
    for (t = t ? 1 : 0; i < 4; i += 2 - t)
      o["margin" + (n = ne[i])] = o["padding" + n] = e;
    return (t && (o.opacity = o.width = e), o);
  }
  function gt(e, t, n) {
    for (
      var i,
        o = (vt.tweeners[t] || []).concat(vt.tweeners["*"]),
        r = 0,
        s = o.length;
      r < s;
      r++
    )
      if ((i = o[r].call(n, t, e))) return i;
  }
  function vt(o, e, t) {
    var n,
      r,
      i = 0,
      s = vt.prefilters.length,
      a = H.Deferred().always(function () {
        delete l.elem;
      }),
      l = function () {
        if (r) return !1;
        for (
          var e = ct || ft(),
            e = Math.max(0, c.startTime + c.duration - e),
            t = 1 - (e / c.duration || 0),
            n = 0,
            i = c.tweens.length;
          n < i;
          n++
        )
          c.tweens[n].run(t);
        return (
          a.notifyWith(o, [c, t, e]),
          t < 1 && i
            ? e
            : (i || a.notifyWith(o, [c, 1, 0]), a.resolveWith(o, [c]), !1)
        );
      },
      c = a.promise({
        elem: o,
        props: H.extend({}, e),
        opts: H.extend(!0, { specialEasing: {}, easing: H.easing._default }, t),
        originalProperties: e,
        originalOptions: t,
        startTime: ct || ft(),
        duration: t.duration,
        tweens: [],
        createTween: function (e, t) {
          e = H.Tween(
            o,
            c.opts,
            e,
            t,
            c.opts.specialEasing[e] || c.opts.easing,
          );
          return (c.tweens.push(e), e);
        },
        stop: function (e) {
          var t = 0,
            n = e ? c.tweens.length : 0;
          if (r) return this;
          for (r = !0; t < n; t++) c.tweens[t].run(1);
          return (
            e
              ? (a.notifyWith(o, [c, 1, 0]), a.resolveWith(o, [c, e]))
              : a.rejectWith(o, [c, e]),
            this
          );
        },
      }),
      u = c.props;
    for (
      (function (e, t) {
        var n, i, o, r, s;
        for (n in e)
          if (
            ((o = t[(i = U(n))]),
            (r = e[n]),
            Array.isArray(r) && ((o = r[1]), (r = e[n] = r[0])),
            n !== i && ((e[i] = r), delete e[n]),
            (s = H.cssHooks[i]) && ("expand" in s))
          )
            for (n in ((r = s.expand(r)), delete e[i], r))
              (n in e) || ((e[n] = r[n]), (t[n] = o));
          else t[i] = o;
      })(u, c.opts.specialEasing);
      i < s;
      i++
    )
      if ((n = vt.prefilters[i].call(c, o, u, c.opts)))
        return (
          m(n.stop) &&
            (H._queueHooks(c.elem, c.opts.queue).stop = n.stop.bind(n)),
          n
        );
    return (
      H.map(u, gt, c),
      m(c.opts.start) && c.opts.start.call(o, c),
      c
        .progress(c.opts.progress)
        .done(c.opts.done, c.opts.complete)
        .fail(c.opts.fail)
        .always(c.opts.always),
      H.fx.timer(H.extend(l, { elem: o, anim: c, queue: c.opts.queue })),
      c
    );
  }
  ((H.Animation = H.extend(vt, {
    tweeners: {
      "*": [
        function (e, t) {
          var n = this.createTween(e, t);
          return (ae(n.elem, e, te.exec(t), n), n);
        },
      ],
    },
    tweener: function (e, t) {
      for (
        var n, i = 0, o = (e = m(e) ? ((t = e), ["*"]) : e.match(B)).length;
        i < o;
        i++
      )
        ((n = e[i]),
          (vt.tweeners[n] = vt.tweeners[n] || []),
          vt.tweeners[n].unshift(t));
    },
    prefilters: [
      function (e, t, n) {
        var i,
          o,
          r,
          s,
          a,
          l,
          c,
          u = "width" in t || "height" in t,
          d = this,
          p = {},
          h = e.style,
          f = e.nodeType && se(e),
          m = _.get(e, "fxshow");
        for (i in (n.queue ||
          (null == (s = H._queueHooks(e, "fx")).unqueued &&
            ((s.unqueued = 0),
            (a = s.empty.fire),
            (s.empty.fire = function () {
              s.unqueued || a();
            })),
          s.unqueued++,
          d.always(function () {
            d.always(function () {
              (s.unqueued--, H.queue(e, "fx").length || s.empty.fire());
            });
          })),
        t))
          if (((o = t[i]), dt.test(o))) {
            if (
              (delete t[i],
              (r = r || "toggle" === o),
              o === (f ? "hide" : "show"))
            ) {
              if ("show" !== o || !m || void 0 === m[i]) continue;
              f = !0;
            }
            p[i] = (m && m[i]) || H.style(e, i);
          }
        if ((l = !H.isEmptyObject(t)) || !H.isEmptyObject(p))
          for (i in (u &&
            1 === e.nodeType &&
            ((n.overflow = [h.overflow, h.overflowX, h.overflowY]),
            null == (c = m && m.display) && (c = _.get(e, "display")),
            "none" === (u = H.css(e, "display")) &&
              (c
                ? (u = c)
                : (ce([e], !0),
                  (c = e.style.display || c),
                  (u = H.css(e, "display")),
                  ce([e]))),
            ("inline" === u || ("inline-block" === u && null != c)) &&
              "none" === H.css(e, "float") &&
              (l ||
                (d.done(function () {
                  h.display = c;
                }),
                null == c && ((u = h.display), (c = "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]));
            })),
          (l = !1),
          p))
            (l ||
              (m
                ? "hidden" in m && (f = m.hidden)
                : (m = _.access(e, "fxshow", { display: c })),
              r && (m.hidden = !f),
              f && ce([e], !0),
              d.done(function () {
                for (i in (f || ce([e]), _.remove(e, "fxshow"), p))
                  H.style(e, i, p[i]);
              })),
              (l = gt(f ? m[i] : 0, i, d)),
              i in m ||
                ((m[i] = l.start), f && ((l.end = l.start), (l.start = 0))));
      },
    ],
    prefilter: function (e, t) {
      t ? vt.prefilters.unshift(e) : vt.prefilters.push(e);
    },
  })),
    (H.speed = function (e, t, n) {
      var i =
        e && "object" == typeof e
          ? H.extend({}, e)
          : {
              complete: n || (!n && t) || (m(e) && e),
              duration: e,
              easing: (n && t) || (t && !m(t) && t),
            };
      return (
        H.fx.off
          ? (i.duration = 0)
          : "number" != typeof i.duration &&
            (i.duration in H.fx.speeds
              ? (i.duration = H.fx.speeds[i.duration])
              : (i.duration = H.fx.speeds._default)),
        (null != i.queue && !0 !== i.queue) || (i.queue = "fx"),
        (i.old = i.complete),
        (i.complete = function () {
          (m(i.old) && i.old.call(this), i.queue && H.dequeue(this, i.queue));
        }),
        i
      );
    }),
    H.fn.extend({
      fadeTo: function (e, t, n, i) {
        return this.filter(se)
          .css("opacity", 0)
          .show()
          .end()
          .animate({ opacity: t }, e, n, i);
      },
      animate: function (t, e, n, i) {
        function o() {
          var e = vt(this, H.extend({}, t), s);
          (r || _.get(this, "finish")) && e.stop(!0);
        }
        var r = H.isEmptyObject(t),
          s = H.speed(e, n, i);
        return (
          (o.finish = o),
          r || !1 === s.queue ? this.each(o) : this.queue(s.queue, o)
        );
      },
      stop: function (o, e, r) {
        function s(e) {
          var t = e.stop;
          (delete e.stop, t(r));
        }
        return (
          "string" != typeof o && ((r = e), (e = o), (o = void 0)),
          e && this.queue(o || "fx", []),
          this.each(function () {
            var e = !0,
              t = null != o && o + "queueHooks",
              n = H.timers,
              i = _.get(this);
            if (t) i[t] && i[t].stop && s(i[t]);
            else for (t in i) i[t] && i[t].stop && pt.test(t) && s(i[t]);
            for (t = n.length; t--; )
              n[t].elem !== this ||
                (null != o && n[t].queue !== o) ||
                (n[t].anim.stop(r), (e = !1), n.splice(t, 1));
            (!e && r) || H.dequeue(this, o);
          })
        );
      },
      finish: function (s) {
        return (
          !1 !== s && (s = s || "fx"),
          this.each(function () {
            var e,
              t = _.get(this),
              n = t[s + "queue"],
              i = t[s + "queueHooks"],
              o = H.timers,
              r = n ? n.length : 0;
            for (
              t.finish = !0,
                H.queue(this, s, []),
                i && i.stop && i.stop.call(this, !0),
                e = o.length;
              e--;
            )
              o[e].elem === this &&
                o[e].queue === s &&
                (o[e].anim.stop(!0), o.splice(e, 1));
            for (e = 0; e < r; e++)
              n[e] && n[e].finish && n[e].finish.call(this);
            delete t.finish;
          })
        );
      },
    }),
    H.each(["toggle", "show", "hide"], function (e, i) {
      var o = H.fn[i];
      H.fn[i] = function (e, t, n) {
        return null == e || "boolean" == typeof e
          ? o.apply(this, arguments)
          : this.animate(mt(i, !0), e, t, n);
      };
    }),
    H.each(
      {
        slideDown: mt("show"),
        slideUp: mt("hide"),
        slideToggle: mt("toggle"),
        fadeIn: { opacity: "show" },
        fadeOut: { opacity: "hide" },
        fadeToggle: { opacity: "toggle" },
      },
      function (e, i) {
        H.fn[e] = function (e, t, n) {
          return this.animate(i, e, t, n);
        };
      },
    ),
    (H.timers = []),
    (H.fx.tick = function () {
      var e,
        t = 0,
        n = H.timers;
      for (ct = Date.now(); t < n.length; t++)
        (e = n[t])() || n[t] !== e || n.splice(t--, 1);
      (n.length || H.fx.stop(), (ct = void 0));
    }),
    (H.fx.timer = function (e) {
      (H.timers.push(e), H.fx.start());
    }),
    (H.fx.interval = 13),
    (H.fx.start = function () {
      ut || ((ut = !0), ht());
    }),
    (H.fx.stop = function () {
      ut = null;
    }),
    (H.fx.speeds = { slow: 600, fast: 200, _default: 400 }),
    (H.fn.delay = function (i, e) {
      return (
        (i = (H.fx && H.fx.speeds[i]) || i),
        this.queue((e = e || "fx"), function (e, t) {
          var n = P.setTimeout(e, i);
          t.stop = function () {
            P.clearTimeout(n);
          };
        })
      );
    }),
    (d = S.createElement("input")),
    (ee = S.createElement("select").appendChild(S.createElement("option"))),
    (d.type = "checkbox"),
    (y.checkOn = "" !== d.value),
    (y.optSelected = ee.selected),
    ((d = S.createElement("input")).value = "t"),
    (d.type = "radio"),
    (y.radioValue = "t" === d.value));
  var bt,
    yt = H.expr.attrHandle;
  (H.fn.extend({
    attr: function (e, t) {
      return z(this, H.attr, e, t, 1 < arguments.length);
    },
    removeAttr: function (e) {
      return this.each(function () {
        H.removeAttr(this, e);
      });
    },
  }),
    H.extend({
      attr: function (e, t, n) {
        var i,
          o,
          r = e.nodeType;
        if (3 !== r && 8 !== r && 2 !== r)
          return void 0 === e.getAttribute
            ? H.prop(e, t, n)
            : ((1 === r && H.isXMLDoc(e)) ||
                (o =
                  H.attrHooks[t.toLowerCase()] ||
                  (H.expr.match.bool.test(t) ? bt : void 0)),
              void 0 !== n
                ? null === n
                  ? void H.removeAttr(e, t)
                  : o && "set" in o && void 0 !== (i = o.set(e, n, t))
                    ? i
                    : (e.setAttribute(t, n + ""), n)
                : !(o && "get" in o && null !== (i = o.get(e, t))) &&
                    null == (i = H.find.attr(e, t))
                  ? void 0
                  : i);
      },
      attrHooks: {
        type: {
          set: function (e, t) {
            if (!y.radioValue && "radio" === t && k(e, "input")) {
              var n = e.value;
              return (e.setAttribute("type", t), n && (e.value = n), t);
            }
          },
        },
      },
      removeAttr: function (e, t) {
        var n,
          i = 0,
          o = t && t.match(B);
        if (o && 1 === e.nodeType) for (; (n = o[i++]); ) e.removeAttribute(n);
      },
    }),
    (bt = {
      set: function (e, t, n) {
        return (!1 === t ? H.removeAttr(e, n) : e.setAttribute(n, n), n);
      },
    }),
    H.each(H.expr.match.bool.source.match(/\w+/g), function (e, t) {
      var s = yt[t] || H.find.attr;
      yt[t] = function (e, t, n) {
        var i,
          o,
          r = t.toLowerCase();
        return (
          n ||
            ((o = yt[r]),
            (yt[r] = i),
            (i = null != s(e, t, n) ? r : null),
            (yt[r] = o)),
          i
        );
      };
    }));
  var wt = /^(?:input|select|textarea|button)$/i,
    xt = /^(?:a|area)$/i;
  function Pt(e) {
    return (e.match(B) || []).join(" ");
  }
  function St(e) {
    return (e.getAttribute && e.getAttribute("class")) || "";
  }
  function Ht(e) {
    return Array.isArray(e) ? e : ("string" == typeof e && e.match(B)) || [];
  }
  (H.fn.extend({
    prop: function (e, t) {
      return z(this, H.prop, e, t, 1 < arguments.length);
    },
    removeProp: function (e) {
      return this.each(function () {
        delete this[H.propFix[e] || e];
      });
    },
  }),
    H.extend({
      prop: function (e, t, n) {
        var i,
          o,
          r = e.nodeType;
        if (3 !== r && 8 !== r && 2 !== r)
          return (
            (1 === r && H.isXMLDoc(e)) ||
              ((t = H.propFix[t] || t), (o = H.propHooks[t])),
            void 0 !== n
              ? o && "set" in o && void 0 !== (i = o.set(e, n, t))
                ? i
                : (e[t] = n)
              : o && "get" in o && null !== (i = o.get(e, t))
                ? i
                : e[t]
          );
      },
      propHooks: {
        tabIndex: {
          get: function (e) {
            var t = H.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 ||
      (H.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);
        },
      }),
    H.each(
      [
        "tabIndex",
        "readOnly",
        "maxLength",
        "cellSpacing",
        "cellPadding",
        "rowSpan",
        "colSpan",
        "useMap",
        "frameBorder",
        "contentEditable",
      ],
      function () {
        H.propFix[this.toLowerCase()] = this;
      },
    ),
    H.fn.extend({
      addClass: function (t) {
        var e,
          n,
          i,
          o,
          r,
          s,
          a = 0;
        if (m(t))
          return this.each(function (e) {
            H(this).addClass(t.call(this, e, St(this)));
          });
        if ((e = Ht(t)).length)
          for (; (n = this[a++]); )
            if (((s = St(n)), (i = 1 === n.nodeType && " " + Pt(s) + " "))) {
              for (r = 0; (o = e[r++]); )
                i.indexOf(" " + o + " ") < 0 && (i += o + " ");
              s !== (s = Pt(i)) && n.setAttribute("class", s);
            }
        return this;
      },
      removeClass: function (t) {
        var e,
          n,
          i,
          o,
          r,
          s,
          a = 0;
        if (m(t))
          return this.each(function (e) {
            H(this).removeClass(t.call(this, e, St(this)));
          });
        if (!arguments.length) return this.attr("class", "");
        if ((e = Ht(t)).length)
          for (; (n = this[a++]); )
            if (((s = St(n)), (i = 1 === n.nodeType && " " + Pt(s) + " "))) {
              for (r = 0; (o = e[r++]); )
                for (; -1 < i.indexOf(" " + o + " "); )
                  i = i.replace(" " + o + " ", " ");
              s !== (s = Pt(i)) && n.setAttribute("class", s);
            }
        return this;
      },
      toggleClass: function (o, t) {
        var r = typeof o,
          s = "string" == r || Array.isArray(o);
        return "boolean" == typeof t && s
          ? t
            ? this.addClass(o)
            : this.removeClass(o)
          : m(o)
            ? this.each(function (e) {
                H(this).toggleClass(o.call(this, e, St(this), t), t);
              })
            : this.each(function () {
                var e, t, n, i;
                if (s)
                  for (t = 0, n = H(this), i = Ht(o); (e = i[t++]); )
                    n.hasClass(e) ? n.removeClass(e) : n.addClass(e);
                else
                  (void 0 !== o && "boolean" != r) ||
                    ((e = St(this)) && _.set(this, "__className__", e),
                    this.setAttribute &&
                      this.setAttribute(
                        "class",
                        (!e && !1 !== o && _.get(this, "__className__")) || "",
                      ));
              });
      },
      hasClass: function (e) {
        for (var t, n = 0, i = " " + e + " "; (t = this[n++]); )
          if (1 === t.nodeType && -1 < (" " + Pt(St(t)) + " ").indexOf(i))
            return !0;
        return !1;
      },
    }));
  var Ct = /\r/g;
  (H.fn.extend({
    val: function (t) {
      var n,
        e,
        i,
        o = this[0];
      return arguments.length
        ? ((i = m(t)),
          this.each(function (e) {
            1 === this.nodeType &&
              (null == (e = i ? t.call(this, e, H(this).val()) : t)
                ? (e = "")
                : "number" == typeof e
                  ? (e += "")
                  : Array.isArray(e) &&
                    (e = H.map(e, function (e) {
                      return null == e ? "" : e + "";
                    })),
              ((n =
                H.valHooks[this.type] ||
                H.valHooks[this.nodeName.toLowerCase()]) &&
                "set" in n &&
                void 0 !== n.set(this, e, "value")) ||
                (this.value = e));
          }))
        : o
          ? (n = H.valHooks[o.type] || H.valHooks[o.nodeName.toLowerCase()]) &&
            "get" in n &&
            void 0 !== (e = n.get(o, "value"))
            ? e
            : "string" == typeof (e = o.value)
              ? e.replace(Ct, "")
              : null == e
                ? ""
                : e
          : void 0;
    },
  }),
    H.extend({
      valHooks: {
        option: {
          get: function (e) {
            var t = H.find.attr(e, "value");
            return null != t ? t : Pt(H.text(e));
          },
        },
        select: {
          get: function (e) {
            for (
              var t,
                n = e.options,
                i = e.selectedIndex,
                o = "select-one" === e.type,
                r = o ? null : [],
                s = o ? i + 1 : n.length,
                a = i < 0 ? s : o ? i : 0;
              a < s;
              a++
            )
              if (
                ((t = n[a]).selected || a === i) &&
                !t.disabled &&
                (!t.parentNode.disabled || !k(t.parentNode, "optgroup"))
              ) {
                if (((t = H(t).val()), o)) return t;
                r.push(t);
              }
            return r;
          },
          set: function (e, t) {
            for (
              var n, i, o = e.options, r = H.makeArray(t), s = o.length;
              s--;
            )
              ((i = o[s]).selected =
                -1 < H.inArray(H.valHooks.option.get(i), r)) && (n = !0);
            return (n || (e.selectedIndex = -1), r);
          },
        },
      },
    }),
    H.each(["radio", "checkbox"], function () {
      ((H.valHooks[this] = {
        set: function (e, t) {
          if (Array.isArray(t))
            return (e.checked = -1 < H.inArray(H(e).val(), t));
        },
      }),
        y.checkOn ||
          (H.valHooks[this].get = function (e) {
            return null === e.getAttribute("value") ? "on" : e.value;
          }));
    }),
    (y.focusin = "onfocusin" in P));
  function Tt(e) {
    e.stopPropagation();
  }
  var kt = /^(?:focusinfocus|focusoutblur)$/;
  (H.extend(H.event, {
    trigger: function (e, t, n, i) {
      var o,
        r,
        s,
        a,
        l,
        c,
        u,
        d = [n || S],
        p = b.call(e, "type") ? e.type : e,
        h = b.call(e, "namespace") ? e.namespace.split(".") : [],
        f = (u = r = n = n || S);
      if (
        3 !== n.nodeType &&
        8 !== n.nodeType &&
        !kt.test(p + H.event.triggered) &&
        (-1 < p.indexOf(".") && ((p = (h = p.split(".")).shift()), h.sort()),
        (a = p.indexOf(":") < 0 && "on" + p),
        ((e = e[H.expando]
          ? e
          : new H.Event(p, "object" == typeof e && e)).isTrigger = i ? 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] : H.makeArray(t, [e])),
        (c = H.event.special[p] || {}),
        i || !c.trigger || !1 !== c.trigger.apply(n, t))
      ) {
        if (!i && !c.noBubble && !g(n)) {
          for (
            s = c.delegateType || p, kt.test(s + p) || (f = f.parentNode);
            f;
            f = f.parentNode
          )
            (d.push(f), (r = f));
          r === (n.ownerDocument || S) &&
            d.push(r.defaultView || r.parentWindow || P);
        }
        for (o = 0; (f = d[o++]) && !e.isPropagationStopped(); )
          ((u = f),
            (e.type = 1 < o ? s : c.bindType || p),
            (l =
              (_.get(f, "events") || Object.create(null))[e.type] &&
              _.get(f, "handle")) && l.apply(f, t),
            (l = a && f[a]) &&
              l.apply &&
              X(f) &&
              ((e.result = l.apply(f, t)),
              !1 === e.result && e.preventDefault()));
        return (
          (e.type = p),
          i ||
            e.isDefaultPrevented() ||
            (c._default && !1 !== c._default.apply(d.pop(), t)) ||
            !X(n) ||
            (a &&
              m(n[p]) &&
              !g(n) &&
              ((r = n[a]) && (n[a] = null),
              (H.event.triggered = p),
              e.isPropagationStopped() && u.addEventListener(p, Tt),
              n[p](),
              e.isPropagationStopped() && u.removeEventListener(p, Tt),
              (H.event.triggered = void 0),
              r && (n[a] = r))),
          e.result
        );
      }
    },
    simulate: function (e, t, n) {
      e = H.extend(new H.Event(), n, { type: e, isSimulated: !0 });
      H.event.trigger(e, null, t);
    },
  }),
    H.fn.extend({
      trigger: function (e, t) {
        return this.each(function () {
          H.event.trigger(e, t, this);
        });
      },
      triggerHandler: function (e, t) {
        var n = this[0];
        if (n) return H.event.trigger(e, t, n, !0);
      },
    }),
    y.focusin ||
      H.each({ focus: "focusin", blur: "focusout" }, function (n, i) {
        function o(e) {
          H.event.simulate(i, e.target, H.event.fix(e));
        }
        H.event.special[i] = {
          setup: function () {
            var e = this.ownerDocument || this.document || this,
              t = _.access(e, i);
            (t || e.addEventListener(n, o, !0), _.access(e, i, (t || 0) + 1));
          },
          teardown: function () {
            var e = this.ownerDocument || this.document || this,
              t = _.access(e, i) - 1;
            t
              ? _.access(e, i, t)
              : (e.removeEventListener(n, o, !0), _.remove(e, i));
          },
        };
      }));
  var Et = P.location,
    It = { guid: Date.now() },
    $t = /\?/;
  H.parseXML = function (e) {
    var t;
    if (!e || "string" != typeof e) return null;
    try {
      t = new P.DOMParser().parseFromString(e, "text/xml");
    } catch (e) {
      t = void 0;
    }
    return (
      (t && !t.getElementsByTagName("parsererror").length) ||
        H.error("Invalid XML: " + e),
      t
    );
  };
  var At = /\[\]$/,
    Dt = /\r?\n/g,
    jt = /^(?:submit|button|image|reset|file)$/i,
    Lt = /^(?:input|select|textarea|keygen)/i;
  ((H.param = function (e, t) {
    function n(e, t) {
      ((t = m(t) ? t() : t),
        (o[o.length] =
          encodeURIComponent(e) +
          "=" +
          encodeURIComponent(null == t ? "" : t)));
    }
    var i,
      o = [];
    if (null == e) return "";
    if (Array.isArray(e) || (e.jquery && !H.isPlainObject(e)))
      H.each(e, function () {
        n(this.name, this.value);
      });
    else
      for (i in e)
        !(function n(i, e, o, r) {
          if (Array.isArray(e))
            H.each(e, function (e, t) {
              o || At.test(i)
                ? r(i, t)
                : n(
                    i +
                      "[" +
                      ("object" == typeof t && null != t ? e : "") +
                      "]",
                    t,
                    o,
                    r,
                  );
            });
          else if (o || "object" !== f(e)) r(i, e);
          else for (var t in e) n(i + "[" + t + "]", e[t], o, r);
        })(i, e[i], t, n);
    return o.join("&");
  }),
    H.fn.extend({
      serialize: function () {
        return H.param(this.serializeArray());
      },
      serializeArray: function () {
        return this.map(function () {
          var e = H.prop(this, "elements");
          return e ? H.makeArray(e) : this;
        })
          .filter(function () {
            var e = this.type;
            return (
              this.name &&
              !H(this).is(":disabled") &&
              Lt.test(this.nodeName) &&
              !jt.test(e) &&
              (this.checked || !ue.test(e))
            );
          })
          .map(function (e, t) {
            var n = H(this).val();
            return null == n
              ? null
              : Array.isArray(n)
                ? H.map(n, function (e) {
                    return { name: t.name, value: e.replace(Dt, "\r\n") };
                  })
                : { name: t.name, value: n.replace(Dt, "\r\n") };
          })
          .get();
      },
    }));
  var Bt = /%20/g,
    Nt = /#.*$/,
    Ot = /([?&])_=[^&]*/,
    Mt = /^(.*?):[ \t]*([^\r\n]*)$/gm,
    qt = /^(?:GET|HEAD)$/,
    Ft = /^\/\//,
    Rt = {},
    zt = {},
    Wt = "*/".concat("*"),
    Qt = S.createElement("a");
  function Vt(r) {
    return function (e, t) {
      "string" != typeof e && ((t = e), (e = "*"));
      var n,
        i = 0,
        o = e.toLowerCase().match(B) || [];
      if (m(t))
        for (; (n = o[i++]); )
          "+" === n[0]
            ? ((n = n.slice(1) || "*"), (r[n] = r[n] || []).unshift(t))
            : (r[n] = r[n] || []).push(t);
    };
  }
  function Ut(t, i, o, r) {
    var s = {},
      a = t === zt;
    function l(e) {
      var n;
      return (
        (s[e] = !0),
        H.each(t[e] || [], function (e, t) {
          t = t(i, o, r);
          return "string" != typeof t || a || s[t]
            ? a
              ? !(n = t)
              : void 0
            : (i.dataTypes.unshift(t), l(t), !1);
        }),
        n
      );
    }
    return l(i.dataTypes[0]) || (!s["*"] && l("*"));
  }
  function Xt(e, t) {
    var n,
      i,
      o = H.ajaxSettings.flatOptions || {};
    for (n in t) void 0 !== t[n] && ((o[n] ? e : (i = i || {}))[n] = t[n]);
    return (i && H.extend(!0, e, i), e);
  }
  ((Qt.href = Et.href),
    H.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": H.parseXML,
        },
        flatOptions: { url: !0, context: !0 },
      },
      ajaxSetup: function (e, t) {
        return t ? Xt(Xt(e, H.ajaxSettings), t) : Xt(H.ajaxSettings, e);
      },
      ajaxPrefilter: Vt(Rt),
      ajaxTransport: Vt(zt),
      ajax: function (e, t) {
        "object" == typeof e && ((t = e), (e = void 0));
        var l,
          c,
          u,
          n,
          d,
          p,
          h,
          i,
          o,
          f = H.ajaxSetup({}, (t = t || {})),
          m = f.context || f,
          g = f.context && (m.nodeType || m.jquery) ? H(m) : H.event,
          v = H.Deferred(),
          b = H.Callbacks("once memory"),
          y = f.statusCode || {},
          r = {},
          s = {},
          a = "canceled",
          w = {
            readyState: 0,
            getResponseHeader: function (e) {
              var t;
              if (p) {
                if (!n)
                  for (n = {}; (t = Mt.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 = s[e.toLowerCase()] = s[e.toLowerCase()] || e),
                  (r[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 || a;
              return (l && l.abort(e), x(0, e), this);
            },
          };
        if (
          (v.promise(w),
          (f.url = ((e || f.url || Et.href) + "").replace(
            Ft,
            Et.protocol + "//",
          )),
          (f.type = t.method || t.type || f.method || f.type),
          (f.dataTypes = (f.dataType || "*").toLowerCase().match(B) || [""]),
          null == f.crossDomain)
        ) {
          o = S.createElement("a");
          try {
            ((o.href = f.url),
              (o.href = o.href),
              (f.crossDomain =
                Qt.protocol + "//" + Qt.host != o.protocol + "//" + o.host));
          } catch (e) {
            f.crossDomain = !0;
          }
        }
        if (
          (f.data &&
            f.processData &&
            "string" != typeof f.data &&
            (f.data = H.param(f.data, f.traditional)),
          Ut(Rt, f, t, w),
          p)
        )
          return w;
        for (i in ((h = H.event && f.global) &&
          0 == H.active++ &&
          H.event.trigger("ajaxStart"),
        (f.type = f.type.toUpperCase()),
        (f.hasContent = !qt.test(f.type)),
        (c = f.url.replace(Nt, "")),
        f.hasContent
          ? f.data &&
            f.processData &&
            0 ===
              (f.contentType || "").indexOf(
                "application/x-www-form-urlencoded",
              ) &&
            (f.data = f.data.replace(Bt, "+"))
          : ((o = f.url.slice(c.length)),
            f.data &&
              (f.processData || "string" == typeof f.data) &&
              ((c += ($t.test(c) ? "&" : "?") + f.data), delete f.data),
            !1 === f.cache &&
              ((c = c.replace(Ot, "$1")),
              (o = ($t.test(c) ? "&" : "?") + "_=" + It.guid++ + o)),
            (f.url = c + o)),
        f.ifModified &&
          (H.lastModified[c] &&
            w.setRequestHeader("If-Modified-Since", H.lastModified[c]),
          H.etag[c] && w.setRequestHeader("If-None-Match", H.etag[c])),
        ((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(i, f.headers[i]);
        if (f.beforeSend && (!1 === f.beforeSend.call(m, w, f) || p))
          return w.abort();
        if (
          ((a = "abort"),
          b.add(f.complete),
          w.done(f.success),
          w.fail(f.error),
          (l = Ut(zt, f, t, w)))
        ) {
          if (((w.readyState = 1), h && g.trigger("ajaxSend", [w, f]), p))
            return w;
          f.async &&
            0 < f.timeout &&
            (d = P.setTimeout(function () {
              w.abort("timeout");
            }, f.timeout));
          try {
            ((p = !1), l.send(r, x));
          } catch (e) {
            if (p) throw e;
            x(-1, e);
          }
        } else x(-1, "No Transport");
        function x(e, t, n, i) {
          var o,
            r,
            s,
            a = t;
          p ||
            ((p = !0),
            d && P.clearTimeout(d),
            (l = void 0),
            (u = i || ""),
            (w.readyState = 0 < e ? 4 : 0),
            (i = (200 <= e && e < 300) || 304 === e),
            n &&
              (s = (function (e, t, n) {
                for (
                  var i, o, r, s, a = e.contents, l = e.dataTypes;
                  "*" === l[0];
                )
                  (l.shift(),
                    void 0 === i &&
                      (i = e.mimeType || t.getResponseHeader("Content-Type")));
                if (i)
                  for (o in a)
                    if (a[o] && a[o].test(i)) {
                      l.unshift(o);
                      break;
                    }
                if (l[0] in n) r = l[0];
                else {
                  for (o in n) {
                    if (!l[0] || e.converters[o + " " + l[0]]) {
                      r = o;
                      break;
                    }
                    s = s || o;
                  }
                  r = r || s;
                }
                if (r) return (r !== l[0] && l.unshift(r), n[r]);
              })(f, w, n)),
            !i &&
              -1 < H.inArray("script", f.dataTypes) &&
              (f.converters["text script"] = function () {}),
            (s = (function (e, t, n, i) {
              var o,
                r,
                s,
                a,
                l,
                c = {},
                u = e.dataTypes.slice();
              if (u[1])
                for (s in e.converters) c[s.toLowerCase()] = e.converters[s];
              for (r = u.shift(); r; )
                if (
                  (e.responseFields[r] && (n[e.responseFields[r]] = t),
                  !l && i && e.dataFilter && (t = e.dataFilter(t, e.dataType)),
                  (l = r),
                  (r = u.shift()))
                )
                  if ("*" === r) r = l;
                  else if ("*" !== l && l !== r) {
                    if (!(s = c[l + " " + r] || c["* " + r]))
                      for (o in c)
                        if (
                          (a = o.split(" "))[1] === r &&
                          (s = c[l + " " + a[0]] || c["* " + a[0]])
                        ) {
                          !0 === s
                            ? (s = c[o])
                            : !0 !== c[o] && ((r = a[0]), u.unshift(a[1]));
                          break;
                        }
                    if (!0 !== s)
                      if (s && e.throws) t = s(t);
                      else
                        try {
                          t = s(t);
                        } catch (e) {
                          return {
                            state: "parsererror",
                            error: s
                              ? e
                              : "No conversion from " + l + " to " + r,
                          };
                        }
                  }
              return { state: "success", data: t };
            })(f, s, w, i)),
            i
              ? (f.ifModified &&
                  ((n = w.getResponseHeader("Last-Modified")) &&
                    (H.lastModified[c] = n),
                  (n = w.getResponseHeader("etag")) && (H.etag[c] = n)),
                204 === e || "HEAD" === f.type
                  ? (a = "nocontent")
                  : 304 === e
                    ? (a = "notmodified")
                    : ((a = s.state), (o = s.data), (i = !(r = s.error))))
              : ((r = a), (!e && a) || ((a = "error"), e < 0 && (e = 0))),
            (w.status = e),
            (w.statusText = (t || a) + ""),
            i ? v.resolveWith(m, [o, a, w]) : v.rejectWith(m, [w, a, r]),
            w.statusCode(y),
            (y = void 0),
            h && g.trigger(i ? "ajaxSuccess" : "ajaxError", [w, f, i ? o : r]),
            b.fireWith(m, [w, a]),
            h &&
              (g.trigger("ajaxComplete", [w, f]),
              --H.active || H.event.trigger("ajaxStop")));
        }
        return w;
      },
      getJSON: function (e, t, n) {
        return H.get(e, t, n, "json");
      },
      getScript: function (e, t) {
        return H.get(e, void 0, t, "script");
      },
    }),
    H.each(["get", "post"], function (e, o) {
      H[o] = function (e, t, n, i) {
        return (
          m(t) && ((i = i || n), (n = t), (t = void 0)),
          H.ajax(
            H.extend(
              { url: e, type: o, dataType: i, data: t, success: n },
              H.isPlainObject(e) && e,
            ),
          )
        );
      };
    }),
    H.ajaxPrefilter(function (e) {
      for (var t in e.headers)
        "content-type" === t.toLowerCase() &&
          (e.contentType = e.headers[t] || "");
    }),
    (H._evalUrl = function (e, t, n) {
      return H.ajax({
        url: e,
        type: "GET",
        dataType: "script",
        cache: !0,
        async: !1,
        global: !1,
        converters: { "text script": function () {} },
        dataFilter: function (e) {
          H.globalEval(e, t, n);
        },
      });
    }),
    H.fn.extend({
      wrapAll: function (e) {
        return (
          this[0] &&
            (m(e) && (e = e.call(this[0])),
            (e = H(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 m(n)
          ? this.each(function (e) {
              H(this).wrapInner(n.call(this, e));
            })
          : this.each(function () {
              var e = H(this),
                t = e.contents();
              t.length ? t.wrapAll(n) : e.append(n);
            });
      },
      wrap: function (t) {
        var n = m(t);
        return this.each(function (e) {
          H(this).wrapAll(n ? t.call(this, e) : t);
        });
      },
      unwrap: function (e) {
        return (
          this.parent(e)
            .not("body")
            .each(function () {
              H(this).replaceWith(this.childNodes);
            }),
          this
        );
      },
    }),
    (H.expr.pseudos.hidden = function (e) {
      return !H.expr.pseudos.visible(e);
    }),
    (H.expr.pseudos.visible = function (e) {
      return !!(e.offsetWidth || e.offsetHeight || e.getClientRects().length);
    }),
    (H.ajaxSettings.xhr = function () {
      try {
        return new P.XMLHttpRequest();
      } catch (e) {}
    }));
  var Kt = { 0: 200, 1223: 204 },
    _t = H.ajaxSettings.xhr();
  ((y.cors = !!_t && "withCredentials" in _t),
    (y.ajax = _t = !!_t),
    H.ajaxTransport(function (o) {
      var r, s;
      if (y.cors || (_t && !o.crossDomain))
        return {
          send: function (e, t) {
            var n,
              i = o.xhr();
            if (
              (i.open(o.type, o.url, o.async, o.username, o.password),
              o.xhrFields)
            )
              for (n in o.xhrFields) i[n] = o.xhrFields[n];
            for (n in (o.mimeType &&
              i.overrideMimeType &&
              i.overrideMimeType(o.mimeType),
            o.crossDomain ||
              e["X-Requested-With"] ||
              (e["X-Requested-With"] = "XMLHttpRequest"),
            e))
              i.setRequestHeader(n, e[n]);
            ((r = function (e) {
              return function () {
                r &&
                  ((r =
                    s =
                    i.onload =
                    i.onerror =
                    i.onabort =
                    i.ontimeout =
                    i.onreadystatechange =
                      null),
                  "abort" === e
                    ? i.abort()
                    : "error" === e
                      ? "number" != typeof i.status
                        ? t(0, "error")
                        : t(i.status, i.statusText)
                      : t(
                          Kt[i.status] || i.status,
                          i.statusText,
                          "text" !== (i.responseType || "text") ||
                            "string" != typeof i.responseText
                            ? { binary: i.response }
                            : { text: i.responseText },
                          i.getAllResponseHeaders(),
                        ));
              };
            }),
              (i.onload = r()),
              (s = i.onerror = i.ontimeout = r("error")),
              void 0 !== i.onabort
                ? (i.onabort = s)
                : (i.onreadystatechange = function () {
                    4 === i.readyState &&
                      P.setTimeout(function () {
                        r && s();
                      });
                  }),
              (r = r("abort")));
            try {
              i.send((o.hasContent && o.data) || null);
            } catch (e) {
              if (r) throw e;
            }
          },
          abort: function () {
            r && r();
          },
        };
    }),
    H.ajaxPrefilter(function (e) {
      e.crossDomain && (e.contents.script = !1);
    }),
    H.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 (H.globalEval(e), e);
        },
      },
    }),
    H.ajaxPrefilter("script", function (e) {
      (void 0 === e.cache && (e.cache = !1), e.crossDomain && (e.type = "GET"));
    }),
    H.ajaxTransport("script", function (n) {
      var i, o;
      if (n.crossDomain || n.scriptAttrs)
        return {
          send: function (e, t) {
            ((i = H("<script>")
              .attr(n.scriptAttrs || {})
              .prop({ charset: n.scriptCharset, src: n.url })
              .on(
                "load error",
                (o = function (e) {
                  (i.remove(),
                    (o = null),
                    e && t("error" === e.type ? 404 : 200, e.type));
                }),
              )),
              S.head.appendChild(i[0]));
          },
          abort: function () {
            o && o();
          },
        };
    }));
  var Jt = [],
    Gt = /(=)\?(?=&|$)|\?\?/;
  (H.ajaxSetup({
    jsonp: "callback",
    jsonpCallback: function () {
      var e = Jt.pop() || H.expando + "_" + It.guid++;
      return ((this[e] = !0), e);
    },
  }),
    H.ajaxPrefilter("json jsonp", function (e, t, n) {
      var i,
        o,
        r,
        s =
          !1 !== e.jsonp &&
          (Gt.test(e.url)
            ? "url"
            : "string" == typeof e.data &&
              0 ===
                (e.contentType || "").indexOf(
                  "application/x-www-form-urlencoded",
                ) &&
              Gt.test(e.data) &&
              "data");
      if (s || "jsonp" === e.dataTypes[0])
        return (
          (i = e.jsonpCallback =
            m(e.jsonpCallback) ? e.jsonpCallback() : e.jsonpCallback),
          s
            ? (e[s] = e[s].replace(Gt, "$1" + i))
            : !1 !== e.jsonp &&
              (e.url += ($t.test(e.url) ? "&" : "?") + e.jsonp + "=" + i),
          (e.converters["script json"] = function () {
            return (r || H.error(i + " was not called"), r[0]);
          }),
          (e.dataTypes[0] = "json"),
          (o = P[i]),
          (P[i] = function () {
            r = arguments;
          }),
          n.always(function () {
            (void 0 === o ? H(P).removeProp(i) : (P[i] = o),
              e[i] && ((e.jsonpCallback = t.jsonpCallback), Jt.push(i)),
              r && m(o) && o(r[0]),
              (r = o = void 0));
          }),
          "script"
        );
    }),
    (y.createHTMLDocument =
      (((d = S.implementation.createHTMLDocument("").body).innerHTML =
        "<form></form><form></form>"),
      2 === d.childNodes.length)),
    (H.parseHTML = function (e, t, n) {
      return "string" != typeof e
        ? []
        : ("boolean" == typeof t && ((n = t), (t = !1)),
          t ||
            (y.createHTMLDocument
              ? (((i = (t =
                  S.implementation.createHTMLDocument("")).createElement(
                  "base",
                )).href = S.location.href),
                t.head.appendChild(i))
              : (t = S)),
          (i = !n && []),
          (n = E.exec(e))
            ? [t.createElement(n[1])]
            : ((n = ve([e], t, i)),
              i && i.length && H(i).remove(),
              H.merge([], n.childNodes)));
      var i;
    }),
    (H.fn.load = function (e, t, n) {
      var i,
        o,
        r,
        s = this,
        a = e.indexOf(" ");
      return (
        -1 < a && ((i = Pt(e.slice(a))), (e = e.slice(0, a))),
        m(t)
          ? ((n = t), (t = void 0))
          : t && "object" == typeof t && (o = "POST"),
        0 < s.length &&
          H.ajax({ url: e, type: o || "GET", dataType: "html", data: t })
            .done(function (e) {
              ((r = arguments),
                s.html(i ? H("<div>").append(H.parseHTML(e)).find(i) : e));
            })
            .always(
              n &&
                function (e, t) {
                  s.each(function () {
                    n.apply(this, r || [e.responseText, t, e]);
                  });
                },
            ),
        this
      );
    }),
    (H.expr.pseudos.animated = function (t) {
      return H.grep(H.timers, function (e) {
        return t === e.elem;
      }).length;
    }),
    (H.offset = {
      setOffset: function (e, t, n) {
        var i,
          o,
          r,
          s,
          a = H.css(e, "position"),
          l = H(e),
          c = {};
        ("static" === a && (e.style.position = "relative"),
          (r = l.offset()),
          (i = H.css(e, "top")),
          (s = H.css(e, "left")),
          (s =
            ("absolute" === a || "fixed" === a) && -1 < (i + s).indexOf("auto")
              ? ((o = (a = l.position()).top), a.left)
              : ((o = parseFloat(i) || 0), parseFloat(s) || 0)),
          null != (t = m(t) ? t.call(e, n, H.extend({}, r)) : t).top &&
            (c.top = t.top - r.top + o),
          null != t.left && (c.left = t.left - r.left + s),
          "using" in t
            ? t.using.call(e, c)
            : ("number" == typeof c.top && (c.top += "px"),
              "number" == typeof c.left && (c.left += "px"),
              l.css(c)));
      },
    }),
    H.fn.extend({
      offset: function (t) {
        if (arguments.length)
          return void 0 === t
            ? this
            : this.each(function (e) {
                H.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,
            i = this[0],
            o = { top: 0, left: 0 };
          if ("fixed" === H.css(i, "position")) t = i.getBoundingClientRect();
          else {
            for (
              t = this.offset(),
                n = i.ownerDocument,
                e = i.offsetParent || n.documentElement;
              e &&
              (e === n.body || e === n.documentElement) &&
              "static" === H.css(e, "position");
            )
              e = e.parentNode;
            e &&
              e !== i &&
              1 === e.nodeType &&
              (((o = H(e).offset()).top += H.css(e, "borderTopWidth", !0)),
              (o.left += H.css(e, "borderLeftWidth", !0)));
          }
          return {
            top: t.top - o.top - H.css(i, "marginTop", !0),
            left: t.left - o.left - H.css(i, "marginLeft", !0),
          };
        }
      },
      offsetParent: function () {
        return this.map(function () {
          for (
            var e = this.offsetParent;
            e && "static" === H.css(e, "position");
          )
            e = e.offsetParent;
          return e || ie;
        });
      },
    }),
    H.each(
      { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" },
      function (t, o) {
        var r = "pageYOffset" === o;
        H.fn[t] = function (e) {
          return z(
            this,
            function (e, t, n) {
              var i;
              return (
                g(e) ? (i = e) : 9 === e.nodeType && (i = e.defaultView),
                void 0 === n
                  ? i
                    ? i[o]
                    : e[t]
                  : void (i
                      ? i.scrollTo(r ? i.pageXOffset : n, r ? n : i.pageYOffset)
                      : (e[t] = n))
              );
            },
            t,
            e,
            arguments.length,
          );
        };
      },
    ),
    H.each(["top", "left"], function (e, n) {
      H.cssHooks[n] = Ke(y.pixelPosition, function (e, t) {
        if (t)
          return ((t = Xe(e, n)), Ve.test(t) ? H(e).position()[n] + "px" : t);
      });
    }),
    H.each({ Height: "height", Width: "width" }, function (s, a) {
      H.each(
        { padding: "inner" + s, content: a, "": "outer" + s },
        function (i, r) {
          H.fn[r] = function (e, t) {
            var n = arguments.length && (i || "boolean" != typeof e),
              o = i || (!0 === e || !0 === t ? "margin" : "border");
            return z(
              this,
              function (e, t, n) {
                var i;
                return g(e)
                  ? 0 === r.indexOf("outer")
                    ? e["inner" + s]
                    : e.document.documentElement["client" + s]
                  : 9 === e.nodeType
                    ? ((i = e.documentElement),
                      Math.max(
                        e.body["scroll" + s],
                        i["scroll" + s],
                        e.body["offset" + s],
                        i["offset" + s],
                        i["client" + s],
                      ))
                    : void 0 === n
                      ? H.css(e, t, o)
                      : H.style(e, t, n, o);
              },
              a,
              n ? e : void 0,
              n,
            );
          };
        },
      );
    }),
    H.each(
      [
        "ajaxStart",
        "ajaxStop",
        "ajaxComplete",
        "ajaxError",
        "ajaxSuccess",
        "ajaxSend",
      ],
      function (e, t) {
        H.fn[t] = function (e) {
          return this.on(t, e);
        };
      },
    ),
    H.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, i) {
        return this.on(t, e, n, i);
      },
      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);
      },
    }),
    H.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) {
        H.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;
  ((H.proxy = function (e, t) {
    var n, i;
    if (("string" == typeof t && ((i = e[t]), (t = e), (e = i)), m(e)))
      return (
        (n = a.call(arguments, 2)),
        ((i = function () {
          return e.apply(t || this, n.concat(a.call(arguments)));
        }).guid = e.guid =
          e.guid || H.guid++),
        i
      );
  }),
    (H.holdReady = function (e) {
      e ? H.readyWait++ : H.ready(!0);
    }),
    (H.isArray = Array.isArray),
    (H.parseJSON = JSON.parse),
    (H.nodeName = k),
    (H.isFunction = m),
    (H.isWindow = g),
    (H.camelCase = U),
    (H.type = f),
    (H.now = Date.now),
    (H.isNumeric = function (e) {
      var t = H.type(e);
      return ("number" === t || "string" === t) && !isNaN(e - parseFloat(e));
    }),
    (H.trim = function (e) {
      return null == e ? "" : (e + "").replace(Yt, "");
    }),
    "function" == typeof define &&
      define.amd &&
      define("jquery", [], function () {
        return H;
      }));
  var Zt = P.jQuery,
    en = P.$;
  return (
    (H.noConflict = function (e) {
      return (
        P.$ === H && (P.$ = en),
        e && P.jQuery === H && (P.jQuery = Zt),
        H
      );
    }),
    void 0 === e && (P.jQuery = P.$ = H),
    H
  );
});
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),
          o = t.data("content-id"),
          r = H5PIntegration.contents["cid-" + o];
        if (void 0 === r)
          return H5P.error(
            "No data for content id " + o + ". Perhaps the library is gone?",
          );
        var s = {
          library: r.library,
          params: JSON.parse(r.jsonContent),
          metadata: r.metadata,
        };
        H5P.getUserData(o, "state", function (e, t) {
          var i;
          t
            ? (s.userDatas = { state: t })
            : null === t &&
              H5PIntegration.saveFreq &&
              (delete r.contentUserData,
              (i = 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(i)
                .on("dialog-opened", function (e, t) {
                  function n(e) {
                    ("click" !== e.type && 32 !== e.which) ||
                      (i.close(), H5P.deleteUserData(o, "state", 0));
                  }
                  (t.find(".h5p-dialog-ok-button").click(n).keypress(n),
                    H5P.trigger(a, "resize"));
                })
                .on("dialog-closed", function () {
                  H5P.trigger(a, "resize");
                }),
              i.open());
        });
        var a = H5P.newRunnable(s, o, n, !0, { standalone: !0 });
        ((H5P.offlineRequestQueue = new H5P.OfflineRequestQueue({
          instance: a,
        })),
          1 == r.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, a);
              })
              .keydown(function (e) {
                if (32 === e.which || 13 === e.which)
                  return (H5P.fullScreen(n, a), !1);
              }));
        var e,
          i,
          l,
          c,
          u,
          d,
          p,
          h = r.displayOptions,
          f = !1;
        (h.frame &&
          (h.copyright &&
            ((e = H5P.getCopyrights(a, s.params, o, s.metadata)) ||
              (h.copyright = !1)),
          (h = new H5P.ActionBar(h)),
          (i = h.getDOMElement()),
          h.on("reuse", function () {
            (H5P.openReuseDialog(i, r, s, a, o),
              a.triggerXAPI("accessed-reuse"));
          }),
          h.on("copyrights", function () {
            (new H5P.Dialog(
              "copyrights",
              H5P.t("copyrightInformation"),
              e,
              n,
            ).open(!0),
              a.triggerXAPI("accessed-copyright"));
          }),
          h.on("embed", function () {
            (H5P.openEmbedDialog(
              i,
              r.embedCode,
              r.resizeCode,
              { width: t.width(), height: t.height() },
              a,
            ),
              a.triggerXAPI("accessed-embed"));
          }),
          h.hasActions() && ((f = !0), i.insertAfter(n))),
          t.addClass(f ? "h5p-frame" : "h5p-no-frame"),
          (H5P.opened[o] = new Date()),
          H5P.on(a, "finish", function (e) {
            void 0 !== e.data &&
              H5P.setFinished(o, e.data.score, e.data.maxScore, e.data.time);
          }),
          H5P.on(a, "xAPI", H5P.xAPICompletedListener),
          !1 !== H5PIntegration.saveFreq &&
            (a.getCurrentState instanceof Function ||
              "function" == typeof a.getCurrentState) &&
            ((c = function () {
              var e = a.getCurrentState();
              (void 0 !== e &&
                H5P.setUserData(o, "state", e, { deleteOnChange: !0 }),
                H5PIntegration.saveFreq &&
                  (l = setTimeout(c, 1e3 * H5PIntegration.saveFreq)));
            }),
            H5PIntegration.saveFreq &&
              (l = setTimeout(c, 1e3 * H5PIntegration.saveFreq)),
            H5P.on(a, "xAPI", function (e) {
              e = e.getVerb();
              ("completed" !== e && "progressed" !== e) ||
                (clearTimeout(l), (l = setTimeout(c, 3e3)));
            })),
          H5P.isFramed &&
            (!1 === H5P.externalEmbed
              ? ((d = window.frameElement),
                H5P.on(a, "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(a, "resize"));
                }),
                H5P.communicator.on("resizePrepared", function () {
                  H5P.communicator.send("resize", {
                    scrollHeight: document.body.scrollHeight,
                  });
                }),
                H5P.communicator.on("resize", function () {
                  H5P.trigger(a, "resize");
                }),
                H5P.on(a, "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(a, "resize"));
            }),
          H5P.instances.push(a),
          H5P.trigger(a, "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, i) {
    H5P.fullScreen(e, t, n, i, !0);
  }),
  (H5P.fullScreen = function (e, t, n, i, o) {
    if (void 0 === H5P.exitFullScreen) {
      if (H5P.isFramed && !1 === H5P.externalEmbed)
        return (
          window.parent.H5P.fullScreen(e, t, n, H5P.$body.get(), o),
          (H5P.isFullscreen = !0),
          (H5P.exitFullScreen = function () {
            window.parent.H5P.exitFullScreen();
          }),
          void H5P.on(t, "exitFullScreen", function () {
            ((H5P.isFullscreen = !1), (H5P.exitFullScreen = void 0));
          })
        );
      var r,
        s,
        a,
        l = e;
      (void 0 === i
        ? (r = H5P.$body)
        : ((s = (r = H5P.jQuery(i)).add(e.get())),
          (i = "#h5p-iframe-" + e.parent().data("content-id")),
          (e = (a = H5P.jQuery(i)).parent())),
        (s = e.add(H5P.$body).add(s)));
      function c(e) {
        (s.addClass(e), void 0 !== a && a.css("height", ""));
      }
      function u() {
        (H5P.trigger(t, "resize"),
          H5P.trigger(t, "focus"),
          H5P.trigger(t, "enterFullScreen"));
      }
      function d(e) {
        ((H5P.isFullscreen = !1),
          s.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 === o)
      ) {
        if (!H5P.isFramed) {
          c("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(l.find(".h5p-content-controls")),
            m = (H5P.exitFullScreen = function () {
              (p ? (h.content = p) : v.removeChild(h),
                f.remove(),
                r.unbind("keyup", g),
                d("h5p-semi-fullscreen"));
            }),
            g = function (e) {
              27 === e.keyCode && m();
            };
          (f.click(m), r.keyup(g));
          for (
            var v, 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 || (v = document.getElementsByTagName("head")[0]).appendChild(h),
            u());
        }
      } else {
        c("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()
            : ((o =
                "ms" === H5P.fullScreenBrowserPrefix
                  ? "msRequestFullscreen"
                  : H5P.fullScreenBrowserPrefix + "RequestFullScreen"),
              (l =
                "webkit" === H5P.fullScreenBrowserPrefix &&
                0 === H5P.safariBrowser
                  ? Element.ALLOW_KEYBOARD_INPUT
                  : void 0),
              e[0][o](l)),
          (H5P.exitFullScreen = function () {
            "" === H5P.fullScreenBrowserPrefix
              ? document.exitFullscreen()
              : "moz" === H5P.fullScreenBrowserPrefix
                ? document.mozCancelFullScreen()
                : document[H5P.fullScreenBrowserPrefix + "ExitFullscreen"]();
          }));
      }
    }
  }),
  (function () {
    ((H5P.addQueryParameter = function (e, t) {
      let n, i;
      const o = e.split("?");
      return (
        (n = o[1]
          ? ((i = o[1].split("#")), o[0] + "?" + i[0] + "&")
          : ((i = o[0].split("#")), i[0] + "?")),
        (n += t),
        i[1] && (n += "#" + i[1]),
        n
      );
    }),
      (H5P.setSource = function (e, t, n) {
        let i = t.path;
        t = H5P.getCrossOrigin(t);
        (t
          ? ((e.crossOrigin = t),
            H5PIntegration.crossoriginCacheBuster &&
              (i = H5P.addQueryParameter(
                i,
                H5PIntegration.crossoriginCacheBuster,
              )))
          : e.removeAttribute("crossorigin"),
          (e.src = H5P.getPath(i, n)));
      }));
    function o(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 && !o(e.path)
          ? H5PIntegration.crossorigin
          : void 0;
    }),
      (H5P.getPath = function (e, t) {
        if (o(e)) return e;
        var n,
          i = "#tmp" === e.substr(-4, 4);
        if (void 0 === t || i) {
          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 = !o(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, i, o) {
    var r, s;
    try {
      ((s = (a = t.library.split(" ", 2))[0]), (r = a[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 a = a[0].split("."), l = window, c = 0; c < a.length; c++)
        l = l[a[c]];
      if ("function" != typeof l) throw null;
    } catch (e) {
      return H5P.error("Unable to find constructor for: " + t.library);
    }
    (void 0 === o && (o = {}),
      t.subContentId && (o.subContentId = t.subContentId),
      t.userDatas &&
        t.userDatas.state &&
        H5PIntegration.saveFreq &&
        (o.previousState = t.userDatas.state),
      t.metadata && (o.metadata = t.metadata));
    var u,
      d = o.standalone || !1;
    return (
      (l.prototype = H5P.jQuery.extend(
        {},
        H5P.ContentType(d).prototype,
        l.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 l(t.params, e)
            : new l(t.params, e, o)).$ && (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 && o && o.parent && (u.parent = o.parent),
      void 0 === u.libraryInfo &&
        (u.libraryInfo = {
          versionedName: t.library,
          versionedNameNoSpaces: s + "-" + r[0] + "." + r[1],
          machineName: s,
          majorVersion: r[0],
          minorVersion: r[1],
        }),
      void 0 !== n &&
        (n.toggleClass("h5p-standalone", d),
        u.attach(n),
        H5P.trigger(
          u,
          "domChanged",
          { $target: n, library: s, key: "newLibrary" },
          { bubbles: !0, external: !0 },
        ),
        (void 0 !== i && i) || 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 i = H5PIntegration.l10n[n][e];
    if (void 0 !== t) for (var o in t) i = i.replace(o, t[o]);
    return i;
  }),
  (H5P.Dialog = function (e, t, n, i) {
    var o = this,
      r = 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(i)
        .click(function (e) {
          (e && e.originalEvent && e.originalEvent.preventClosing) || o.close();
        })
        .children(".h5p-inner")
        .click(function (e) {
          e.originalEvent.preventClosing = !0;
        })
        .find(".h5p-close")
        .click(function () {
          o.close();
        })
        .keypress(function (e) {
          if (13 === e.which || 32 === e.which) return (o.close(), !1);
        })
        .end()
        .find("a")
        .click(function (e) {
          e.stopPropagation();
        })
        .end()
        .end();
    ((o.open = function (e) {
      (e && r.css("height", "100%"),
        setTimeout(function () {
          (r.addClass("h5p-open"),
            H5P.jQuery(o).trigger("dialog-opened", [r]),
            r.focus());
        }, 1));
    }),
      (o.close = function () {
        (r.removeClass("h5p-open"),
          setTimeout(function () {
            (r.remove(),
              H5P.jQuery(o).trigger("dialog-closed", [r]),
              i.attr("tabindex", "-1"),
              i.focus());
          }, 200));
      }));
  }),
  (H5P.getCopyrights = function (e, t, n, i) {
    var o;
    if (void 0 !== e.getCopyrights)
      try {
        o = e.getCopyrights();
      } catch (e) {}
    void 0 === o &&
      ((o = new H5P.ContentCopyrights()), H5P.findCopyrights(o, t, n));
    e = H5P.buildMetadataCopyrights(i, e.libraryInfo.machineName);
    return (
      void 0 !== e && o.addMediaInFront(e),
      (o = void 0 !== o ? o.toString() : o)
    );
  }),
  (H5P.findCopyrights = function (r, e, t, n) {
    var i, o, s, a;
    for (o in (n && ((n.params = e), l(n, n.machineName, t)), e))
      e.hasOwnProperty(o) &&
        ("overrideSettings" !== o
          ? ((s = e[o]) && s.library && "string" == typeof s.library
              ? (i = s.library.split(" ")[0])
              : s &&
                s.library &&
                "object" == typeof s.library &&
                (i =
                  s.library.library && "string" == typeof s.library.library
                    ? s.library.library.split(" ")[0]
                    : i),
            s instanceof Array
              ? H5P.findCopyrights(r, s, t)
              : s instanceof Object &&
                (l(s, i, t),
                void 0 === s.copyright ||
                void 0 === s.copyright.license ||
                void 0 === s.path ||
                void 0 === s.mime
                  ? H5P.findCopyrights(r, s, t)
                  : ((a = new H5P.MediaCopyright(s.copyright)),
                    void 0 !== s.width &&
                      void 0 !== s.height &&
                      a.setThumbnail(
                        new H5P.Thumbnail(
                          H5P.getPath(s.path, t),
                          s.width,
                          s.height,
                        ),
                      ),
                    r.addMedia(a))))
          : (console.warn(
              "The semantics field 'overrideSettings' is DEPRECATED and should not be used.",
            ),
            console.warn(e)));
    function l(e, t, n) {
      if (e.metadata) {
        const o = H5P.buildMetadataCopyrights(e.metadata, t);
        var i;
        void 0 !== o &&
          (e.params &&
            "Image" === e.params.contentName &&
            e.params.file &&
            ((i = e.params.file.path),
            (t = e.params.file.width),
            (e = e.params.file.height),
            o.setThumbnail(new H5P.Thumbnail(H5P.getPath(i, n), t, e))),
          r.addMedia(o));
      }
    }
  }),
  (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, i, o, r) {
    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 s = new H5P.Dialog("reuse", H5P.t("reuseContent"), t, e);
    (H5P.jQuery(s)
      .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),
              o.triggerXAPI("downloaded"),
              s.close());
          }),
          t.find(".h5p-copy-button").click(function () {
            const e = new H5P.ClipboardItem(i);
            ((e.contentId = r),
              H5P.setClipboard(e),
              o.triggerXAPI("copied"),
              s.close(),
              H5P.attachToastTo(
                H5P.jQuery(".h5p-content:first")[0],
                H5P.t("contentCopied"),
                {
                  position: {
                    horizontal: "centered",
                    vertical: "centered",
                    noOverflowX: !0,
                  },
                },
              ));
          }),
          H5P.trigger(o, "resize"));
      })
      .on("dialog-closed", function () {
        H5P.trigger(o, "resize");
      }),
      s.open());
  }),
  (H5P.openEmbedDialog = function (e, t, n, c, 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(c.width) +
          '" class="h5p-embed-size"/> × <input type="text" value="' +
          Math.ceil(c.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 i() {
          H5P.trigger(u, "resize");
        }
        function t(e, t) {
          return ((e = parseFloat(e.val())), isNaN(e) ? t : Math.ceil(e));
        }
        function o() {
          n.find(".h5p-embed-code-container:first").val(
            d.replace(":w", t(s, c.width)).replace(":h", t(a, c.height)),
          );
        }
        var r = n.find(".h5p-inner").find(".h5p-scroll-content"),
          s =
            (r.outerHeight(), r.innerHeight(), n.find(".h5p-embed-size:eq(0)")),
          a = n.find(".h5p-embed-size:eq(1)");
        (s.change(o),
          a.change(o),
          o(),
          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(),
          i());
        function l() {
          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");
            }),
            i());
        }
        n.find(".h5p-expander")
          .click(l)
          .keypress(function (e) {
            if (32 === e.keyCode) return (l.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 i(e) {
      -1 === o(e).indexOf(t) && (clearTimeout(l), r());
    }
    const o = 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,
              );
      },
      r = function () {
        (document.removeEventListener("click", i),
          s.parentNode && s.parentNode.removeChild(s));
      };
    (((n = n || {}).style = n.style || "h5p-toast"),
      (n.duration = n.duration || 3e3));
    const s = document.createElement("div");
    (s.setAttribute("id", n.style),
      s.classList.add("h5p-toast-disabled"),
      s.classList.add(n.style));
    const a = document.createElement("span");
    ((a.innerHTML = e), s.appendChild(a), document.body.appendChild(s));
    e = (function (e, t, n) {
      (((n = n || {}).offsetHorizontal = n.offsetHorizontal || 0),
        (n.offsetVertical = n.offsetVertical || 0));
      var i = t.getBoundingClientRect(),
        o = e.getBoundingClientRect();
      let r = 0,
        s = 0;
      switch (n.horizontal) {
        case "before":
          r = o.left - i.width - n.offsetHorizontal;
          break;
        case "after":
          r = o.left + o.width + n.offsetHorizontal;
          break;
        case "left":
          r = o.left + n.offsetHorizontal;
          break;
        case "right":
          r = o.left + o.width - i.width - n.offsetHorizontal;
          break;
        default:
          r = o.left + o.width / 2 - i.width / 2 + n.offsetHorizontal;
      }
      switch (n.vertical) {
        case "above":
          s = o.top - i.height - n.offsetVertical;
          break;
        case "below":
          s = o.top + o.height + n.offsetVertical;
          break;
        case "top":
          s = o.top + n.offsetVertical;
          break;
        case "bottom":
          s = o.top + o.height - i.height - n.offsetVertical;
          break;
        case "centered":
          s = o.top + o.height / 2 - i.height / 2 + n.offsetVertical;
          break;
        default:
          s = o.top + o.height + n.offsetVertical;
      }
      const a = document.body;
      e = a.getBoundingClientRect();
      return (
        (n.noOverflowLeft || n.noOverflowX) && r < e.x && (r = e.x),
        (n.noOverflowRight || n.noOverflowX) &&
          r + i.width > e.x + e.width &&
          (r = e.x + e.width - i.width),
        (n.noOverflowTop || n.noOverflowY) && s < e.y && (s = e.y),
        (n.noOverflowBottom || n.noOverflowY) &&
          s + i.height > e.y + e.height &&
          (r = e.y + e.height - i.height),
        { left: r, top: s }
      );
    })(t, s, n.position);
    ((s.style.left = Math.round(e.left) + "px"),
      (s.style.top = Math.round(e.top) + "px"),
      s.classList.remove("h5p-toast-disabled"));
    const l = setTimeout(r, n.duration);
    document.addEventListener("click", i);
  }),
  (H5P.ContentCopyrights = function () {
    var n,
      i = [],
      o = [];
    ((this.setLabel = function (e) {
      n = e;
    }),
      (this.addMedia = function (e) {
        void 0 !== e && i.push(e);
      }),
      (this.addMediaInFront = function (e) {
        void 0 !== e && i.unshift(e);
      }),
      (this.addContent = function (e) {
        void 0 !== e && o.push(e);
      }),
      (this.toString = function () {
        for (var e = "", t = 0; t < i.length; t++) e += i[t];
        for (t = 0; t < o.length; t++) e += o[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, i) {
    function o(e) {
      return void 0 === t || void 0 === t[e] ? H5P.t(e) : t[e];
    }
    function r(e, t) {
      var n,
        i = H5P.copyrightLicenses[e],
        o = "";
      (("PD" === e && t) || (o += i.hasOwnProperty("label") ? i.label : i),
        (n =
          i.versions &&
          (t =
            !i.versions.default || (t && i.versions[t])
              ? t
              : i.versions.default) &&
          i.versions[t]
            ? i.versions[t]
            : n) &&
          (o && (o += " "), (o += n.hasOwnProperty("label") ? n.label : n)),
        i.hasOwnProperty("link")
          ? (r = i.link.replace(
              ":version",
              i.linkVersions ? i.linkVersions[t] : t,
            ))
          : n && i.hasOwnProperty("link") && (r = n.link),
        r && (o = '<a href="' + r + '" target="_blank">' + o + "</a>"));
      var r = "";
      return (
        "PD" !== e && "C" !== e && (r += e),
        t && "CC0 1.0" !== t && (r && "GNU GPL" !== e && (r += " "), (r += t)),
        r && (o += " (" + r + ")"),
        "C" === e && (o += " &copy;"),
        o
      );
    }
    var s,
      a = new H5P.DefinitionList();
    if (void 0 !== e) {
      for (var l in i) i.hasOwnProperty(l) && (e[l] = i[l]);
      void 0 === n &&
        (n = [
          "contentType",
          "title",
          "license",
          "author",
          "year",
          "source",
          "licenseExtras",
          "changes",
        ]);
      for (var c = 0; c < n.length; c++) {
        var u,
          d = n[c];
        void 0 !== e[d] &&
          "" !== e[d] &&
          ((u = e[d]),
          "license" === d && (u = r(e.license, e.version)),
          "source" === d &&
            (u = u
              ? '<a href="' + u + '" target="_blank">' + u + "</a>"
              : void 0),
          a.add(new H5P.Field(o(d), u)));
      }
    }
    ((this.setThumbnail = function (e) {
      s = e;
    }),
      (this.undisclosed = function () {
        if (1 === a.size()) {
          var e = a.get(0);
          if (e.getLabel() === o("license") && e.getValue() === r("U"))
            return !0;
        }
        return !1;
      }),
      (this.toString = function () {
        var e = "";
        return this.undisclosed()
          ? e
          : (void 0 !== s && (e += s),
            "" !== (e += a)
              ? '<div class="h5p-media-copyright">' + e + "</div>"
              : e);
      }));
  }),
  (H5P.Thumbnail = function (e, t, n) {
    var i;
    (void 0 !== t && (i = Math.round((t / n) * 100)),
      (this.toString = function () {
        return (
          '<img src="' +
          e +
          '" alt="' +
          H5P.t("thumbnail") +
          '" class="h5p-thumbnail" height="100"' +
          (void 0 === i ? "" : ' width="' + i + '"') +
          "/>"
        );
      }));
  }),
  (H5P.Field = function (e, t) {
    ((this.getLabel = function () {
      return e;
    }),
      (this.getValue = function () {
        return t;
      }));
  }),
  (H5P.DefinitionList = function () {
    var i = [];
    ((this.add = function (e) {
      i.push(e);
    }),
      (this.size = function () {
        return i.length;
      }),
      (this.get = function (e) {
        return i[e];
      }),
      (this.toString = function () {
        for (var e = "", t = 0; t < i.length; t++) {
          var n = i[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, i) {
    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 !== i && (this.h = i)),
        this)
      : new H5P.Coords(e, t, n, i);
  }),
  (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,
      i = e instanceof Array ? [] : {};
    for (n in e)
      e.hasOwnProperty(n) &&
        (void 0 !== t && t && "object" == typeof e[n]
          ? (i[n] = H5P.cloneObject(e[n], t))
          : (i[n] = e[n]));
    return i;
  }),
  (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,
        i,
        o = e.length;
      if (0 === o) return !1;
      for (; --o; )
        ((t = Math.floor(Math.random() * (o + 1))),
          (n = e[o]),
          (i = e[t]),
          (e[o] = i),
          (e[t] = n));
      return e;
    }
  }),
  (H5P.setFinished = function (e, t, n, i) {
    if (
      ("number" == typeof t || t instanceof Number) &&
      !0 === H5PIntegration.postUserStatistics
    ) {
      function o(e) {
        return Math.round(e.getTime() / 1e3);
      }
      const r = {
        contentId: e,
        score: t,
        maxScore: n,
        opened: o(H5P.opened[e]),
        finished: o(new Date()),
        time: i,
      };
      H5P.jQuery.post(H5PIntegration.ajax.setFinished, r).fail(function () {
        H5P.offlineRequestQueue.add(H5PIntegration.ajax.setFinished, r);
      });
    }
  }),
  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, i) {
    void 0 !== e.trigger
      ? e.trigger(t, n, i)
      : 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 (l) {
    function a(e, t, n, i, o, r, s, a) {
      void 0 !== H5PIntegration.user
        ? ((a = {
            url: H5PIntegration.ajax.contentUserData
              .replace(":contentId", e)
              .replace(":dataType", t)
              .replace(":subContentId", n || 0),
            dataType: "json",
            async: void 0 === a || a,
          }),
          void 0 !== o
            ? ((a.type = "POST"),
              (a.data = {
                data: null === o ? 0 : o,
                preload: r ? 1 : 0,
                invalidate: s ? 1 : 0,
              }))
            : (a.type = "GET"),
          void 0 !== i &&
            ((a.error = function (e, t) {
              i(t);
            }),
            (a.success = function (e) {
              e.success
                ? !1 !== e.data && void 0 !== e.data
                  ? i(void 0, e.data)
                  : i()
                : i(e.message);
            })),
          l.ajax(a))
        : i("Not signed in.");
    }
    ((H5P.getUserData = function (e, n, i, o) {
      ((o = o || 0), (H5PIntegration.contents = H5PIntegration.contents || {}));
      var r = H5PIntegration.contents["cid-" + e] || {},
        s = r.contentUserData;
      if (s && s[o] && void 0 !== s[o][n])
        if ("RESET" !== s[o][n])
          try {
            i(void 0, JSON.parse(s[o][n]));
          } catch (e) {
            i(e);
          }
        else i(void 0, null);
      else
        a(e, n, o, function (e, t) {
          if (e || void 0 === t) i(e, t);
          else {
            (void 0 === r.contentUserData && (r.contentUserData = s = {}),
              void 0 === s[o] && (s[o] = {}),
              (s[o][n] = t));
            try {
              i(void 0, JSON.parse(t));
            } catch (e) {
              i(e);
            }
          }
        });
    }),
      (H5P.setUserData = function (e, t, n, i) {
        var o = H5P.jQuery.extend(
          !0,
          {},
          { subContentId: 0, preloaded: !0, deleteOnChange: !1, async: !0 },
          i,
        );
        try {
          n = JSON.stringify(n);
        } catch (e) {
          return void (o.errorCallback && o.errorCallback(e));
        }
        i = H5PIntegration.contents["cid-" + e];
        (i = void 0 === i ? (H5PIntegration.contents["cid-" + e] = {}) : i)
          .contentUserData || (i.contentUserData = {});
        i = i.contentUserData;
        (void 0 === i[o.subContentId] && (i[o.subContentId] = {}),
          n !== i[o.subContentId][t] &&
            ((i[o.subContentId][t] = n),
            a(
              e,
              t,
              o.subContentId,
              function (e) {
                o.errorCallback && e && o.errorCallback(e);
              },
              n,
              o.preloaded,
              o.deleteOnChange,
              o.async,
            )));
      }),
      (H5P.deleteUserData = function (e, t, n) {
        n = n || 0;
        var i = H5PIntegration.contents["cid-" + e].contentUserData;
        (i && i[n] && i[n][t] && delete i[n][t], a(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 i = this;
        (t || ((t = "action"), (e = { action: e })),
          (i.specific = e),
          t && e[t] && (i.generic = t),
          n && (i.from = n),
          window.H5PEditor &&
            H5PEditor.contentId &&
            (i.contentId = H5PEditor.contentId),
          i.specific.width ||
            i.specific.height ||
            !i.generic ||
            ((n = i.specific[i.generic]).params.file &&
              n.params.file.width &&
              n.params.file.height &&
              ((i.width = 20),
              (i.height =
                (n.params.file.height / n.params.file.width) * i.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 (
            i(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
          );
        }
      },
      i = 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,
                i(n, t)));
      };
    l(document).ready(function () {
      window.addEventListener("storage", function (e) {
        "h5pClipboard" === e.key &&
          H5P.externalDispatcher.trigger("datainclipboard", {
            reset: null === e.newValue,
          });
      });
      var o,
        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 &&
          ((o = 0),
          (e = function () {
            var e = new Date().getTime();
            if (250 < e - o) {
              o = e;
              for (var t = 0; t < H5P.instances.length; t++) {
                var n,
                  i = H5P.instances[t];
                !(
                  i.getCurrentState instanceof Function ||
                  "function" == typeof i.getCurrentState
                ) ||
                  (void 0 !== (n = i.getCurrentState()) &&
                    H5P.setUserData(i.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 i = !1,
      o = !1,
      r = !1;
    (!0 === (n = void 0 === n ? {} : n).bubbles && (i = !0),
      !0 === n.external && (o = !0),
      (this.preventBubbling = function () {
        i = !1;
      }),
      (this.getBubbles = function () {
        return i;
      }),
      (this.scheduleForExternal = function () {
        return !(!o || r) && (r = !0);
      }));
  }),
  (H5P.EventDispatcher = function () {
    var o = this,
      s = {};
    function i(e, t) {
      if (void 0 !== s[e])
        for (var n = s[e].slice(), i = 0; i < n.length; i++) {
          var o = n[i],
            r = o.thisArg || this;
          o.listener.call(r, t);
        }
    }
    ((this.on = function (e, t, n) {
      if ("function" != typeof t)
        throw TypeError("listener must be a function");
      o.trigger("newListener", { type: e, listener: t });
      n = { listener: t, thisArg: n };
      s[e] ? s[e].push(n) : (s[e] = [n]);
    }),
      (this.once = function (e, t, n) {
        if (!(t instanceof Function))
          throw TypeError("listener must be a function");
        var i = function (e) {
          (o.off(e.type, i), t.call(this, e));
        };
        o.on(e, i, n);
      }),
      (this.off = function (e, t) {
        if (void 0 !== t && !(t instanceof Function))
          throw TypeError("listener must be a function");
        if (void 0 !== s[e]) {
          if (void 0 === t)
            return (delete s[e], void o.trigger("removeListener", e));
          for (var n = 0; n < s[e].length; n++)
            if (s[e][n].listener === t) {
              (s[e].splice(n, 1),
                o.trigger("removeListener", e, { listener: t }));
              break;
            }
          s[e].length || delete s[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()),
          i.call(this, e.type, e),
          i.call(this, "*", e),
          e.getBubbles() &&
            o.parent instanceof H5P.EventDispatcher &&
            (o.parent.trigger instanceof Function ||
              "function" == typeof o.parent.trigger) &&
            o.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, i, o) {
    ((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 === i
          ? "completed" === this.getVerb() || "answered" === this.getVerb()
          : i),
      void 0 !== o && (this.data.statement.result.success = o),
      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 i in t) n.data.statement[i] = t[i];
    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, i, o) {
    n = this.createXAPIEventTemplate(n);
    (n.setScoredResult(e, t, this, i, o), 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 (S) {
    "use strict";
    function e(n) {
      S.call(this);
      var i = this;
      H5P.ConfirmationDialog.uniqueId += 1;
      var e = H5P.ConfirmationDialog.uniqueId;
      function t(e) {
        (i.hide(), i.trigger("confirmed"), e.preventDefault());
      }
      function o(e) {
        (i.hide(), i.trigger("canceled"), e.preventDefault());
      }
      function r(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 s = 32,
        a = 8,
        l = !1,
        c = document.createElement("div");
      c.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,
        ),
        c.appendChild(u),
        u.addEventListener("keydown", function (e) {
          27 === e.which && o(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 m,
        g,
        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", o),
        h.addEventListener("keydown", function (e) {
          32 === e.which ? o(e) : 9 === e.which && e.shiftKey && r(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 || r(n.hideCancel ? f : h, e);
        }),
        p.appendChild(f),
        d.addEventListener("click", o),
        d.addEventListener("keydown", function (e) {
          32 === e.which && o(e);
        }),
        n.hideExit || u.appendChild(d));
      var v,
        b = [],
        y = [];
      this.appendTo = function (e) {
        return ((m = e), this);
      };
      var w = function (e) {
          c.contains(e.target) || (e.preventDefault(), f.focus());
        },
        x = function (e) {
          for (
            var t = [], n = e.parentNode.children, i = 0;
            i < n.length;
            i += 1
          )
            ((t[i] = !!n[i].getAttribute("aria-hidden")),
              n[i] !== e && n[i].setAttribute("aria-hidden", !0));
          return t;
        },
        P = function (e, t) {
          for (var n = e.parentNode.children, i = 0; i < n.length; i += 1)
            n[i] === e || t[i] || n[i].removeAttribute("aria-hidden");
        };
      ((this.show = function (e) {
        var t;
        return (
          (v = document.activeElement),
          m.appendChild(c),
          (g = m.parentNode || m).addEventListener("focus", w, !0),
          (b = x(m)),
          (y = x(c)),
          c.classList.remove("hidden"),
          (t = e),
          (e = parseInt(u.style.top, 10)),
          (e =
            (e = (e = void 0 !== t ? t : e) || 0) + u.offsetHeight >
            m.offsetHeight
              ? m.offsetHeight - u.offsetHeight - a
              : e) -
            s <=
            0 && ((e = s + a), (l = !0)),
          (u.style.top = e + "px"),
          setTimeout(function () {
            (u.classList.remove("hidden"),
              c.classList.remove("hiding"),
              setTimeout(function () {
                var e;
                (f.focus(),
                  l &&
                    n.instance &&
                    ((e = parseInt(u.offsetHeight, 10) + s + 2 * a),
                    i.setViewPortMinimumHeight(e),
                    n.instance.trigger("resize"),
                    (l = !1)));
              }, 100));
          }, 0),
          this
        );
      }),
        (this.hide = function () {
          return (
            c.classList.add("hiding"),
            u.classList.add("hidden"),
            g.removeAttribute("aria-hidden"),
            g.removeEventListener("focus", w, !0),
            n.skipRestoreFocus || v.focus(),
            P(m, b),
            P(c, y),
            setTimeout(function () {
              (c.classList.add("hidden"),
                m.removeChild(c),
                i.setViewPortMinimumHeight(null));
            }, 100),
            this
          );
        }),
        (this.getElement = function () {
          return u;
        }),
        (this.getPreviouslyFocused = function () {
          return v;
        }),
        (this.setViewPortMinimumHeight = function (e) {
          (
            document.querySelector(".h5p-container") || document.body
          ).style.minHeight = "number" == typeof e ? e + "px" : e;
        }));
    }
    return ((e.prototype = Object.create(S.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() {
          i.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: r,
        }),
          (o = !0));
      }
      var i = this,
        o = !1,
        r = 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(r),
          (o = !0)),
        (i.getDOMElement = function () {
          return r;
        }),
        (i.hasActions = function () {
          return o;
        }));
    }
    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 i = null;
      const o = [10, 20, 40, 60, 120, 300, 600];
      let r = -1,
        t = null,
        s = !1,
        a = !1,
        l = !1;
      e = e.instance;
      const c = 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 = c.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 (!s) {
                const t = document.body.querySelector(".h5p-content");
                if (!t) return;
                (c.appendTo(t), t.appendChild(h), (s = !0));
              }
              b();
            }
          }.bind(this),
        ),
        n.on(
          "queueEmptied",
          function (e) {
            e.data && e.data.length
              ? b(!0)
              : (clearInterval(t),
                m(!1),
                (r = -1),
                a && (c.hide(), (a = !1)),
                n.displayToastMessage(H5P.t("offlineSuccessfulSubmit"), !0, {
                  position: { vertical: "top", offsetVertical: "100" },
                }));
          }.bind(this),
        ),
        c.on(
          "confirmed",
          function () {
            ((a = !1),
              setTimeout(function () {
                g();
              }, 100));
          }.bind(this),
        ),
        window.addEventListener(
          "online",
          function () {
            g();
          }.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 m = function (e) {
          ((l = !l),
            void 0 !== e && (l = e),
            l && a && (c.hide(), (a = !1)),
            l ? h.classList.add("show") : h.classList.remove("show"));
        },
        g = function () {
          (clearInterval(t), m(!0), n.resumeQueue());
        },
        v = function () {
          ((r += 1), r >= o.length && (r = o.length - 1));
        },
        b = function (e) {
          a ||
            (m(!1),
            a ||
              (e
                ? setTimeout(function () {
                    c.show(0);
                  }, 100)
                : c.show(0)),
            (a = !0),
            (i = new Date().getTime()),
            v(),
            clearInterval(t),
            (t = setInterval(y, 100)));
        },
        y = function () {
          var e = new Date().getTime(),
            e = Math.floor((e - i) / 1e3);
          const t = o[r] - e;
          ((p.textContent = t.toString()), t <= 0 && g());
        };
      this.add = function (e, t) {
        if (window.navigator.onLine) return !1;
        n.add(e, t);
      };
    };
  })(H5P.RequestQueue, H5P.ConfirmationDialog)),
  /*!@license H5P.AdvancedText-1.1/text.js by Joubel licensed under unknown license*/ (H5P.AdvancedText =
    (function (i) {
      function e(e, t) {
        i.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(i.prototype)).constructor = e);
    })((H5P.jQuery, H5P.EventDispatcher))),
  (function (i) {
    ((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 = i("<div>", {
                width: "100%",
                height: "100%",
                class: "h5p-placeholder",
                title: void 0 === this.title ? "" : this.title,
                on: {
                  load: function () {
                    t.trigger("loaded");
                  },
                },
              }))
            : (t.$img = i("<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),
  ((H5P = H5P || {}).Shape = (function (n) {
    function e(e, t) {
      (H5P.EventDispatcher.call(this),
        (this.params = n.extend(
          !0,
          {
            type: "rectangle",
            shape: {
              fillColor: "#ccc",
              borderWidth: 0,
              borderStyle: "solid",
              borderColor: "#000",
              borderRadius: 0,
            },
          },
          e,
        )),
        (this.contentId = t));
    }
    return (
      (((e.prototype = Object.create(
        H5P.EventDispatcher.prototype,
      )).constructor = e).prototype.attach = function (e) {
        ((this.$inner = e.addClass("h5p-shape")),
          (this.$shape = n(
            '<div class="h5p-shape-element h5p-shape-' +
              this.params.type +
              '"></div>',
          )),
          this.styleShape(),
          this.$shape.appendTo(this.$inner));
      }),
      (e.prototype.isLine = function () {
        return (
          "vertical-line" === this.params.type ||
          "horizontal-line" === this.params.type
        );
      }),
      (e.prototype.styleShape = function () {
        var e = this.isLine() ? this.params.line : this.params.shape,
          t = 0.0835 * e.borderWidth + "em",
          n = { "border-color": e.borderColor };
        ("vertical-line" == this.params.type
          ? ((n["border-left-width"] = t),
            (n["border-left-style"] = e.borderStyle),
            this.trigger("set-size", { width: t, maxWidth: t }))
          : "horizontal-line" == this.params.type
            ? ((n["border-top-width"] = t),
              (n["border-top-style"] = e.borderStyle),
              this.trigger("set-size", { height: t, maxHeight: t }))
            : ((n["background-color"] = e.fillColor),
              (n["border-width"] = t),
              (n["border-style"] = e.borderStyle)),
          "rectangle" == this.params.type &&
            (n["border-radius"] = 0.25 * e.borderRadius + "em"),
          this.$shape.css(n));
      }),
      e
    );
  })(H5P.jQuery)),
  ((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"],
            i = e.charAt(0).toUpperCase() + e.substr(1);
          if (e in t.style) Transition.cache[e] = e;
          else
            for (var o = 0; o < n.length; ++o) {
              var r = n[o] + i;
              if (r in t.style) {
                Transition.cache[e] = r;
                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 i() {
          o ||
            (e.off(Transition.transitionEndEventName, t),
            (o = !0),
            clearTimeout(r),
            t());
        }
        var o = !1,
          r = setTimeout(function () {
            i();
          }, n);
        e.on(Transition.transitionEndEventName, function () {
          i();
        });
      },
    };
    function i(e, t) {
      var n;
      t >= e.length ||
        ((n = e[t]),
        H5P.Transition.onTransitionEnd(
          n.$element,
          function () {
            (n.end && n.end(), !0 !== n.break && i(e, t + 1));
          },
          n.timeout || void 0,
        ));
    }
    return (
      (Transition.sequence = function (e) {
        i(e, 0);
      }),
      Transition
    );
  })(H5P.jQuery)),
  ((H5P = H5P || {}).JoubelHelpTextDialog = (function (u) {
    var d = 0;
    function e(e, t, n) {
      H5P.EventDispatcher.call(this);
      var i = this,
        o = "joubel-help-text-header-" + ++d,
        r = "joubel-help-text-body-" + d,
        s = u("<div>", {
          class: "joubel-help-text-dialog-box",
          role: "dialog",
          "aria-labelledby": o,
          "aria-describedby": r,
        });
      u("<div>", { class: "joubel-help-text-dialog-background" }).appendTo(s);
      var a = u("<div>", {
        class: "joubel-help-text-dialog-container",
      }).appendTo(s);
      (u("<div>", {
        class: "joubel-help-text-header",
        id: o,
        role: "header",
        html: e,
      }).appendTo(a),
        u("<div>", {
          class: "joubel-help-text-body",
          id: r,
          html: t,
          role: "document",
          tabindex: 0,
        }).appendTo(a));
      function l() {
        (s.remove(), i.trigger("closed"));
      }
      var c = u("<div>", {
        class: "joubel-help-text-remove",
        role: "button",
        title: n,
        tabindex: 1,
        click: l,
        keydown: function (e) {
          -1 !== [32, 13].indexOf(e.which) && (e.preventDefault(), l());
        },
      }).appendTo(a);
      ((i.getElement = function () {
        return s;
      }),
        (i.focus = function () {
          c.focus();
        }));
    }
    return ((e.prototype = Object.create(
      H5P.EventDispatcher.prototype,
    )).constructor = e);
  })(H5P.jQuery)),
  ((H5P = H5P || {}).JoubelMessageDialog = (function (r) {
    return function (e, t) {
      function n() {
        (i.remove(), clearTimeout(o), e.off("click.messageDialog"));
      }
      var i = r("<div/>", { class: "joubel-message-dialog", text: t }).appendTo(
          e,
        ),
        o = setTimeout(n, 3e3);
      return (e.on("click.messageDialog", n), i);
    };
  })(H5P.jQuery)),
  ((H5P = H5P || {}).JoubelProgressCircle = (function (a) {
    function e(t, e, n, i) {
      ((n = n || "#f0f0f0"), (i = i || "#ffffff"));
      var o = 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 r =
          "rgb(" +
          parseInt(o.r, 10) +
          "," +
          parseInt(o.g, 10) +
          "," +
          parseInt(o.b, 10) +
          ")",
        s = a("<div/>", { class: "joubel-progress-circle-wrapper" }),
        e = a("<div/>", {
          class: "joubel-progress-circle-active-border",
        }).appendTo(s),
        o = a("<div/>", { class: "joubel-progress-circle-circle" }).appendTo(e);
      a("<span/>", {
        text: t + "%",
        class: "joubel-progress-circle-percentage",
      }).appendTo(o);
      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%, " +
                r +
                " 50%),linear-gradient(90deg, " +
                n +
                " 50%, transparent 50%)",
            )
        )
          .css("border", "2px solid" + i)
          .css("background-color", r),
        (this.$activeBorder = e),
        (this.$backgroundCircle = o),
        (this.$wrapper = s),
        this.initResizeFunctionality(),
        s
      );
    }
    return (
      (e.prototype.initResizeFunctionality = function () {
        var e = this;
        (a(window).resize(function () {
          setTimeout(function () {
            e.resize();
          });
        }),
          setTimeout(function () {
            e.resize();
          }, 0));
      }),
      (e.prototype.resize = function () {
        var e,
          t,
          n,
          i = this.$wrapper.parent();
        void 0 !== i &&
          i &&
          ((n = parseInt(i.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: (i = 3.75 * n),
            height: (n = 3.75 * n),
          }),
          this.$backgroundCircle.css({
            width: i - 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 (r) {
    var s,
      a,
      l,
      c,
      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() {
      m(s, a, d, l, c);
    }
    function m(e, t, n, i, o) {
      var r = (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),
        s = r.bottom > r.top ? "bottom" : "top",
        a = 0.9 * r.outerWidth,
        n = n < a ? n : a,
        a = (function (e, t) {
          var n = {},
            i = e / 2;
          ((n.top = t.top + t.innerHeight),
            (n.bottom = t.bottom + t.innerHeight + 9),
            t.left < i
              ? (n.left = 3)
              : t.left + i > t.outerWidth
                ? (n.left = t.outerWidth - e - 3)
                : (n.left = t.left - i + t.innerWidth / 2));
          return n;
        })(n, r),
        t = (function (e, t, n, i) {
          var o = {},
            e = e - 20;
          ((o.left = n.left - t.left + i / 2 - 6), o.left < 9 && (o.left = 9));
          o.left > e && (o.left = e);
          return ((o.top = -6), (o.bottom = -6), o);
        })(n, a, r, t.width());
      e.css(
        ((e = n),
        (n = a),
        (a = 16),
        "top" === s
          ? {
              width: e + "px",
              bottom: n.bottom + "px",
              left: n.left + "px",
              fontSize: a + "px",
              top: "",
            }
          : {
              width: e + "px",
              top: n.top + "px",
              left: n.left + "px",
              fontSize: a + "px",
              bottom: "",
            }),
      );
      ((t = t),
        (t =
          "top" === s
            ? { bottom: t.bottom + "px", left: t.left + "px", top: "" }
            : { top: t.top + "px", left: t.left + "px", bottom: "" }));
      (i.css(t), o.css(t));
    }
    H5P.externalDispatcher.on("domHidden", function (e) {
      void 0 !== s && 0 !== e.data.$dom.find(a).length && g();
    });
    var g = function () {
      (H5P.$body.off("mousedown.speechBubble"),
        H5P.$window.off("resize", "", f),
        a.parents(".h5p-dialog").off("mousedown.speechBubble"),
        p && H5P.$body.css("cursor", ""),
        void 0 !== s &&
          (s.removeClass("show"),
          clearTimeout(u),
          (u = setTimeout(function () {
            (s.remove(), (s = void 0));
          }, 500))));
    };
    function v(e) {
      e.target !== a[0] && (g(), (a = void 0));
    }
    return function (e, t, n) {
      ((d = n = n || 400),
        (a = e),
        (this.isCurrent = function (e) {
          return e.is(a);
        }),
        (this.remove = function () {
          g();
        }),
        void 0 !== s && g());
      var i,
        o = h(e);
      return (
        (i = s) &&
          (clearTimeout(u),
          i.removeClass("show"),
          setTimeout(function () {
            i && (i.remove(), (i = void 0));
          }, 500)),
        (l = r('<div class="joubel-speech-bubble-tail"></div>')),
        (c = r('<div class="joubel-speech-bubble-inner-tail"></div>')),
        (t = r(
          '<div class="joubel-speech-bubble-inner"><div class="joubel-speech-bubble-text">' +
            t +
            "</div></div>",
        ).prepend(c)),
        (s = r('<div class="joubel-speech-bubble" aria-live="assertive">')
          .append([l, t])
          .appendTo(o)),
        setTimeout(function () {
          s.addClass("show");
        }, 0),
        m(s, a, n, l, c),
        H5P.$body.on("mousedown.speechBubble", v),
        H5P.$window.on("resize", "", f),
        e.parents(".h5p-dialog").on("mousedown.speechBubble", v),
        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 (a) {
      var l = a("<div/>");
      return function (t, n) {
        var i,
          e = l.html(t).text().trim();
        if ("" !== e) {
          n = a.extend(
            { tipLabel: e, helpIcon: !1, showSpeechBubble: !0, tabcontrol: !1 },
            n,
          );
          var o = a("<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) {
              (r(), e.preventDefault());
            },
            keydown: function (e) {
              32 === e.which || 13 === e.which
                ? (r(), e.stopPropagation(), e.preventDefault())
                : r(!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 s = a("<div>", {
            class: "hidden-but-read",
            "aria-live": "polite",
            appendTo: o,
          });
          var r = function (e) {
            void 0 !== i && i.isCurrent(o)
              ? (i.remove(),
                (i = void 0),
                o.attr("aria-expanded", !1),
                s.html(""))
              : !1 !== e &&
                n.showSpeechBubble &&
                ((i = H5P.JoubelSpeechBubble(o, t)),
                o.attr("aria-expanded", !0),
                s.html(t));
          };
          return o;
        }
      };
    })(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 i = "translateX(" + 100 * -e + "%)";
        (this.$slider.css({
          "-webkit-transform": i,
          "-moz-transform": i,
          "-ms-transform": i,
          transform: i,
        }),
          (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 (s) {
    var a = 0;
    return function (e, t, n, i) {
      var o = this;
      function r(e) {
        return t ? t.replace(":num", e).replace(":total", o.maxScore) : "";
      }
      ((o.maxScore = e),
        (o.score = 0),
        a++,
        (o.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-' +
          a +
          '" 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-' +
          a +
          ')" 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>'),
        (o.appendTo = function (e) {
          o.$scoreBar.appendTo(e);
        }),
        (o.setScore = function (e) {
          e !== o.score &&
            ((o.score = e > o.maxScore ? o.maxScore : e), o.updateVisuals());
        }),
        (o.incrementScore = function (e) {
          o.setScore(o.score + (e || 1));
        }),
        (o.setMaxScore = function (e) {
          o.maxScore = e;
        }),
        (o.updateVisuals = function () {
          (o.$progress.html(r(o.score)),
            o.$scoreCounter.text(o.score),
            o.$maxScore.text(o.maxScore),
            setTimeout(function () {
              (o.$progress.css({ width: (o.score / o.maxScore) * 100 + "%" }),
                H5P.Transition.onTransitionEnd(
                  o.$progress,
                  function () {
                    (o.$scoreBar.toggleClass(
                      "h5p-joubelui-score-bar-full-score",
                      o.score === o.maxScore,
                    ),
                      o.$scoreBar.toggleClass(
                        "h5p-joubelui-score-bar-animation-active",
                        o.score === o.maxScore,
                      ),
                      o.$scoreBar.one("animationend", function () {
                        o.$scoreBar.removeClass(
                          "h5p-joubelui-score-bar-animation-active",
                        );
                      }));
                  },
                  600,
                ));
            }, 300));
        }),
        (o.reset = function () {
          o.$scoreBar.removeClass("h5p-joubelui-score-bar-full-score");
        }),
        (function () {
          o.$scoreBar = s("<div>", { class: "h5p-joubelui-score-bar" });
          var e = s("<div>", {
            class: "h5p-joubelui-score-bar-visuals",
            appendTo: o.$scoreBar,
          });
          ((o.$progressWrapper = s("<div>", {
            class: "h5p-joubelui-score-bar-progress-wrapper",
            appendTo: e,
          })),
            (o.$progress = s("<div>", {
              class: "h5p-joubelui-score-bar-progress",
              html: r(o.score),
              appendTo: o.$progressWrapper,
            })),
            s("<div>", {
              class: "h5p-joubelui-score-bar-star",
              html: o.STAR_MARKUP,
            }).appendTo(e));
          e = s("<div>", {
            class: "h5p-joubelui-score-numeric",
            appendTo: o.$scoreBar,
            "aria-hidden": !0,
          });
          ((o.$scoreCounter = s("<span>", {
            class:
              "h5p-joubelui-score-number h5p-joubelui-score-number-counter",
            text: 0,
            appendTo: e,
          })),
            s("<span>", {
              class: "h5p-joubelui-score-number-separator",
              text: "/",
              appendTo: e,
            }),
            (o.$maxScore = s("<span>", {
              class: "h5p-joubelui-score-number h5p-joubelui-score-max",
              text: o.maxScore,
              appendTo: e,
            })),
            n &&
              (H5P.JoubelUI.createTip(n, {
                tipLabel: i || n,
                helpIcon: !0,
              }).appendTo(o.$scoreBar),
              o.$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, i) {
        return new H5P.JoubelProgressCircle(e, t, n, i);
      }),
      (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, i) {
        return new H5P.JoubelScoreBar(e, t, n, i);
      }),
      (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.Question-1.5/scripts/question.js by Joubel licensed under MIT*/ (H5P.Tooltip =
    H5P.Tooltip || function () {}),
  (H5P.Question = (function (z, e, W) {
    function t(o) {
      var u = this;
      (e.call(u),
        (u.order = [
          "video",
          "image",
          "audio",
          "introduction",
          "content",
          "explanation",
          "feedback",
          "scorebar",
          "buttons",
          "read",
        ]));
      function d(e, t) {
        ((y[e] = {}),
          (e = y[e].$element = z("<div/>", { class: "h5p-question-" + e })),
          t && e[t instanceof z ? "append" : "html"](t));
      }
      function p(e, t) {
        t instanceof z
          ? y[e].$element.html("").append(t)
          : y[e].$element.html(t);
      }
      function h() {
        if (void 0 !== y.buttons) {
          clearTimeout(l);
          for (var e = 0; e < S.length; e++)
            (I(x, S[e].id, w, y.buttons.$element), (w[S[e].id].isVisible = !0));
          for (var t = 0, n = !(S = []), i = 0; i < P.length; i++) {
            var o = w[P[i].id];
            (o.isVisible && (t += 1), o.$element.is(":focus") && (n = !0));
          }
          var r = 150;
          (y.feedback &&
            y.feedback.$element.hasClass("h5p-question-popup") &&
            (r = 0),
            t === y.buttons.$element.children().length
              ? (F(y.buttons), D(n))
              : (D(n),
                y.buttons.$element.is(":empty") ||
                  (q(y.buttons),
                  A(y.buttons.$element),
                  (l = setTimeout(function () {
                    u.trigger("resize");
                  }, r))),
                B()),
            (s = void 0));
        }
      }
      function a() {
        var e = y.image.$element;
        (clearTimeout(n),
          e.addClass("animatable"),
          (n =
            ((T = T
              ? (z(this).attr("aria-expanded", !0),
                e.addClass("h5p-question-image-fill-width"),
                !1)
              : (z(this).attr("aria-expanded", !1),
                e.removeClass("h5p-question-image-fill-width"),
                !0)),
            setTimeout(function () {
              u.trigger("resize");
            }, 600))));
      }
      function i(e, t, n) {
        for (var i = 0; i < n.length; i++) if (n[i][t] === e) return i;
        return -1;
      }
      var f,
        m,
        g,
        v,
        s,
        l,
        t,
        n,
        b,
        r,
        c,
        y = {},
        w = {},
        x = [],
        P = [],
        S = [],
        H = !1,
        C = { disableFeedback: !1, disableReadSpeaker: !1 },
        T = !0,
        k = !1,
        E = !1,
        I = function (e, t, n, i) {
          for (var o = 0; o < e.length; o++)
            if (e[o] === t) {
              for (
                ;
                0 < o && (void 0 === n[e[o - 1]] || !n[e[o - 1]].isVisible);
              )
                o--;
              (0 === o
                ? n[t].$element.prependTo(i)
                : n[t].$element.insertAfter(n[e[o - 1]].$element),
                (n[t].isVisible = !0));
              break;
            }
        },
        $ = function (e, t) {
          var n,
            i,
            o,
            r,
            s = e.parent(),
            a = e.siblings(".h5p-question-feedback-tail"),
            l = e.outerWidth(),
            c = A(e),
            u = !1,
            d = s.height() / 2 - c / 2,
            p = s.width() / 2 - l / 2,
            h = 0,
            f = 0,
            m = 0;
          (null != t
            ? ((n = t[0].offsetTop < 15),
              (i = t[0].offsetTop + t.height() > s.height() - 15),
              (o = t[0].offsetLeft < 15),
              (r = t[0].offsetLeft + t.width() > s.width() - 15),
              (p = t[0].offsetLeft - l / 2 + t.width() / 2),
              (d = t[0].offsetTop - c - 15),
              (h = p + l / 2 - a.width() / 2),
              (f = d + c - a.height() / 2),
              (m = 225),
              c + 15 > t[0].offsetTop &&
                ((f = (d = t[0].offsetTop + t.height() + 15) - a.height() / 2),
                (m = 45)),
              (p = p < 0 ? 0 : p) + l > s.width() && (p = s.width() - l),
              n && (o || r)
                ? ((p = t[0].offsetLeft + (o ? t.width() : -l)),
                  (d = t[0].offsetTop + t.height()),
                  (u = !0))
                : i && (o || r)
                  ? ((p = t[0].offsetLeft + (o ? t.width() : -l)),
                    (d = t[0].offsetTop - c),
                    (u = !0))
                  : n ||
                    i ||
                    ((o || r) &&
                      ((d = t[0].offsetTop - c / 2 + t.width() / 2),
                      (p = t[0].offsetLeft + (o ? t.width() + 15 : -l - 15)) < 0
                        ? (u = !(p = 0))
                        : ((h = p + (o ? -a.width() / 2 : l - a.width() / 2)),
                          (f = d + c / 2 - a.height() / 2),
                          (m = o ? 315 : 135)))),
              d + c > s.height() &&
                ((d = s.height() - c),
                c > s.height() - (t[0].offsetTop + t.height() + 15) &&
                  (u = !0)))
            : (u = !0),
            e.css({ top: (d = d < 0 ? 0 : d), left: p }),
            a.css({ top: f, left: h }),
            u
              ? a.hide()
              : a
                  .css({ left: h, top: f, transform: "rotate(" + m + "deg)" })
                  .show());
        },
        A = function (e) {
          if (e.is(":visible")) {
            var t = e.hasClass("h5p-question-popup"),
              n = e
                .clone()
                .css({
                  position: "absolute",
                  "max-height": "none",
                  width: t ? "" : "100%",
                })
                .appendTo(e.parent()),
              i =
                parseFloat(e.css("margin-left")) +
                parseFloat(e.css("margin-right")),
              t = n.css("width") ? n.css("width") : "100%";
            n.css("width", "calc(" + t + " - " + i + "px)");
            ((t = Math.round(n.get(0).getBoundingClientRect().height)),
              (i = parseFloat(e.css("fontSize"))));
            return (
              e.css("max-height", t / i + "em"),
              n.remove(),
              0 < t &&
                y.buttons &&
                y.buttons.$element === e &&
                (q(y.buttons), setTimeout(B, 150)),
              t
            );
          }
          e.css("max-height", "none");
        },
        D = function (e) {
          for (var t = 0; t < P.length; t++) j(P[t].id);
          ((P = []), e && u.focusButton());
        },
        j = function (e) {
          (w[e].$element.detach(), (w[e].isVisible = !1));
        },
        L = function (e, t, n) {
          if (
            ((t = t || 0),
            (n = n || 5),
            e && e instanceof z && document !== e.get(0) && !(n <= t))
          )
            return "auto" === e.css("overflow-y") ? e : L(e.parent(), t + 1, n);
        },
        B = function () {
          var e;
          w &&
            y.buttons &&
            ((e = function () {
              if (y.buttons.$element.is(":visible")) {
                var e,
                  t = { max: 0, min: 0, current: 0 };
                for (e in w) {
                  var n = w[e];
                  n.isVisible &&
                    (R(w[e]),
                    (t.max += n.width.max),
                    (t.min += n.width.min),
                    (t.current += n.isTruncated ? n.width.min : n.width.max));
                }
                function i(e) {
                  return t.max < e
                    ? (t.max !== t.current && M(t.current, e), !0)
                    : t.min < e && ((t.current > e ? O : M)(t.current, e), !0);
                }
                (N(!1),
                  i(Math.floor(y.buttons.$element.width()) - 1) ||
                    (N(!0), i(Math.floor(y.buttons.$element.width()) - 1)));
              }
            }),
            y.buttons.$element.is(":visible")
              ? e()
              : (t && clearTimeout(t),
                (t = setTimeout(function () {
                  ((t = void 0), e());
                }, 0))));
        },
        N = function (e) {
          y.scorebar &&
          y.scorebar.$element &&
          y.scorebar.$element.hasClass("h5p-question-visible")
            ? (y.buttons.$element.addClass("has-scorebar"),
              y.buttons.$element.toggleClass("wrap", e),
              y.scorebar.$element.toggleClass("full-width", e))
            : y.buttons.$element.removeClass("has-scorebar");
        },
        O = function (e, t) {
          for (var n = x.length - 1; 0 <= n; n--) {
            var i = x[n],
              o = w[i];
            if (!o.isTruncated && o.isVisible) {
              var r = o.$element;
              e -= o.width.max - o.width.min;
              i = r.text();
              if (
                (r.attr("data-tooltip", i),
                o.ariaLabel || r.attr("aria-label", i),
                r.html("").addClass("truncated"),
                (o.isTruncated = !0),
                e <= t)
              )
                return;
            }
          }
        },
        M = function (e, t) {
          for (var n = 0; n < x.length; n++) {
            var i = x[n],
              i = w[i];
            if (i.isTruncated && i.isVisible) {
              if (t < (e += i.width.max - i.width.min + 1)) return;
              (i.$element.html(i.text),
                i.$element.removeAttr("data-tooltip"),
                i.ariaLabel || i.$element.removeAttr("aria-label"),
                i.$element.removeClass("truncated"),
                (i.isTruncated = !1));
            }
          }
        },
        q = function (e) {
          (e.$element.addClass("h5p-question-visible"), (e.isVisible = !0));
        },
        F = function (e) {
          (e.$element.css("max-height", ""),
            (e.isVisible = !1),
            setTimeout(function () {
              e.isVisible || e.$element.removeClass("h5p-question-visible");
            }, 150));
        };
      ((u.setBehaviour = function (e) {
        z.extend(C, e);
      }),
        (u.setVideo = function (e) {
          ((y.video = {
            $element: z("<div/>", { class: "h5p-question-video" }),
          }),
            E && e.params.playback && (e.params.playback.autoplay = !1),
            e.params.visuals || (e.params.visuals = {}),
            (e.params.visuals.fit = !1),
            (y.video.instance = H5P.newRunnable(
              e,
              u.contentId,
              y.video.$element,
              !0,
            )));
          var t = !1;
          return (
            y.video.instance.on("resize", function () {
              ((t = !0), u.trigger("resize"), (t = !1));
            }),
            u.on("resize", function () {
              t || y.video.instance.trigger("resize");
            }),
            u
          );
        }),
        (u.setAudio = function (e) {
          return (
            (e.params = e.params || {}),
            (y.audio = {
              $element: z("<div/>", { class: "h5p-question-audio" }),
            }),
            E
              ? (e.params.autoplay = !1)
              : "transparent" === e.params.playerMode &&
                (e.params.autoplay = !0),
            (y.audio.instance = H5P.newRunnable(
              e,
              u.contentId,
              y.audio.$element,
              !0,
            )),
            y.audio.instance.audio &&
              (y.audio.instance.audio.style.height = ""),
            u
          );
        }),
        (u.pause = function () {
          (y.video && y.video.isVisible && y.video.instance.pause(),
            y.audio && y.audio.isVisible && y.audio.instance.pause());
        }),
        (u.play = function () {
          (y.video && y.video.isVisible && y.video.instance.play(),
            y.audio && y.audio.isVisible && y.audio.instance.play());
        }),
        (u.disableAutoPlay = function () {
          E = !0;
        }),
        (u.massageAttributeOutput = function (e) {
          e = new DOMParser().parseFromString(e, "text/html");
          const t = document.createElement("div");
          return (
            (t.innerHTML = e.documentElement.textContent),
            t.textContent || t.innerText || ""
          );
        }),
        (u.setImage = function (e, t) {
          ((t = t || {}),
            (y.image = {}),
            (y.image.$element = z("<div/>", {
              class: "h5p-question-image h5p-question-image-fill-width",
            })));
          var n = z("<div/>", {
              class: "h5p-question-image-wrap",
              appendTo: y.image.$element,
            }),
            i = z("<img/>", {
              src: H5P.getPath(e, u.contentId),
              alt: void 0 === t.alt ? "" : u.massageAttributeOutput(t.alt),
              title:
                void 0 === t.title ? "" : u.massageAttributeOutput(t.title),
              on: {
                load: function () {
                  (u.trigger("imageLoaded", this), u.trigger("resize"));
                },
              },
              appendTo: n,
            });
          if (!t.disableImageZooming) {
            const s = () => {
              var e =
                "true" === n.attr("aria-expanded")
                  ? t.minimizeImage
                  : t.expandImage;
              n.attr("aria-label", e + " " + t.alt);
            };
            var o = !1;
            return (
              u.on("resize", function () {
                !o &&
                  i.is(":visible") &&
                  (n
                    .addClass("h5p-question-image-scalable")
                    .attr("aria-expanded", !1)
                    .attr("role", "button")
                    .attr("tabIndex", "0")
                    .on("click", function (e) {
                      1 === e.which && (a.apply(this), s());
                    })
                    .on("keypress", function (e) {
                      32 === e.which &&
                        (e.preventDefault(), a.apply(this), s());
                    }),
                  s(),
                  y.image.$element.removeClass("h5p-question-image-fill-width"),
                  (o = !0));
              }),
              u
            );
          }
          i.css("maxHeight", "none");
          function r() {
            var e = y.image.$element.get(0).getBoundingClientRect().width;
            n.css({ "-webkit-transition": "none", transition: "none" });
            var t =
              2 *
              (n.get(0).getBoundingClientRect().left -
                y.image.$element.get(0).getBoundingClientRect().left);
            (i.get(0).naturalWidth >= e - t
              ? y.image.$element.addClass("h5p-question-image-fill-width")
              : y.image.$element.removeClass("h5p-question-image-fill-width"),
              n.css({ "-webkit-transition": "", transition: "" }));
          }
          i.is(":visible") ? r() : i.on("load", r);
        }),
        (u.setIntroduction = function (e) {
          return (d("introduction", e), u);
        }),
        (u.setContent = function (e, t) {
          return (
            d("content", e),
            t && t.class && y.content.$element.addClass(t.class),
            u
          );
        }),
        (u.read = function (e) {
          r &&
            (c ? (c += ("." === c.substr(-1, 1) ? " " : ". ") + e) : (c = e),
            r.html(c),
            setTimeout(function () {
              ((c = null), r.html(""));
            }, 100));
        }),
        (u.readFeedback = function () {
          var e;
          C.disableReadSpeaker ||
            !v ||
            !y.feedback ||
            !y.feedback.$element ||
            ((e = z(
              ".h5p-question-feedback-content-text",
              y.feedback.$element,
            )) &&
              e.html() &&
              e.html().length &&
              u.read(e.html()));
        }),
        (u.removeFeedback = function () {
          return (
            clearTimeout(b),
            y.feedback &&
              v &&
              ((v = !1),
              F(y.scorebar),
              F(y.feedback),
              (k = !0),
              (b = setTimeout(function () {
                (v ||
                  (y.feedback.$element.children().detach(),
                  y.scorebar.$element.children().detach(),
                  u.trigger("resize")),
                  (k = !1),
                  g.setScore(0));
              }, 150)),
              f && f.find(".h5p-question-feedback-tail").remove()),
            u
          );
        }),
        (u.setFeedback = function (e, t, n, i, o, r, s) {
          if (C.disableFeedback) return u;
          (h(),
            (m = null != r && null != r.click ? r.click : null),
            clearTimeout(b));
          var a = z("<div>", { class: "h5p-question-feedback-container" }),
            l = z("<div>", { class: "h5p-question-feedback-content" }).appendTo(
              a,
            );
          z("<div>", {
            class: "h5p-question-feedback-content-text",
            html: e,
          }).appendTo(l);
          var c = z("<div>", { class: "h5p-question-scorebar-container" });
          return (
            (g = void 0 === g ? W.createScoreBar(n, i, o, s) : g).appendTo(c),
            l.toggleClass("has-content", void 0 !== e && 0 < e.length),
            !C.disableReadSpeaker &&
              i &&
              u.read(
                i.replace(":num", t).replace(":total", n) + ". " + (e || ""),
              ),
            (v = !0),
            y.feedback
              ? (p("feedback", a), p("scorebar", c))
              : (d("feedback", a),
                d("scorebar", c),
                H &&
                  f &&
                  (I(u.order, "feedback", y, f), I(u.order, "scorebar", y, f))),
            q(y.feedback),
            q(y.scorebar),
            B(),
            null != r && 1 == r.showAsPopup
              ? ((function (e) {
                  var t = y.feedback.$element,
                    n = y.content.$element,
                    i = null != m ? m.$element : null;
                  (t.appendTo(n).addClass("h5p-question-popup"),
                    y.scorebar && y.scorebar.$element.appendTo(t),
                    n.addClass("h5p-has-question-popup"));
                  var o = z("<div/>", { class: "h5p-question-feedback-tail" })
                      .hide()
                      .appendTo(n),
                    e = z("<div/>", {
                      class: "h5p-question-feedback-close",
                      tabindex: 0,
                      title: e,
                      on: {
                        click: function (e) {
                          (t.remove(), o.remove(), e.preventDefault());
                        },
                        keydown: function (e) {
                          switch (e.which) {
                            case 13:
                            case 32:
                              (t.remove(), o.remove(), e.preventDefault());
                          }
                        },
                      },
                    })
                      .hide()
                      .appendTo(t);
                  (null != i &&
                    (i.hasClass("correct")
                      ? (t.addClass("h5p-question-feedback-correct"),
                        e.show(),
                        y.buttons.$element.hide())
                      : y.buttons.$element.appendTo(y.feedback.$element)),
                    $(t, i));
                })(r.closeText),
                g.setScore(t))
              : (b = setTimeout(function () {
                  var e;
                  (A(y.feedback.$element),
                    A(y.scorebar.$element),
                    (k = !0),
                    !f ||
                      (f.hasClass("h5p-standalone") && !H5P.isFullscreen) ||
                      ((e = L(f)) &&
                        e.animate({ scrollTop: f.css("height") }, "slow")),
                    (b = setTimeout(function () {
                      ((k = !1), u.trigger("resize"), g.setScore(t));
                    }, 150)));
                }, 0)),
            u
          );
        }),
        (u.updateFeedbackContent = function (e, t) {
          return (
            y.feedback &&
              y.feedback.$element &&
              (t &&
                (e =
                  z(
                    ".h5p-question-feedback-content",
                    y.feedback.$element,
                  ).html() +
                  " " +
                  e),
              z(".h5p-question-feedback-content", y.feedback.$element)
                .html(e)
                .addClass("has-content"),
              A(y.feedback.$element),
              setTimeout(u.trigger.bind(u, "resize"), 150)),
            u
          );
        }),
        (u.setExplanation = function (e, t) {
          return (
            e
              ? ((e = new H5P.Question.Explainer(t, e)),
                y.explanation
                  ? p("explanation", e.getElement())
                  : (d("explanation", e.getElement()),
                    H && f && I(u.order, "explanation", y, f)))
              : y.explanation && y.explanation.$element.children().detach(),
            u
          );
        }),
        (u.hasButton = function (e) {
          return void 0 !== w[e];
        }),
        (u.addButton = function (e, t, n, i, o, r) {
          if (w[e]) return u;
          (void 0 === y.buttons &&
            (d("buttons"), H && I(u.order, "buttons", y, f)),
            ((r = r || {}).confirmationDialog = r.confirmationDialog || {}),
            (o = o || {}));
          function s() {
            r.confirmationDialog.enable && a
              ? (r.confirmationDialog.$parentElement ||
                  y.popups.$element.removeClass("hidden"),
                a.show(c.position().top))
              : n();
          }
          var a = u.addConfirmationDialogToButton(r.confirmationDialog, n);
          (r.contentData &&
            r.contentData.standalone &&
            (r.contentData.isScoringEnabled ||
              r.contentData.isReportingEnabled) &&
            r.textIfSubmitting &&
            (t = r.textIfSubmitting),
            (w[e] = {
              isTruncated: !1,
              text: t,
              isVisible: !1,
              ariaLabel: o["aria-label"],
            }));
          var l = void 0 !== o.href,
            c = (w[e].$element = W.createButton(
              z.extend(
                {
                  class: "h5p-question-" + e,
                  html: t,
                  on: {
                    click: function (e) {
                      (s(), l && e.preventDefault());
                    },
                  },
                },
                o,
              ),
            ));
          return (
            x.push(e),
            H5P.Tooltip(c.get(0), { tooltipSource: "data-tooltip" }),
            l &&
              c.on("keypress", function (e) {
                32 === e.which && (s(), e.preventDefault());
              }),
            (void 0 !== i && !i) ||
              (c.appendTo(y.buttons.$element),
              (w[e].isVisible = !0),
              q(y.buttons)),
            u
          );
        }));
      var R = function (e) {
        var t = e.$element,
          t = t
            .clone()
            .css({
              position: "absolute",
              "white-space": "nowrap",
              "max-width": "none",
            })
            .removeClass("truncated")
            .html(e.text)
            .appendTo(t.parent());
        ((e.width = {
          max: Math.ceil(
            t.outerWidth() +
              parseFloat(t.css("margin-left")) +
              parseFloat(t.css("margin-right")),
          ),
        }),
          t.html("").addClass("truncated"),
          (e.width.min = Math.ceil(
            t.outerWidth() +
              parseFloat(t.css("margin-left")) +
              parseFloat(t.css("margin-right")),
          )),
          t.remove());
      };
      ((u.addConfirmationDialogToButton = function (t, e) {
        if ((t = t || {}).enable) {
          var n = new H5P.ConfirmationDialog({
            instance: t.instance,
            headerText: t.l10n.header,
            dialogText: t.l10n.body,
            cancelText: t.l10n.cancelLabel,
            confirmText: t.l10n.confirmLabel,
          });
          if (t.$parentElement) {
            const i = t.$parentElement.get(0);
            let e;
            (i.classList.contains("h5p-content") &&
              (e = i.querySelector(".h5p-container")),
              n.appendTo(e ?? i));
          } else
            (void 0 === y.popups &&
              (d("popups"),
              H && I(u.order, "popups", y, f),
              y.popups.$element.addClass("hidden"),
              u.order.push("popups")),
              n.appendTo(y.popups.$element.get(0)));
          return (
            n.on("confirmed", function () {
              (t.$parentElement || y.popups.$element.addClass("hidden"),
                e(),
                u.trigger("confirmed"));
            }),
            n.on("canceled", function () {
              (t.$parentElement || y.popups.$element.addClass("hidden"),
                u.trigger("canceled"));
            }),
            n
          );
        }
      }),
        (u.showButton = function (e, t) {
          var n = -1 !== i(e, "id", P);
          if (void 0 === w[e] || (!0 === w[e].isVisible && !n)) return u;
          t = t || 0;
          n = i(e, "id", S);
          if (-1 !== n) return (S[n].priority < t && (S[n].priority = t), u);
          n = i(e, "id", P);
          return (
            -1 !== n
              ? P[n].priority <= t &&
                (P.splice(n, 1), S.push({ id: e, priority: t }))
              : w[e].$element.is(":visible") || S.push({ id: e, priority: t }),
            (s = s || setTimeout(h, 0)),
            u
          );
        }),
        (u.hideButton = function (e, t) {
          var n = -1 !== i(e, "id", S);
          if (void 0 === w[e] || (!1 === w[e].isVisible && !n)) return u;
          t = t || 0;
          n = i(e, "id", P);
          if (-1 !== n) return (P[n].priority < t && (P[n].priority = t), u);
          n = i(e, "id", S);
          return (
            -1 !== n
              ? S[n].priority <= t &&
                (S.splice(n, 1), P.push({ id: e, priority: t }))
              : w[e].$element.is(":visible")
                ? P.push({ id: e, priority: t })
                : j(e),
            (s = s || setTimeout(h, 0)),
            u
          );
        }),
        (u.focusButton = function (e) {
          if (void 0 === e)
            for (var t = 0; t < x.length; t++) {
              var n = w[x[t]];
              if (n && n.isVisible) {
                n.$element.focus();
                break;
              }
            }
          else w[e] && w[e].$element.is(":visible") && w[e].$element.focus();
          return u;
        }),
        (u.toggleReadSpeaker = function (e) {
          C.disableReadSpeaker = e || !C.disableReadSpeaker;
        }),
        (u.insertSectionAtElement = function (e, t) {
          return (
            void 0 === y[e] && d(e),
            (y[e].parent = t),
            H || I([e], e, y, t),
            u
          );
        }),
        (u.attach = function (e) {
          (u.isRoot() && u.setActivityStarted(),
            void 0 === f &&
              (void 0 !== u.registerDomElements &&
                (u.registerDomElements instanceof Function ||
                  "function" == typeof u.registerDomElements) &&
                u.registerDomElements(),
              (r = z("<div/>", {
                "aria-live": "polite",
                class: "h5p-hidden-read",
              })),
              d("read", r),
              u.trigger("registerDomElements")),
            (f = e).html("").addClass("h5p-question h5p-" + o));
          for (var t = [], n = 0; n < u.order.length; n++) {
            var i = u.order[n];
            y[i] &&
              (y[i].parent
                ? y[i].$element.appendTo(y[i].parent)
                : t.push(y[i].$element),
              (y[i].isVisible = !0));
          }
          return (
            e.append(t),
            u.trigger(
              "domChanged",
              {
                $target: e,
                library: u.libraryInfo.machineName,
                contentId: u.contentId,
                key: "newLibrary",
              },
              { bubbles: !0, external: !0 },
            ),
            (H = !0),
            u
          );
        }),
        (u.detachSections = function () {
          for (var e in ((H = !1), y)) y[e].$element.detach();
          return u;
        }),
        u.on("resize", function () {
          !k && y.feedback && v && A(y.feedback.$element);
          var e = y.feedback,
            t = m;
          (null != e &&
            null != e.$element &&
            null != t &&
            null != t.$element &&
            setTimeout(function () {
              $(e.$element, t.$element);
            }, 10),
            B());
        }));
    }
    return (
      (((t.prototype = Object.create(e.prototype)).constructor =
        t).determineOverallFeedback = function (e, t) {
        t = Math.floor(100 * t);
        for (var n = 0; n < e.length; n++) {
          var i = e[n],
            o = void 0 !== i.feedback && 0 !== i.feedback.trim().length;
          if (i.from <= t && i.to >= t && o) return i.feedback;
        }
        return "";
      }),
      t
    );
  })(H5P.jQuery, H5P.EventDispatcher, H5P.JoubelUI)),
  /*!@license H5P.Question-1.5/scripts/explainer.js by Joubel licensed under MIT*/ (H5P.Question.Explainer =
    (function (l) {
      return function (r, s) {
        var a = this;
        (!(function () {
          ((a.$explanation = l("<div>", {
            class: "h5p-question-explanation-container",
          })),
            l("<div>", {
              class: "h5p-question-explanation-title",
              role: "heading",
              html: r,
              appendTo: a.$explanation,
            }));
          for (
            var e = l("<ul>", {
                class: "h5p-question-explanation-list",
                appendTo: a.$explanation,
              }),
              t = 0;
            t < s.length;
            t++
          ) {
            var n = s[t],
              i = l("<li>", {
                class: "h5p-question-explanation-item",
                appendTo: e,
              }),
              o = l("<div>", { class: "h5p-question-explanation-status" });
            (n.correct &&
              l("<span>", {
                class: "h5p-question-explanation-correct",
                html: n.correct,
                appendTo: o,
              }),
              n.wrong &&
                l("<span>", {
                  class: "h5p-question-explanation-wrong",
                  html: n.wrong,
                  appendTo: o,
                }),
              o.appendTo(i),
              n.text &&
                l("<div>", {
                  class: "h5p-question-explanation-text",
                  html: n.text,
                  appendTo: i,
                }));
          }
        })(),
          (a.getElement = function () {
            return a.$explanation;
          }));
      };
    })(H5P.jQuery)),
  (H5P.Question.ScorePoints = function () {
    var n,
      i = [];
    this.getElement = function (e) {
      var t = document.createElement("div");
      return (
        t.classList.add(e ? "h5p-question-plus-one" : "h5p-question-minus-one"),
        t.classList.add("h5p-question-hidden-one"),
        i.push(t),
        n && clearTimeout(n),
        (n = setTimeout(o, 0)),
        t
      );
    };
    var o = function () {
        var e = 0,
          t = 150;
        i.length && i.length > Math.ceil(1e3 / t) && (t = 1e3 / i.length);
        for (var n = 0; n < i.length; n++) (setTimeout(r(i[n]), e), (e += t));
      },
      r = function (e) {
        return function () {
          e.classList.remove("h5p-question-hidden-one");
        };
      };
  }),
  ((H5P = H5P || {}).SingleChoiceSet = H5P.SingleChoiceSet || {}),
  (H5P.SingleChoiceSet.StopWatch = (function () {
    function e() {
      this.duration = 0;
    }
    return (
      (e.prototype.start = function () {
        return ((this.startTime = Date.now()), this);
      }),
      (e.prototype.stop = function () {
        return (
          (this.duration = this.duration + Date.now() - this.startTime),
          this.passedTime()
        );
      }),
      (e.prototype.reset = function () {
        this.duration = 0;
      }),
      (e.prototype.passedTime = function () {
        return Math.round(this.duration / 10) / 100;
      }),
      e
    );
  })()),
  /*!@license H5P.SingleChoiceSet-1.11/scripts/sound-effects.js by Joubel licensed under MIT*/ (H5P.SingleChoiceSet =
    H5P.SingleChoiceSet || {}),
  (H5P.SingleChoiceSet.SoundEffects = (function () {
    let e = !1;
    const t = { types: ["positive-short", "negative-short"] },
      r = {};
    return (
      (t.setup = function (o) {
        return (
          !e &&
          ((e = !0),
          t.types.forEach(async function (e) {
            const t = new Audio();
            var n = t.canPlayType("audio/ogg") ? "ogg" : "mp3";
            const i = await fetch(o + "sounds/" + e + "." + n);
            n = await i.blob();
            ((t.src = URL.createObjectURL(n)), (r[e] = t));
          }),
          !0)
        );
      }),
      (t.play = function (e, t) {
        r[e] &&
          setTimeout(function () {
            r[e].play();
          }, t || 0);
      }),
      t
    );
  })()),
  ((H5P = H5P || {}).SingleChoiceSet = H5P.SingleChoiceSet || {}),
  (H5P.SingleChoiceSet.XApiEventBuilder = (function (t, e) {
    function n() {
      (e.call(this), (this.attributes = {}));
    }
    function i() {
      (e.call(this), (this.attributes = {}));
    }
    function o() {
      (e.call(this), (this.attributes = {}));
    }
    ((((n.prototype = Object.create(e.prototype)).constructor =
      n).prototype.name = function (e) {
      return ((this.attributes.name = e), this);
    }),
      (n.prototype.description = function (e) {
        return ((this.attributes.description = e), this);
      }),
      (n.prototype.interactionType = function (e) {
        return ((this.attributes.interactionType = e), this);
      }),
      (n.prototype.correctResponsesPattern = function (e) {
        return ((this.attributes.correctResponsesPattern = e), this);
      }),
      (n.prototype.optional = function (e) {
        return ((this.attributes.optional = e), this);
      }),
      (n.prototype.build = function () {
        var e = {};
        return (
          c(e, "name", r(this.attributes.name)),
          c(e, "description", r(this.attributes.description)),
          c(e, "interactionType", this.attributes.interactionType),
          c(
            e,
            "correctResponsesPattern",
            this.attributes.correctResponsesPattern,
          ),
          c(e, "type", "http://adlnet.gov/expapi/activities/cmi.interaction"),
          this.attributes.optional && t.extend(e, this.attributes.optional),
          e
        );
      }),
      (((i.prototype = Object.create(e.prototype)).constructor =
        i).prototype.completion = function (e) {
        return ((this.attributes.completion = e), this);
      }),
      (i.prototype.success = function (e) {
        return ((this.attributes.success = e), this);
      }),
      (i.prototype.duration = function (e) {
        return ((this.attributes.duration = e), this);
      }),
      (i.prototype.response = function (e) {
        return (
          (this.attributes.response = "string" == typeof e ? e : e.join("[,]")),
          this
        );
      }),
      (i.prototype.score = function (e, t) {
        return (
          (this.attributes.rawScore = e),
          (this.attributes.maxScore = t),
          this
        );
      }),
      (i.prototype.build = function () {
        var e = {};
        return (
          c(e, "response", this.attributes.response),
          c(e, "completion", this.attributes.completion),
          c(e, "success", this.attributes.success),
          l(this.attributes.duration) &&
            c(e, "duration", "PT" + this.attributes.duration + "S"),
          l(this.attributes.rawScore) &&
            ((e.score = {}),
            c(e.score, "raw", this.attributes.rawScore),
            l(this.attributes.maxScore) &&
              0 < this.attributes.maxScore &&
              (c(e.score, "min", 0),
              c(e.score, "max", this.attributes.maxScore),
              c(e.score, "min", 0),
              c(
                e.score,
                "scaled",
                Math.round(
                  (this.attributes.rawScore / this.attributes.maxScore) * 1e4,
                ) / 1e4,
              ))),
          e
        );
      }),
      (((o.prototype = Object.create(e.prototype)).constructor =
        o).prototype.verb = function (e) {
        return ((this.attributes.verb = e), this);
      }),
      (o.prototype.actor = function (e, t, n) {
        return (
          (this.attributes.actor = { name: e, mbox: t, objectType: n }),
          this
        );
      }),
      (o.prototype.contentId = function (e, t) {
        return (
          (this.attributes.contentId = e),
          (this.attributes.subContentId = t),
          this
        );
      }),
      (o.prototype.context = function (e, t) {
        return (
          (this.attributes.parentContentId = e),
          (this.attributes.parentSubContentId = t),
          this
        );
      }),
      (o.prototype.result = function (e) {
        return ((this.attributes.result = e), this);
      }),
      (o.prototype.objectDefinition = function (e) {
        return ((this.attributes.objectDefinition = e), this);
      }),
      (o.prototype.build = function () {
        var e,
          t = new H5P.XAPIEvent();
        return (
          t.setActor(),
          t.setVerb(this.attributes.verb),
          (this.attributes.parentContentId ||
            this.attributes.parentSubContentId) &&
            ((t.data.statement.context = {
              contextActivities: {
                parent: [
                  {
                    id: s(
                      this.attributes.parentContentId,
                      this.attributes.parentSubContentId,
                    ),
                    objectType: "Activity",
                  },
                ],
              },
            }),
            H5P.xApiSessionId &&
              (t.data.statement.context.extensions = {
                "https://h5p.com/xapi/session-id": H5P.xApiSessionId,
              })),
          (t.data.statement.object = {
            id: s(this.attributes.contentId, this.attributes.subContentId),
            objectType: "Activity",
          }),
          c(t.data, "actor", this.attributes.actor),
          c(t.data.statement, "result", this.attributes.result),
          c(
            t.data.statement.object,
            "definition",
            this.attributes.objectDefinition,
          ),
          t.data.statement.object.definition &&
            (this.attributes.contentId || this.attributes.subContentId) &&
            (c(
              (e = t.data.statement.object.definition.extensions = {}),
              "http://h5p.org/x-api/h5p-local-content-id",
              this.attributes.contentId,
            ),
            c(
              e,
              "http://h5p.org/x-api/h5p-subContentId",
              this.attributes.subContentId,
            )),
          t
        );
      }));
    var r = function (e) {
        if (null != e) return { "en-US": a(e) };
      },
      s = function (e, t) {
        var n = "cid-" + e;
        if (
          e &&
          H5PIntegration &&
          H5PIntegration.contents &&
          H5PIntegration.contents[n]
        ) {
          n = H5PIntegration.contents[n].url;
          return (t && (n += "?subContentId=" + t), n);
        }
      },
      a = function (e) {
        return t("<div>" + e + "</div>")
          .text()
          .trim();
      },
      l = function (e) {
        return void 0 !== e;
      };
    function c(e, t, n, i) {
      l(n)
        ? (e[t] = n)
        : i &&
          console.error("xApiEventBuilder: No value for [" + t + "] in", e);
    }
    return (
      (o.create = function () {
        return new o();
      }),
      (o.createDefinition = function () {
        return new n();
      }),
      (o.createResult = function () {
        return new i();
      }),
      (o.createChoice = function (e, t) {
        return { id: e, description: r(t) };
      }),
      (o.createCorrectResponsePattern = function (e) {
        return e.join("[,]");
      }),
      (o.interactionTypes = {
        CHOICE: "choice",
        COMPOUND: "compound",
        FILL_IN: "fill-in",
        MATCHING: "matching",
        TRUE_FALSE: "true-false",
      }),
      (o.verbs = { ANSWERED: "answered" }),
      o
    );
  })(H5P.jQuery, H5P.EventDispatcher)),
  ((H5P = H5P || {}).SingleChoiceSet = H5P.SingleChoiceSet || {}),
  (H5P.SingleChoiceSet.ResultSlide = (function (n, i) {
    function e(e) {
      (i.call(this),
        (this.$feedbackContainer = n("<div>", {
          class: "h5p-sc-feedback-container",
          tabindex: "-1",
        })),
        (this.$buttonContainer = n("<div/>", {
          class: "h5p-sc-button-container",
        })));
      var t = n("<div/>", { class: "h5p-sc-result-container" })
        .append(this.$feedbackContainer)
        .append(this.$buttonContainer);
      this.$resultSlide = n("<div>", {
        class: "h5p-sc-slide h5p-sc-set-results",
        css: { left: 100 * e + "%" },
      }).append(t);
    }
    return (
      (((e.prototype = Object.create(i.prototype)).constructor =
        e).prototype.focusScore = function () {
        this.$feedbackContainer.focus();
      }),
      (e.prototype.appendTo = function (e) {
        return (this.$resultSlide.appendTo(e), this.$resultSlide);
      }),
      e
    );
  })(H5P.jQuery, H5P.EventDispatcher)),
  ((H5P = H5P || {}).SingleChoiceSet = H5P.SingleChoiceSet || {}),
  (H5P.SingleChoiceSet.SolutionView = (function (o, r) {
    function e(e, t, n) {
      r.call(this);
      var i = this;
      ((i.id = e),
        (this.choices = t),
        (i.l10n = n),
        (this.$solutionView = o("<div>", { class: "h5p-sc-solution-view" })),
        (this.$header = o("<div>", {
          class: "h5p-sc-solution-view-header",
        }).appendTo(this.$solutionView)),
        (this.$title = o("<div>", {
          class: "h5p-sc-solution-view-title",
          html: n.solutionViewTitle,
          tabindex: "-1",
        })),
        (this.$title = this.addAriaPunctuation(this.$title)),
        this.$header.append(this.$title),
        o("<button>", {
          role: "button",
          "aria-label": n.closeButtonLabel + ".",
          class: "h5p-joubelui-button h5p-sc-close-solution-view",
          click: function () {
            i.hide();
          },
        }).appendTo(this.$header),
        i.populate());
    }
    return (
      (e.prototype.appendTo = function (e) {
        this.$solutionView.appendTo(e);
      }),
      (e.prototype.show = function () {
        var t = this;
        (t.$solutionView.addClass("visible"),
          t.$title.focus(),
          o(document).on("keyup.solutionview", function (e) {
            27 === e.keyCode &&
              (t.hide(), o(document).off("keyup.solutionview"));
          }));
      }),
      (e.prototype.hide = function () {
        (this.$solutionView.removeClass("visible"), this.trigger("hide", this));
      }),
      (e.prototype.populate = function () {
        var n = this;
        ((n.$choices = o("<dl>", {
          class: "h5p-sc-solution-choices",
          tabindex: -1,
        })),
          this.choices.forEach(function (e, t) {
            e.question &&
              e.answers &&
              0 !== e.answers.length &&
              ((t = n.addAriaPunctuation(
                o("<dt>", {
                  class: "h5p-sc-solution-question",
                  html:
                    '<span class="h5p-hidden-read">' +
                    n.l10n.solutionListQuestionNumber.replace(":num", t + 1) +
                    "</span>" +
                    e.question,
                }),
              )),
              n.$choices.append(t),
              (e = n.addAriaPunctuation(
                o("<dd>", {
                  class: "h5p-sc-solution-answer",
                  html: e.answers[0],
                }),
              )),
              n.$choices.append(e));
          }),
          n.$choices.appendTo(this.$solutionView));
      }),
      (e.prototype.addAriaPunctuation = function (e) {
        var t = e.text().trim();
        return (this.hasPunctuation(t) || e.attr("aria-label", t + "."), e);
      }),
      (e.prototype.hasPunctuation = function (e) {
        return /[,.?!]$/.test(e);
      }),
      e
    );
  })(H5P.jQuery, H5P.EventDispatcher)),
  ((H5P = H5P || {}).SingleChoiceSet = H5P.SingleChoiceSet || {}),
  (H5P.SingleChoiceSet.Alternative = (function (i, o) {
    function e(e) {
      o.call(this);
      var t = this;
      this.options = e;
      function n(e) {
        (t.trigger("alternative-selected", {
          correct: t.options.correct,
          $element: t.$alternative,
          answerIndex: t.options.answerIndex,
        }),
          e.preventDefault());
      }
      ((this.$alternative = i("<li>", {
        class:
          "h5p-sc-alternative h5p-sc-is-" +
          (this.options.correct ? "correct" : "wrong"),
        role: "radio",
        tabindex: -1,
        on: {
          keydown: function (e) {
            switch (e.which) {
              case 13:
              case 32:
                n(e);
                break;
              case 35:
                (t.trigger("lastOption", e), e.preventDefault());
                break;
              case 36:
                (t.trigger("firstOption", e), e.preventDefault());
                break;
              case 37:
              case 38:
                (t.trigger("previousOption", e), e.preventDefault());
                break;
              case 39:
              case 40:
                (t.trigger("nextOption", e), e.preventDefault());
            }
          },
        },
        focus: function (e) {
          t.trigger("focus", e);
        },
        click: n,
      })),
        this.$alternative.append(i("<div>", { class: "h5p-sc-progressbar" })),
        this.$alternative.append(
          i("<div>", { class: "h5p-sc-label", html: this.options.text }),
        ),
        this.$alternative.append(i("<div>", { class: "h5p-sc-status" })),
        this.$alternative.append(
          i("<div>", { class: "h5p-sc-a11y", "aria-hidden": "true" }),
        ));
    }
    return (
      (((e.prototype = Object.create(o.prototype)).constructor =
        e).prototype.isCorrect = function () {
        return this.options.correct;
      }),
      (e.prototype.focus = function () {
        this.$alternative.focus();
      }),
      (e.prototype.tabbable = function () {
        this.$alternative.attr("tabindex", 0);
      }),
      (e.prototype.notTabbable = function () {
        this.$alternative.attr("tabindex", -1);
      }),
      (e.prototype.appendTo = function (e) {
        return (e.append(this.$alternative), this.$alternative);
      }),
      e
    );
  })(H5P.jQuery, H5P.EventDispatcher)),
  ((H5P = H5P || {}).SingleChoiceSet = H5P.SingleChoiceSet || {}),
  (H5P.SingleChoiceSet.SingleChoice = (function (h, r, f) {
    function e(e, t, n, i) {
      (r.call(this),
        (this.options = h.extend(!0, {}, { question: "", answers: [] }, e)),
        (this.isAutoConfinue = i),
        (this.index = t),
        (this.id = n),
        (this.answered = !1));
      for (var o = 0; o < this.options.answers.length; o++)
        this.options.answers[o] = {
          text: this.options.answers[o],
          correct: 0 === o,
          answerIndex: o,
        };
      this.options.answers = H5P.shuffleArray(this.options.answers);
    }
    return (
      (((e.prototype = Object.create(r.prototype)).constructor =
        e).prototype.appendTo = function (e, t) {
        var n,
          o = this;
        ((this.$container = e),
          (this.$choice = h("<div>", {
            class: "h5p-sc-slide h5p-sc" + (t ? " h5p-sc-current-slide" : ""),
            css: { left: 100 * o.index + "%" },
          })));
        t = "single-choice-" + o.id + "-question-" + o.index;
        this.$choice.append(
          h("<div>", {
            id: t,
            class: "h5p-sc-question",
            html: this.options.question,
          }),
        );
        var i = h("<ul>", {
          class: "h5p-sc-alternatives",
          role: "radiogroup",
          "aria-labelledby": t,
        });
        this.alternatives = o.options.answers.map(function (e) {
          return new f(e);
        });
        function r(e) {
          var t = e.data.$element,
            n = e.data.correct,
            i = e.data.answerIndex;
          t.parent().hasClass("h5p-sc-selected") ||
            (o.trigger("alternative-selected", {
              correct: n,
              index: o.index,
              answerIndex: i,
              currentIndex: t.index(),
            }),
            H5P.Transition.onTransitionEnd(
              t.find(".h5p-sc-progressbar"),
              function () {
                (t.addClass("h5p-sc-drummed"), o.showResult(n, i));
              },
              700,
            ),
            t.addClass("h5p-sc-selected").parent().addClass("h5p-sc-selected"),
            this.setAnswered(!0));
        }
        function s(e, t) {
          ((n = t),
            o.alternatives.forEach(function (e) {
              e.notTabbable();
            }),
            e.tabbable());
        }
        function a() {
          0 === n
            ? this.focusOnAlternative(o.alternatives.length - 1)
            : this.focusOnAlternative(n - 1);
        }
        function l() {
          n === this.alternatives.length - 1
            ? this.focusOnAlternative(0)
            : this.focusOnAlternative(n + 1);
        }
        function c() {
          this.focusOnAlternative(0);
        }
        function u() {
          this.focusOnAlternative(o.alternatives.length - 1);
        }
        for (var d = 0; d < this.alternatives.length; d++) {
          var p = this.alternatives[d];
          (0 === d && p.tabbable(),
            p.appendTo(i),
            p.on("focus", s.bind(this, p, d), this),
            p.on("alternative-selected", r, this),
            p.on("previousOption", a, this),
            p.on("nextOption", l, this),
            p.on("firstOption", c, this),
            p.on("lastOption", u, this));
        }
        return (this.$choice.append(i), e.append(this.$choice), this.$choice);
      }),
      (e.prototype.focusOnAlternative = function (e) {
        (this.answered && this.isAutoConfinue) || this.alternatives[e].focus();
      }),
      (e.prototype.setAnswered = function (e) {
        this.answered = e;
      }),
      (e.prototype.showResult = function (e, t) {
        var n = this,
          i = n.$choice.find(".h5p-sc-is-correct");
        (H5P.Transition.onTransitionEnd(
          i,
          function () {
            (n.trigger("finished", {
              correct: e,
              index: n.index,
              answerIndex: t,
            }),
              n.setAriaAttributes());
          },
          600,
        ),
          n.$choice.find(".h5p-sc-is-wrong").addClass("h5p-sc-reveal-wrong"),
          i.addClass("h5p-sc-reveal-correct"));
      }),
      (e.prototype.resetA11yText = function () {
        this.$choice.find(".h5p-sc-a11y").text("");
      }),
      (e.prototype.setA11yTextReadable = function () {
        this.$choice.find(".h5p-sc-a11y").attr("aria-hidden", !1);
      }),
      (e.prototype.setAriaAttributes = function () {
        this.isAutoConfinue ||
          (this.$choice
            .find(".h5p-sc-alternative.h5p-sc-selected")
            .attr("aria-checked", !0),
          this.$choice.find(".h5p-sc-alternative").attr("aria-disabled", !0));
      }),
      (e.prototype.resetAriaAttributes = function () {
        if (!this.isAutoConfinue) {
          const e = this.$choice.find(".h5p-sc-alternative");
          (e.removeAttr("aria-disabled"), e.removeAttr("aria-checked"));
        }
      }),
      e
    );
  })(H5P.jQuery, H5P.EventDispatcher, H5P.SingleChoiceSet.Alternative)),
  ((H5P = H5P || {}).SingleChoiceSet = (function (s, a, l, c, u, d, p, r, t) {
    function e(e, t, n) {
      var i = this;
      ((this.contentId = t),
        (this.contentData = n),
        (this.userResponses = []),
        l.call(this, "single-choice-set"),
        (this.options = s.extend(
          !0,
          {},
          {
            choices: [],
            overallFeedback: [],
            behaviour: {
              autoContinue: !0,
              timeoutCorrect: 2e3,
              timeoutWrong: 3e3,
              soundEffectsEnabled: !0,
              enableRetry: !0,
              enableSolutionsButton: !0,
              passPercentage: 100,
            },
          },
          e,
        )),
        n &&
          void 0 !== n.previousState &&
          ((this.currentIndex = n.previousState.progress),
          (this.results = n.previousState.answers),
          (this.userResponses =
            void 0 !== n.previousState.userResponses
              ? n.previousState.userResponses
              : [])),
        (this.currentIndex = this.currentIndex || 0),
        (this.results = this.results || { corrects: 0, wrongs: 0 }),
        this.options.behaviour.autoContinue ||
          ((this.options.behaviour.timeoutCorrect = 0),
          (this.options.behaviour.timeoutWrong = 0)),
        (this.stopWatches = []),
        this.startStopWatch(this.currentIndex),
        (this.muted = !1 === this.options.behaviour.soundEffectsEnabled),
        (this.l10n = H5P.jQuery.extend(
          {
            correctText: "Correct!",
            incorrectText: "Incorrect!",
            shouldSelect: "Should have been selected",
            shouldNotSelect: "Should not have been selected",
            nextButtonLabel: "Next question",
            showSolutionButtonLabel: "Show solution",
            retryButtonLabel: "Retry",
            closeButtonLabel: "Close",
            solutionViewTitle: "Solution",
            slideOfTotal: "Slide :num of :total",
            muteButtonLabel: "Mute feedback sound",
            scoreBarLabel: "You got :num out of :total points",
            solutionListQuestionNumber: "Question :num",
            a11yShowSolution:
              "Show the solution. The task will be marked with its correct solution.",
            a11yRetry:
              "Retry the task. Reset all responses and start the task over again.",
          },
          void 0 !== e.l10n ? e.l10n : {},
        )),
        (this.$container = s("<div>", {
          class:
            "h5p-sc-set-wrapper navigatable" +
            (this.options.behaviour.autoContinue ? "" : " next-button-mode"),
        })),
        (this.$slides = []),
        (this.choices = []),
        (i.buttonsToBeHidden = []),
        (this.solutionView = new u(t, this.options.choices, this.l10n)),
        (this.$choices = s("<div>", { class: "h5p-sc-set h5p-sc-animate" })),
        (this.options.choices = this.options.choices.filter(function (e) {
          return void 0 !== e && !!e.answers;
        })));
      t = this.options.choices.length;
      ((i.progressbar = a.createProgressbar(t + 1, {
        progressText: this.l10n.slideOfTotal,
      })),
        i.progressbar.setProgress(this.currentIndex));
      for (var o = 0; o < this.options.choices.length; o++) {
        var r = new c(
          this.options.choices[o],
          o,
          this.contentId,
          this.options.behaviour.autoContinue,
        );
        (r.on("finished", this.handleQuestionFinished, this),
          r.on("alternative-selected", this.handleAlternativeSelected, this),
          r.appendTo(this.$choices, o === this.currentIndex),
          this.choices.push(r),
          this.$slides.push(r.$choice));
      }
      ((this.resultSlide = new d(this.options.choices.length)),
        this.resultSlide.appendTo(this.$choices),
        this.resultSlide.on(
          "retry",
          function () {
            i.resetTask(!0);
          },
          this,
        ),
        this.resultSlide.on("view-solution", this.handleViewSolution, this),
        this.$slides.push(this.resultSlide.$resultSlide),
        this.on("resize", this.resize, this),
        this.recklessJump(this.currentIndex),
        this.options.choices.length === this.currentIndex &&
          (this.resultSlide.$resultSlide.addClass("h5p-sc-current-slide"),
          this.setScore(this.results.corrects, !0)),
        this.muted ||
          setTimeout(function () {
            p.setup(i.getLibraryFilePath(""));
          }, 1),
        (this.superHideButton = i.hideButton),
        (this.hideButton = function (e) {
          return i.scoreTimeout
            ? (i.buttonsToBeHidden.push(e), this)
            : i.superHideButton(e);
        }));
    }
    ((((e.prototype = Object.create(l.prototype)).constructor =
      e).prototype.setTabbable = function (e, t) {
      e && e.attr("tabindex", t ? 0 : -1);
    }),
      (e.prototype.handleAlternativeSelected = function (e) {
        ((this.lastAnswerIsCorrect = e.data.correct),
          this.toggleNextButton(!0),
          this.results[this.lastAnswerIsCorrect ? "corrects" : "wrongs"]++,
          this.triggerXAPI("interacted"),
          this.readA11yFriendlyText(e.data.index, e.data.currentIndex),
          this.muted ||
            p.play(
              this.lastAnswerIsCorrect ? "positive-short" : "negative-short",
              700,
            ));
      }),
      (e.prototype.handleQuestionFinished = function (e) {
        var t = this,
          n = e.data.index,
          i = (t.userResponses[n] = e.data.answerIndex),
          e = this.stopStopWatch(n),
          e = t.createXApiAnsweredEvent(t.options.choices[n], i, e);
        (t.trigger(e), t.continue(n));
      }),
      (e.prototype.continue = function (e) {
        var t,
          n,
          i = this;
        (i.choices[e].setA11yTextReadable(),
          i.options.behaviour.autoContinue
            ? ((t = function () {
                (i.$container.off("click.impatient keydown.impatient"),
                  clearTimeout(n),
                  i.next());
              }),
              (n = setTimeout(
                function () {
                  t();
                },
                i.lastAnswerIsCorrect
                  ? i.options.behaviour.timeoutCorrect
                  : i.options.behaviour.timeoutWrong,
              )),
              i.onImpatientUser(t))
            : i.$nextButton.focus());
      }),
      (e.prototype.onImpatientUser = function (t) {
        (this.$container.off("click.impatient keydown.impatient"),
          this.$container.one("click.impatient", t),
          this.$container.one("keydown.impatient", function (e) {
            [13, 32, 39].indexOf(e.which) && t();
          }));
      }),
      (e.prototype.next = function () {
        this.move(this.currentIndex + 1);
      }),
      (e.prototype.createXApiAnsweredEvent = function (e, t, n) {
        var i = this,
          o = r.interactionTypes,
          o = r
            .createDefinition()
            .interactionType(o.CHOICE)
            .description(e.question)
            .correctResponsesPattern(i.getXApiCorrectResponsePattern())
            .optional(i.getXApiChoices(e.answers))
            .build(),
          t = r
            .createResult()
            .response(t.toString())
            .duration(n)
            .score(0 === t ? 1 : 0, 1)
            .completion(!0)
            .success(0 === t)
            .build();
        return r
          .create()
          .verb(r.verbs.ANSWERED)
          .objectDefinition(o)
          .context(i.contentId, i.subContentId)
          .contentId(i.contentId, e.subContentId)
          .result(t)
          .build();
      }),
      (e.prototype.getXApiCorrectResponsePattern = function () {
        return [r.createCorrectResponsePattern([(0).toString()])];
      }),
      (e.prototype.getXApiChoices = function (e) {
        return {
          choices: e.map(function (e, t) {
            return r.createChoice(t.toString(), e);
          }),
        };
      }),
      (e.prototype.handleQueuedButtonChanges = function () {
        var t = this;
        (t.buttonsToBeHidden.length &&
          t.buttonsToBeHidden.forEach(function (e) {
            t.superHideButton(e);
          }),
          (t.buttonsToBeHidden = []));
      }),
      (e.prototype.setScore = function (e, t) {
        var n,
          i = this;
        i.choices.length &&
          ((n = o(i.options.overallFeedback, e / i.options.choices.length)
            .replace(":numcorrect", e)
            .replace(":maxscore", i.options.choices.length.toString())),
          i.setFeedback(n, e, i.options.choices.length, i.l10n.scoreBarLabel),
          e === i.options.choices.length
            ? (i.hideButton("try-again"), i.hideButton("show-solution"))
            : (i.showButton("try-again"), i.showButton("show-solution")),
          i.handleQueuedButtonChanges(),
          (i.scoreTimeout = void 0),
          t ||
            i.triggerXAPIScored(
              e,
              i.options.choices.length,
              "completed",
              !0,
              (100 * e) / i.options.choices.length >=
                i.options.behaviour.passPercentage,
            ),
          i.trigger("resize"));
      }),
      (e.prototype.handleViewSolution = function () {
        var t = this,
          e = s(".h5p-question-try-again", t.$container),
          n = s(".h5p-question-show-solution", t.$container),
          i = [t.$muteButton, e, n];
        (i.forEach(function (e) {
          t.setTabbable(e, !1);
        }),
          t.solutionView.on("hide", function () {
            (i.forEach(function (e) {
              t.setTabbable(e, !0);
            }),
              t.toggleAriaVisibility(!0),
              t.focusButton());
          }),
          t.solutionView.show(),
          t.toggleAriaVisibility(!1));
      }),
      (e.prototype.toggleAriaVisibility = function (e) {
        e = e ? "" : "true";
        (this.$muteButton && this.$muteButton.attr("aria-hidden", e),
          this.progressbar.$progressbar.attr("aria-hidden", e),
          this.$choices.attr("aria-hidden", e));
      }),
      (e.prototype.registerDomElements = function () {
        (this.setContent(this.createQuestion()),
          this.addButtons(),
          this.insertSectionAtElement(
            "feedback",
            this.resultSlide.$feedbackContainer,
          ),
          this.insertSectionAtElement(
            "scorebar",
            this.resultSlide.$feedbackContainer,
          ),
          this.insertSectionAtElement(
            "buttons",
            this.resultSlide.$buttonContainer,
          ),
          this.options.choices.length === this.currentIndex &&
            this.trigger("question-finished"),
          this.trigger("resize"));
      }),
      (e.prototype.addButtons = function () {
        var e = this;
        (this.options.behaviour.enableRetry &&
          this.addButton(
            "try-again",
            this.l10n.retryButtonLabel,
            function () {
              e.resetTask(!0);
            },
            e.results.corrects !== e.options.choices.length,
            { "aria-label": this.l10n.a11yRetry },
          ),
          this.options.behaviour.enableSolutionsButton &&
            this.addButton(
              "show-solution",
              this.l10n.showSolutionButtonLabel,
              function () {
                e.showSolutions();
              },
              e.results.corrects !== e.options.choices.length,
              { "aria-label": this.l10n.a11yShowSolution },
            ));
      }),
      (e.prototype.createQuestion = function () {
        var t,
          n = this;
        function i(e) {
          var t = s(e.target);
          (e.preventDefault(),
            (n.muted = !n.muted),
            t.attr("aria-pressed", n.muted));
        }
        return (
          n.progressbar.appendTo(n.$container),
          n.$container.append(n.$choices),
          this.options.behaviour.autoContinue ||
            ((n.$nextButton = a.createButton({
              class: "h5p-ssc-next-button",
              "aria-label": n.l10n.nextButtonLabel,
              click: (t = function () {
                "true" !== n.$nextButton.attr("aria-disabled") && n.next();
              }),
              keydown: function (e) {
                switch (e.which) {
                  case 13:
                  case 32:
                    (t(), e.preventDefault());
                }
              },
              appendTo: n.$container,
            })),
            n.toggleNextButton(!1)),
          n.options.behaviour.soundEffectsEnabled &&
            (n.$muteButton = s("<div>", {
              class: "h5p-sc-sound-control",
              tabindex: 0,
              role: "button",
              "aria-label": n.l10n.muteButtonLabel,
              "aria-pressed": !1,
              on: {
                keydown: function (e) {
                  switch (e.which) {
                    case 13:
                    case 32:
                      i(e);
                  }
                },
              },
              click: i,
              prependTo: n.$container,
            })),
          n.solutionView.appendTo(n.$container),
          n.resize(),
          n.$container.addClass("initialized"),
          n.$container
        );
      }),
      (e.prototype.resize = function () {
        var t = 0;
        (this.choices.forEach(function (e) {
          e = e.$choice.outerHeight();
          t = t < e ? e : t;
        }),
          this.$choices.css({ minHeight: t + "px" }));
      }),
      (e.prototype.toggleNextButton = function (e) {
        this.$nextButton && this.$nextButton.attr("aria-disabled", !e);
      }),
      (e.prototype.recklessJump = function (e) {
        var t = "translateX(" + 100 * -e + "%)";
        (this.$choices.css({
          "-webkit-transform": t,
          "-moz-transform": t,
          "-ms-transform": t,
          transform: t,
        }),
          this.progressbar.setProgress(e + 1));
      }),
      (e.prototype.move = function (e, t = !0) {
        var n,
          i,
          o,
          r,
          s = this;
        e === this.currentIndex ||
          e > s.$slides.length - 1 ||
          ((n = s.$slides[s.currentIndex]),
          (i = s.choices[e]),
          (o = s.$slides[e]),
          (r = e >= s.choices.length),
          s.toggleNextButton(!1),
          H5P.Transition.onTransitionEnd(
            s.$choices,
            function () {
              (n.removeClass("h5p-sc-current-slide"),
                r || (!t && !s.isRoot())
                  ? s.resultSlide.focusScore()
                  : i.focusOnAlternative(0));
            },
            600,
          ),
          r && s.setScore(s.results.corrects),
          s.$container.toggleClass("navigatable", !r),
          this.startStopWatch(e),
          o.addClass("h5p-sc-current-slide"),
          s.recklessJump(e),
          (s.currentIndex = e));
      }),
      (e.prototype.startStopWatch = function (e) {
        ((this.stopWatches[e] = this.stopWatches[e] || new t()),
          this.stopWatches[e].start());
      }),
      (e.prototype.stopStopWatch = function (e) {
        this.stopWatches[e] && this.stopWatches[e].stop();
      }),
      (e.prototype.timePassedInStopWatch = function (e) {
        return void 0 !== this.stopWatches[e]
          ? this.stopWatches[e].passedTime()
          : 0;
      }),
      (e.prototype.getTotalPassedTime = function () {
        return this.stopWatches
          .filter(function (e) {
            return null != e;
          })
          .reduce(function (e, t) {
            return e + t.passedTime();
          }, 0);
      }),
      (e.prototype.getScore = function () {
        return this.results.corrects;
      }),
      (e.prototype.getMaxScore = function () {
        return this.options.choices.length;
      }),
      (e.prototype.getAnswerGiven = function () {
        return 0 < this.results.corrects + this.results.wrongs;
      }),
      (e.prototype.getTitle = function () {
        return H5P.createTitle(
          this.contentData &&
            this.contentData.metadata &&
            this.contentData.metadata.title
            ? this.contentData.metadata.title
            : "Single Choice Set",
        );
      }),
      (e.prototype.getXAPIData = function () {
        var i = this,
          e = i.options.choices.map(function (e, t) {
            var n = 0 <= i.userResponses[t] ? i.userResponses[t] : "",
              t = i.timePassedInStopWatch(t);
            return {
              statement: i.createXApiAnsweredEvent(e, n, t).data.statement,
            };
          }),
          t = r
            .createResult()
            .score(i.getScore(), i.getMaxScore())
            .duration(i.getTotalPassedTime())
            .build(),
          n = r
            .createDefinition()
            .interactionType(r.interactionTypes.COMPOUND)
            .build();
        return {
          statement: r
            .create()
            .verb(r.verbs.ANSWERED)
            .contentId(i.contentId, i.subContentId)
            .context(
              i.getParentAttribute("contentId"),
              i.getParentAttribute("subContentId"),
            )
            .objectDefinition(n)
            .result(t)
            .build().data.statement,
          children: e,
        };
      }),
      (e.prototype.getParentAttribute = function (e) {
        if (void 0 !== this.parent) return this.parent[e];
      }),
      (e.prototype.showSolutions = function () {
        this.handleViewSolution();
      }),
      (e.prototype.resetTask = function (e = !1) {
        var t = this;
        this.solutionView.hide();
        for (
          var n = [
              "h5p-sc-reveal-wrong",
              "h5p-sc-reveal-correct",
              "h5p-sc-selected",
              "h5p-sc-drummed",
              "h5p-sc-correct-answer",
            ],
            i = 0;
          i < n.length;
          i++
        )
          this.$choices.find("." + n[i]).removeClass(n[i]);
        ((this.results = { corrects: 0, wrongs: 0 }),
          this.choices.forEach(function (e) {
            (e.setAnswered(!1), e.resetA11yText(), e.resetAriaAttributes());
          }),
          this.stopWatches.forEach(function (e) {
            e && e.reset();
          }),
          this.move(0, e),
          (this.userResponses = []),
          H5P.Transition.onTransitionEnd(
            this.$choices,
            function () {
              t.removeFeedback();
            },
            600,
          ));
      }),
      (e.prototype.getCurrentState = function () {
        return 0 < this.userResponses.length
          ? {
              progress: this.currentIndex,
              answers: this.results,
              userResponses: this.userResponses,
            }
          : void 0;
      }),
      (e.prototype.readA11yFriendlyText = function (e, t) {
        var n = this,
          e = n.$choices
            .find(".h5p-sc-is-correct")
            [e].textContent.replace(/[\n\r]+|[\s]{2,}/g, " ")
            .trim();
        let i = this.lastAnswerIsCorrect
          ? n.l10n.correctText
          : n.l10n.incorrectText;
        (n.options.behaviour.autoContinue ||
          ((i = this.lastAnswerIsCorrect
            ? n.l10n.correctText + n.l10n.shouldSelect
            : n.l10n.incorrectText + n.l10n.shouldNotSelect),
          n.$choices
            .find(".h5p-sc-current-slide .h5p-sc-is-correct .h5p-sc-a11y")
            .text(n.l10n.shouldSelect),
          n.$choices
            .find(".h5p-sc-current-slide .h5p-sc-is-wrong .h5p-sc-a11y")
            .text(n.l10n.shouldNotSelect),
          n.$choices
            .find(".h5p-sc-current-slide .h5p-sc-alternative")
            .eq(t)
            .find(".h5p-sc-a11y")
            .text(i),
          (i = this.lastAnswerIsCorrect
            ? n.l10n.correctText
            : n.l10n.incorrectText + e + n.l10n.shouldSelect)),
          n.read(i));
      }));
    var o = function (e, t) {
      t = Math.floor(100 * t);
      for (var n = 0; n < e.length; n++) {
        var i = e[n],
          o = void 0 !== i.feedback && 0 !== i.feedback.trim().length;
        if (i.from <= t && i.to >= t && o) return i.feedback;
      }
      return "";
    };
    return e;
  })(
    H5P.jQuery,
    H5P.JoubelUI,
    H5P.Question,
    H5P.SingleChoiceSet.SingleChoice,
    H5P.SingleChoiceSet.SolutionView,
    H5P.SingleChoiceSet.ResultSlide,
    H5P.SingleChoiceSet.SoundEffects,
    H5P.SingleChoiceSet.XApiEventBuilder,
    H5P.SingleChoiceSet.StopWatch,
  )),
  /*!@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 s = n(46),
            a = H5P.EventDispatcher;
          function i(i, t) {
            const o = this;
            (a.call(o), (o.children = []));
            function r(t) {
              for (let e = t; e < o.children.length; e++)
                o.children[e].index = e;
            }
            if (
              ((o.addChild = function (e, t) {
                void 0 === t && (t = o.children.length);
                var n = new s(t, o);
                return (
                  t === o.children.length
                    ? o.children.push(n)
                    : (o.children.splice(t, 0, n), r(t)),
                  i.call(n, e),
                  n
                );
              }),
              (o.removeChild = function (e) {
                (o.children.splice(e, 1), r(e));
              }),
              (o.moveChild = function (e, t) {
                var n = o.children.splice(e, 1)[0];
                (o.children.splice(t, 0, n), r(t < e ? t : e));
              }),
              t)
            )
              for (let e = 0; e < t.length; e++) o.addChild(t[e]);
          }
          ((i.prototype = Object.create(a.prototype)),
            (e.exports = i.prototype.constructor = i));
        },
      },
      i = {};
    function ce(e) {
      var t = i[e];
      if (void 0 !== t) return t.exports;
      t = i[e] = { exports: {} };
      return (n[e](t, t.exports, ce), t.exports);
    }
    ((ce.n = (e) => {
      var t = e && e.__esModule ? () => e.default : () => e;
      return (ce.d(t, { a: t }), t);
    }),
      (ce.d = (e, t) => {
        for (var n in t)
          ce.o(t, n) &&
            !ce.o(e, n) &&
            Object.defineProperty(e, n, { enumerable: !0, get: t[n] });
      }),
      (ce.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t)),
      (() => {
        "use strict";
        function i(e) {
          return e.concat.apply([], e);
        }
        function l(e) {
          return "function" == typeof e;
        }
        function r(e, t) {
          return -1 !== e.indexOf(t);
        }
        function o(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) {
              r([13, 32], e.which) &&
                (e.preventDefault(), t.call(n || this, e));
            }));
        }
        var c,
          a,
          e = ce(575),
          s = ce.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,
              i,
              o,
              r,
              s = this,
              a =
                void 0 === this.cp.editor &&
                void 0 !== this.$summarySlide &&
                e >= this.cp.slides.length - 1,
              e = !this.cp.showSummarySlide && this.cp.hasAnswerElements;
            a &&
              (s.cp.presentation.keywordListEnabled &&
                s.cp.presentation.keywordListAlwaysShow &&
                s.cp.hideKeywords(),
              this.$summarySlide.children().remove(),
              (a = s.cp.getSlideScores(t)),
              (t = s.outputScoreStats(a)),
              y(t).appendTo(s.$summarySlide),
              e ||
                ((n = s.totalScores(a)),
                isNaN(n.totalPercentage) ||
                  ((a = d.createScoreBar(n.totalMaxScore, "", "", "")).setScore(
                    n.totalScore,
                  ),
                  (i = y(".h5p-summary-total-score", s.$summarySlide)),
                  a.appendTo(i),
                  setTimeout(function () {
                    i.append(
                      y("<div/>", {
                        "aria-live": "polite",
                        class: "hidden-but-read",
                        html:
                          s.cp.l10n.summary +
                          ". " +
                          s.cp.l10n.accessibilityTotalScore
                            .replace("@score", n.totalScore)
                            .replace("@maxScore", n.totalMaxScore),
                      }),
                    );
                  }, 100)),
                1 == s.cp.enableTwitterShare &&
                  ((o = y(".h5p-summary-twitter-message", s.$summarySlide)),
                  this.addTwitterScoreLinkTo(o, n)),
                1 == s.cp.enableFacebookShare &&
                  ((o = y(".h5p-summary-facebook-message", s.$summarySlide)),
                  this.addFacebookScoreLinkTo(o, n)),
                1 == s.cp.enableGoogleShare &&
                  ((r = y(".h5p-summary-google-message", s.$summarySlide)),
                  this.addGoogleScoreLinkTo(r)),
                s.$summarySlide
                  .find(".h5p-td > .h5p-slide-link")
                  .each(function () {
                    var t = y(this);
                    t.click(function (e) {
                      (s.cp.jumpToSlide(parseInt(t.data("slide"), 10) - 1),
                        e.preventDefault());
                    });
                  })),
              (r = y(".h5p-summary-footer", s.$summarySlide)),
              this.cp.showSummarySlideSolutionButton &&
                d.createButton({
                  class: "h5p-show-solutions",
                  html: s.cp.l10n.showSolutions,
                  on: {
                    click: function () {
                      s.toggleSolutionMode(!0);
                    },
                  },
                  appendTo: r,
                }),
              this.cp.showSummarySlideRetryButton &&
                d.createButton({
                  class: "h5p-cp-retry-button",
                  html: s.cp.l10n.retry,
                  on: {
                    click: function () {
                      s.cp.resetTask();
                    },
                  },
                  appendTo: r,
                }),
              s.cp.hasAnswerElements &&
                d.createButton({
                  class: "h5p-eta-export",
                  html: s.cp.l10n.exportAnswers,
                  on: {
                    click: function () {
                      H5P.ExportableTextArea.Exporter.run(
                        s.cp.slides,
                        s.cp.elementInstances,
                      );
                    },
                  },
                  appendTo: r,
                }));
          }),
          (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, i = 0, o = "", r = 0, s = "", a = 0;
              a < e.length;
              a += 1
            )
              ((s = this.getSlideDescription(e[a])),
                (r = Math.round((e[a].score / e[a].maxScore) * 100)),
                isNaN(r) && (r = 0),
                (o +=
                  '<tr><td class="h5p-td h5p-summary-task-title"><a href="#" class="h5p-slide-link"  aria-label=" ' +
                  t.cp.l10n.slide +
                  " " +
                  e[a].slide +
                  ": " +
                  s.replace(/(<([^>]+)>)/gi, "") +
                  " " +
                  r +
                  '%" data-slide="' +
                  e[a].slide +
                  '">' +
                  t.cp.l10n.slide +
                  " " +
                  e[a].slide +
                  ": " +
                  s.replace(/(<([^>]+)>)/gi, "") +
                  '</a></td><td class="h5p-td h5p-summary-score-bar"><p class="hidden-but-read">' +
                  r +
                  "%</p><p>" +
                  e[a].score +
                  "<span>/</span>" +
                  e[a].maxScore +
                  "</p></td></tr>"),
                (n += e[a].score),
                (i += e[a].maxScore));
            this.cp.isSolutionMode || t.cp.triggerXAPICompleted(n, i);
            var l =
                t.cp.enableTwitterShare ||
                t.cp.enableFacebookShare ||
                t.cp.enableGoogleShare
                  ? '<span class="h5p-show-results-text">' +
                    t.cp.l10n.shareResult +
                    "</span>"
                  : "",
              c =
                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>" +
              o +
              '</tbody></table></div><div class="h5p-summary-total-table"><div class="h5p-summary-social">' +
              l +
              u +
              c +
              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,
              i,
              o = this.cp.slides[e.slide - 1].elements;
            return (
              1 < e.indexes.length
                ? (t = this.cp.l10n.summaryMultipleTaskText)
                : void 0 !== o[e.indexes[0]] &&
                  o[0] &&
                  ((o = o[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 !== o.library &&
                      o.library &&
                      ((n = o.library
                        .split(" ")[0]
                        .split(".")[1]
                        .split(/(?=[A-Z])/)),
                      (i = ""),
                      n.forEach(function (e, t) {
                        (0 !== t && (e = e.toLowerCase()),
                          (i += e),
                          t <= n.length - 1 && (i += " "));
                      }),
                      (t = i))),
              t
            );
          }),
          (t.prototype.addTwitterScoreLinkTo = function (e, t) {
            var n = this,
              i = n.cp.twitterShareStatement || "",
              o = n.cp.twitterShareHashtags || "",
              r = (r = n.cp.twitterShareUrl || "").replace(
                "@currentpageurl",
                window.location.href,
              ),
              i = i
                .replace("@score", t.totalScore)
                .replace("@maxScore", t.totalMaxScore)
                .replace("@percentage", t.totalPercentage + "%")
                .replace("@currentpageurl", window.location.href),
              o = o.trim().replace(" ", "");
            ((i = encodeURIComponent(i)),
              (o = encodeURIComponent(o)),
              (r = encodeURIComponent(r)));
            var s = "https://twitter.com/intent/tweet?";
            ((s += 0 < i.length ? "text=" + i + "&" : ""),
              (s += 0 < r.length ? "url=" + r + "&" : ""),
              (s += 0 < o.length ? "hashtags=" + o : ""));
            var a = window.innerWidth / 2,
              l = window.innerHeight / 2;
            (e.attr("tabindex", "0").attr("role", "button"),
              b(e, function () {
                return (
                  window.open(
                    s,
                    n.cp.l10n.shareTwitter,
                    "width=800,height=300,left=" + a + ",top=" + l,
                  ),
                  !1
                );
              }));
          }),
          (t.prototype.addFacebookScoreLinkTo = function (e, t) {
            var n = this,
              i = n.cp.facebookShareUrl || "",
              o = n.cp.facebookShareQuote || "",
              i = i.replace("@currentpageurl", window.location.href),
              o = o
                .replace("@currentpageurl", window.location.href)
                .replace("@percentage", t.totalPercentage + "%")
                .replace("@score", t.totalScore)
                .replace("@maxScore", t.totalMaxScore);
            ((i = encodeURIComponent(i)), (o = encodeURIComponent(o)));
            var r = "https://www.facebook.com/sharer/sharer.php?";
            ((r += 0 < i.length ? "u=" + i + "&" : ""),
              (r += 0 < o.length ? "quote=" + o : ""));
            var s = window.innerWidth / 2,
              a = window.innerHeight / 2;
            (e.attr("tabindex", "0").attr("role", "button"),
              b(e, function () {
                return (
                  window.open(
                    r,
                    n.cp.l10n.shareFacebook,
                    "width=800,height=300,left=" + s + ",top=" + a,
                  ),
                  !1
                );
              }));
          }),
          (t.prototype.addGoogleScoreLinkTo = function (e) {
            var t = this,
              n = (n = t.cp.googleShareUrl || "").replace(
                "@currentpageurl",
                window.location.href,
              );
            n = encodeURIComponent(n);
            var i = "https://plus.google.com/share?";
            i += 0 < n.length ? "url=" + n : "";
            var o = window.innerWidth / 2,
              r = window.innerHeight / 2;
            (e.attr("tabindex", "0").attr("role", "button"),
              b(e, function () {
                return (
                  window.open(
                    i,
                    t.cp.l10n.shareGoogle,
                    "width=401,height=437,left=" + o + ",top=" + r,
                  ),
                  !1
                );
              }));
          }),
          (t.prototype.totalScores = function (e) {
            if (void 0 === e)
              return { totalScore: 0, totalMaxScore: 0, totalPercentage: 0 };
            for (var t = 0, n = 0, i = 0; i < e.length; i += 1)
              ((t += e[i].score), (n += e[i].maxScore));
            var o = Math.round((t / n) * 100);
            return {
              totalScore: t,
              totalMaxScore: n,
              totalPercentage: (o = isNaN(o) ? 0 : o),
            };
          }),
          (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 m() {}
        function g(e) {
          const i = e.length;
          return function t() {
            const n = Array.prototype.slice.call(arguments, 0);
            return n.length >= i
              ? e.apply(null, n)
              : function () {
                  var e = Array.prototype.slice.call(arguments, 0);
                  return t.apply(null, n.concat(e));
                };
          };
        }
        const v =
            ((c = H5P.jQuery),
            (a = 0),
            (m.supported = function () {
              return "function" == typeof window.print;
            }),
            (m.print = function (e, t, n) {
              e.trigger("printing", { finished: !1, allSlides: n });
              var i = c(".h5p-slide.h5p-current"),
                o = i.height(),
                r = i.width() / 670,
                s = c(".h5p-slide");
              s.css({
                height: o / r + "px",
                width: "670px",
                fontSize: Math.floor(100 / r) + "%",
              });
              var a = t.height();
              (t.css("height", "auto"),
                s.toggleClass("doprint", !0 === n),
                i.addClass("doprint"),
                setTimeout(function () {
                  (window.print(),
                    s.css({ height: "", width: "", fontSize: "" }),
                    t.css("height", a + "px"),
                    e.trigger("printing", { finished: !0 }));
                }, 500));
            }),
            (m.showDialog = function (e, t, n) {
              var i = this,
                o = a++,
                r = "h5p-cp-print-dialog-".concat(o, "-title"),
                o = "h5p-cp-print-dialog-".concat(o, "-ingress"),
                s = c(
                  '<div class="h5p-popup-dialog h5p-print-dialog">\n                      <div role="dialog" aria-labelledby="'
                    .concat(r, '" aria-describedby="')
                    .concat(
                      o,
                      '" tabindex="-1" class="h5p-inner">\n                        <h2 id="',
                    )
                    .concat(r, '">')
                    .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 () {
                    i.close();
                  })
                  .children(".h5p-inner")
                  .click(function () {
                    return !1;
                  })
                  .end();
              b(s.find(".h5p-close"), function () {
                return i.close();
              });
              t = s.find(".h5p-scroll-content");
              return (
                t.append(
                  c("<div>", {
                    class: "h5p-cp-print-ingress",
                    id: o,
                    html: e.printIngress,
                  }),
                ),
                H5P.JoubelUI.createButton({
                  html: e.printAllSlides,
                  class: "h5p-cp-print-all-slides",
                  click: function () {
                    (i.close(), n(!0));
                  },
                }).appendTo(t),
                H5P.JoubelUI.createButton({
                  html: e.printCurrentSlide,
                  class: "h5p-cp-print-current-slide",
                  click: function () {
                    (i.close(), n(!1));
                  },
                }).appendTo(t),
                (this.open = function () {
                  setTimeout(function () {
                    (s.addClass("h5p-open"),
                      H5P.jQuery(i).trigger("dialog-opened", [s]));
                  }, 1);
                }),
                (this.close = function () {
                  (s.removeClass("h5p-open"),
                    setTimeout(function () {
                      s.remove();
                    }, 200));
                }),
                this.open(),
                s
              );
            }),
            m),
          w = g(function (e, t) {
            t.forEach(e);
          }),
          x =
            (g(function (e, t) {
              return t.map(e);
            }),
            g(function (e, t) {
              return t.filter(e);
            })),
          P =
            (g(function (e, t) {
              return t.some(e);
            }),
            g(function (e, t) {
              return -1 != t.indexOf(e);
            })),
          S = g(function (t, e) {
            return x((e) => !P(e, t), e);
          }),
          H = g((e, t) => t.getAttribute(e)),
          C = g((e, t, n) => n.setAttribute(e, t)),
          T = g((e, t) => t.removeAttribute(e)),
          k = g((e, t) => t.hasAttribute(e)),
          E =
            (g((e, t, n) => n.getAttribute(e) === t),
            g((e, t) => {
              var n = H(e, t);
              C(e, ("true" !== n).toString(), t);
            }),
            g((e, t) => e.appendChild(t)),
            g((e, t) => t.querySelector(e)),
            g((e, t) => {
              return (
                (e = t.querySelectorAll(e)),
                Array.prototype.slice.call(e)
              );
            }),
            g((e, t) => e.removeChild(t)),
            g((e, t) => t.classList.contains(e)),
            g((e, t) => t.classList.add(e))),
          I = g((e, t) => t.classList.remove(e)),
          $ = E("hidden"),
          A = I("hidden"),
          D =
            (g((e, t) => (e ? A : $)(t)),
            g((e, t, n) => {
              n.classList[t ? "add" : "remove"](e);
            }),
            T("tabindex")),
          j = (w(D), C("tabindex", "0")),
          L = C("tabindex", "-1"),
          B = k("tabindex");
        class N {
          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 i = this;
                e.forEach((t) => n.on(t, (e) => i.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 = S([e], this.elements)),
              B(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 ? L : D)(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") || L(e);
              }));
          }
          initPlugins() {
            this.plugins.forEach(function (e) {
              void 0 !== e.init && e.init(this);
            }, this);
          }
        }
        class O {
          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 M(e, t, n) {
          return (
            t in e
              ? Object.defineProperty(e, t, {
                  value: n,
                  enumerable: !0,
                  configurable: !0,
                  writable: !0,
                })
              : (e[t] = n),
            e
          );
        }
        var q,
          F = "none",
          R = "not-answered",
          z = "answered",
          W = "has-only-correct",
          Q = "has-incorrect";
        function V(e) {
          ((this.cp = e),
            (this.answeredLabels =
              (M((e = {}), R, this.cp.l10n.containsNotCompleted + "."),
              M(e, z, this.cp.l10n.containsCompleted + "."),
              M(e, W, this.cp.l10n.containsOnlyCorrect + "."),
              M(e, Q, this.cp.l10n.containsIncorrectAnswers + "."),
              M(e, F, ""),
              e)),
            this.initProgressbar(this.cp.slidesWithSolutions),
            this.initFooter(),
            this.initTaskAnsweredListener(),
            this.toggleNextAndPreviousButtonDisabled(
              this.cp.getCurrentSlideIndex(),
            ));
        }
        const U =
          ((q = H5P.jQuery),
          (V.prototype.initTaskAnsweredListener = function () {
            var o = this;
            this.cp.elementInstances.forEach(function (e, i) {
              e.filter(function (e) {
                return l(e.on);
              }).forEach(function (e) {
                e.on("xAPI", function (e) {
                  var t,
                    n = e.getVerb();
                  (r(["interacted", "answered", "attempted"], n)
                    ? ((t = o.cp.slideHasAnsweredTask(i)),
                      o.setTaskAnswered(i, 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"
                    ] = i + 1));
                });
              });
            });
          }),
          (V.prototype.initProgressbar = function (e) {
            var t = this,
              n = (t.cp.previousState && t.cp.previousState.progress) || 0;
            ((this.progresbarKeyboardControls = new N([new O()])),
              (this.progresbarKeyboardControls.negativeTabIndexAllowed = !0),
              this.progresbarKeyboardControls.on("select", function (e) {
                t.displaySlide(q(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 i = function (e) {
                  e.preventDefault();
                  e = q(this).data("slideNumber");
                  (t.progresbarKeyboardControls.setTabbableByIndex(e),
                    t.displaySlide(e),
                    t.cp.focus());
                },
                o = 0;
              o < this.cp.slides.length;
              o += 1
            ) {
              var r = this.cp.slides[o],
                s = this.createSlideTitle(o),
                a = q("<div>", {
                  class: "h5p-progressbar-part",
                  id: "progressbar-part-" + o,
                  role: "tab",
                  "aria-label": s,
                  "aria-controls": "slide-" + o,
                  "aria-selected": !1,
                }).appendTo(t.cp.$progressbar),
                s = q("<a>", {
                  href: "#",
                  html:
                    '<span class="h5p-progressbar-part-title hidden-but-read">' +
                    s +
                    "</span>",
                  tabindex: "-1",
                })
                  .data("slideNumber", o)
                  .click(i)
                  .appendTo(a);
              (this.progresbarKeyboardControls.addElement(s.get(0)),
                this.isSummarySlide(o) &&
                  a.addClass("progressbar-part-summary-slide"),
                p || H5P.Tooltip(a.get(0), { position: "top" }),
                0 === o && a.addClass("h5p-progressbar-part-show"),
                o === n &&
                  a
                    .addClass("h5p-progressbar-part-selected")
                    .attr("aria-selected", !0),
                t.cp.progressbarParts.push(a),
                this.updateSlideTitle(o),
                this.cp.slides.length <= 60 &&
                  r.elements &&
                  0 < r.elements.length &&
                  ((a = e[o] && 0 < e[o].length),
                  (r = !!(
                    t.cp.previousState &&
                    t.cp.previousState.answered &&
                    t.cp.previousState.answered[o]
                  )),
                  a &&
                    (q("<div>", {
                      class: "h5p-progressbar-part-has-task",
                    }).appendTo(s),
                    this.setTaskAnswered(o, r))));
            }
          }),
          (V.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));
            });
          }),
          (V.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);
          }),
          (V.prototype.isSummarySlide = function (e) {
            return !(
              void 0 !== this.cp.editor ||
              e !== this.cp.slides.length - 1 ||
              !this.cp.showSummarySlide
            );
          }),
          (V.prototype.initFooter = function () {
            var e = this,
              t = this,
              n = this.cp.$footer,
              i = q("<div/>", { class: "h5p-footer-left-adjusted" }).appendTo(
                n,
              ),
              o = q("<div/>", { class: "h5p-footer-center-adjusted" }).appendTo(
                n,
              ),
              n = q("<div/>", {
                role: "toolbar",
                class: "h5p-footer-right-adjusted",
              }).appendTo(n);
            ((this.cp.$keywordsButton = q("<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(i)),
              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 = q("<div/>", {
                class: "h5p-footer-button h5p-footer-previous-slide",
                "aria-label": this.cp.l10n.prevSlide,
                role: "button",
                tabindex: "-1",
                "aria-disabled": "true",
              }).appendTo(o)),
              new H5P.Tooltip(this.cp.$prevSlideButton.get(0), {
                position: "left",
              }),
              b(this.cp.$prevSlideButton, function () {
                return e.cp.previousSlide(void 0, !1);
              }));
            i = q("<div/>", { class: "h5p-footer-slide-count" }).appendTo(o);
            ((this.cp.$footerCurrentSlide = q("<div/>", {
              html: "1",
              class: "h5p-footer-slide-count-current",
              title: this.cp.l10n.currentSlide,
              "aria-hidden": "true",
            }).appendTo(i)),
              (this.cp.$footerCounter = q("<div/>", {
                class: "hidden-but-read",
                html: this.cp.l10n.slideCount
                  .replace("@index", "1")
                  .replace("@total", this.cp.slides.length.toString()),
              }).appendTo(o)),
              q("<div/>", {
                html: "/",
                class: "h5p-footer-slide-count-delimiter",
                "aria-hidden": "true",
              }).appendTo(i),
              (this.cp.$footerMaxSlide = q("<div/>", {
                html: this.cp.slides.length,
                class: "h5p-footer-slide-count-max",
                title: this.cp.l10n.lastSlide,
                "aria-hidden": "true",
              }).appendTo(i)),
              (this.cp.$nextSlideButton = q("<div/>", {
                class: "h5p-footer-button h5p-footer-next-slide",
                "aria-label": this.cp.l10n.nextSlide,
                role: "button",
                tabindex: "0",
              }).appendTo(o)),
              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 = q("<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 &&
                  v.supported() &&
                  ((this.cp.$printButton = q("<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 = q("<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 = q("<div/>", {
                html: "",
                class: "h5p-footer-exit-solution-mode-text",
              }).appendTo(this.cp.$exitSolutionModeButton)));
          }),
          (V.prototype.openPrintDialog = function () {
            var t = this,
              n = q(".h5p-wrapper");
            v.showDialog(this.cp.l10n, n, function (e) {
              v.print(t.cp, n, e);
            })
              .children('[role="dialog"]')
              .focus();
          }),
          (V.prototype.updateProgressBar = function (e, t, n) {
            for (var i = this, o = 0; o < i.cp.progressbarParts.length; o += 1)
              o < e + 1
                ? i.cp.progressbarParts[o].addClass("h5p-progressbar-part-show")
                : i.cp.progressbarParts[o].removeClass(
                    "h5p-progressbar-part-show",
                  );
            (i.progresbarKeyboardControls.setTabbableByIndex(e),
              i.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 || i.cp.editor
                : i.cp.progressbarParts.forEach(function (e, t) {
                    i.setTaskAnswered(t, !1);
                  }));
          }),
          (V.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 : R }));
          }),
          (V.prototype.updateSlideTitle = function (e) {
            var t = (
              1 < arguments.length && void 0 !== arguments[1]
                ? arguments[1]
                : {}
            ).state;
            this.setSlideTitle(e, { state: o(t, this.getAnsweredState(e)) });
          }),
          (V.prototype.setSlideTitle = function (e, t) {
            var n = t.state,
              t = void 0 === n ? F : n,
              n = this.cp.progressbarParts[e].find(
                ".h5p-progressbar-part-title",
              ),
              e = this.answeredLabels[t].replace(
                "@slideName",
                this.createSlideTitle(e),
              );
            n.html("".concat(e));
          }),
          (V.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
                  ? Q
                  : e
                    ? z
                    : R
              : F;
          }),
          (V.prototype.slideHasInteraction = function (e) {
            return (
              0 <
              this.cp.progressbarParts[e].find(".h5p-progressbar-part-has-task")
                .length
            );
          }),
          (V.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));
          }),
          (V.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"));
          }),
          (V.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(o(n, "")));
          }),
          V);
        function X(o) {
          function n(e, t, n) {
            var i = o.$slidesWrapper
              .children()
              .filter(":not(.h5p-summary-slide)");
            (void 0 !== n && (i = i.eq(n)),
              e && "" !== e
                ? i
                    .addClass("has-background")
                    .css("background-image", "")
                    .css("background-color", e)
                : t &&
                  t.path &&
                  i
                    .addClass("has-background")
                    .css("background-color", "")
                    .css(
                      "background-image",
                      "url(" + H5P.getPath(t.path, o.contentId) + ")",
                    ));
          }
          var e = o.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 K(e) {
          return parseInt(e.dataset.index);
        }
        var _ =
            (((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(K(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 i = this;
              e.forEach(function (e) {
                var t = n.currentIndex === K(e);
                (e.classList.toggle("h5p-current", t),
                  t && e.appendChild(i.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 K(e) >= t;
              })[0];
            }),
            (e.getElementByIndex = function (e, t) {
              return e.filter(function (e) {
                return K(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),
          J = "specified",
          G = "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,
            i = e.title,
            o = e.goToSlide,
            r = void 0 === o ? 1 : o,
            s = e.invisible,
            a = e.goToSlideType,
            o = void 0 === a ? J : a,
            l = t.l10n,
            e = t.currentIndex;
          this.eventDispatcher = new u();
          ((a = "h5p-press-to-go"), (t = 0));
          if (s) ((i = void 0), (t = -1));
          else {
            if (!i)
              switch (o) {
                case J:
                  i = l.goToSlide.replace(":num", r.toString());
                  break;
                case "next":
                  i = l.goToSlide.replace(":num", l.nextSlide);
                  break;
                case G:
                  i = l.goToSlide.replace(":num", l.prevSlide);
              }
            a += " h5p-visible";
          }
          var c = r - 1;
          ("next" === o ? (c = e + 1) : o === G && (c = e - 1),
            (this.$element = y("<a/>", {
              href: "#",
              class: a,
              tabindex: t,
              title: i,
            })),
            b(this.$element, function (e) {
              (n.eventDispatcher.trigger("navigate", c), e.preventDefault());
            }));
        }
        function ee(e) {
          var t = this,
            n = e.l10n,
            e = e.currentIndex;
          ((this.l10n = n),
            (this.state = { currentIndex: o(e, 0) }),
            (this.eventDispatcher = new u()),
            (this.controls = new N([new O()])),
            this.controls.on("select", function (e) {
              t.onMenuItemSelect(K(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,
            i = this;
          (void 0 === e.action
            ? ((i.instance = new Y(e, {
                l10n: i.parent.parent.l10n,
                currentIndex: i.parent.index,
              })),
              i.parent.parent.isEditor() ||
                i.instance.on("navigate", function (e) {
                  e = e.data;
                  i.parent.parent.jumpToSlide(e);
                }))
            : ((t = i.parent.parent.isEditor()
                ? H5P.jQuery.extend(
                    !0,
                    {},
                    e.action,
                    i.parent.parent.elementsOverride,
                  )
                : H5P.jQuery.extend(
                    !0,
                    e.action,
                    i.parent.parent.elementsOverride,
                  )),
              (n = i.parent.parent.elementInstances[i.parent.index]
                ? i.parent.parent.elementInstances[i.parent.index].length
                : 0),
              i.parent.parent.previousState &&
                i.parent.parent.previousState.answers &&
                i.parent.parent.previousState.answers[i.parent.index] &&
                i.parent.parent.previousState.answers[i.parent.index][n] &&
                (t.userDatas = {
                  state:
                    i.parent.parent.previousState.answers[i.parent.index][n],
                }),
              (t.params = t.params || {}),
              (i.instance = H5P.newRunnable(
                t,
                i.parent.parent.contentId,
                void 0,
                !0,
                { parent: i.parent.parent },
              )),
              void 0 !== i.instance.preventResize &&
                (i.instance.preventResize = !0)),
            void 0 === i.parent.parent.elementInstances[i.parent.index]
              ? (i.parent.parent.elementInstances[i.parent.index] = [
                  i.instance,
                ])
              : i.parent.parent.elementInstances[i.parent.index].push(
                  i.instance,
                ),
            void 0 !== i.instance.showCPComments ||
            i.instance.isTask ||
            (void 0 === i.instance.isTask &&
              void 0 !== i.instance.showSolutions)
              ? ((i.instance.coursePresentationIndexOnSlide =
                  i.parent.parent.elementInstances[i.parent.index].length - 1),
                void 0 ===
                  i.parent.parent.slidesWithSolutions[i.parent.index] &&
                  (i.parent.parent.slidesWithSolutions[i.parent.index] = []),
                i.parent.parent.slidesWithSolutions[i.parent.index].push(
                  i.instance,
                ))
              : e.solution &&
                (void 0 ===
                  i.parent.parent.showCommentsAfterSolution[i.parent.index] &&
                  (i.parent.parent.showCommentsAfterSolution[i.parent.index] =
                    []),
                i.parent.parent.showCommentsAfterSolution[i.parent.index].push(
                  i.instance,
                )),
            void 0 !== i.instance.exportAnswers &&
              i.instance.exportAnswers &&
              (i.parent.parent.hasAnswerElements = !0),
            i.parent.parent.isTask ||
              i.parent.parent.hideSummarySlide ||
              ((i.instance.isTask ||
                (void 0 === i.instance.isTask &&
                  void 0 !== i.instance.showSolutions)) &&
                (i.parent.parent.isTask = !0)));
        }
        function ne(t, e) {
          var n,
            i = Object.keys(t);
          return (
            Object.getOwnPropertySymbols &&
              ((n = Object.getOwnPropertySymbols(t)),
              e &&
                (n = n.filter(function (e) {
                  return Object.getOwnPropertyDescriptor(t, e).enumerable;
                })),
              i.push.apply(i, n)),
            i
          );
        }
        function ie(i) {
          for (var e = 1; e < arguments.length; e++) {
            var o = null != arguments[e] ? arguments[e] : {};
            e % 2
              ? ne(Object(o), !0).forEach(function (e) {
                  var t, n;
                  ((t = i),
                    (e = o[(n = e)]),
                    n in t
                      ? Object.defineProperty(t, n, {
                          value: e,
                          enumerable: !0,
                          configurable: !0,
                          writable: !0,
                        })
                      : (t[n] = e));
                })
              : Object.getOwnPropertyDescriptors
                ? Object.defineProperties(
                    i,
                    Object.getOwnPropertyDescriptors(o),
                  )
                : ne(Object(o)).forEach(function (e) {
                    Object.defineProperty(
                      i,
                      e,
                      Object.getOwnPropertyDescriptor(o, e),
                    );
                  });
          }
          return i;
        }
        function oe(t) {
          var n,
            i = this;
          (s().call(i, te, t.elements),
            (i.getElement = function () {
              return (n =
                n ||
                H5P.jQuery(
                  oe.createHTML(ie(ie({}, t), {}, { index: i.index })),
                ));
            }),
            (i.setCurrent = function () {
              this.parent.$current = n.addClass("h5p-current");
            }),
            (i.appendElements = function () {
              for (var e = 0; e < i.children.length; e++)
                i.parent.attachElement(
                  t.elements[e],
                  i.children[e].instance,
                  n,
                  i.index,
                );
              ((i.parent.elementsAttached[i.index] = !0),
                i.parent.trigger(
                  "domChanged",
                  {
                    $target: n,
                    library: "CoursePresentation",
                    key: "newSlide",
                  },
                  { bubbles: !0, external: !0 },
                ));
            }));
        }
        oe.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 re = oe;
        function se(e, t) {
          (null == t || t > e.length) && (t = e.length);
          for (var n = 0, i = new Array(t); n < t; n++) i[n] = e[n];
          return i;
        }
        function ae(e) {
          return (ae =
            "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 le(e, t, n) {
          var i = 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 _({
              l10n: this.l10n,
              currentIndex:
                void 0 !== this.previousState ? this.previousState.progress : 0,
            })),
            this.setElementsOverride(e.override),
            s().call(this, re, e.presentation.slides),
            this.on("resize", this.resize, this),
            this.on("printing", function (e) {
              ((i.ignoreResize = !e.data.finished),
                e.data.finished
                  ? i.resize()
                  : e.data.allSlides && i.attachAllElements());
            }));
        }
        ((((le.prototype = Object.create(s().prototype)).constructor =
          le).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 i = 0; i < this.elementInstances[t].length; i++) {
                var o = this.elementInstances[t][i];
                (o.getCurrentState instanceof Function ||
                  "function" == typeof o.getCurrentState) &&
                  (e.answers[t] || (e.answers[t] = []),
                  (e.answers[t][i] = o.getCurrentState()));
              }
          return e;
        }),
          (le.prototype.slideHasAnsweredTask = function (e) {
            return (this.slidesWithSolutions[e] || [])
              .filter(function (e) {
                return l(e.getAnswerGiven);
              })
              .some(function (e) {
                return e.getAnswerGiven();
              });
          }),
          (le.prototype.attach = function (e) {
            var t = this,
              r = 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 () {
                  r.initKeyEvents();
                })
                .blur(function () {
                  void 0 !== r.keydown &&
                    (H5P.jQuery("body").unbind("keydown", r.keydown),
                    delete r.keydown);
                })
                .click(function (e) {
                  var t = H5P.jQuery(e.target),
                    n = r.belongsToTagName(
                      e.target,
                      ["input", "textarea", "a", "button"],
                      e.currentTarget,
                    ),
                    i = -1 !== e.target.tabIndex,
                    o = t.closest(".h5p-popup-container"),
                    e = 0 !== o.length;
                  (n ||
                    i ||
                    r.editor ||
                    (e
                      ? 1 ===
                        (e = t.closest("[tabindex]")).closest(
                          ".h5p-popup-container",
                        ).length
                        ? e
                        : o.find(".h5p-close-popup")
                      : r.$wrapper
                    ).focus(),
                    r.presentation.keywordListEnabled &&
                      !r.presentation.keywordListAlwaysShow &&
                      r.presentation.keywordListAutoHide &&
                      !t.is("textarea, .h5p-icon-pencil, span") &&
                      r.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 i,
              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) {
                    r.showSummarySlide = e.length;
                  }),
              void 0 === this.editor &&
                (this.showSummarySlide || this.hasAnswerElements) &&
                (this.slides.push((o = { elements: [], keywords: [] })),
                (i = H5P.jQuery(re.createHTML(o)).appendTo(
                  this.$slidesWrapper,
                )).addClass("h5p-summary-slide"),
                this.isCurrentSlide(this.slides.length - 1) &&
                  (this.$current = i)));
            var o = this.getKeywordMenuConfig();
            (0 < o.length || this.isEditor()
              ? (this.keywordMenu.init(o),
                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 r.toggleFullScreen();
                    })))
                : (this.initTouchEvents(),
                  (this.navigationLine = new U(this)),
                  (this.previousState && this.previousState.progress) ||
                    this.setSlideNumberAnnouncer(0, !1),
                  (this.summarySlideObject = new f(this, i))),
              X(this),
              this.previousState &&
                this.previousState.progress &&
                this.jumpToSlide(
                  this.previousState.progress,
                  !1,
                  null,
                  !1,
                  !0,
                ));
          }),
          (le.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 i = e.tagName.toLowerCase();
            return (
              -1 !== t.indexOf(i) ||
              (n !== e && this.belongsToTagName(e.parentNode, t, n))
            );
          }),
          (le.prototype.updateKeywordMenuFromSlides = function () {
            this.keywordMenu.removeAllMenuItemElements();
            var e = this.getKeywordMenuConfig();
            return y(this.keywordMenu.init(e));
          }),
          (le.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;
              });
          }),
          (le.prototype.createSlideTitle = function (e) {
            var t = this.isEditor() ? this.l10n.noTitle : null;
            return this.hasKeywords(e) ? e.keywords[0].main : t;
          }),
          (le.prototype.isEditor = function () {
            return void 0 !== this.editor;
          }),
          (le.prototype.hasKeywords = function (e) {
            return void 0 !== e.keywords && 0 < e.keywords.length;
          }),
          (le.prototype.createSlides = function () {
            for (var e = 0; e < this.children.length; e++) {
              var t = e === this.currentSlideIndex;
              (this.children[e].getElement().appendTo(this.$slidesWrapper),
                t && this.children[e].setCurrent(),
                (this.isEditor() || 0 === e || 1 === e || t) &&
                  this.children[e].appendElements());
            }
          }),
          (le.prototype.hasScoreData = function (e) {
            return (
              "undefined" !== ae(e) &&
              "function" == typeof e.getScore &&
              "function" == typeof e.getMaxScore
            );
          }),
          (le.prototype.getScore = function () {
            var n = this;
            return i(n.slidesWithSolutions).reduce(function (e, t) {
              return e + (n.hasScoreData(t) ? t.getScore() : 0);
            }, 0);
          }),
          (le.prototype.getMaxScore = function () {
            var n = this;
            return i(n.slidesWithSolutions).reduce(function (e, t) {
              return e + (n.hasScoreData(t) ? t.getMaxScore() : 0);
            }, 0);
          }),
          (le.prototype.setProgressBarFeedback = function (e) {
            var i = this;
            void 0 !== e && e
              ? e.forEach(function (e) {
                  var t,
                    n = i.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"),
                    i.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");
                });
          }),
          (le.prototype.toggleKeywords = function () {
            this[
              this.$keywordsWrapper.hasClass("h5p-open")
                ? "hideKeywords"
                : "showKeywords"
            ]();
          }),
          (le.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"));
          }),
          (le.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());
          }),
          (le.prototype.setKeywordsOpacity = function (e) {
            var t, n, i;
            "" !== this.$keywordsWrapper.css("background-color") &&
              ((n = this.$keywordsWrapper
                .css("background-color")
                .match(/\d+/g)),
              (i = 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 i,
                      o,
                      r = [],
                      s = !0,
                      a = !1;
                    try {
                      for (
                        n = n.call(e);
                        !(s = (i = n.next()).done) &&
                        (r.push(i.value), !t || r.length !== t);
                        s = !0
                      );
                    } catch (e) {
                      ((a = !0), (o = e));
                    } finally {
                      try {
                        s || null == n.return || n.return();
                      } finally {
                        if (a) throw o;
                      }
                    }
                    return r;
                  }
                })(n, i) ||
                (function (e, t) {
                  if (e) {
                    if ("string" == typeof e) return se(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)
                        ? se(e, t)
                        : void 0;
                  }
                })(n, i) ||
                (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]),
              (i = t[1]),
              (t = t[2]),
              this.$keywordsWrapper.css(
                "background-color",
                "rgba("
                  .concat(n, ", ")
                  .concat(i, ", ")
                  .concat(t, ", ")
                  .concat(e / 100, ")"),
              ));
          }),
          (le.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));
                );
              });
          }),
          (le.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 / (i = this.$container.height()) > this.ratio &&
                  ((t = i * this.ratio), (n.width = t + "px")));
              var i = t / this.width;
              ((n.height = t / this.ratio + "px"),
                (n.fontSize = this.fontSize * i + "px"),
                void 0 !== this.editor &&
                  this.editor.setContainerEm(this.fontSize * i * 0.75),
                this.$wrapper.css(n),
                (this.swipeThreshold = 100 * i));
              var o = this.elementInstances[this.$current.index()];
              if (void 0 !== o)
                for (
                  var r = this.slides[this.$current.index()].elements, s = 0;
                  s < o.length;
                  s++
                ) {
                  var a = o[s];
                  (void 0 !== a.preventResize && !1 !== a.preventResize) ||
                    void 0 === a.$ ||
                    r[s].displayAsButton ||
                    H5P.trigger(a, "resize");
                }
              this.fitCT();
            }
          }),
          (le.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());
          }),
          (le.prototype.focus = function () {
            this.$wrapper.focus();
          }),
          (le.prototype.keywordClick = function (e) {
            (this.shouldHideKeywordsAfterSelect() && this.hideKeywords(),
              this.jumpToSlide(e, !0));
          }),
          (le.prototype.shouldHideKeywordsAfterSelect = function () {
            return (
              this.presentation.keywordListEnabled &&
              !this.presentation.keywordListAlwaysShow &&
              this.presentation.keywordListAutoHide &&
              void 0 === this.editor
            );
          }),
          (le.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)));
          }),
          (le.prototype.attachElements = function (e, t) {
            if (void 0 === this.elementsAttached[t]) {
              var n = this.slides[t],
                i = this.elementInstances[t];
              if (void 0 !== n.elements)
                for (var o = 0; o < n.elements.length; o++)
                  this.attachElement(n.elements[o], i[o], e, t);
              (this.trigger(
                "domChanged",
                { $target: e, library: "CoursePresentation", key: "newSlide" },
                { bubbles: !0, external: !0 },
              ),
                (this.elementsAttached[t] = !0));
            }
          }),
          (le.prototype.attachElement = function (e, t, n, i) {
            var o = void 0 !== e.displayAsButton && e.displayAsButton,
              r =
                void 0 !== e.buttonSize
                  ? "h5p-element-button-" + e.buttonSize
                  : "",
              s = H5P.jQuery("<div>", {
                class:
                  "h5p-element" +
                  (o ? " h5p-element-button-wrapper" : "") +
                  (r.length ? " " + r : ""),
              })
                .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 (
              s.toggleClass("h5p-transparent", n),
              o
                ? this.createInteractionButton(e, t).appendTo(s)
                : ((o =
                    e.action && e.action.library
                      ? this.getLibraryTypePmz(e.action.library)
                      : "other"),
                  (o = H5P.jQuery("<div>", {
                    class: "h5p-element-outer ".concat(o, "-outer-element"),
                  })
                    .css({
                      background:
                        "rgba(255,255,255," +
                        (void 0 === e.backgroundOpacity
                          ? 0
                          : e.backgroundOpacity / 100) +
                        ")",
                    })
                    .appendTo(s)),
                  (o = H5P.jQuery("<div>", {
                    class: "h5p-element-inner",
                  }).appendTo(o)),
                  t.on("set-size", function (e) {
                    for (var t in e.data) s.get(0).style[t] = e.data[t];
                  }),
                  t.attach(o),
                  void 0 !== e.action &&
                    "H5P.InteractiveVideo" === e.action.library.substr(0, 20) &&
                    ((o = 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 ? o() : t.on("controls", o)),
                  this.setOverflowTabIndex()),
              void 0 !== this.editor
                ? this.editor.processElement(e, s, i, t)
                : (e.solution && this.addElementSolutionButton(e, t, s),
                  (this.hasAnswerElements =
                    this.hasAnswerElements || void 0 !== t.exportAnswers)),
              s
            );
          }),
          (le.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);
              });
          }),
          (le.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");
              });
          }),
          (le.prototype.createInteractionButton = function (e, t) {
            var n = this,
              i = e.action.metadata ? e.action.metadata.title : "";
            "" === i &&
              (i =
                (e.action.params && e.action.params.contentName) ||
                e.action.library.split(" ")[0].split(".")[1]);
            var o = this.getLibraryTypePmz(e.action.library),
              r = y("<div>", {
                role: "button",
                tabindex: 0,
                "aria-label": i,
                "aria-popup": !0,
                "aria-expanded": !1,
                class: "h5p-element-button h5p-element-button-"
                  .concat(e.buttonSize, " ")
                  .concat(o, "-button"),
              }),
              s = y('<div class="h5p-button-element"></div>');
            t.attach(s);
            var a = "h5p-advancedtext" === o ? { x: e.x, y: e.y } : null;
            return (
              b(r, function () {
                var e;
                (r.attr("aria-expanded", "true"),
                  n.showInteractionPopup(
                    t,
                    r,
                    s,
                    o,
                    ((e = r),
                    function () {
                      return e.attr("aria-expanded", "false");
                    }),
                    a,
                  ));
              }),
              void 0 !== e.action &&
                "H5P.InteractiveVideo" === e.action.library.substr(0, 20) &&
                t.on("controls", function () {
                  t.controls.$fullscreen && t.controls.$fullscreen.remove();
                }),
              r
            );
          }),
          (le.prototype.showInteractionPopup = function (e, t, n, i, o) {
            function r() {
              e.trigger("resize");
            }
            var s = this,
              a =
                5 < arguments.length && void 0 !== arguments[5]
                  ? arguments[5]
                  : null;
            this.isEditor() ||
              (this.on("exitFullScreen", r),
              this.showPopup({
                popupContent: n,
                $focusOnClose: t,
                parentPosition: a,
                remove: function () {
                  ((0 < arguments.length &&
                    void 0 !== arguments[0] &&
                    arguments[0]) ||
                    n.detach(),
                    s.off("exitFullScreen", r),
                    o());
                },
                classes: i,
                instance: e,
                keepInDOM: "h5p-interactivevideo" === i,
              }),
              H5P.trigger(e, "resize"),
              "h5p-image" === i && 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),
              l(e.setActivityStarted) &&
                l(e.getScore) &&
                e.setActivityStarted());
          }),
          (le.prototype.getLibraryTypePmz = function (e) {
            return e.split(" ")[0].replace(/[\W]/g, "-").toLowerCase();
          }),
          (le.prototype.resizePopupImage = function (n) {
            function e(e, t) {
              t / i < 18.5 ||
                ((e = e / t), n.css({ width: (t = 18.5 * i) * e, height: t }));
            }
            var i = 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);
                });
          }),
          (le.prototype.addElementSolutionButton = function (i, e, o) {
            var r = this;
            ((e.showCPComments = function () {
              var t, n, e;
              0 === o.children(".h5p-element-solution").length &&
                ((e = i.solution), 0 < h.html(e).text().trim().length) &&
                ((t = y("<div/>", {
                  role: "button",
                  tabindex: 0,
                  title: r.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(o)),
                (n = { x: i.x, y: i.y }),
                i.displayAsButton ||
                  ((n.x += i.width - 4), (n.y += i.height - 12)),
                b(t, function (e) {
                  (r.showPopup({
                    popupContent: i.solution,
                    $focusOnClose: t,
                    parentPosition: n,
                    updateAriaExpanded: !0,
                  }),
                    t.attr("aria-expanded", !0),
                    e.stopPropagation());
                }));
            }),
              void 0 !== i.alwaysDisplayComments &&
                i.alwaysDisplayComments &&
                e.showCPComments());
          }),
          (le.prototype.showPopup = function (e) {
            var t,
              n = this,
              i = e.popupContent,
              o = e.$focusOnClose,
              r = e.parentPosition,
              s = void 0 === r ? null : r,
              a = e.remove,
              l = e.classes,
              c = void 0 === l ? "h5p-popup-comment-field" : l,
              u = e.instance,
              r = e.keepInDOM,
              d = void 0 !== r && r,
              p = e.updateAriaExpanded,
              h = this;
            this.popupId = void 0 === this.popupId ? 0 : this.popupId + 1;
            function f(e) {
              t
                ? (t = !1)
                : (h.restoreTabIndexes(),
                  o.focus(),
                  p && o.attr("aria-expanded", !1),
                  void 0 !== a &&
                    setTimeout(function () {
                      a(d);
                    }, 100),
                  e.preventDefault(),
                  m.addClass("h5p-animate"),
                  m.find(".h5p-popup-container").addClass("h5p-animate"),
                  setTimeout(function () {
                    d ? m.hide() : m.remove();
                  }, 100));
            }
            var m, g;
            void 0 ===
              (m =
                d && u && h.popups[u.subContentId]
                  ? h.popups[u.subContentId]
                  : m) &&
              ((v = (m = y(
                '<div class="h5p-popup-overlay ' +
                  c +
                  '"><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")),
              i instanceof H5P.jQuery ? v.append(i) : v.html(i),
              (g = ""),
              v.children().each(function (e, t) {
                (t.setAttribute("id", "popup-content-" + n.popupId + "-" + e),
                  (g += "popup-content-" + n.popupId + "-" + e + " "));
              }),
              m.find(".h5p-popup-container").attr("aria-describedby", g),
              u && u.subContentId && (h.popups[u.subContentId] = m));
            var v,
              l = m.find(".h5p-popup-container");
            return (
              (r = m),
              (e = l),
              (c = s) &&
                (e.css({ visibility: "hidden" }),
                r.prependTo(n.$wrapper),
                (i = e.height()),
                (v = e.width()),
                (s = i * (100 / (u = r.height()))),
                50 < (i = v * (100 / r.width())) && 50 < s
                  ? r.detach()
                  : (s < i &&
                      s < 45 &&
                      ((i = Math.sqrt(i * s)), e.css({ width: i + "%" })),
                    90 < i ? (i = 90) : i < 22 && (i = 22),
                    (v = c.x),
                    c.x > (i = 100 - i - 5) ? (v = i) : c.x < 5 && (v = 5),
                    (u = 100 - (s = e.height() * (100 / u)) - 10),
                    (s = c.y),
                    c.y > u ? (s = u) : c.y < 10 && (s = 10),
                    r.detach(),
                    e.css({ left: v + "%", top: s + "%" }))),
              m.addClass("h5p-animate"),
              l.css({ visibility: "" }).addClass("h5p-animate"),
              0 === m.parent().length ? m.prependTo(this.$wrapper) : m.show(),
              m
                .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(m.find(".h5p-close-popup"), f),
              m
            );
          }),
          (le.prototype.checkForSolutions = function (e) {
            return void 0 !== e.showSolutions || void 0 !== e.showCPComments;
          }),
          (le.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));
          }),
          (le.prototype.initTouchEvents = function () {
            function i(e) {
              return {
                "-webkit-transform": e,
                "-moz-transform": e,
                "-ms-transform": e,
                transform: e,
              };
            }
            var o,
              r,
              s,
              a,
              l,
              c,
              u = this,
              d = !1,
              p = !1,
              t = i("");
            this.$slidesWrapper
              .bind("touchstart", function (e) {
                ((p = !1),
                  (s = o = e.originalEvent.touches[0].pageX),
                  (r = e.originalEvent.touches[0].pageY));
                e = u.$slidesWrapper.width();
                ((a = 0 === u.currentSlideIndex ? 0 : -e),
                  (l = u.currentSlideIndex + 1 >= u.slides.length ? 0 : e),
                  (d = !(c = 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)),
                  (s = t[0].pageX));
                var n = o - s;
                (null === c &&
                  (c =
                    Math.abs(r - e.originalEvent.touches[0].pageY) >
                    Math.abs(n)),
                  1 !== t.length ||
                    c ||
                    (e.preventDefault(),
                    p ||
                      (n < 0
                        ? u.$current
                            .prev()
                            .css(i("translateX(" + (a - n) + "px"))
                        : u.$current
                            .next()
                            .css(i("translateX(" + (l - n) + "px)")),
                      u.$current.css(i("translateX(" + -n + "px)")))));
              })
              .bind("touchend", function () {
                if (!c) {
                  var e = o - s;
                  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");
              });
          }),
          (le.prototype.updateTouchPopup = function (e, t, n, i) {
            var o;
            arguments.length <= 0
              ? void 0 !== this.touchPopup && this.touchPopup.remove()
              : ((o = ""),
                void 0 !== this.$keywords &&
                void 0 !==
                  this.$keywords
                    .children(":eq(" + t + ")")
                    .find("span")
                    .html()
                  ? (o += this.$keywords
                      .children(":eq(" + t + ")")
                      .find("span")
                      .html())
                  : (o += this.l10n.slide + " " + (t + 1)),
                void 0 === this.editor &&
                  t >= this.slides.length - 1 &&
                  (o = this.l10n.showSolutions),
                void 0 === this.touchPopup
                  ? (this.touchPopup = H5P.jQuery("<div/>", {
                      class: "h5p-touch-popup",
                    }).insertAfter(e))
                  : this.touchPopup.insertAfter(e),
                i - 0.15 * e.parent().height() < 0
                  ? (i = 0)
                  : (i -= 0.15 * e.parent().height()),
                this.touchPopup.css({
                  "max-width": e.width() - n,
                  left: n,
                  top: i,
                }),
                this.touchPopup.html(o));
          }),
          (le.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))
            );
          }),
          (le.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))
            );
          }),
          (le.prototype.isCurrentSlide = function (e) {
            return this.currentSlideIndex === e;
          }),
          (le.prototype.getCurrentSlideIndex = function () {
            return this.currentSlideIndex;
          }),
          (le.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,
              );
          }),
          (le.prototype.processJumpToSlide = function (e, t, n) {
            var i = this;
            if (
              (void 0 === this.editor &&
                this.contentId &&
                (((l =
                  this.createXAPIEventTemplate(
                    "progressed",
                  )).data.statement.object.definition.extensions[
                  "http://id.tincanapi.com/extension/ending-point"
                ] = e + 1),
                this.trigger(l)),
              !this.$current.hasClass("h5p-animate"))
            ) {
              var o = this.$current.addClass("h5p-animate"),
                r = i.$slidesWrapper.children(),
                s = r.filter(":lt(" + e + ")");
              this.$current = r.eq(e).addClass("h5p-animate");
              var a = this.currentSlideIndex;
              ((this.currentSlideIndex = e),
                this.attachElements(this.$current, e));
              var l = this.$current.next();
              return (
                l.length && this.attachElements(l, e + 1),
                this.setOverflowTabIndex(),
                setTimeout(function () {
                  (o.removeClass("h5p-current"),
                    r
                      .css({
                        "-webkit-transform": "",
                        "-moz-transform": "",
                        "-ms-transform": "",
                        transform: "",
                      })
                      .removeClass("h5p-touch-move")
                      .removeClass("h5p-previous"),
                    s.addClass("h5p-previous"),
                    i.$current.addClass("h5p-current"),
                    i.trigger("changedSlide", i.$current.index()));
                }, 1),
                setTimeout(function () {
                  if (
                    (i.$slidesWrapper.children().removeClass("h5p-animate"),
                    void 0 === i.editor)
                  ) {
                    var e = i.elementInstances[i.currentSlideIndex],
                      t = i.slides[i.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)),
                i.presentation.keywordListEnabled &&
                  i.presentation.keywordListAlwaysShow &&
                  i.showKeywords(),
                i.navigationLine &&
                  (i.navigationLine.updateProgressBar(
                    e,
                    a,
                    this.isSolutionMode,
                  ),
                  i.navigationLine.updateFooter(e),
                  this.setSlideNumberAnnouncer(e, n)),
                i.summarySlideObject &&
                  i.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
              );
            }
          }),
          (le.prototype.jumpToSlide = function (e) {
            var t = this,
              n =
                1 < arguments.length && void 0 !== arguments[1] && arguments[1],
              i =
                2 < arguments.length && void 0 !== arguments[2]
                  ? arguments[2]
                  : null,
              o =
                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 r = (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,
              });
              (r.on("canceled", function () {
                return !1;
              }),
                r.on("confirmed", function () {
                  (t.processJumpToSlide(e, n, o), i && i());
                }));
            } else (this.processJumpToSlide(e, n, o), i && i());
          }),
          (le.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);
              });
          }),
          (le.prototype.setSlideNumberAnnouncer = function (e) {
            var t =
                1 < arguments.length && void 0 !== arguments[1] && arguments[1],
              n = "";
            if (!this.navigationLine) return n;
            var i = this.slides[e];
            (i.keywords &&
              0 < i.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());
          }),
          (le.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());
          }),
          (le.prototype.showSolutions = function () {
            for (
              var e = !1, t = [], n = !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,
                  ),
                  e || (this.jumpToSlide(i, !1), (e = !0)));
                for (
                  var o = 0, r = 0, s = [], a = 0;
                  a < this.slidesWithSolutions[i].length;
                  a++
                ) {
                  var l = this.slidesWithSolutions[i][a];
                  (void 0 !== l.addSolutionButton && l.addSolutionButton(),
                    l.showSolutions && l.showSolutions(),
                    l.showCPComments && l.showCPComments(),
                    void 0 !== l.getMaxScore &&
                      ((r += l.getMaxScore()),
                      (o += l.getScore()),
                      (n = !0),
                      s.push(l.coursePresentationIndexOnSlide)));
                }
                t.push({ indexes: s, slide: i + 1, score: o, maxScore: r });
              }
              if (this.showCommentsAfterSolution[i])
                for (
                  var c = 0;
                  c < this.showCommentsAfterSolution[i].length;
                  c++
                )
                  "function" ==
                    typeof this.showCommentsAfterSolution[i][c]
                      .showCPComments &&
                    this.showCommentsAfterSolution[i][c].showCPComments();
            }
            if (n) return t;
          }),
          (le.prototype.getSlideScores = function (e) {
            for (
              var t = !0 === e, n = [], i = !1, o = 0;
              o < this.slidesWithSolutions.length;
              o++
            )
              if (void 0 !== this.slidesWithSolutions[o]) {
                (this.elementsAttached[o] ||
                  this.attachElements(
                    this.$slidesWrapper.children(":eq(" + o + ")"),
                    o,
                  ),
                  t || (this.jumpToSlide(o, !1), (t = !0)));
                for (
                  var r = 0, s = 0, a = [], l = 0;
                  l < this.slidesWithSolutions[o].length;
                  l++
                ) {
                  var c = this.slidesWithSolutions[o][l];
                  void 0 !== c.getMaxScore &&
                    ((s += c.getMaxScore()),
                    (r += c.getScore()),
                    (i = !0),
                    a.push(c.coursePresentationIndexOnSlide));
                }
                n.push({ indexes: a, slide: o + 1, score: r, maxScore: s });
              }
            if (i) return n;
          }),
          (le.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 i = 0; i < this.slides.length; i++) {
              var o,
                r,
                s = new H5P.ContentCopyrights();
              if (
                (s.setLabel(this.l10n.slide + " " + (i + 1)),
                this.slides[i] &&
                  this.slides[i].slideBackgroundSelector &&
                  this.slides[i].slideBackgroundSelector.imageSlideBackground &&
                  ((o =
                    this.slides[i].slideBackgroundSelector
                      .imageSlideBackground),
                  (r = new H5P.MediaCopyright(o.copyright)).setThumbnail(
                    new H5P.Thumbnail(
                      H5P.getPath(o.path, this.contentId),
                      o.width,
                      o.height,
                    ),
                  ),
                  s.addMedia(r)),
                void 0 !== this.elementInstances[i])
              )
                for (var a = 0; a < this.elementInstances[i].length; a++) {
                  var l,
                    c,
                    u,
                    d = this.elementInstances[i][a];
                  this.slides[i].elements[a].action &&
                    ((l = this.slides[i].elements[a].action.params),
                    (u = this.slides[i].elements[a].action.metadata),
                    (c = void 0) ===
                      (c =
                        void 0 !== d.getCopyrights ? d.getCopyrights() : c) &&
                      ((c = new H5P.ContentCopyrights()),
                      H5P.findCopyrights(c, l, this.contentId, {
                        metadata: u,
                        machineName: d.libraryInfo.machineName,
                      })),
                    (u = a + 1),
                    void 0 !== l.contentName
                      ? (u += ": " + l.contentName)
                      : void 0 !== d.getTitle
                        ? (u += ": " + d.getTitle())
                        : l.l10n && l.l10n.name && (u += ": " + l.l10n.name),
                    c.setLabel(u),
                    s.addContent(c));
                }
              n.addContent(s);
            }
            return n;
          }),
          (le.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 = i(this.slidesWithSolutions)
              .map(function (e) {
                if (e && e.getXAPIData) return e.getXAPIData();
              })
              .filter(function (e) {
                return !!e;
              });
            return { statement: e.data.statement, children: t };
          }),
          (le.prototype.getContext = function () {
            return { type: "slide", value: this.currentSlideIndex + 1 };
          }));
        e = le;
        (((H5P = H5P || {}).Tooltip = H5P.Tooltip || function () {}),
          (H5P.CoursePresentation = e));
      })());
  })());
const realH5PGetPath = H5P.getPath;
H5P.getPath = function (e, t) {
  return e.startsWith("data:") ? e : realH5PGetPath(e, t);
};
var furtherH5PInlineResources = {
  "H5P.SingleChoiceSet-1.11/sounds/negative-short.ogg":
    "data:audio/ogg;base64, ",
  "H5P.SingleChoiceSet-1.11/sounds/positive-short.ogg":
    "data:audio/ogg;base64, ",
  "H5P.SingleChoiceSet-1.11/sounds/negative-short.mp3":
    "data:audio/mpeg;base64, ",
  "H5P.FontIcons-1.0/selection.json":
    "data:application/json;base64, ",
  "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",
  "H5P.SingleChoiceSet-1.11/sounds/positive-short.mp3":
    "data:audio/mpeg;base64, ",
};
!(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;
};
