H5PIntegration = {
  ajax: { setFinished: "", contentUserData: "" },
  ajaxPath: "/h5p/ajax?action=",
  contents: {
    "cid-3309982905": {
      displayOptions: {
        copy: false,
        copyright: false,
        embed: false,
        export: false,
        frame: false,
        icon: false,
      },
      fullScreen: "0",
      jsonContent:
        '{"introPage":{"showIntroPage":false,"startButtonText":"Start Quiz","introduction":""},"progressType":"dots","passPercentage":50,"questions":[{"params":{"media":{"disableImageZooming":false},"answers":[{"correct":true,"tipsAndFeedback":{"tip":"","chosenFeedback":"","notChosenFeedback":""},"text":"<div><strong>Ο προπονητής</strong></div>\\n"},{"correct":true,"tipsAndFeedback":{"tip":"","chosenFeedback":"","notChosenFeedback":""},"text":"<div><strong>Οι γονείς του</strong></div>\\n"},{"correct":false,"tipsAndFeedback":{"tip":"","chosenFeedback":"","notChosenFeedback":""},"text":"<div><strong>Οι συμπαίκτες του</strong></div>\\n"},{"correct":false,"tipsAndFeedback":{"tip":"","chosenFeedback":"","notChosenFeedback":""},"text":"<div><strong>Οι φίλοι του</strong></div>\\n"}],"overallFeedback":[{"from":0,"to":100}],"behaviour":{"enableRetry":true,"enableSolutionsButton":true,"enableCheckButton":true,"type":"auto","singlePoint":false,"randomAnswers":true,"showSolutionsRequiresInput":true,"confirmCheckDialog":false,"confirmRetryDialog":false,"autoCheck":false,"passPercentage":100,"showScorePoints":true},"UI":{"checkAnswerButton":"Έλεγχος","submitAnswerButton":"Υποβολή","showSolutionButton":"Λύση","tryAgainButton":"Επανάληψη","tipsLabel":"Εμφάνιση επεξήγησης","scoreBarLabel":"Έχεις :num από :total πόντους","tipAvailable":"Επεξήγηση διαθέσιμη","feedbackAvailable":"Ανατροφοδότηση διαθέσιμη","readFeedback":"Ανάγνωση ανατροφοδότησης","wrongAnswer":"Λάθος απάντηση","correctAnswer":"Σωστή απάντηση","shouldCheck":"Θα πρέπει να έχει επιλεγεί","shouldNotCheck":"Δεν θα πρέπει να έχει επιλεγεί","noInput":"Παρακαλώ απάντησε προτού δεις τη λύση","a11yCheck":"Έλεγχος απαντήσεων. Οι απαντήσεις θα μαρκαριστούν ως σωστές, λάθος και μη απαντημένες.","a11yShowSolution":"Προβολή της λύσης. Η άσκηση θα επισημανθεί με την σωστή απάντση.","a11yRetry":"Επανάληψη της εργασίας. Επαναφορά όλων των απαντήσεων και έναρξη από την αρχή."},"confirmCheck":{"header":"Ολοκλήρωση άσκησης","body":"Είσαι σίγουρος ότι θέλεις να ολοκληρώσεις την άσκηση;","cancelLabel":"Όχι","confirmLabel":"Ναι"},"confirmRetry":{"header":"Επανάληψη","body":"Είσαι σίγουρος ότι θέλεις να προσπαθήσεις ξανά;","cancelLabel":"Όχι","confirmLabel":"Ναι"},"question":"<p style=\\"text-align:justify\\">Ο Σπύρος πηγαίνει ποδόσφαιρο. Στην ομάδα υπάρχει ένα παιδί που όταν παίζουν πέφτει συνεχώς πάνω του, τον χτυπάει υποτίθεται κατά λάθος και τον κοροϊδεύει ότι δεν ξέρει να παίξει μπάλα. </p>\\n"},"library":"H5P.MultiChoice 1.16","metadata":{"contentType":"Multiple Choice","license":"U","title":"Ερωτηση 1","authors":[],"changes":[],"extraTitle":"Ερωτηση 1","defaultLanguage":"el"},"subContentId":"066cd96b-7027-491d-a8d7-4811f874f974"},{"params":{"media":{"disableImageZooming":false},"answers":[{"correct":false,"tipsAndFeedback":{"tip":"","chosenFeedback":"","notChosenFeedback":""},"text":"<div><strong>Οι γείτονες</strong></div>\\n"},{"correct":true,"tipsAndFeedback":{"tip":"","chosenFeedback":"","notChosenFeedback":""},"text":"<div><strong>Οι γονείς</strong></div>\\n"},{"correct":false,"tipsAndFeedback":{"tip":"","chosenFeedback":"","notChosenFeedback":""},"text":"<div><strong>Οι φίλοι</strong></div>\\n"},{"correct":false,"tipsAndFeedback":{"tip":"","chosenFeedback":"","notChosenFeedback":""},"text":"<div><strong>Τα αδέρφια</strong></div>\\n"}],"overallFeedback":[{"from":0,"to":100}],"behaviour":{"enableRetry":true,"enableSolutionsButton":true,"enableCheckButton":true,"type":"auto","singlePoint":false,"randomAnswers":true,"showSolutionsRequiresInput":true,"confirmCheckDialog":false,"confirmRetryDialog":false,"autoCheck":false,"passPercentage":100,"showScorePoints":true},"UI":{"checkAnswerButton":"Έλεγχος","submitAnswerButton":"Υποβολή","showSolutionButton":"Λύση","tryAgainButton":"Επανάληψη","tipsLabel":"Εμφάνιση επεξήγησης","scoreBarLabel":"Έχεις :num από :total πόντους","tipAvailable":"Επεξήγηση διαθέσιμη","feedbackAvailable":"Ανατροφοδότηση διαθέσιμη","readFeedback":"Ανάγνωση ανατροφοδότησης","wrongAnswer":"Λάθος απάντηση","correctAnswer":"Σωστή απάντηση","shouldCheck":"Θα πρέπει να έχει επιλεγεί","shouldNotCheck":"Δεν θα πρέπει να έχει επιλεγεί","noInput":"Παρακαλώ απάντησε προτού δεις τη λύση","a11yCheck":"Έλεγχος απαντήσεων. Οι απαντήσεις θα μαρκαριστούν ως σωστές, λάθος και μη απαντημένες.","a11yShowSolution":"Προβολή της λύσης. Η άσκηση θα επισημανθεί με την σωστή απάντση.","a11yRetry":"Επανάληψη της εργασίας. Επαναφορά όλων των απαντήσεων και έναρξη από την αρχή."},"confirmCheck":{"header":"Ολοκλήρωση άσκησης","body":"Είσαι σίγουρος ότι θέλεις να ολοκληρώσεις την άσκηση;","cancelLabel":"Όχι","confirmLabel":"Ναι"},"confirmRetry":{"header":"Επανάληψη","body":"Είσαι σίγουρος ότι θέλεις να προσπαθήσεις ξανά;","cancelLabel":"Όχι","confirmLabel":"Ναι"},"question":"<p style=\\"text-align:justify\\"> Ο Γιάννης και οι φίλοι του, όταν βγαίνουν να παίξουν στην πλατεία του χωριού, συναντούν μια ομάδα μεγαλύτερων παιδιών που τους ζητούν συνεχώς το χαρτζιλίκι τους για να τους αφήσουν ήσυχους να παίξουν. Ο Γιάννης και οι φίλοι του, επειδή τους φοβούνται, τους δίνουν τα χρήματα και δεν λένε σε κανέναν τι συμβαίνει επειδή ντρέπονται. </p>\\n\\n<p style=\\"text-align:justify\\"></p>\\n"},"library":"H5P.MultiChoice 1.16","metadata":{"contentType":"Multiple Choice","license":"U","title":"Ερωτηση 2","authors":[],"changes":[],"extraTitle":"Ερωτηση 2"},"subContentId":"ce469cc7-c899-4f97-8558-a366b3101575"},{"params":{"media":{"disableImageZooming":false},"answers":[{"correct":true,"tipsAndFeedback":{"tip":"","chosenFeedback":"","notChosenFeedback":""},"text":"<div><strong>Οι δάσκαλοι</strong></div>\\n"},{"correct":false,"tipsAndFeedback":{"tip":"","chosenFeedback":"","notChosenFeedback":""},"text":"<div><strong>Ο επιστάτης</strong></div>\\n"},{"correct":true,"tipsAndFeedback":{"tip":"","chosenFeedback":"","notChosenFeedback":""},"text":"<div><strong>Οι γονείς</strong></div>\\n"},{"correct":true,"tipsAndFeedback":{"tip":"","chosenFeedback":"","notChosenFeedback":""},"text":"<div><strong>Ο/Η  διευθυντής/τρια</strong></div>\\n"},{"correct":false,"tipsAndFeedback":{"tip":"","chosenFeedback":"","notChosenFeedback":""},"text":"<div><strong>Η ξαδέρφη της</strong></div>\\n"}],"overallFeedback":[{"from":0,"to":100}],"behaviour":{"enableRetry":true,"enableSolutionsButton":true,"enableCheckButton":true,"type":"auto","singlePoint":false,"randomAnswers":true,"showSolutionsRequiresInput":true,"confirmCheckDialog":false,"confirmRetryDialog":false,"autoCheck":false,"passPercentage":100,"showScorePoints":true},"UI":{"checkAnswerButton":"Έλεγχος","submitAnswerButton":"Υποβολή","showSolutionButton":"Λύση","tryAgainButton":"Επανάληψη","tipsLabel":"Εμφάνιση επεξήγησης","scoreBarLabel":"Έχεις :num από :total πόντους","tipAvailable":"Επεξήγηση διαθέσιμη","feedbackAvailable":"Ανατροφοδότηση διαθέσιμη","readFeedback":"Ανάγνωση ανατροφοδότησης","wrongAnswer":"Λάθος απάντηση","correctAnswer":"Σωστή απάντηση","shouldCheck":"Θα πρέπει να έχει επιλεγεί","shouldNotCheck":"Δεν θα πρέπει να έχει επιλεγεί","noInput":"Παρακαλώ απάντησε προτού δεις τη λύση","a11yCheck":"Έλεγχος απαντήσεων. Οι απαντήσεις θα μαρκαριστούν ως σωστές, λάθος και μη απαντημένες.","a11yShowSolution":"Προβολή της λύσης. Η άσκηση θα επισημανθεί με την σωστή απάντση.","a11yRetry":"Επανάληψη της εργασίας. Επαναφορά όλων των απαντήσεων και έναρξη από την αρχή."},"confirmCheck":{"header":"Ολοκλήρωση άσκησης","body":"Είσαι σίγουρος ότι θέλεις να ολοκληρώσεις την άσκηση;","cancelLabel":"Όχι","confirmLabel":"Ναι"},"confirmRetry":{"header":"Επανάληψη","body":"Είσαι σίγουρος ότι θέλεις να προσπαθήσεις ξανά;","cancelLabel":"Όχι","confirmLabel":"Ναι"},"question":"<p style=\\"text-align:justify\\">Η Αναστασία είναι καινούρια μαθήτρια στο σχολείο. Είναι ένα ψηλό, αδύνατο κορίτσι που φοράει σιδεράκια. Στο παράλληλο τμήμα με το δικό της είναι μια παρέα κοριτσιών που στο διάλειμμα την πειράζουν για τα σιδεράκια και για την εμφάνισή της. Την κάνουν να ντρέπεται και να κρύβεται συνεχώς στην τουαλέτα του σχολείου. </p>\\n"},"library":"H5P.MultiChoice 1.16","metadata":{"contentType":"Multiple Choice","license":"U","title":"Ερωτηση 3","authors":[],"changes":[],"extraTitle":"Ερωτηση 3"},"subContentId":"54b0c375-1cd2-43f2-a94e-4ff23e021a70"}],"disableBackwardsNavigation":false,"randomQuestions":false,"endGame":{"showResultPage":true,"showSolutionButton":true,"showRetryButton":true,"noResultMessage":"Finished","message":"Your result:","scoreBarLabel":"You got @finals out of @totals points","overallFeedback":[{"from":0,"to":100}],"solutionButtonText":"Εμφάνιση λύσης","retryButtonText":"Επανάληψη","finishButtonText":"Finish","submitButtonText":"Submit","showAnimations":false,"skippable":false,"skipButtonText":"Skip video"},"override":{"checkButton":true},"texts":{"prevButton":"Προηγούμενη","nextButton":"Επόμενη","finishButton":"Ολοκλήρωση","submitButton":"Υποβολή","textualProgress":"Ερώτηση: @current από @total ερωτήσεις","jumpToQuestion":"Ερώτηση %d από %total","questionLabel":"Ερώτηση","readSpeakerProgress":"Ερώτηση @current από @total","unansweredText":"Δεν απαντήθηκε","answeredText":"Απαντήθηκε","currentQuestionText":"Τρέχουσα ερώτηση","navigationLabel":"Ερωτήσεις"}}',
      library: "H5P.QuestionSet 1.20",
      metadata: {
        license: "U",
        title: "Επιλεγώ το κατάλληλο άτομο",
        defaultLanguage: "en",
      },
      scripts: [
        "/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.MultiChoice-1.16/js/multichoice.js?version=1.16.12",
        "/h5p/libraries/H5P.Video-1.6/scripts/vimeo.js?version=1.6.12",
        "/h5p/libraries/H5P.Video-1.6/scripts/youtube.js?version=1.6.12",
        "/h5p/libraries/H5P.Video-1.6/scripts/panopto.js?version=1.6.12",
        "/h5p/libraries/H5P.Video-1.6/scripts/html5.js?version=1.6.12",
        "/h5p/libraries/H5P.Video-1.6/scripts/video.js?version=1.6.12",
        "/h5p/libraries/H5P.QuestionSet-1.20/js/questionset.js?version=1.20.12",
      ],
      styles: [
        "/h5p/libraries/FontAwesome-4.5/h5p-font-awesome.min.css?version=4.5.4",
        "/h5p/libraries/H5P.FontIcons-1.0/styles/h5p-font-icons.css?version=1.0.6",
        "/h5p/libraries/H5P.JoubelUI-1.3/css/joubel-help-dialog.css?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/css/joubel-message-dialog.css?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/css/joubel-progress-circle.css?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/css/joubel-simple-rounded-button.css?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/css/joubel-speech-bubble.css?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/css/joubel-tip.css?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/css/joubel-slider.css?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/css/joubel-score-bar.css?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/css/joubel-progressbar.css?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/css/joubel-ui.css?version=1.3.19",
        "/h5p/libraries/H5P.JoubelUI-1.3/css/joubel-icon.css?version=1.3.19",
        "/h5p/libraries/H5P.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.MultiChoice-1.16/css/multichoice.css?version=1.16.12",
        "/h5p/libraries/H5P.Video-1.6/styles/video.css?version=1.6.12",
        "/h5p/libraries/H5P.QuestionSet-1.20/css/questionset.css?version=1.20.12",
      ],
      url: "3309982905",
      exportUrl: "/h5p/download/3309982905",
    },
  },
  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-" + "3309982905"].displayOptions.embed = false;
} else {
  H5PIntegration.contents["cid-" + "3309982905"].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-" + "3309982905"].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 (x, e) {
  "use strict";
  function g(e) {
    return "function" == typeof e && "number" != typeof e.nodeType;
  }
  function m(e) {
    return null != e && e === e.window;
  }
  var t = [],
    n = Object.getPrototypeOf,
    s = t.slice,
    v = t.flat
      ? function (e) {
          return t.flat.call(e);
        }
      : function (e) {
          return t.concat.apply([], e);
        },
    c = t.push,
    r = t.indexOf,
    i = {},
    o = i.toString,
    b = i.hasOwnProperty,
    a = b.toString,
    l = a.call(Object),
    y = {},
    H = x.document,
    u = { type: !0, src: !0, nonce: !0, noModule: !0 };
  function w(e, t, n) {
    var i,
      r,
      o = (n = n || H).createElement("script");
    if (((o.text = e), t))
      for (i in u)
        (r = t[i] || (t.getAttribute && t.getAttribute(i))) &&
          o.setAttribute(i, r);
    n.head.appendChild(o).parentNode.removeChild(o);
  }
  function h(e) {
    return null == e
      ? e + ""
      : "object" == typeof e || "function" == typeof e
        ? i[o.call(e)] || "object"
        : typeof e;
  }
  var d = "3.5.1",
    C = function (e, t) {
      return new C.fn.init(e, t);
    };
  function p(e) {
    var t = !!e && "length" in e && e.length,
      n = h(e);
    return (
      !g(e) &&
      !m(e) &&
      ("array" === n ||
        0 === t ||
        ("number" == typeof t && 0 < t && t - 1 in e))
    );
  }
  ((C.fn = C.prototype =
    {
      jquery: d,
      constructor: C,
      length: 0,
      toArray: function () {
        return s.call(this);
      },
      get: function (e) {
        return null == e
          ? s.call(this)
          : e < 0
            ? this[e + this.length]
            : this[e];
      },
      pushStack: function (e) {
        e = C.merge(this.constructor(), e);
        return ((e.prevObject = this), e);
      },
      each: function (e) {
        return C.each(this, e);
      },
      map: function (n) {
        return this.pushStack(
          C.map(this, function (e, t) {
            return n.call(e, t, e);
          }),
        );
      },
      slice: function () {
        return this.pushStack(s.apply(this, arguments));
      },
      first: function () {
        return this.eq(0);
      },
      last: function () {
        return this.eq(-1);
      },
      even: function () {
        return this.pushStack(
          C.grep(this, function (e, t) {
            return (t + 1) % 2;
          }),
        );
      },
      odd: function () {
        return this.pushStack(
          C.grep(this, function (e, t) {
            return t % 2;
          }),
        );
      },
      eq: function (e) {
        var t = this.length,
          e = +e + (e < 0 ? t : 0);
        return this.pushStack(0 <= e && e < t ? [this[e]] : []);
      },
      end: function () {
        return this.prevObject || this.constructor();
      },
      push: c,
      sort: t.sort,
      splice: t.splice,
    }),
    (C.extend = C.fn.extend =
      function () {
        var e,
          t,
          n,
          i,
          r,
          o = arguments[0] || {},
          a = 1,
          s = arguments.length,
          c = !1;
        for (
          "boolean" == typeof o && ((c = o), (o = arguments[a] || {}), a++),
            "object" == typeof o || g(o) || (o = {}),
            a === s && ((o = this), a--);
          a < s;
          a++
        )
          if (null != (e = arguments[a]))
            for (t in e)
              ((n = e[t]),
                "__proto__" !== t &&
                  o !== n &&
                  (c && n && (C.isPlainObject(n) || (i = Array.isArray(n)))
                    ? ((r = o[t]),
                      (r =
                        i && !Array.isArray(r)
                          ? []
                          : i || C.isPlainObject(r)
                            ? r
                            : {}),
                      (i = !1),
                      (o[t] = C.extend(c, r, n)))
                    : void 0 !== n && (o[t] = n)));
        return o;
      }),
    C.extend({
      expando: "jQuery" + (d + Math.random()).replace(/\D/g, ""),
      isReady: !0,
      error: function (e) {
        throw new Error(e);
      },
      noop: function () {},
      isPlainObject: function (e) {
        return !(
          !e ||
          "[object Object]" !== o.call(e) ||
          ((e = n(e)) &&
            ("function" !=
              typeof (e = b.call(e, "constructor") && e.constructor) ||
              a.call(e) !== l))
        );
      },
      isEmptyObject: function (e) {
        for (var t in e) return !1;
        return !0;
      },
      globalEval: function (e, t, n) {
        w(e, { nonce: t && t.nonce }, n);
      },
      each: function (e, t) {
        var n,
          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))
              ? C.merge(t, "string" == typeof e ? [e] : e)
              : c.call(t, e)),
          t
        );
      },
      inArray: function (e, t, n) {
        return null == t ? -1 : r.call(t, e, n);
      },
      merge: function (e, t) {
        for (var n = +t.length, i = 0, r = e.length; i < n; i++) e[r++] = t[i];
        return ((e.length = r), e);
      },
      grep: function (e, t, n) {
        for (var i = [], r = 0, o = e.length, a = !n; r < o; r++)
          !t(e[r], r) != a && i.push(e[r]);
        return i;
      },
      map: function (e, t, n) {
        var i,
          r,
          o = 0,
          a = [];
        if (p(e))
          for (i = e.length; o < i; o++)
            null != (r = t(e[o], o, n)) && a.push(r);
        else for (o in e) null != (r = t(e[o], o, n)) && a.push(r);
        return v(a);
      },
      guid: 1,
      support: y,
    }),
    "function" == typeof Symbol && (C.fn[Symbol.iterator] = t[Symbol.iterator]),
    C.each(
      "Boolean Number String Function Array Date RegExp Object Error Symbol".split(
        " ",
      ),
      function (e, t) {
        i["[object " + t + "]"] = t.toLowerCase();
      },
    ));
  var f = (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() {
      x();
    }
    var e,
      f,
      w,
      o,
      r,
      h,
      g,
      m,
      P,
      c,
      l,
      x,
      H,
      a,
      C,
      v,
      s,
      u,
      b,
      T = "sizzle" + +new Date(),
      y = n.document,
      k = 0,
      S = 0,
      E = ce(),
      A = ce(),
      I = ce(),
      D = ce(),
      q = function (e, t) {
        return (e === t && (l = !0), 0);
      },
      j = {}.hasOwnProperty,
      t = [],
      L = t.pop,
      B = t.push,
      N = t.push,
      R = t.slice,
      $ = function (e, t) {
        for (var n = 0, i = e.length; n < i; n++) if (e[n] === t) return n;
        return -1;
      },
      F =
        "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
      M = "[\\x20\\t\\r\\n\\f]",
      O =
        "(?:\\\\[\\da-fA-F]{1,6}" +
        M +
        "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",
      V =
        "\\[" +
        M +
        "*(" +
        O +
        ")(?:" +
        M +
        "*([*^$|!~]?=)" +
        M +
        "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" +
        O +
        "))|)" +
        M +
        "*\\]",
      Q =
        ":(" +
        O +
        ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" +
        V +
        ")*)|.*)\\)|)",
      z = new RegExp(M + "+", "g"),
      U = new RegExp("^" + M + "+|((?:^|[^\\\\])(?:\\\\.)*)" + M + "+$", "g"),
      _ = new RegExp("^" + M + "*," + M + "*"),
      G = new RegExp("^" + M + "*([>+~]|" + M + ")" + M + "*"),
      W = new RegExp(M + "|>"),
      X = new RegExp(Q),
      Y = new RegExp("^" + O + "$"),
      J = {
        ID: new RegExp("^#(" + O + ")"),
        CLASS: new RegExp("^\\.(" + O + ")"),
        TAG: new RegExp("^(" + O + "|[*])"),
        ATTR: new RegExp("^" + V),
        PSEUDO: new RegExp("^" + Q),
        CHILD: new RegExp(
          "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" +
            M +
            "*(even|odd|(([+-]|)(\\d*)n|)" +
            M +
            "*(?:([+-]|)" +
            M +
            "*(\\d+)|))" +
            M +
            "*\\)|)",
          "i",
        ),
        bool: new RegExp("^(?:" + F + ")$", "i"),
        needsContext: new RegExp(
          "^" +
            M +
            "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
            M +
            "*((?:-\\d)?\\d*)" +
            M +
            "*\\)|)(?=[^-]|$)",
          "i",
        ),
      },
      K = /HTML$/i,
      Z = /^(?:input|select|textarea|button)$/i,
      ee = /^h\d$/i,
      te = /^[^{]+\{\s*\[native \w/,
      ne = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
      ie = /[+~]/,
      re = new RegExp("\\\\[\\da-fA-F]{1,6}" + M + "?|\\\\([^\\r\\n\\f])", "g"),
      oe = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
      ae = be(
        function (e) {
          return !0 === e.disabled && "fieldset" === e.nodeName.toLowerCase();
        },
        { dir: "parentNode", next: "legend" },
      );
    try {
      (N.apply((t = R.call(y.childNodes)), y.childNodes),
        t[y.childNodes.length].nodeType);
    } catch (e) {
      N = {
        apply: t.length
          ? function (e, t) {
              B.apply(e, R.call(t));
            }
          : function (e, t) {
              for (var n = e.length, i = 0; (e[n++] = t[i++]); );
              e.length = n - 1;
            },
      };
    }
    function se(e, t, n, i) {
      var r,
        o,
        a,
        s,
        c,
        l,
        u = t && t.ownerDocument,
        d = t ? t.nodeType : 9;
      if (
        ((n = n || []),
        "string" != typeof e || !e || (1 !== d && 9 !== d && 11 !== d))
      )
        return n;
      if (!i && (x(t), (t = t || H), C)) {
        if (11 !== d && (s = ne.exec(e)))
          if ((l = s[1])) {
            if (9 === d) {
              if (!(o = t.getElementById(l))) return n;
              if (o.id === l) return (n.push(o), n);
            } else if (u && (o = u.getElementById(l)) && b(t, o) && o.id === l)
              return (n.push(o), n);
          } else {
            if (s[2]) return (N.apply(n, t.getElementsByTagName(e)), n);
            if (
              (l = s[3]) &&
              f.getElementsByClassName &&
              t.getElementsByClassName
            )
              return (N.apply(n, t.getElementsByClassName(l)), n);
          }
        if (
          f.qsa &&
          !D[e + " "] &&
          (!v || !v.test(e)) &&
          (1 !== d || "object" !== t.nodeName.toLowerCase())
        ) {
          if (((l = e), (u = t), 1 === d && (W.test(e) || G.test(e)))) {
            for (
              ((u = (ie.test(e) && ge(t.parentNode)) || t) === t && f.scope) ||
                ((a = t.getAttribute("id"))
                  ? (a = a.replace(oe, p))
                  : t.setAttribute("id", (a = T))),
                r = (c = h(e)).length;
              r--;

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

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

                      );
                    return (f -= m) === g || (f % g == 0 && 0 <= f / g);
                  }
                };
          },
          PSEUDO: function (e, o) {
            var t,
              a =
                w.pseudos[e] ||
                w.setFilters[e.toLowerCase()] ||
                se.error("unsupported pseudo: " + e);
            return a[T]
              ? a(o)
              : 1 < a.length
                ? ((t = [e, e, "", o]),
                  w.setFilters.hasOwnProperty(e.toLowerCase())
                    ? le(function (e, t) {
                        for (var n, i = a(e, o), r = i.length; r--; )
                          e[(n = $(e, i[r]))] = !(t[n] = i[r]);
                      })
                    : function (e) {
                        return a(e, 0, t);
                      })
                : a;
          },
        },
        pseudos: {
          not: le(function (e) {
            var i = [],
              r = [],
              s = g(e.replace(U, "$1"));
            return s[T]
              ? le(function (e, t, n, i) {
                  for (var r, o = s(e, null, i, []), a = e.length; a--; )
                    (r = o[a]) && (e[a] = !(t[a] = r));
                })
              : function (e, t, n) {
                  return (
                    (i[0] = e),
                    s(i, null, n, r),
                    (i[0] = null),
                    !r.pop()
                  );
                };
          }),
          has: le(function (t) {
            return function (e) {
              return 0 < se(t, e).length;
            };
          }),
          contains: le(function (t) {
            return (
              (t = t.replace(re, d)),
              function (e) {
                return -1 < (e.textContent || o(e)).indexOf(t);
              }
            );
          }),
          lang: le(function (n) {
            return (
              Y.test(n || "") || se.error("unsupported lang: " + n),
              (n = n.replace(re, d).toLowerCase()),
              function (e) {
                var t;
                do {
                  if (
                    (t = C
                      ? e.lang
                      : e.getAttribute("xml:lang") || e.getAttribute("lang"))
                  )
                    return (
                      (t = t.toLowerCase()) === n || 0 === t.indexOf(n + "-")
                    );
                } while ((e = e.parentNode) && 1 === e.nodeType);
                return !1;
              }
            );
          }),
          target: function (e) {
            var t = n.location && n.location.hash;
            return t && t.slice(1) === e.id;
          },
          root: function (e) {
            return e === a;
          },
          focus: function (e) {
            return (
              e === H.activeElement &&
              (!H.hasFocus || H.hasFocus()) &&
              !!(e.type || e.href || ~e.tabIndex)
            );
          },
          enabled: fe(!1),
          disabled: fe(!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: he(function () {
            return [0];
          }),
          last: he(function (e, t) {
            return [t - 1];
          }),
          eq: he(function (e, t, n) {
            return [n < 0 ? n + t : n];
          }),
          even: he(function (e, t) {
            for (var n = 0; n < t; n += 2) e.push(n);
            return e;
          }),
          odd: he(function (e, t) {
            for (var n = 1; n < t; n += 2) e.push(n);
            return e;
          }),
          lt: he(function (e, t, n) {
            for (var i = n < 0 ? n + t : t < n ? t : n; 0 <= --i; ) e.push(i);
            return e;
          }),
          gt: he(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 me() {}
    function ve(e) {
      for (var t = 0, n = e.length, i = ""; t < n; t++) i += e[t].value;
      return i;
    }
    function be(a, e, t) {
      var s = e.dir,
        c = e.next,
        l = c || s,
        u = t && "parentNode" === l,
        d = S++;
      return e.first
        ? function (e, t, n) {
            for (; (e = e[s]); ) if (1 === e.nodeType || u) return a(e, t, n);
            return !1;
          }
        : function (e, t, n) {
            var i,
              r,
              o = [k, d];
            if (n) {
              for (; (e = e[s]); )
                if ((1 === e.nodeType || u) && a(e, t, n)) return !0;
            } else
              for (; (e = e[s]); )
                if (1 === e.nodeType || u)
                  if (
                    ((i =
                      (r = e[T] || (e[T] = {}))[e.uniqueID] ||
                      (r[e.uniqueID] = {})),
                    c && c === e.nodeName.toLowerCase())
                  )
                    e = e[s] || e;
                  else {
                    if ((r = i[l]) && r[0] === k && r[1] === d)
                      return (o[2] = r[2]);
                    if (((i[l] = o)[2] = a(e, t, n))) return !0;
                  }
            return !1;
          };
    }
    function ye(r) {
      return 1 < r.length
        ? function (e, t, n) {
            for (var i = r.length; i--; ) if (!r[i](e, t, n)) return !1;
            return !0;
          }
        : r[0];
    }
    function we(e, t, n, i, r) {
      for (var o, a = [], s = 0, c = e.length, l = null != t; s < c; s++)
        (o = e[s]) && ((n && !n(o, i, r)) || (a.push(o), l && t.push(s)));
      return a;
    }
    function Pe(e) {
      for (
        var i,
          t,
          n,
          r = e.length,
          o = w.relative[e[0].type],
          a = o || w.relative[" "],
          s = o ? 1 : 0,
          c = be(
            function (e) {
              return e === i;
            },
            a,
            !0,
          ),
          l = be(
            function (e) {
              return -1 < $(i, e);
            },
            a,
            !0,
          ),
          u = [
            function (e, t, n) {
              n = (!o && (n || t !== P)) || ((i = t).nodeType ? c : l)(e, t, n);
              return ((i = null), n);
            },
          ];
        s < r;
        s++
      )
        if ((t = w.relative[e[s].type])) u = [be(ye(u), t)];
        else {
          if ((t = w.filter[e[s].type].apply(null, e[s].matches))[T]) {
            for (n = ++s; n < r && !w.relative[e[n].type]; n++);
            return (function e(f, h, g, m, v, t) {
              return (
                m && !m[T] && (m = e(m)),
                v && !v[T] && (v = e(v, t)),
                le(function (e, t, n, i) {
                  var r,
                    o,
                    a,
                    s = [],
                    c = [],
                    l = t.length,
                    u =
                      e ||
                      (function (e, t, n) {
                        for (var i = 0, r = t.length; i < r; i++)
                          se(e, t[i], n);
                        return n;
                      })(h || "*", n.nodeType ? [n] : n, []),
                    d = !f || (!e && h) ? u : we(u, s, f, n, i),
                    p = g ? (v || (e ? f : l || m) ? [] : t) : d;
                  if ((g && g(d, p, n, i), m))
                    for (r = we(p, c), m(r, [], n, i), o = r.length; o--; )
                      (a = r[o]) && (p[c[o]] = !(d[c[o]] = a));
                  if (e) {
                    if (v || f) {
                      if (v) {
                        for (r = [], o = p.length; o--; )
                          (a = p[o]) && r.push((d[o] = a));
                        v(null, (p = []), r, i);
                      }
                      for (o = p.length; o--; )
                        (a = p[o]) &&
                          -1 < (r = v ? $(e, a) : s[o]) &&
                          (e[r] = !(t[r] = a));
                    }
                  } else
                    ((p = we(p === t ? p.splice(l, p.length) : p)),
                      v ? v(null, t, p, i) : N.apply(t, p));
                })
              );
            })(
              1 < s && ye(u),
              1 < s &&
                ve(
                  e
                    .slice(0, s - 1)
                    .concat({ value: " " === e[s - 2].type ? "*" : "" }),
                ).replace(U, "$1"),
              t,
              s < n && Pe(e.slice(s, n)),
              n < r && Pe((e = e.slice(n))),
              n < r && ve(e),
            );
          }
          u.push(t);
        }
      return ye(u);
    }
    return (
      (me.prototype = w.filters = w.pseudos),
      (w.setFilters = new me()),
      (h = se.tokenize =
        function (e, t) {
          var n,
            i,
            r,
            o,
            a,
            s,
            c,
            l = A[e + " "];
          if (l) return t ? 0 : l.slice(0);
          for (a = e, s = [], c = w.preFilter; a; ) {
            for (o in ((n && !(i = _.exec(a))) ||
              (i && (a = a.slice(i[0].length) || a), s.push((r = []))),
            (n = !1),
            (i = G.exec(a)) &&
              ((n = i.shift()),
              r.push({ value: n, type: i[0].replace(U, " ") }),
              (a = a.slice(n.length))),
            w.filter))
              !(i = J[o].exec(a)) ||
                (c[o] && !(i = c[o](i))) ||
                ((n = i.shift()),
                r.push({ value: n, type: o, matches: i }),
                (a = a.slice(n.length)));
            if (!n) break;
          }
          return t ? a.length : a ? se.error(e) : A(e, s).slice(0);
        }),
      (g = se.compile =
        function (e, t) {
          var n,
            m,
            v,
            b,
            y,
            i,
            r = [],
            o = [],
            a = I[e + " "];
          if (!a) {
            for (n = (t = t || h(e)).length; n--; )
              ((a = Pe(t[n]))[T] ? r : o).push(a);
            (a = I(
              e,
              ((b = 0 < (v = r).length),
              (y = 0 < (m = o).length),
              (i = function (e, t, n, i, r) {
                var o,
                  a,
                  s,
                  c = 0,
                  l = "0",
                  u = e && [],
                  d = [],
                  p = P,
                  f = e || (y && w.find.TAG("*", r)),
                  h = (k += null == p ? 1 : Math.random() || 0.1),
                  g = f.length;
                for (
                  r && (P = t == H || t || r);
                  l !== g && null != (o = f[l]);
                  l++
                ) {
                  if (y && o) {
                    for (
                      a = 0, t || o.ownerDocument == H || (x(o), (n = !C));
                      (s = m[a++]);

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

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

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

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

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

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

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

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

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

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

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

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

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

          )
            e = e.offsetParent;
          return e || ie;
        });
      },
    }),
    C.each(
      { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" },
      function (t, r) {
        var o = "pageYOffset" === r;
        C.fn[t] = function (e) {
          return V(
            this,
            function (e, t, n) {
              var i;
              return (
                m(e) ? (i = e) : 9 === e.nodeType && (i = e.defaultView),
                void 0 === n
                  ? i
                    ? i[r]
                    : e[t]
                  : void (i
                      ? i.scrollTo(o ? i.pageXOffset : n, o ? n : i.pageYOffset)
                      : (e[t] = n))
              );
            },
            t,
            e,
            arguments.length,
          );
        };
      },
    ),
    C.each(["top", "left"], function (e, n) {
      C.cssHooks[n] = We(y.pixelPosition, function (e, t) {
        if (t)
          return ((t = Ge(e, n)), Ue.test(t) ? C(e).position()[n] + "px" : t);
      });
    }),
    C.each({ Height: "height", Width: "width" }, function (a, s) {
      C.each(
        { padding: "inner" + a, content: s, "": "outer" + a },
        function (i, o) {
          C.fn[o] = function (e, t) {
            var n = arguments.length && (i || "boolean" != typeof e),
              r = i || (!0 === e || !0 === t ? "margin" : "border");
            return V(
              this,
              function (e, t, n) {
                var i;
                return m(e)
                  ? 0 === o.indexOf("outer")
                    ? e["inner" + a]
                    : e.document.documentElement["client" + a]
                  : 9 === e.nodeType
                    ? ((i = e.documentElement),
                      Math.max(
                        e.body["scroll" + a],
                        i["scroll" + a],
                        e.body["offset" + a],
                        i["offset" + a],
                        i["client" + a],
                      ))
                    : void 0 === n
                      ? C.css(e, t, r)
                      : C.style(e, t, n, r);
              },
              s,
              n ? e : void 0,
              n,
            );
          };
        },
      );
    }),
    C.each(
      [
        "ajaxStart",
        "ajaxStop",
        "ajaxComplete",
        "ajaxError",
        "ajaxSuccess",
        "ajaxSend",
      ],
      function (e, t) {
        C.fn[t] = function (e) {
          return this.on(t, e);
        };
      },
    ),
    C.fn.extend({
      bind: function (e, t, n) {
        return this.on(e, null, t, n);
      },
      unbind: function (e, t) {
        return this.off(e, null, t);
      },
      delegate: function (e, t, n, 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);
      },
    }),
    C.each(
      "blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(
        " ",
      ),
      function (e, n) {
        C.fn[n] = function (e, t) {
          return 0 < arguments.length
            ? this.on(n, null, e, t)
            : this.trigger(n);
        };
      },
    ));
  var Kt = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
  ((C.proxy = function (e, t) {
    var n, i;
    if (("string" == typeof t && ((i = e[t]), (t = e), (e = i)), g(e)))
      return (
        (n = s.call(arguments, 2)),
        ((i = function () {
          return e.apply(t || this, n.concat(s.call(arguments)));
        }).guid = e.guid =
          e.guid || C.guid++),
        i
      );
  }),
    (C.holdReady = function (e) {
      e ? C.readyWait++ : C.ready(!0);
    }),
    (C.isArray = Array.isArray),
    (C.parseJSON = JSON.parse),
    (C.nodeName = S),
    (C.isFunction = g),
    (C.isWindow = m),
    (C.camelCase = _),
    (C.type = h),
    (C.now = Date.now),
    (C.isNumeric = function (e) {
      var t = C.type(e);
      return ("number" === t || "string" === t) && !isNaN(e - parseFloat(e));
    }),
    (C.trim = function (e) {
      return null == e ? "" : (e + "").replace(Kt, "");
    }),
    "function" == typeof define &&
      define.amd &&
      define("jquery", [], function () {
        return C;
      }));
  var Zt = x.jQuery,
    en = x.$;
  return (
    (C.noConflict = function (e) {
      return (
        x.$ === C && (x.$ = en),
        e && x.jQuery === C && (x.jQuery = Zt),
        C
      );
    }),
    void 0 === e && (x.jQuery = x.$ = C),
    C
  );
});
var H5P = (window.H5P = window.H5P || {});
((H5P.jQuery = jQuery.noConflict(!0)),
  (H5P.jQuery.fn.__originalLoad = H5P.jQuery.load),
  (H5P.jQuery.fn.load = function (e, t, n) {
    if ("function" != typeof e)
      return H5P.jQuery.fn.__originalLoad.apply(this, arguments);
    {
      console.warn("You are using a deprecated H5P library. Please upgrade!");
      let e = Array.prototype.slice.call(arguments);
      return (e.unshift("load"), H5P.jQuery.fn.on.apply(this, e));
    }
  }),
  ((H5P = window.H5P = window.H5P || {}).isFramed =
    window.self !== window.parent),
  (H5P.$window = H5P.jQuery(window)),
  (H5P.instances = []),
  document.documentElement.requestFullScreen
    ? (H5P.fullScreenBrowserPrefix = "")
    : document.documentElement.webkitRequestFullScreen
      ? ((H5P.safariBrowser = navigator.userAgent.match(/version\/([.\d]+)/i)),
        (H5P.safariBrowser =
          null === H5P.safariBrowser ? 0 : parseInt(H5P.safariBrowser[1])),
        (0 === H5P.safariBrowser || 6 < H5P.safariBrowser) &&
          (H5P.fullScreenBrowserPrefix = "webkit"))
      : document.documentElement.mozRequestFullScreen
        ? (H5P.fullScreenBrowserPrefix = "moz")
        : document.documentElement.msRequestFullscreen &&
          (H5P.fullScreenBrowserPrefix = "ms"),
  (H5P.opened = {}),
  (H5P.init = function (e) {
    (void 0 === H5P.$body && (H5P.$body = H5P.jQuery(document.body)),
      void 0 === H5P.fullscreenSupported &&
        (H5P.fullscreenSupported = !(
          H5PIntegration.fullscreenDisabled ||
          H5P.fullscreenDisabled ||
          (H5P.isFramed &&
            !1 !== H5P.externalEmbed &&
            !(
              document.fullscreenEnabled ||
              document.webkitFullscreenEnabled ||
              document.mozFullScreenEnabled
            ))
        )),
      void 0 === H5P.canHasFullScreen &&
        (H5P.canHasFullScreen = H5P.fullscreenSupported),
      H5P.jQuery(".h5p-content:not(.h5p-initialized)", e).each(function () {
        var t = H5P.jQuery(this).addClass("h5p-initialized"),
          n = H5P.jQuery('<div class="h5p-container"></div>').appendTo(t),
          r = t.data("content-id"),
          o = H5PIntegration.contents["cid-" + r];
        if (void 0 === o)
          return H5P.error(
            "No data for content id " + r + ". Perhaps the library is gone?",
          );
        var a = {
          library: o.library,
          params: JSON.parse(o.jsonContent),
          metadata: o.metadata,
        };
        var s = H5P.newRunnable(a, r, n, !0, { standalone: !0 });
        ((H5P.offlineRequestQueue = new H5P.OfflineRequestQueue({
          instance: s,
        })),
          1 == o.fullScreen &&
            H5P.fullscreenSupported &&
            H5P.jQuery(
              '<div class="h5p-content-controls"><div role="button" tabindex="0" class="h5p-enable-fullscreen" aria-label="' +
                H5P.t("fullscreen") +
                '" title="' +
                H5P.t("fullscreen") +
                '"></div></div>',
            )
              .prependTo(n)
              .children()
              .click(function () {
                H5P.fullScreen(n, s);
              })
              .keydown(function (e) {
                if (32 === e.which || 13 === e.which)
                  return (H5P.fullScreen(n, s), !1);
              }));
        var e,
          i,
          c,
          l,
          u,
          d,
          p,
          f = o.displayOptions,
          h = !1;
        (f.frame &&
          (f.copyright &&
            ((e = H5P.getCopyrights(s, a.params, r, a.metadata)) ||
              (f.copyright = !1)),
          (f = new H5P.ActionBar(f)),
          (i = f.getDOMElement()),
          f.on("reuse", function () {
            (H5P.openReuseDialog(i, o, a, s, r),
              s.triggerXAPI("accessed-reuse"));
          }),
          f.on("copyrights", function () {
            (new H5P.Dialog(
              "copyrights",
              H5P.t("copyrightInformation"),
              e,
              n,
            ).open(!0),
              s.triggerXAPI("accessed-copyright"));
          }),
          f.on("embed", function () {
            (H5P.openEmbedDialog(
              i,
              o.embedCode,
              o.resizeCode,
              { width: t.width(), height: t.height() },
              s,
            ),
              s.triggerXAPI("accessed-embed"));
          }),
          f.hasActions() && ((h = !0), i.insertAfter(n))),
          t.addClass(h ? "h5p-frame" : "h5p-no-frame"),
          (H5P.opened[r] = new Date()),
          H5P.on(s, "finish", function (e) {
            void 0 !== e.data &&
              H5P.setFinished(r, e.data.score, e.data.maxScore, e.data.time);
          }),
          H5P.on(s, "xAPI", H5P.xAPICompletedListener),
          !1 !== H5PIntegration.saveFreq &&
            (s.getCurrentState instanceof Function ||
              "function" == typeof s.getCurrentState) &&
            ((l = function () {
              var e = s.getCurrentState();
              (void 0 !== e &&
                H5P.setUserData(r, "state", e, { deleteOnChange: !0 }),
                H5PIntegration.saveFreq &&
                  (c = setTimeout(l, 1e3 * H5PIntegration.saveFreq)));
            }),
            H5PIntegration.saveFreq &&
              (c = setTimeout(l, 1e3 * H5PIntegration.saveFreq)),
            H5P.on(s, "xAPI", function (e) {
              e = e.getVerb();
              ("completed" !== e && "progressed" !== e) ||
                (clearTimeout(c), (c = setTimeout(l, 3e3)));
            })),
          H5P.isFramed &&
            (!1 === H5P.externalEmbed
              ? ((d = window.frameElement),
                H5P.on(s, "resize", function () {
                  (clearTimeout(u),
                    (u = setTimeout(function () {
                      var e;
                      window.parent.H5P.isFullscreen ||
                        ((e = d.parentElement.style.height),
                        (d.parentElement.style.height =
                          d.parentElement.clientHeight + "px"),
                        d.getBoundingClientRect(),
                        (d.style.height = "1px"),
                        (d.style.height =
                          d.contentDocument.body.scrollHeight + "px"),
                        (d.parentElement.style.height = e));
                    }, 1)));
                }))
              : H5P.communicator &&
                ((p = !1),
                H5P.communicator.on("ready", function () {
                  H5P.communicator.send("hello");
                }),
                H5P.communicator.on("hello", function () {
                  ((p = !0),
                    (document.body.style.height = "auto"),
                    (document.body.style.overflow = "hidden"),
                    H5P.trigger(s, "resize"));
                }),
                H5P.communicator.on("resizePrepared", function () {
                  H5P.communicator.send("resize", {
                    scrollHeight: document.body.scrollHeight,
                  });
                }),
                H5P.communicator.on("resize", function () {
                  H5P.trigger(s, "resize");
                }),
                H5P.on(s, "resize", function () {
                  H5P.isFullscreen ||
                    (clearTimeout(u),
                    (u = setTimeout(function () {
                      p
                        ? H5P.communicator.send("prepareResize", {
                            scrollHeight: document.body.scrollHeight,
                            clientHeight: document.body.clientHeight,
                          })
                        : H5P.communicator.send("hello");
                    }, 0)));
                }))),
          (H5P.isFramed && !1 !== H5P.externalEmbed) ||
            H5P.jQuery(window.parent).resize(function () {
              (window.parent.H5P.isFullscreen, H5P.trigger(s, "resize"));
            }),
          H5P.instances.push(s),
          H5P.trigger(s, "resize"),
          t.addClass("using-mouse"),
          t.on("mousedown keydown keyup", function (e) {
            t.toggleClass("using-mouse", "mousedown" === e.type);
          }),
          H5P.externalDispatcher &&
            H5P.externalDispatcher.trigger("initialized"));
      }),
      H5P.jQuery("iframe.h5p-iframe:not(.h5p-initialized)", e).each(
        function () {
          var e = H5P.jQuery(this)
              .addClass("h5p-initialized")
              .data("content-id"),
            t = H5PIntegration.contents["cid-" + e],
            t =
              t && t.metadata && t.metadata.defaultLanguage
                ? t.metadata.defaultLanguage
                : "en";
          (this.contentDocument.open(),
            this.contentDocument.write(
              '<!doctype html><html class="h5p-iframe" lang="' +
                t +
                '"><head>' +
                H5P.getHeadTags(e) +
                '</head><body><div class="h5p-content" data-content-id="' +
                e +
                '"/></body></html>',
            ),
            this.contentDocument.close());
        },
      ));
  }),
  (H5P.getHeadTags = function (e) {
    function t(e) {
      for (var t = "", n = 0; n < e.length; n++)
        t += '<link rel="stylesheet" href="' + e[n] + '">';
      return t;
    }
    function n(e) {
      for (var t = "", n = 0; n < e.length; n++)
        t += '<script src="' + e[n] + '"></script>';
      return t;
    }
    return (
      '<base target="_parent">' +
      t(H5PIntegration.core.styles) +
      t(H5PIntegration.contents["cid-" + e].styles) +
      n(H5PIntegration.core.scripts) +
      n(H5PIntegration.contents["cid-" + e].scripts) +
      "<script>H5PIntegration = window.parent.H5PIntegration; var H5P = H5P || {}; H5P.externalEmbed = false;</script>"
    );
  }),
  (H5P.communicator =
    window.postMessage && window.addEventListener
      ? new (function () {
          var n = {};
          (window.addEventListener(
            "message",
            function (e) {
              window.parent === e.source &&
                "h5p" === e.data.context &&
                void 0 !== n[e.data.action] &&
                n[e.data.action](e.data);
            },
            !1,
          ),
            (this.on = function (e, t) {
              n[e] = t;
            }),
            (this.send = function (e, t) {
              (((t = void 0 === t ? {} : t).context = "h5p"),
                (t.action = e),
                window.parent.postMessage(t, "*"));
            }));
        })()
      : void 0),
  (H5P.semiFullScreen = function (e, t, n, i) {
    H5P.fullScreen(e, t, n, i, !0);
  }),
  (H5P.fullScreen = function (e, t, n, i, r) {
    if (void 0 === H5P.exitFullScreen) {
      if (H5P.isFramed && !1 === H5P.externalEmbed)
        return (
          window.parent.H5P.fullScreen(e, t, n, H5P.$body.get(), r),
          (H5P.isFullscreen = !0),
          (H5P.exitFullScreen = function () {
            window.parent.H5P.exitFullScreen();
          }),
          void H5P.on(t, "exitFullScreen", function () {
            ((H5P.isFullscreen = !1), (H5P.exitFullScreen = void 0));
          })
        );
      var o,
        a,
        s,
        c = e;
      (void 0 === i
        ? (o = H5P.$body)
        : ((a = (o = H5P.jQuery(i)).add(e.get())),
          (i = "#h5p-iframe-" + e.parent().data("content-id")),
          (e = (s = H5P.jQuery(i)).parent())),
        (a = e.add(H5P.$body).add(a)));
      function l(e) {
        (a.addClass(e), void 0 !== s && s.css("height", ""));
      }
      function u() {
        (H5P.trigger(t, "resize"),
          H5P.trigger(t, "focus"),
          H5P.trigger(t, "enterFullScreen"));
      }
      function d(e) {
        ((H5P.isFullscreen = !1),
          a.removeClass(e),
          H5P.trigger(t, "resize"),
          H5P.trigger(t, "focus"),
          (H5P.exitFullScreen = void 0) !== n && n(),
          H5P.trigger(t, "exitFullScreen"));
      }
      if (
        ((H5P.isFullscreen = !0),
        void 0 === H5P.fullScreenBrowserPrefix || !0 === r)
      ) {
        if (!H5P.isFramed) {
          l("h5p-semi-fullscreen");
          var p,
            f,
            h = H5P.jQuery(
              '<div role="button" tabindex="0" class="h5p-disable-fullscreen" title="' +
                H5P.t("disableFullscreen") +
                '" aria-label="' +
                H5P.t("disableFullscreen") +
                '"></div>',
            ).appendTo(c.find(".h5p-content-controls")),
            g = (H5P.exitFullScreen = function () {
              (p ? (f.content = p) : v.removeChild(f),
                h.remove(),
                o.unbind("keyup", m),
                d("h5p-semi-fullscreen"));
            }),
            m = function (e) {
              27 === e.keyCode && g();
            };
          (h.click(g), o.keyup(m));
          for (
            var v, b = document.getElementsByTagName("meta"), y = 0;
            y < b.length;
            y++
          )
            if ("viewport" === b[y].name) {
              ((f = b[y]), (p = f.content));
              break;
            }
          (p || ((f = document.createElement("meta")).name = "viewport"),
            (f.content =
              "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"),
            p || (v = document.getElementsByTagName("head")[0]).appendChild(f),
            u());
        }
      } else {
        l("h5p-fullscreen");
        var w,
          P =
            "ms" === H5P.fullScreenBrowserPrefix
              ? "MSFullscreenChange"
              : H5P.fullScreenBrowserPrefix + "fullscreenchange";
        (document.addEventListener(P, function () {
          return void 0 === w
            ? ((w = !1), void u())
            : (d("h5p-fullscreen"),
              void document.removeEventListener(P, arguments.callee, !1));
        }),
          "" === H5P.fullScreenBrowserPrefix
            ? e[0].requestFullScreen()
            : ((r =
                "ms" === H5P.fullScreenBrowserPrefix
                  ? "msRequestFullscreen"
                  : H5P.fullScreenBrowserPrefix + "RequestFullScreen"),
              (c =
                "webkit" === H5P.fullScreenBrowserPrefix &&
                0 === H5P.safariBrowser
                  ? Element.ALLOW_KEYBOARD_INPUT
                  : void 0),
              e[0][r](c)),
          (H5P.exitFullScreen = function () {
            "" === H5P.fullScreenBrowserPrefix
              ? document.exitFullscreen()
              : "moz" === H5P.fullScreenBrowserPrefix
                ? document.mozCancelFullScreen()
                : document[H5P.fullScreenBrowserPrefix + "ExitFullscreen"]();
          }));
      }
    }
  }),
  (function () {
    ((H5P.addQueryParameter = function (e, t) {
      let n, i;
      const r = e.split("?");
      return (
        (n = r[1]
          ? ((i = r[1].split("#")), r[0] + "?" + i[0] + "&")
          : ((i = r[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 r(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 && !r(e.path)
          ? H5PIntegration.crossorigin
          : void 0;
    }),
      (H5P.getPath = function (e, t) {
        if (r(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 = !r(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, r) {
    var o, a;
    try {
      ((a = (s = t.library.split(" ", 2))[0]), (o = s[1].split(".", 2)));
    } catch (e) {
      return H5P.error("Invalid library string: " + t.library);
    }
    if (t.params instanceof Object != !0 || t.params instanceof Array == !0)
      return (
        H5P.error("Invalid library params for: " + t.library),
        H5P.error(t.params)
      );
    try {
      for (var s = s[0].split("."), c = window, l = 0; l < s.length; l++)
        c = c[s[l]];
      if ("function" != typeof c) throw null;
    } catch (e) {
      return H5P.error("Unable to find constructor for: " + t.library);
    }
    (void 0 === r && (r = {}),
      t.subContentId && (r.subContentId = t.subContentId),
      t.userDatas &&
        t.userDatas.state &&
        H5PIntegration.saveFreq &&
        (r.previousState = t.userDatas.state),
      t.metadata && (r.metadata = t.metadata));
    var u,
      d = r.standalone || !1;
    return (
      (c.prototype = H5P.jQuery.extend(
        {},
        H5P.ContentType(d).prototype,
        c.prototype,
      )),
      void 0 ===
        (u =
          -1 <
          H5P.jQuery.inArray(t.library, [
            "H5P.CoursePresentation 1.0",
            "H5P.CoursePresentation 1.1",
            "H5P.CoursePresentation 1.2",
            "H5P.CoursePresentation 1.3",
          ])
            ? new c(t.params, e)
            : new c(t.params, e, r)).$ && (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 && r && r.parent && (u.parent = r.parent),
      void 0 === u.libraryInfo &&
        (u.libraryInfo = {
          versionedName: t.library,
          versionedNameNoSpaces: a + "-" + o[0] + "." + o[1],
          machineName: a,
          majorVersion: o[0],
          minorVersion: o[1],
        }),
      void 0 !== n &&
        (n.toggleClass("h5p-standalone", d),
        u.attach(n),
        H5P.trigger(
          u,
          "domChanged",
          { $target: n, library: a, key: "newLibrary" },
          { bubbles: !0, external: !0 },
        ),
        (void 0 !== 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 r in t) i = i.replace(r, t[r]);
    return i;
  }),
  (H5P.Dialog = function (e, t, n, i) {
    var r = this,
      o = H5P.jQuery(
        '<div class="h5p-popup-dialog h5p-' +
          e +
          '-dialog" role="dialog" tabindex="-1">                              <div class="h5p-inner">                                <h2>' +
          t +
          '</h2>                                <div class="h5p-scroll-content">' +
          n +
          '</div>                                <div class="h5p-close" role="button" tabindex="0" aria-label="' +
          H5P.t("close") +
          '" title="' +
          H5P.t("close") +
          '"></div>                              </div>                            </div>',
      )
        .insertAfter(i)
        .click(function (e) {
          (e && e.originalEvent && e.originalEvent.preventClosing) || r.close();
        })
        .children(".h5p-inner")
        .click(function (e) {
          e.originalEvent.preventClosing = !0;
        })
        .find(".h5p-close")
        .click(function () {
          r.close();
        })
        .keypress(function (e) {
          if (13 === e.which || 32 === e.which) return (r.close(), !1);
        })
        .end()
        .find("a")
        .click(function (e) {
          e.stopPropagation();
        })
        .end()
        .end();
    ((r.open = function (e) {
      (e && o.css("height", "100%"),
        setTimeout(function () {
          (o.addClass("h5p-open"),
            H5P.jQuery(r).trigger("dialog-opened", [o]),
            o.focus());
        }, 1));
    }),
      (r.close = function () {
        (o.removeClass("h5p-open"),
          setTimeout(function () {
            (o.remove(),
              H5P.jQuery(r).trigger("dialog-closed", [o]),
              i.attr("tabindex", "-1"),
              i.focus());
          }, 200));
      }));
  }),
  (H5P.getCopyrights = function (e, t, n, i) {
    var r;
    if (void 0 !== e.getCopyrights)
      try {
        r = e.getCopyrights();
      } catch (e) {}
    void 0 === r &&
      ((r = new H5P.ContentCopyrights()), H5P.findCopyrights(r, t, n));
    e = H5P.buildMetadataCopyrights(i, e.libraryInfo.machineName);
    return (
      void 0 !== e && r.addMediaInFront(e),
      (r = void 0 !== r ? r.toString() : r)
    );
  }),
  (H5P.findCopyrights = function (o, e, t, n) {
    var i, r, a, s;
    for (r in (n && ((n.params = e), c(n, n.machineName, t)), e))
      e.hasOwnProperty(r) &&
        ("overrideSettings" !== r
          ? ((a = e[r]) && a.library && "string" == typeof a.library
              ? (i = a.library.split(" ")[0])
              : a &&
                a.library &&
                "object" == typeof a.library &&
                (i =
                  a.library.library && "string" == typeof a.library.library
                    ? a.library.library.split(" ")[0]
                    : i),
            a instanceof Array
              ? H5P.findCopyrights(o, a, t)
              : a instanceof Object &&
                (c(a, i, t),
                void 0 === a.copyright ||
                void 0 === a.copyright.license ||
                void 0 === a.path ||
                void 0 === a.mime
                  ? H5P.findCopyrights(o, a, t)
                  : ((s = new H5P.MediaCopyright(a.copyright)),
                    void 0 !== a.width &&
                      void 0 !== a.height &&
                      s.setThumbnail(
                        new H5P.Thumbnail(
                          H5P.getPath(a.path, t),
                          a.width,
                          a.height,
                        ),
                      ),
                    o.addMedia(s))))
          : (console.warn(
              "The semantics field 'overrideSettings' is DEPRECATED and should not be used.",
            ),
            console.warn(e)));
    function c(e, t, n) {
      if (e.metadata) {
        const r = H5P.buildMetadataCopyrights(e.metadata, t);
        var i;
        void 0 !== r &&
          (e.params &&
            "Image" === e.params.contentName &&
            e.params.file &&
            ((i = e.params.file.path),
            (t = e.params.file.width),
            (e = e.params.file.height),
            r.setThumbnail(new H5P.Thumbnail(H5P.getPath(i, n), t, e))),
          o.addMedia(r));
      }
    }
  }),
  (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, r, o) {
    let t = "";
    (n.displayOptions.export &&
      (t +=
        '<button type="button" class="h5p-big-button h5p-download-button"><div class="h5p-button-title">Download as an .h5p file</div><div class="h5p-button-description">.h5p files may be uploaded to any web-site where H5P content may be created.</div></button>'),
      n.displayOptions.export &&
        n.displayOptions.copy &&
        (t += '<div class="h5p-horizontal-line-text"><span>or</span></div>'),
      n.displayOptions.copy &&
        (t +=
          '<button type="button" class="h5p-big-button h5p-copy-button"><div class="h5p-button-title">Copy content</div><div class="h5p-button-description">Copied content may be pasted anywhere this content type is supported on this website.</div></button>'));
    const a = new H5P.Dialog("reuse", H5P.t("reuseContent"), t, e);
    (H5P.jQuery(a)
      .on("dialog-opened", function (e, t) {
        (H5P.jQuery(
          '<a href="https://h5p.org/node/442225" target="_blank">More Info</a>',
        )
          .click(function (e) {
            e.stopPropagation();
          })
          .appendTo(t.find("h2")),
          t.find(".h5p-download-button").click(function () {
            ((window.location.href = n.exportUrl),
              r.triggerXAPI("downloaded"),
              a.close());
          }),
          t.find(".h5p-copy-button").click(function () {
            const e = new H5P.ClipboardItem(i);
            ((e.contentId = o),
              H5P.setClipboard(e),
              r.triggerXAPI("copied"),
              a.close(),
              H5P.attachToastTo(
                H5P.jQuery(".h5p-content:first")[0],
                H5P.t("contentCopied"),
                {
                  position: {
                    horizontal: "centered",
                    vertical: "centered",
                    noOverflowX: !0,
                  },
                },
              ));
          }),
          H5P.trigger(r, "resize"));
      })
      .on("dialog-closed", function () {
        H5P.trigger(r, "resize");
      }),
      a.open());
  }),
  (H5P.openEmbedDialog = function (e, t, n, l, u) {
    var d = t + n,
      e = new H5P.Dialog(
        "embed",
        H5P.t("embed"),
        '<textarea class="h5p-embed-code-container" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>' +
          H5P.t("size") +
          ': <input type="text" value="' +
          Math.ceil(l.width) +
          '" class="h5p-embed-size"/> × <input type="text" value="' +
          Math.ceil(l.height) +
          '" class="h5p-embed-size"/> px<br/><div role="button" tabindex="0" class="h5p-expander">' +
          H5P.t("showAdvanced") +
          '</div><div class="h5p-expander-content"><p>' +
          H5P.t("advancedHelp") +
          '</p><textarea class="h5p-embed-code-container" autocorrect="off" autocapitalize="off" spellcheck="false">' +
          n +
          "</textarea></div>",
        e,
      );
    (H5P.jQuery(e)
      .on("dialog-opened", function (e, n) {
        function i() {
          H5P.trigger(u, "resize");
        }
        function t(e, t) {
          return ((e = parseFloat(e.val())), isNaN(e) ? t : Math.ceil(e));
        }
        function r() {
          n.find(".h5p-embed-code-container:first").val(
            d.replace(":w", t(a, l.width)).replace(":h", t(s, l.height)),
          );
        }
        var o = n.find(".h5p-inner").find(".h5p-scroll-content"),
          a =
            (o.outerHeight(), o.innerHeight(), n.find(".h5p-embed-size:eq(0)")),
          s = n.find(".h5p-embed-size:eq(1)");
        (a.change(r),
          s.change(r),
          r(),
          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 c() {
          var e = H5P.jQuery(this),
            t = e.next();
          (t.is(":visible")
            ? (e
                .removeClass("h5p-open")
                .text(H5P.t("showAdvanced"))
                .attr("aria-expanded", "true"),
              t.hide())
            : (e
                .addClass("h5p-open")
                .text(H5P.t("hideAdvanced"))
                .attr("aria-expanded", "false"),
              t.show()),
            n.find(".h5p-embed-code-container").each(function () {
              H5P.jQuery(this).css("height", this.scrollHeight + "px");
            }),
            i());
        }
        n.find(".h5p-expander")
          .click(c)
          .keypress(function (e) {
            if (32 === e.keyCode) return (c.apply(this), !1);
          });
      })
      .on("dialog-closed", function () {
        H5P.trigger(u, "resize");
      }),
      e.open());
  }),
  (H5P.attachToastTo = function (t, e, n) {
    if (void 0 === t || void 0 === e) return;
    function i(e) {
      -1 === r(e).indexOf(t) && (clearTimeout(c), o());
    }
    const r = function (e) {
        var t = (e.composedPath && e.composedPath()) || e.path,
          e = e.target;
        return null != t
          ? t.indexOf(window) < 0
            ? t.concat(window)
            : t
          : e === window
            ? [window]
            : [e].concat(
                (function e(t, n) {
                  n = n || [];
                  t = t.parentNode;
                  return t ? e(t, n.concat(t)) : n;
                })(e),
                window,
              );
      },
      o = function () {
        (document.removeEventListener("click", i),
          a.parentNode && a.parentNode.removeChild(a));
      };
    (((n = n || {}).style = n.style || "h5p-toast"),
      (n.duration = n.duration || 3e3));
    const a = document.createElement("div");
    (a.setAttribute("id", n.style),
      a.classList.add("h5p-toast-disabled"),
      a.classList.add(n.style));
    const s = document.createElement("span");
    ((s.innerHTML = e), a.appendChild(s), document.body.appendChild(a));
    e = (function (e, t, n) {
      (((n = n || {}).offsetHorizontal = n.offsetHorizontal || 0),
        (n.offsetVertical = n.offsetVertical || 0));
      var i = t.getBoundingClientRect(),
        r = e.getBoundingClientRect();
      let o = 0,
        a = 0;
      switch (n.horizontal) {
        case "before":
          o = r.left - i.width - n.offsetHorizontal;
          break;
        case "after":
          o = r.left + r.width + n.offsetHorizontal;
          break;
        case "left":
          o = r.left + n.offsetHorizontal;
          break;
        case "right":
          o = r.left + r.width - i.width - n.offsetHorizontal;
          break;
        default:
          o = r.left + r.width / 2 - i.width / 2 + n.offsetHorizontal;
      }
      switch (n.vertical) {
        case "above":
          a = r.top - i.height - n.offsetVertical;
          break;
        case "below":
          a = r.top + r.height + n.offsetVertical;
          break;
        case "top":
          a = r.top + n.offsetVertical;
          break;
        case "bottom":
          a = r.top + r.height - i.height - n.offsetVertical;
          break;
        case "centered":
          a = r.top + r.height / 2 - i.height / 2 + n.offsetVertical;
          break;
        default:
          a = r.top + r.height + n.offsetVertical;
      }
      const s = document.body;
      e = s.getBoundingClientRect();
      return (
        (n.noOverflowLeft || n.noOverflowX) && o < e.x && (o = e.x),
        (n.noOverflowRight || n.noOverflowX) &&
          o + i.width > e.x + e.width &&
          (o = e.x + e.width - i.width),
        (n.noOverflowTop || n.noOverflowY) && a < e.y && (a = e.y),
        (n.noOverflowBottom || n.noOverflowY) &&
          a + i.height > e.y + e.height &&
          (o = e.y + e.height - i.height),
        { left: o, top: a }
      );
    })(t, a, n.position);
    ((a.style.left = Math.round(e.left) + "px"),
      (a.style.top = Math.round(e.top) + "px"),
      a.classList.remove("h5p-toast-disabled"));
    const c = setTimeout(o, n.duration);
    document.addEventListener("click", i);
  }),
  (H5P.ContentCopyrights = function () {
    var n,
      i = [],
      r = [];
    ((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 && r.push(e);
      }),
      (this.toString = function () {
        for (var e = "", t = 0; t < i.length; t++) e += i[t];
        for (t = 0; t < r.length; t++) e += r[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 r(e) {
      return void 0 === t || void 0 === t[e] ? H5P.t(e) : t[e];
    }
    function o(e, t) {
      var n,
        i = H5P.copyrightLicenses[e],
        r = "";
      (("PD" === e && t) || (r += 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) &&
          (r && (r += " "), (r += n.hasOwnProperty("label") ? n.label : n)),
        i.hasOwnProperty("link")
          ? (o = i.link.replace(
              ":version",
              i.linkVersions ? i.linkVersions[t] : t,
            ))
          : n && i.hasOwnProperty("link") && (o = n.link),
        o && (r = '<a href="' + o + '" target="_blank">' + r + "</a>"));
      var o = "";
      return (
        "PD" !== e && "C" !== e && (o += e),
        t && "CC0 1.0" !== t && (o && "GNU GPL" !== e && (o += " "), (o += t)),
        o && (r += " (" + o + ")"),
        "C" === e && (r += " &copy;"),
        r
      );
    }
    var a,
      s = new H5P.DefinitionList();
    if (void 0 !== e) {
      for (var c in i) i.hasOwnProperty(c) && (e[c] = i[c]);
      void 0 === n &&
        (n = [
          "contentType",
          "title",
          "license",
          "author",
          "year",
          "source",
          "licenseExtras",
          "changes",
        ]);
      for (var l = 0; l < n.length; l++) {
        var u,
          d = n[l];
        void 0 !== e[d] &&
          "" !== e[d] &&
          ((u = e[d]),
          "license" === d && (u = o(e.license, e.version)),
          "source" === d &&
            (u = u
              ? '<a href="' + u + '" target="_blank">' + u + "</a>"
              : void 0),
          s.add(new H5P.Field(r(d), u)));
      }
    }
    ((this.setThumbnail = function (e) {
      a = e;
    }),
      (this.undisclosed = function () {
        if (1 === s.size()) {
          var e = s.get(0);
          if (e.getLabel() === r("license") && e.getValue() === o("U"))
            return !0;
        }
        return !1;
      }),
      (this.toString = function () {
        var e = "";
        return this.undisclosed()
          ? e
          : (void 0 !== a && (e += a),
            "" !== (e += s)
              ? '<div class="h5p-media-copyright">' + e + "</div>"
              : e);
      }));
  }),
  (H5P.Thumbnail = function (e, t, n) {
    var 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,
        r = e.length;
      if (0 === r) return !1;
      for (; --r; )
        ((t = Math.floor(Math.random() * (r + 1))),
          (n = e[r]),
          (i = e[t]),
          (e[r] = i),
          (e[t] = n));
      return e;
    }
  }),
  (H5P.setFinished = function (e, t, n, i) {
    if (
      ("number" == typeof t || t instanceof Number) &&
      !0 === H5PIntegration.postUserStatistics
    ) {
      function r(e) {
        return Math.round(e.getTime() / 1e3);
      }
      const o = {
        contentId: e,
        score: t,
        maxScore: n,
        opened: r(H5P.opened[e]),
        finished: r(new Date()),
        time: i,
      };
      H5P.jQuery.post(H5PIntegration.ajax.setFinished, o).fail(function () {
        H5P.offlineRequestQueue.add(H5PIntegration.ajax.setFinished, o);
      });
    }
  }),
  Array.prototype.indexOf ||
    (Array.prototype.indexOf = function (e) {
      for (var t = 0; t < this.length; t++) if (this[t] === e) return t;
      return -1;
    }),
  void 0 === String.prototype.trim &&
    (String.prototype.trim = function () {
      return H5P.trim(this);
    }),
  (H5P.trigger = function (e, t, n, 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 (c) {
    function s(e, t, n, i, r, o, a, s) {
      void 0 !== H5PIntegration.user
        ? ((s = {
            url: H5PIntegration.ajax.contentUserData
              .replace(":contentId", e)
              .replace(":dataType", t)
              .replace(":subContentId", n || 0),
            dataType: "json",
            async: void 0 === s || s,
          }),
          void 0 !== r
            ? ((s.type = "POST"),
              (s.data = {
                data: null === r ? 0 : r,
                preload: o ? 1 : 0,
                invalidate: a ? 1 : 0,
              }))
            : (s.type = "GET"),
          void 0 !== i &&
            ((s.error = function (e, t) {
              i(t);
            }),
            (s.success = function (e) {
              e.success
                ? !1 !== e.data && void 0 !== e.data
                  ? i(void 0, e.data)
                  : i()
                : i(e.message);
            })),
          c.ajax(s))
        : i("Not signed in.");
    }
    ((H5P.getUserData = function (e, n, i, r) {
      ((r = r || 0), (H5PIntegration.contents = H5PIntegration.contents || {}));
      var o = H5PIntegration.contents["cid-" + e] || {},
        a = o.contentUserData;
      if (a && a[r] && void 0 !== a[r][n])
        if ("RESET" !== a[r][n])
          try {
            i(void 0, JSON.parse(a[r][n]));
          } catch (e) {
            i(e);
          }
        else i(void 0, null);
      else
        s(e, n, r, function (e, t) {
          if (e || void 0 === t) i(e, t);
          else {
            (void 0 === o.contentUserData && (o.contentUserData = a = {}),
              void 0 === a[r] && (a[r] = {}),
              (a[r][n] = t));
            try {
              i(void 0, JSON.parse(t));
            } catch (e) {
              i(e);
            }
          }
        });
    }),
      (H5P.setUserData = function (e, t, n, i) {
        var r = H5P.jQuery.extend(
          !0,
          {},
          { subContentId: 0, preloaded: !0, deleteOnChange: !1, async: !0 },
          i,
        );
        try {
          n = JSON.stringify(n);
        } catch (e) {
          return void (r.errorCallback && r.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[r.subContentId] && (i[r.subContentId] = {}),
          n !== i[r.subContentId][t] &&
            ((i[r.subContentId][t] = n),
            s(
              e,
              t,
              r.subContentId,
              function (e) {
                r.errorCallback && e && r.errorCallback(e);
              },
              n,
              r.preloaded,
              r.deleteOnChange,
              r.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], s(e, t, n, void 0, null));
      }),
      (H5P.getContentForInstance = function (e) {
        e = "cid-" + e;
        return H5PIntegration &&
          H5PIntegration.contents &&
          H5PIntegration.contents[e]
          ? H5PIntegration.contents[e]
          : void 0;
      }),
      (H5P.ClipboardItem = function (e, t, n) {
        var 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)));
      };
    c(document).ready(function () {
      window.addEventListener("storage", function (e) {
        "h5pClipboard" === e.key &&
          H5P.externalDispatcher.trigger("datainclipboard", {
            reset: null === e.newValue,
          });
      });
      var r,
        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 &&
          ((r = 0),
          (e = function () {
            var e = new Date().getTime();
            if (250 < e - r) {
              r = 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,
      r = !1,
      o = !1;
    (!0 === (n = void 0 === n ? {} : n).bubbles && (i = !0),
      !0 === n.external && (r = !0),
      (this.preventBubbling = function () {
        i = !1;
      }),
      (this.getBubbles = function () {
        return i;
      }),
      (this.scheduleForExternal = function () {
        return !(!r || o) && (o = !0);
      }));
  }),
  (H5P.EventDispatcher = function () {
    var r = this,
      a = {};
    function i(e, t) {
      if (void 0 !== a[e])
        for (var n = a[e].slice(), i = 0; i < n.length; i++) {
          var r = n[i],
            o = r.thisArg || this;
          r.listener.call(o, t);
        }
    }
    ((this.on = function (e, t, n) {
      if ("function" != typeof t)
        throw TypeError("listener must be a function");
      r.trigger("newListener", { type: e, listener: t });
      n = { listener: t, thisArg: n };
      a[e] ? a[e].push(n) : (a[e] = [n]);
    }),
      (this.once = function (e, t, n) {
        if (!(t instanceof Function))
          throw TypeError("listener must be a function");
        var i = function (e) {
          (r.off(e.type, i), t.call(this, e));
        };
        r.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 !== a[e]) {
          if (void 0 === t)
            return (delete a[e], void r.trigger("removeListener", e));
          for (var n = 0; n < a[e].length; n++)
            if (a[e][n].listener === t) {
              (a[e].splice(n, 1),
                r.trigger("removeListener", e, { listener: t }));
              break;
            }
          a[e].length || delete a[e];
        }
      }),
      (this.trigger = function (e, t, n) {
        void 0 !== e &&
          (e instanceof String || "string" == typeof e
            ? (e = new H5P.Event(e, t, n))
            : void 0 !== t && (e.data = t),
          (t = e.scheduleForExternal()),
          i.call(this, e.type, e),
          i.call(this, "*", e),
          e.getBubbles() &&
            r.parent instanceof H5P.EventDispatcher &&
            (r.parent.trigger instanceof Function ||
              "function" == typeof r.parent.trigger) &&
            r.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, r) {
    ((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 !== r && (this.data.statement.result.success = r),
      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, r) {
    n = this.createXAPIEventTemplate(n);
    (n.setScoredResult(e, t, this, i, r), 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 (H) {
    "use strict";
    function e(n) {
      H.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 r(e) {
        (i.hide(), i.trigger("canceled"), e.preventDefault());
      }
      function o(e, t) {
        (e.focus(), t.preventDefault());
      }
      (((n = n || {}).headerText =
        n.headerText || H5P.t("confirmDialogHeader")),
        (n.dialogText = n.dialogText || H5P.t("confirmDialogBody")),
        (n.cancelText = n.cancelText || H5P.t("cancelLabel")),
        (n.confirmText = n.confirmText || H5P.t("confirmLabel")));
      var a = 32,
        s = 8,
        c = !1,
        l = document.createElement("div");
      l.classList.add("h5p-confirmation-dialog-background", "hidden", "hiding");
      var u = document.createElement("div");
      (u.classList.add("h5p-confirmation-dialog-popup", "hidden"),
        n.classes &&
          n.classes.forEach(function (e) {
            u.classList.add(e);
          }),
        u.setAttribute("role", "dialog"),
        u.setAttribute(
          "aria-labelledby",
          "h5p-confirmation-dialog-dialog-text-" + e,
        ),
        l.appendChild(u),
        u.addEventListener("keydown", function (e) {
          27 === e.which && r(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 f = document.createElement("button");
      (f.classList.add("h5p-core-cancel-button"),
        (f.textContent = n.cancelText));
      var h = document.createElement("button");
      (h.classList.add("h5p-core-button"),
        h.classList.add("h5p-confirmation-dialog-confirm-button"),
        (h.textContent = n.confirmText));
      var g,
        m,
        d = document.createElement("button");
      (d.classList.add("h5p-confirmation-dialog-exit"),
        d.setAttribute("aria-hidden", "true"),
        (d.tabIndex = -1),
        (d.title = n.cancelText),
        f.addEventListener("click", r),
        f.addEventListener("keydown", function (e) {
          32 === e.which ? r(e) : 9 === e.which && e.shiftKey && o(h, e);
        }),
        n.hideCancel ? p.classList.add("center") : p.appendChild(f),
        h.addEventListener("click", t),
        h.addEventListener("keydown", function (e) {
          32 === e.which
            ? t(e)
            : 9 !== e.which || e.shiftKey || o(n.hideCancel ? h : f, e);
        }),
        p.appendChild(h),
        d.addEventListener("click", r),
        d.addEventListener("keydown", function (e) {
          32 === e.which && r(e);
        }),
        n.hideExit || u.appendChild(d));
      var v,
        b = [],
        y = [];
      this.appendTo = function (e) {
        return ((g = e), this);
      };
      var w = function (e) {
          l.contains(e.target) || (e.preventDefault(), h.focus());
        },
        P = 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;
        },
        x = 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),
          g.appendChild(l),
          (m = g.parentNode || g).addEventListener("focus", w, !0),
          (b = P(g)),
          (y = P(l)),
          l.classList.remove("hidden"),
          (t = e),
          (e = parseInt(u.style.top, 10)),
          (e =
            (e = (e = void 0 !== t ? t : e) || 0) + u.offsetHeight >
            g.offsetHeight
              ? g.offsetHeight - u.offsetHeight - s
              : e) -
            a <=
            0 && ((e = a + s), (c = !0)),
          (u.style.top = e + "px"),
          setTimeout(function () {
            (u.classList.remove("hidden"),
              l.classList.remove("hiding"),
              setTimeout(function () {
                var e;
                (h.focus(),
                  c &&
                    n.instance &&
                    ((e = parseInt(u.offsetHeight, 10) + a + 2 * s),
                    i.setViewPortMinimumHeight(e),
                    n.instance.trigger("resize"),
                    (c = !1)));
              }, 100));
          }, 0),
          this
        );
      }),
        (this.hide = function () {
          return (
            l.classList.add("hiding"),
            u.classList.add("hidden"),
            m.removeAttribute("aria-hidden"),
            m.removeEventListener("focus", w, !0),
            n.skipRestoreFocus || v.focus(),
            x(g, b),
            x(l, y),
            setTimeout(function () {
              (l.classList.add("hidden"),
                g.removeChild(l),
                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(H.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: o,
        }),
          (r = !0));
      }
      var i = this,
        r = !1,
        o = H5P.jQuery('<ul class="h5p-actions"></ul>');
      ((e.export || e.copy) && t("reuse", "export"),
        e.copyright && t("copyrights"),
        e.embed && t("embed"),
        e.icon &&
          (H5P.jQuery(
            '<li><a class="h5p-link" href="http://h5p.org" target="_blank" title="' +
              H5P.t("h5pDescription") +
              '"></a></li>',
          ).appendTo(o),
          (r = !0)),
        (i.getDOMElement = function () {
          return o;
        }),
        (i.hasActions = function () {
          return r;
        }));
    }
    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, P) {
    return function (e) {
      const n = new w();
      n.clearQueue();
      let i = null;
      const r = [10, 20, 40, 60, 120, 300, 600];
      let o = -1,
        t = null,
        a = !1,
        s = !1,
        c = !1;
      e = e.instance;
      const l = new P({
          headerText: H5P.t("offlineDialogHeader"),
          dialogText: H5P.t("offlineDialogBody"),
          confirmText: H5P.t("offlineDialogRetryButtonLabel"),
          hideCancel: !0,
          hideExit: !0,
          classes: ["offline"],
          instance: e,
          skipRestoreFocus: !0,
        }),
        u = l.getElement(),
        d = document.createElement("div");
      (d.classList.add("count-down"),
        (d.innerHTML = H5P.t("offlineDialogRetryMessage").replace(
          ":num",
          '<span class="count-down-num">0</span>',
        )),
        u.querySelector(".h5p-confirmation-dialog-text").appendChild(d));
      const p = d.querySelector(".count-down-num"),
        f = document.createElement("div");
      f.classList.add("throbber-wrapper");
      const h = document.createElement("div");
      (h.classList.add("sending-requests-throbber"),
        f.appendChild(h),
        n.on(
          "requestQueued",
          function (e) {
            if (!e.data || !e.data.processingQueue) {
              if (!a) {
                const t = document.body.querySelector(".h5p-content");
                if (!t) return;
                (l.appendTo(t), t.appendChild(f), (a = !0));
              }
              b();
            }
          }.bind(this),
        ),
        n.on(
          "queueEmptied",
          function (e) {
            e.data && e.data.length
              ? b(!0)
              : (clearInterval(t),
                g(!1),
                (o = -1),
                s && (l.hide(), (s = !1)),
                n.displayToastMessage(H5P.t("offlineSuccessfulSubmit"), !0, {
                  position: { vertical: "top", offsetVertical: "100" },
                }));
          }.bind(this),
        ),
        l.on(
          "confirmed",
          function () {
            ((s = !1),
              setTimeout(function () {
                m();
              }, 100));
          }.bind(this),
        ),
        window.addEventListener(
          "online",
          function () {
            m();
          }.bind(this),
        ),
        window.addEventListener(
          "message",
          function (e) {
            window.parent === e.source &&
              "h5p" === e.data.context &&
              "queueRequest" === e.data.action &&
              this.add(e.data.url, e.data.data);
          }.bind(this),
        ));
      const g = function (e) {
          ((c = !c),
            void 0 !== e && (c = e),
            c && s && (l.hide(), (s = !1)),
            c ? f.classList.add("show") : f.classList.remove("show"));
        },
        m = function () {
          (clearInterval(t), g(!0), n.resumeQueue());
        },
        v = function () {
          ((o += 1), o >= r.length && (o = r.length - 1));
        },
        b = function (e) {
          s ||
            (g(!1),
            s ||
              (e
                ? setTimeout(function () {
                    l.show(0);
                  }, 100)
                : l.show(0)),
            (s = !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 = r[o] - e;
          ((p.textContent = t.toString()), t <= 0 && m());
        };
      this.add = function (e, t) {
        if (window.navigator.onLine) return !1;
        n.add(e, t);
      };
    };
  })(H5P.RequestQueue, H5P.ConfirmationDialog)),
  ((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 r = 0; r < n.length; ++r) {
              var o = n[r] + i;
              if (o in t.style) {
                Transition.cache[e] = o;
                break;
              }
            }
        }
        return Transition.cache[e];
      },
      getTransitionEndEventName: function () {
        return (
          Transition.transitionEndEventNames[
            Transition.getVendorPropertyName("transition")
          ] || void 0
        );
      },
      onTransitionEnd: function (e, t, n) {
        ((n = n || 1e3),
          (Transition.transitionEndEventName =
            Transition.transitionEndEventName ||
            Transition.getTransitionEndEventName()));
        function i() {
          r ||
            (e.off(Transition.transitionEndEventName, t),
            (r = !0),
            clearTimeout(o),
            t());
        }
        var r = !1,
          o = 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,
        r = "joubel-help-text-header-" + ++d,
        o = "joubel-help-text-body-" + d,
        a = u("<div>", {
          class: "joubel-help-text-dialog-box",
          role: "dialog",
          "aria-labelledby": r,
          "aria-describedby": o,
        });
      u("<div>", { class: "joubel-help-text-dialog-background" }).appendTo(a);
      var s = u("<div>", {
        class: "joubel-help-text-dialog-container",
      }).appendTo(a);
      (u("<div>", {
        class: "joubel-help-text-header",
        id: r,
        role: "header",
        html: e,
      }).appendTo(s),
        u("<div>", {
          class: "joubel-help-text-body",
          id: o,
          html: t,
          role: "document",
          tabindex: 0,
        }).appendTo(s));
      function c() {
        (a.remove(), i.trigger("closed"));
      }
      var l = u("<div>", {
        class: "joubel-help-text-remove",
        role: "button",
        title: n,
        tabindex: 1,
        click: c,
        keydown: function (e) {
          -1 !== [32, 13].indexOf(e.which) && (e.preventDefault(), c());
        },
      }).appendTo(s);
      ((i.getElement = function () {
        return a;
      }),
        (i.focus = function () {
          l.focus();
        }));
    }
    return ((e.prototype = Object.create(
      H5P.EventDispatcher.prototype,
    )).constructor = e);
  })(H5P.jQuery)),
  ((H5P = H5P || {}).JoubelMessageDialog = (function (o) {
    return function (e, t) {
      function n() {
        (i.remove(), clearTimeout(r), e.off("click.messageDialog"));
      }
      var i = o("<div/>", { class: "joubel-message-dialog", text: t }).appendTo(
          e,
        ),
        r = setTimeout(n, 3e3);
      return (e.on("click.messageDialog", n), i);
    };
  })(H5P.jQuery)),
  ((H5P = H5P || {}).JoubelProgressCircle = (function (s) {
    function e(t, e, n, i) {
      ((n = n || "#f0f0f0"), (i = i || "#ffffff"));
      var r = this.hexToRgb((e = e || "#1a73d9"));
      try {
        if ("" === (t = Number(t))) throw "is empty";
        if (isNaN(t)) throw "is not a number";
      } catch (e) {
        t = "err";
      }
      100 < t && (t = 100);
      var o =
          "rgb(" +
          parseInt(r.r, 10) +
          "," +
          parseInt(r.g, 10) +
          "," +
          parseInt(r.b, 10) +
          ")",
        a = s("<div/>", { class: "joubel-progress-circle-wrapper" }),
        e = s("<div/>", {
          class: "joubel-progress-circle-active-border",
        }).appendTo(a),
        r = s("<div/>", { class: "joubel-progress-circle-circle" }).appendTo(e);
      s("<span/>", {
        text: t + "%",
        class: "joubel-progress-circle-percentage",
      }).appendTo(r);
      t *= 3.6;
      return (
        (t <= 180
          ? e.css(
              "background-image",
              "linear-gradient(" +
                (90 + t) +
                "deg, transparent 50%, " +
                n +
                " 50%),linear-gradient(90deg, " +
                n +
                " 50%, transparent 50%)",
            )
          : e.css(
              "background-image",
              "linear-gradient(" +
                (t - 90) +
                "deg, transparent 50%, " +
                o +
                " 50%),linear-gradient(90deg, " +
                n +
                " 50%, transparent 50%)",
            )
        )
          .css("border", "2px solid" + i)
          .css("background-color", o),
        (this.$activeBorder = e),
        (this.$backgroundCircle = r),
        (this.$wrapper = a),
        this.initResizeFunctionality(),
        a
      );
    }
    return (
      (e.prototype.initResizeFunctionality = function () {
        var e = this;
        (s(window).resize(function () {
          setTimeout(function () {
            e.resize();
          });
        }),
          setTimeout(function () {
            e.resize();
          }, 0));
      }),
      (e.prototype.resize = function () {
        var e,
          t,
          n,
          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 (o) {
    var a,
      s,
      c,
      l,
      u,
      d,
      p = !!navigator.userAgent.match(/iPod|iPhone|iPad/g);
    function f(e) {
      var t = e.closest(".h5p-frame");
      return (t = !t.length ? e.closest(".h5p-container") : t);
    }
    function h() {
      g(a, s, d, c, l);
    }
    function g(e, t, n, i, r) {
      var o = (function (e, t) {
          ((e = e[0].getBoundingClientRect()),
            (t = t[0].getBoundingClientRect()));
          return {
            top: t.top - e.top,
            right: e.right - t.right,
            bottom: e.bottom - t.bottom,
            left: t.left - e.left,
            innerWidth: t.width,
            innerHeight: t.height,
            outerWidth: e.width,
            outerHeight: e.height,
          };
        })(f(t), t),
        a = o.bottom > o.top ? "bottom" : "top",
        s = 0.9 * o.outerWidth,
        n = n < s ? n : s,
        s = (function (e, t) {
          var n = {},
            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, o),
        t = (function (e, t, n, i) {
          var r = {},
            e = e - 20;
          ((r.left = n.left - t.left + i / 2 - 6), r.left < 9 && (r.left = 9));
          r.left > e && (r.left = e);
          return ((r.top = -6), (r.bottom = -6), r);
        })(n, s, o, t.width());
      e.css(
        ((e = n),
        (n = s),
        (s = 16),
        "top" === a
          ? {
              width: e + "px",
              bottom: n.bottom + "px",
              left: n.left + "px",
              fontSize: s + "px",
              top: "",
            }
          : {
              width: e + "px",
              top: n.top + "px",
              left: n.left + "px",
              fontSize: s + "px",
              bottom: "",
            }),
      );
      ((t = t),
        (t =
          "top" === a
            ? { bottom: t.bottom + "px", left: t.left + "px", top: "" }
            : { top: t.top + "px", left: t.left + "px", bottom: "" }));
      (i.css(t), r.css(t));
    }
    H5P.externalDispatcher.on("domHidden", function (e) {
      void 0 !== a && 0 !== e.data.$dom.find(s).length && m();
    });
    var m = function () {
      (H5P.$body.off("mousedown.speechBubble"),
        H5P.$window.off("resize", "", h),
        s.parents(".h5p-dialog").off("mousedown.speechBubble"),
        p && H5P.$body.css("cursor", ""),
        void 0 !== a &&
          (a.removeClass("show"),
          clearTimeout(u),
          (u = setTimeout(function () {
            (a.remove(), (a = void 0));
          }, 500))));
    };
    function v(e) {
      e.target !== s[0] && (m(), (s = void 0));
    }
    return function (e, t, n) {
      ((d = n = n || 400),
        (s = e),
        (this.isCurrent = function (e) {
          return e.is(s);
        }),
        (this.remove = function () {
          m();
        }),
        void 0 !== a && m());
      var i,
        r = f(e);
      return (
        (i = a) &&
          (clearTimeout(u),
          i.removeClass("show"),
          setTimeout(function () {
            i && (i.remove(), (i = void 0));
          }, 500)),
        (c = o('<div class="joubel-speech-bubble-tail"></div>')),
        (l = o('<div class="joubel-speech-bubble-inner-tail"></div>')),
        (t = o(
          '<div class="joubel-speech-bubble-inner"><div class="joubel-speech-bubble-text">' +
            t +
            "</div></div>",
        ).prepend(l)),
        (a = o('<div class="joubel-speech-bubble" aria-live="assertive">')
          .append([c, t])
          .appendTo(r)),
        setTimeout(function () {
          a.addClass("show");
        }, 0),
        g(a, s, n, c, l),
        H5P.$body.on("mousedown.speechBubble", v),
        H5P.$window.on("resize", "", h),
        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 (s) {
      var c = s("<div/>");
      return function (t, n) {
        var i,
          e = c.html(t).text().trim();
        if ("" !== e) {
          n = s.extend(
            { tipLabel: e, helpIcon: !1, showSpeechBubble: !0, tabcontrol: !1 },
            n,
          );
          var r = s("<div/>", {
            class:
              "joubel-tip-container" + (n.showSpeechBubble ? "" : " be-quiet"),
            "aria-label": n.tipLabel,
            "aria-expanded": !1,
            role: "button",
            tabindex: n.tabcontrol ? -1 : 0,
            click: function (e) {
              (o(), e.preventDefault());
            },
            keydown: function (e) {
              32 === e.which || 13 === e.which
                ? (o(), e.stopPropagation(), e.preventDefault())
                : o(!1);
            },
            html:
              '<span class="joubel-icon-tip-normal ' +
              (n.helpIcon ? " help-icon" : "") +
              '"><span class="h5p-icon-shadow"></span><span class="h5p-icon-speech-bubble"></span><span class="h5p-icon-info"></span></span>',
          });
          const a = s("<div>", {
            class: "hidden-but-read",
            "aria-live": "polite",
            appendTo: r,
          });
          var o = function (e) {
            void 0 !== i && i.isCurrent(r)
              ? (i.remove(),
                (i = void 0),
                r.attr("aria-expanded", !1),
                a.html(""))
              : !1 !== e &&
                n.showSpeechBubble &&
                ((i = H5P.JoubelSpeechBubble(r, t)),
                r.attr("aria-expanded", !0),
                a.html(t));
          };
          return r;
        }
      };
    })(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 (a) {
    var s = 0;
    return function (e, t, n, i) {
      var r = this;
      function o(e) {
        return t ? t.replace(":num", e).replace(":total", r.maxScore) : "";
      }
      ((r.maxScore = e),
        (r.score = 0),
        s++,
        (r.STAR_MARKUP =
          '<svg tabindex="-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 63.77 53.87" aria-hidden="true" focusable="false"><title>star</title><filter tabindex="-1" id="h5p-joubelui-score-bar-star-inner-shadow-' +
          s +
          '" x0="-50%" y0="-50%" width="200%" height="200%"><feGaussianBlur in="SourceAlpha" stdDeviation="3" result="blur"></feGaussianBlur><feOffset dy="2" dx="4"></feOffset><feComposite in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowDiff"></feComposite><feFlood flood-color="#ffe95c" flood-opacity="1"></feFlood><feComposite in2="shadowDiff" operator="in"></feComposite><feComposite in2="SourceGraphic" operator="over" result="firstfilter"></feComposite><feGaussianBlur in="firstfilter" stdDeviation="3" result="blur2"></feGaussianBlur><feOffset dy="-2" dx="-4"></feOffset><feComposite in2="firstfilter" operator="arithmetic" k2="-1" k3="1" result="shadowDiff"></feComposite><feFlood flood-color="#ffe95c" flood-opacity="1"></feFlood><feComposite in2="shadowDiff" operator="in"></feComposite><feComposite in2="firstfilter" operator="over"></feComposite></filter><path tabindex="-1" class="h5p-joubelui-score-bar-star-shadow" d="M35.08,43.41V9.16H20.91v0L9.51,10.85,9,10.93C2.8,12.18,0,17,0,21.25a11.22,11.22,0,0,0,3,7.48l8.73,8.53-1.07,6.16Z"/><g tabindex="-1"><path tabindex="-1" class="h5p-joubelui-score-bar-star-border" d="M61.36,22.8,49.72,34.11l2.78,16a2.6,2.6,0,0,1,.05.64c0,.85-.37,1.6-1.33,1.6A2.74,2.74,0,0,1,49.94,52L35.58,44.41,21.22,52a2.93,2.93,0,0,1-1.28.37c-.91,0-1.33-.75-1.33-1.6,0-.21.05-.43.05-.64l2.78-16L9.8,22.8A2.57,2.57,0,0,1,9,21.25c0-1,1-1.33,1.81-1.49l16.07-2.35L34.09,2.83c.27-.59.85-1.33,1.55-1.33s1.28.69,1.55,1.33l7.21,14.57,16.07,2.35c.75.11,1.81.53,1.81,1.49A3.07,3.07,0,0,1,61.36,22.8Z"/><path tabindex="-1" class="h5p-joubelui-score-bar-star-fill" d="M61.36,22.8,49.72,34.11l2.78,16a2.6,2.6,0,0,1,.05.64c0,.85-.37,1.6-1.33,1.6A2.74,2.74,0,0,1,49.94,52L35.58,44.41,21.22,52a2.93,2.93,0,0,1-1.28.37c-.91,0-1.33-.75-1.33-1.6,0-.21.05-.43.05-.64l2.78-16L9.8,22.8A2.57,2.57,0,0,1,9,21.25c0-1,1-1.33,1.81-1.49l16.07-2.35L34.09,2.83c.27-.59.85-1.33,1.55-1.33s1.28.69,1.55,1.33l7.21,14.57,16.07,2.35c.75.11,1.81.53,1.81,1.49A3.07,3.07,0,0,1,61.36,22.8Z"/><path tabindex="-1" filter="url(#h5p-joubelui-score-bar-star-inner-shadow-' +
          s +
          ')" class="h5p-joubelui-score-bar-star-fill-full-score" d="M61.36,22.8,49.72,34.11l2.78,16a2.6,2.6,0,0,1,.05.64c0,.85-.37,1.6-1.33,1.6A2.74,2.74,0,0,1,49.94,52L35.58,44.41,21.22,52a2.93,2.93,0,0,1-1.28.37c-.91,0-1.33-.75-1.33-1.6,0-.21.05-.43.05-.64l2.78-16L9.8,22.8A2.57,2.57,0,0,1,9,21.25c0-1,1-1.33,1.81-1.49l16.07-2.35L34.09,2.83c.27-.59.85-1.33,1.55-1.33s1.28.69,1.55,1.33l7.21,14.57,16.07,2.35c.75.11,1.81.53,1.81,1.49A3.07,3.07,0,0,1,61.36,22.8Z"/></g></svg>'),
        (r.appendTo = function (e) {
          r.$scoreBar.appendTo(e);
        }),
        (r.setScore = function (e) {
          e !== r.score &&
            ((r.score = e > r.maxScore ? r.maxScore : e), r.updateVisuals());
        }),
        (r.incrementScore = function (e) {
          r.setScore(r.score + (e || 1));
        }),
        (r.setMaxScore = function (e) {
          r.maxScore = e;
        }),
        (r.updateVisuals = function () {
          (r.$progress.html(o(r.score)),
            r.$scoreCounter.text(r.score),
            r.$maxScore.text(r.maxScore),
            setTimeout(function () {
              (r.$progress.css({ width: (r.score / r.maxScore) * 100 + "%" }),
                H5P.Transition.onTransitionEnd(
                  r.$progress,
                  function () {
                    (r.$scoreBar.toggleClass(
                      "h5p-joubelui-score-bar-full-score",
                      r.score === r.maxScore,
                    ),
                      r.$scoreBar.toggleClass(
                        "h5p-joubelui-score-bar-animation-active",
                        r.score === r.maxScore,
                      ),
                      r.$scoreBar.one("animationend", function () {
                        r.$scoreBar.removeClass(
                          "h5p-joubelui-score-bar-animation-active",
                        );
                      }));
                  },
                  600,
                ));
            }, 300));
        }),
        (r.reset = function () {
          r.$scoreBar.removeClass("h5p-joubelui-score-bar-full-score");
        }),
        (function () {
          r.$scoreBar = a("<div>", { class: "h5p-joubelui-score-bar" });
          var e = a("<div>", {
            class: "h5p-joubelui-score-bar-visuals",
            appendTo: r.$scoreBar,
          });
          ((r.$progressWrapper = a("<div>", {
            class: "h5p-joubelui-score-bar-progress-wrapper",
            appendTo: e,
          })),
            (r.$progress = a("<div>", {
              class: "h5p-joubelui-score-bar-progress",
              html: o(r.score),
              appendTo: r.$progressWrapper,
            })),
            a("<div>", {
              class: "h5p-joubelui-score-bar-star",
              html: r.STAR_MARKUP,
            }).appendTo(e));
          e = a("<div>", {
            class: "h5p-joubelui-score-numeric",
            appendTo: r.$scoreBar,
            "aria-hidden": !0,
          });
          ((r.$scoreCounter = a("<span>", {
            class:
              "h5p-joubelui-score-number h5p-joubelui-score-number-counter",
            text: 0,
            appendTo: e,
          })),
            a("<span>", {
              class: "h5p-joubelui-score-number-separator",
              text: "/",
              appendTo: e,
            }),
            (r.$maxScore = a("<span>", {
              class: "h5p-joubelui-score-number h5p-joubelui-score-max",
              text: r.maxScore,
              appendTo: e,
            })),
            n &&
              (H5P.JoubelUI.createTip(n, {
                tipLabel: i || n,
                helpIcon: !0,
              }).appendTo(r.$scoreBar),
              r.$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 (V, e, Q) {
    function t(r) {
      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 = V("<div/>", { class: "h5p-question-" + e })),
          t && e[t instanceof V ? "append" : "html"](t));
      }
      function p(e, t) {
        t instanceof V
          ? y[e].$element.html("").append(t)
          : y[e].$element.html(t);
      }
      function f() {
        if (void 0 !== y.buttons) {
          clearTimeout(c);
          for (var e = 0; e < H.length; e++)
            (A(P, H[e].id, w, y.buttons.$element), (w[H[e].id].isVisible = !0));
          for (var t = 0, n = !(H = []), i = 0; i < x.length; i++) {
            var r = w[x[i].id];
            (r.isVisible && (t += 1), r.$element.is(":focus") && (n = !0));
          }
          var o = 150;
          (y.feedback &&
            y.feedback.$element.hasClass("h5p-question-popup") &&
            (o = 0),
            t === y.buttons.$element.children().length
              ? (M(y.buttons), q(n))
              : (q(n),
                y.buttons.$element.is(":empty") ||
                  (F(y.buttons),
                  D(y.buttons.$element),
                  (c = setTimeout(function () {
                    u.trigger("resize");
                  }, o))),
                B()),
            (a = void 0));
        }
      }
      function s() {
        var e = y.image.$element;
        (clearTimeout(n),
          e.addClass("animatable"),
          (n =
            ((k = k
              ? (V(this).attr("aria-expanded", !0),
                e.addClass("h5p-question-image-fill-width"),
                !1)
              : (V(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 h,
        g,
        m,
        v,
        a,
        c,
        t,
        n,
        b,
        o,
        l,
        y = {},
        w = {},
        P = [],
        x = [],
        H = [],
        C = !1,
        T = { disableFeedback: !1, disableReadSpeaker: !1 },
        k = !0,
        S = !1,
        E = !1,
        A = function (e, t, n, i) {
          for (var r = 0; r < e.length; r++)
            if (e[r] === t) {
              for (
                ;
                0 < r && (void 0 === n[e[r - 1]] || !n[e[r - 1]].isVisible);

              )
                r--;
              (0 === r
                ? n[t].$element.prependTo(i)
                : n[t].$element.insertAfter(n[e[r - 1]].$element),
                (n[t].isVisible = !0));
              break;
            }
        },
        I = function (e, t) {
          var n,
            i,
            r,
            o,
            a = e.parent(),
            s = e.siblings(".h5p-question-feedback-tail"),
            c = e.outerWidth(),
            l = D(e),
            u = !1,
            d = a.height() / 2 - l / 2,
            p = a.width() / 2 - c / 2,
            f = 0,
            h = 0,
            g = 0;
          (null != t
            ? ((n = t[0].offsetTop < 15),
              (i = t[0].offsetTop + t.height() > a.height() - 15),
              (r = t[0].offsetLeft < 15),
              (o = t[0].offsetLeft + t.width() > a.width() - 15),
              (p = t[0].offsetLeft - c / 2 + t.width() / 2),
              (d = t[0].offsetTop - l - 15),
              (f = p + c / 2 - s.width() / 2),
              (h = d + l - s.height() / 2),
              (g = 225),
              l + 15 > t[0].offsetTop &&
                ((h = (d = t[0].offsetTop + t.height() + 15) - s.height() / 2),
                (g = 45)),
              (p = p < 0 ? 0 : p) + c > a.width() && (p = a.width() - c),
              n && (r || o)
                ? ((p = t[0].offsetLeft + (r ? t.width() : -c)),
                  (d = t[0].offsetTop + t.height()),
                  (u = !0))
                : i && (r || o)
                  ? ((p = t[0].offsetLeft + (r ? t.width() : -c)),
                    (d = t[0].offsetTop - l),
                    (u = !0))
                  : n ||
                    i ||
                    ((r || o) &&
                      ((d = t[0].offsetTop - l / 2 + t.width() / 2),
                      (p = t[0].offsetLeft + (r ? t.width() + 15 : -c - 15)) < 0
                        ? (u = !(p = 0))
                        : ((f = p + (r ? -s.width() / 2 : c - s.width() / 2)),
                          (h = d + l / 2 - s.height() / 2),
                          (g = r ? 315 : 135)))),
              d + l > a.height() &&
                ((d = a.height() - l),
                l > a.height() - (t[0].offsetTop + t.height() + 15) &&
                  (u = !0)))
            : (u = !0),
            e.css({ top: (d = d < 0 ? 0 : d), left: p }),
            s.css({ top: h, left: f }),
            u
              ? s.hide()
              : s
                  .css({ left: f, top: h, transform: "rotate(" + g + "deg)" })
                  .show());
        },
        D = 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 &&
                (F(y.buttons), setTimeout(B, 150)),
              t
            );
          }
          e.css("max-height", "none");
        },
        q = function (e) {
          for (var t = 0; t < x.length; t++) j(x[t].id);
          ((x = []), 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 V && 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 &&
                    (O(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 && $(t.current, e), !0)
                    : t.min < e && ((t.current > e ? R : $)(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");
        },
        R = function (e, t) {
          for (var n = P.length - 1; 0 <= n; n--) {
            var i = P[n],
              r = w[i];
            if (!r.isTruncated && r.isVisible) {
              var o = r.$element;
              e -= r.width.max - r.width.min;
              i = o.text();
              if (
                (o.attr("data-tooltip", i),
                r.ariaLabel || o.attr("aria-label", i),
                o.html("").addClass("truncated"),
                (r.isTruncated = !0),
                e <= t)
              )
                return;
            }
          }
        },
        $ = function (e, t) {
          for (var n = 0; n < P.length; n++) {
            var i = P[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));
            }
          }
        },
        F = function (e) {
          (e.$element.addClass("h5p-question-visible"), (e.isVisible = !0));
        },
        M = 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) {
        V.extend(T, e);
      }),
        (u.setVideo = function (e) {
          ((y.video = {
            $element: V("<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: V("<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 = V("<div/>", {
              class: "h5p-question-image h5p-question-image-fill-width",
            })));
          var n = V("<div/>", {
              class: "h5p-question-image-wrap",
              appendTo: y.image.$element,
            }),
            i = V("<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 a = () => {
              var e =
                "true" === n.attr("aria-expanded")
                  ? t.minimizeImage
                  : t.expandImage;
              n.attr("aria-label", e + " " + t.alt);
            };
            var r = !1;
            return (
              u.on("resize", function () {
                !r &&
                  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 && (s.apply(this), a());
                    })
                    .on("keypress", function (e) {
                      32 === e.which &&
                        (e.preventDefault(), s.apply(this), a());
                    }),
                  a(),
                  y.image.$element.removeClass("h5p-question-image-fill-width"),
                  (r = !0));
              }),
              u
            );
          }
          i.css("maxHeight", "none");
          function o() {
            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") ? o() : i.on("load", o);
        }),
        (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) {
          o &&
            (l ? (l += ("." === l.substr(-1, 1) ? " " : ". ") + e) : (l = e),
            o.html(l),
            setTimeout(function () {
              ((l = null), o.html(""));
            }, 100));
        }),
        (u.readFeedback = function () {
          var e;
          T.disableReadSpeaker ||
            !v ||
            !y.feedback ||
            !y.feedback.$element ||
            ((e = V(
              ".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),
              M(y.scorebar),
              M(y.feedback),
              (S = !0),
              (b = setTimeout(function () {
                (v ||
                  (y.feedback.$element.children().detach(),
                  y.scorebar.$element.children().detach(),
                  u.trigger("resize")),
                  (S = !1),
                  m.setScore(0));
              }, 150)),
              h && h.find(".h5p-question-feedback-tail").remove()),
            u
          );
        }),
        (u.setFeedback = function (e, t, n, i, r, o, a) {
          if (T.disableFeedback) return u;
          (f(),
            (g = null != o && null != o.click ? o.click : null),
            clearTimeout(b));
          var s = V("<div>", { class: "h5p-question-feedback-container" }),
            c = V("<div>", { class: "h5p-question-feedback-content" }).appendTo(
              s,
            );
          V("<div>", {
            class: "h5p-question-feedback-content-text",
            html: e,
          }).appendTo(c);
          var l = V("<div>", { class: "h5p-question-scorebar-container" });
          return (
            (m = void 0 === m ? Q.createScoreBar(n, i, r, a) : m).appendTo(l),
            c.toggleClass("has-content", void 0 !== e && 0 < e.length),
            !T.disableReadSpeaker &&
              i &&
              u.read(
                i.replace(":num", t).replace(":total", n) + ". " + (e || ""),
              ),
            (v = !0),
            y.feedback
              ? (p("feedback", s), p("scorebar", l))
              : (d("feedback", s),
                d("scorebar", l),
                C &&
                  h &&
                  (A(u.order, "feedback", y, h), A(u.order, "scorebar", y, h))),
            F(y.feedback),
            F(y.scorebar),
            B(),
            null != o && 1 == o.showAsPopup
              ? ((function (e) {
                  var t = y.feedback.$element,
                    n = y.content.$element,
                    i = null != g ? g.$element : null;
                  (t.appendTo(n).addClass("h5p-question-popup"),
                    y.scorebar && y.scorebar.$element.appendTo(t),
                    n.addClass("h5p-has-question-popup"));
                  var r = V("<div/>", { class: "h5p-question-feedback-tail" })
                      .hide()
                      .appendTo(n),
                    e = V("<div/>", {
                      class: "h5p-question-feedback-close",
                      tabindex: 0,
                      title: e,
                      on: {
                        click: function (e) {
                          (t.remove(), r.remove(), e.preventDefault());
                        },
                        keydown: function (e) {
                          switch (e.which) {
                            case 13:
                            case 32:
                              (t.remove(), r.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)),
                    I(t, i));
                })(o.closeText),
                m.setScore(t))
              : (b = setTimeout(function () {
                  var e;
                  (D(y.feedback.$element),
                    D(y.scorebar.$element),
                    (S = !0),
                    !h ||
                      (h.hasClass("h5p-standalone") && !H5P.isFullscreen) ||
                      ((e = L(h)) &&
                        e.animate({ scrollTop: h.css("height") }, "slow")),
                    (b = setTimeout(function () {
                      ((S = !1), u.trigger("resize"), m.setScore(t));
                    }, 150)));
                }, 0)),
            u
          );
        }),
        (u.updateFeedbackContent = function (e, t) {
          return (
            y.feedback &&
              y.feedback.$element &&
              (t &&
                (e =
                  V(
                    ".h5p-question-feedback-content",
                    y.feedback.$element,
                  ).html() +
                  " " +
                  e),
              V(".h5p-question-feedback-content", y.feedback.$element)
                .html(e)
                .addClass("has-content"),
              D(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()),
                    C && h && A(u.order, "explanation", y, h)))
              : y.explanation && y.explanation.$element.children().detach(),
            u
          );
        }),
        (u.hasButton = function (e) {
          return void 0 !== w[e];
        }),
        (u.addButton = function (e, t, n, i, r, o) {
          if (w[e]) return u;
          (void 0 === y.buttons &&
            (d("buttons"), C && A(u.order, "buttons", y, h)),
            ((o = o || {}).confirmationDialog = o.confirmationDialog || {}),
            (r = r || {}));
          function a() {
            o.confirmationDialog.enable && s
              ? (o.confirmationDialog.$parentElement ||
                  y.popups.$element.removeClass("hidden"),
                s.show(l.position().top))
              : n();
          }
          var s = u.addConfirmationDialogToButton(o.confirmationDialog, n);
          (o.contentData &&
            o.contentData.standalone &&
            (o.contentData.isScoringEnabled ||
              o.contentData.isReportingEnabled) &&
            o.textIfSubmitting &&
            (t = o.textIfSubmitting),
            (w[e] = {
              isTruncated: !1,
              text: t,
              isVisible: !1,
              ariaLabel: r["aria-label"],
            }));
          var c = void 0 !== r.href,
            l = (w[e].$element = Q.createButton(
              V.extend(
                {
                  class: "h5p-question-" + e,
                  html: t,
                  on: {
                    click: function (e) {
                      (a(), c && e.preventDefault());
                    },
                  },
                },
                r,
              ),
            ));
          return (
            P.push(e),
            H5P.Tooltip(l.get(0), { tooltipSource: "data-tooltip" }),
            c &&
              l.on("keypress", function (e) {
                32 === e.which && (a(), e.preventDefault());
              }),
            (void 0 !== i && !i) ||
              (l.appendTo(y.buttons.$element),
              (w[e].isVisible = !0),
              F(y.buttons)),
            u
          );
        }));
      var O = 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"),
              C && A(u.order, "popups", y, h),
              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", x);
          if (void 0 === w[e] || (!0 === w[e].isVisible && !n)) return u;
          t = t || 0;
          n = i(e, "id", H);
          if (-1 !== n) return (H[n].priority < t && (H[n].priority = t), u);
          n = i(e, "id", x);
          return (
            -1 !== n
              ? x[n].priority <= t &&
                (x.splice(n, 1), H.push({ id: e, priority: t }))
              : w[e].$element.is(":visible") || H.push({ id: e, priority: t }),
            (a = a || setTimeout(f, 0)),
            u
          );
        }),
        (u.hideButton = function (e, t) {
          var n = -1 !== i(e, "id", H);
          if (void 0 === w[e] || (!1 === w[e].isVisible && !n)) return u;
          t = t || 0;
          n = i(e, "id", x);
          if (-1 !== n) return (x[n].priority < t && (x[n].priority = t), u);
          n = i(e, "id", H);
          return (
            -1 !== n
              ? H[n].priority <= t &&
                (H.splice(n, 1), x.push({ id: e, priority: t }))
              : w[e].$element.is(":visible")
                ? x.push({ id: e, priority: t })
                : j(e),
            (a = a || setTimeout(f, 0)),
            u
          );
        }),
        (u.focusButton = function (e) {
          if (void 0 === e)
            for (var t = 0; t < P.length; t++) {
              var n = w[P[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) {
          T.disableReadSpeaker = e || !T.disableReadSpeaker;
        }),
        (u.insertSectionAtElement = function (e, t) {
          return (
            void 0 === y[e] && d(e),
            (y[e].parent = t),
            C || A([e], e, y, t),
            u
          );
        }),
        (u.attach = function (e) {
          (u.isRoot() && u.setActivityStarted(),
            void 0 === h &&
              (void 0 !== u.registerDomElements &&
                (u.registerDomElements instanceof Function ||
                  "function" == typeof u.registerDomElements) &&
                u.registerDomElements(),
              (o = V("<div/>", {
                "aria-live": "polite",
                class: "h5p-hidden-read",
              })),
              d("read", o),
              u.trigger("registerDomElements")),
            (h = e).html("").addClass("h5p-question h5p-" + r));
          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 },
            ),
            (C = !0),
            u
          );
        }),
        (u.detachSections = function () {
          for (var e in ((C = !1), y)) y[e].$element.detach();
          return u;
        }),
        u.on("resize", function () {
          !S && y.feedback && v && D(y.feedback.$element);
          var e = y.feedback,
            t = g;
          (null != e &&
            null != e.$element &&
            null != t &&
            null != t.$element &&
            setTimeout(function () {
              I(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],
            r = void 0 !== i.feedback && 0 !== i.feedback.trim().length;
          if (i.from <= t && i.to >= t && r) 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 (c) {
      return function (o, a) {
        var s = this;
        (!(function () {
          ((s.$explanation = c("<div>", {
            class: "h5p-question-explanation-container",
          })),
            c("<div>", {
              class: "h5p-question-explanation-title",
              role: "heading",
              html: o,
              appendTo: s.$explanation,
            }));
          for (
            var e = c("<ul>", {
                class: "h5p-question-explanation-list",
                appendTo: s.$explanation,
              }),
              t = 0;
            t < a.length;
            t++
          ) {
            var n = a[t],
              i = c("<li>", {
                class: "h5p-question-explanation-item",
                appendTo: e,
              }),
              r = c("<div>", { class: "h5p-question-explanation-status" });
            (n.correct &&
              c("<span>", {
                class: "h5p-question-explanation-correct",
                html: n.correct,
                appendTo: r,
              }),
              n.wrong &&
                c("<span>", {
                  class: "h5p-question-explanation-wrong",
                  html: n.wrong,
                  appendTo: r,
                }),
              r.appendTo(i),
              n.text &&
                c("<div>", {
                  class: "h5p-question-explanation-text",
                  html: n.text,
                  appendTo: i,
                }));
          }
        })(),
          (s.getElement = function () {
            return s.$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(r, 0)),
        t
      );
    };
    var r = 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(o(i[n]), e), (e += t));
      },
      o = function (e) {
        return function () {
          e.classList.remove("h5p-question-hidden-one");
        };
      };
  }),
  ((H5P = H5P || {}).MultiChoice = function (e, t, n) {
    if (!(this instanceof H5P.MultiChoice)) return new H5P.MultiChoice(e, t, n);
    var a = this;
    ((this.contentId = t),
      (this.contentData = n),
      H5P.Question.call(a, "multichoice"));
    for (
      var s = H5P.jQuery,
        c = s.extend(
          !0,
          {
            image: null,
            question: "No question text provided",
            answers: [
              {
                tipsAndFeedback: {
                  tip: "",
                  chosenFeedback: "",
                  notChosenFeedback: "",
                },
                text: "Answer 1",
                correct: !0,
              },
            ],
            overallFeedback: [],
            weight: 1,
            userAnswers: [],
            UI: {
              checkAnswerButton: "Check",
              submitAnswerButton: "Submit",
              showSolutionButton: "Show solution",
              tryAgainButton: "Try again",
              scoreBarLabel: "You got :num out of :total points",
              tipAvailable: "Tip available",
              feedbackAvailable: "Feedback available",
              readFeedback: "Read feedback",
              shouldCheck: "Should have been checked",
              shouldNotCheck: "Should not have been checked",
              noInput: "Input is required before viewing the solution",
              a11yCheck:
                "Check the answers. The responses will be marked as correct, incorrect, or unanswered.",
              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.",
            },
            behaviour: {
              enableRetry: !0,
              enableSolutionsButton: !0,
              enableCheckButton: !0,
              type: "auto",
              singlePoint: !0,
              randomAnswers: !1,
              showSolutionsRequiresInput: !0,
              autoCheck: !1,
              passPercentage: 100,
              showScorePoints: !0,
            },
          },
          e,
        ),
        i = 0,
        r = 0;
      r < c.answers.length;
      r++
    ) {
      var o = c.answers[r];
      ((o.tipsAndFeedback = o.tipsAndFeedback || {}),
        c.answers[r].correct && i++);
    }
    var l = 0 === i;
    "auto" === c.behaviour.type
      ? (c.behaviour.singleAnswer = 1 === i)
      : (c.behaviour.singleAnswer = "single" === c.behaviour.type);
    function u(e, t) {
      ((p = s(
        '<div class="h5p-feedback-dialog"><div class="h5p-feedback-inner"><div class="h5p-feedback-text">' +
          t +
          "</div></div></div>",
      )),
        e.find(s(".h5p-feedback-dialog")).length ||
          p.appendTo(e.addClass("h5p-has-feedback")));
    }
    var d,
      p,
      f = function () {
        (d.unbind("click", f),
          d.find(".h5p-feedback-button, .h5p-feedback-dialog").remove(),
          d.find(".h5p-has-feedback").removeClass("h5p-has-feedback"),
          p && p.remove());
      },
      h = 0,
      g = !1;
    ((a.registerDomElements = function () {
      var e,
        t = c.media;
      t &&
        t.type &&
        t.type.library &&
        ("H5P.Image" === (e = (t = t.type).library.split(" ")[0])
          ? t.params.file &&
            a.setImage(t.params.file.path, {
              disableImageZooming: c.media.disableImageZooming || !1,
              alt: t.params.alt,
              title: t.params.title,
              expandImage: t.params.expandImage,
              minimizeImage: t.params.minimizeImage,
            })
          : "H5P.Video" === e
            ? t.params.sources && a.setVideo(t)
            : "H5P.Audio" === e && t.params.files && a.setAudio(t));
      for (var n = 0; n < c.answers.length; n++)
        c.answers[n].checkboxOrRadioIcon = (function (e, t) {
          t = e ? (t ? "&#xe603;" : "&#xe600;") : t ? "&#xe601;" : "&#xe602;";
          return t;
        })(c.behaviour.singleAnswer, -1 < c.userAnswers.indexOf(n));
      (a.setIntroduction(
        '<div id="' + c.labelId + '">' + c.question + "</div>",
      ),
        (d = s("<ul>", {
          class: "h5p-answers",
          role: c.role,
          "aria-labelledby": c.labelId,
        })));
      for (let e = 0; e < c.answers.length; e++) {
        const o = c.answers[e];
        ((o.text = o.text ?? "<div></div>"),
          s("<li>", {
            class: "h5p-answer",
            role: o.role,
            tabindex: o.tabindex,
            "aria-checked": o.checked,
            "data-id": e,
            html:
              '<div class="h5p-alternative-container"><span class="h5p-alternative-inner">' +
              o.text +
              "</span></div>",
            appendTo: d,
          }));
      }
      a.setContent(d, {
        class: c.behaviour.singleAnswer ? "h5p-radio" : "h5p-check",
      });
      function i(e) {
        if ("true" !== e.attr("aria-disabled")) {
          a.answered = !0;
          var t = parseInt(e.data("id"));
          if (c.behaviour.singleAnswer)
            ((c.userAnswers = [t]),
              (h = c.answers[t].correct ? 1 : 0),
              r
                .not(e)
                .removeClass("h5p-selected")
                .attr("tabindex", "-1")
                .attr("aria-checked", "false"),
              e
                .addClass("h5p-selected")
                .attr("tabindex", "0")
                .attr("aria-checked", "true"));
          else {
            if ("true" === e.attr("aria-checked")) {
              var n = c.userAnswers.indexOf(t);
              if (
                (-1 !== n && c.userAnswers.splice(n, 1),
                c.behaviour.autoCheck && !c.behaviour.enableRetry)
              )
                return;
              e.removeClass("h5p-selected").attr("aria-checked", "false");
            } else
              (c.userAnswers.push(t),
                e.addClass("h5p-selected").attr("aria-checked", "true"));
            x();
          }
          (a.triggerXAPI("interacted"),
            m(e),
            c.userAnswers.length &&
              (a.showButton("check-answer"),
              a.hideButton("try-again"),
              a.hideButton("show-solution"),
              c.behaviour.autoCheck &&
                (c.behaviour.singleAnswer
                  ? b()
                  : (a.showCheckSolution(!0), h === a.getMaxScore() && b()))));
        }
      }
      var r = s(".h5p-answer", d).each(function (e) {
        var n,
          i = c.answers[e].tipsAndFeedback.tip;
        void 0 !== i &&
          (i = i.trim())
            .replace(/&nbsp;/g, "")
            .replace(/<p>/g, "")
            .replace(/<\/p>/g, "")
            .trim().length &&
          (s(this).addClass("h5p-has-tip"),
          (e = s("<div/>", {
            class: "h5p-multichoice-tipwrap",
            "aria-label": c.UI.tipAvailable + ".",
          })),
          (n = s("<div>", {
            role: "button",
            tabindex: 0,
            title: c.UI.tipsLabel,
            "aria-label": c.UI.tipsLabel,
            "aria-expanded": !1,
            class: "multichoice-tip",
            appendTo: e,
          })).append(
            '<span class="joubel-icon-tip-normal"><span class="h5p-icon-shadow"></span><span class="h5p-icon-speech-bubble"></span><span class="h5p-icon-info"></span></span>',
          ),
          n
            .click(function () {
              var e = n.parents(".h5p-answer"),
                t = !e.children(".h5p-feedback-dialog").is(p);
              return (
                f(),
                t
                  ? (n.attr("aria-expanded", !0),
                    u(e, i),
                    p.addClass("h5p-has-tip"),
                    a.read(i))
                  : n.attr("aria-expanded", !1),
                a.trigger("resize"),
                setTimeout(function () {
                  d.click(f);
                }, 100),
                !1
              );
            })
            .keydown(function (e) {
              if (32 === e.which) return (s(this).click(), !1);
            }),
          s(".h5p-alternative-container", this).append(e));
      });
      (r
        .click(function () {
          i(s(this));
        })
        .keydown(function (e) {
          if (32 === e.keyCode) return (i(s(this)), !1);
          if (c.behaviour.singleAnswer)
            switch (e.keyCode) {
              case 38:
              case 37:
                var t = s(this).prev();
                return (t.length && i(t.focus()), !1);
              case 40:
              case 39:
                t = s(this).next();
                return (t.length && i(t.focus()), !1);
            }
        }),
        c.behaviour.singleAnswer &&
          r
            .focus(function () {
              "true" !== s(this).attr("aria-disabled") &&
                r.not(this).attr("tabindex", "-1");
            })
            .blur(function () {
              r.filter(".h5p-selected").length ||
                r.first().add(r.last()).attr("tabindex", "0");
            }),
        y(),
        c.behaviour.singleAnswer
          ? (h =
              c.userAnswers.length && c.answers[c.userAnswers[0]].correct
                ? 1
                : 0)
          : x(),
        A &&
          c.behaviour.autoCheck &&
          (c.behaviour.singleAnswer || h === a.getMaxScore()
            ? b()
            : a.showCheckSolution(!0)));
    }),
      (this.showAllSolutions = function () {
        g ||
          ((g = !0),
          d
            .find(".h5p-answer")
            .each(function (e, t) {
              var n = s(t),
                t = c.answers[e],
                e =
                  "h5p-solution-icon-" +
                  (c.behaviour.singleAnswer ? "radio" : "checkbox");
              t.correct
                ? n
                    .addClass("h5p-should")
                    .append(
                      s("<span/>", { class: e, html: c.UI.shouldCheck + "." }),
                    )
                : n.addClass("h5p-should-not").append(
                    s("<span/>", {
                      class: e,
                      html: c.UI.shouldNotCheck + ".",
                    }),
                  );
            })
            .find(".h5p-question-plus-one, .h5p-question-minus-one")
            .remove(),
          w(),
          d.find(".h5p-answer:first-child").focus(),
          a.hideButton("check-answer"),
          a.hideButton("show-solution"),
          c.behaviour.enableRetry && a.showButton("try-again"),
          a.trigger("resize"));
      }),
      (this.showSolutions = function () {
        (f(),
          a.showCheckSolution(),
          a.showAllSolutions(),
          w(),
          a.hideButton("try-again"));
      }));
    var m = function (e) {
      e.removeClass("h5p-correct")
        .removeClass("h5p-wrong")
        .removeClass("h5p-should")
        .removeClass("h5p-should-not")
        .removeClass("h5p-has-feedback")
        .find(
          ".h5p-question-plus-one, .h5p-question-minus-one, .h5p-answer-icon, .h5p-solution-icon-radio, .h5p-solution-icon-checkbox, .h5p-feedback-dialog",
        )
        .remove();
    };
    ((this.hideSolutions = function () {
      ((g = !1),
        m(s(".h5p-answer", d)),
        this.removeFeedback(),
        a.trigger("resize"));
    }),
      (this.resetTask = function (e = !1) {
        for (let e = 0; e < c.answers.length; e++)
          c.answers[e].checked && delete c.answers[e].checked;
        ((a.answered = !1),
          a.hideSolutions(),
          (c.userAnswers = []),
          H(e),
          a.showButton("check-answer"),
          a.hideButton("try-again"),
          a.hideButton("show-solution"),
          P(),
          d?.find(".h5p-feedback-available").remove());
      }));
    var v = function () {
      if (l) return c.weight;
      for (var e = 0, t = 0; t < c.answers.length; t++) {
        var n = c.answers[t];
        n.correct && (e += void 0 !== n.weight ? n.weight : 1);
      }
      return e;
    };
    this.getMaxScore = function () {
      return c.behaviour.singleAnswer || c.behaviour.singlePoint
        ? c.weight
        : v();
    };
    var b = function () {
        (d.unbind("click", f),
          f(),
          c.behaviour.enableSolutionsButton && a.showButton("show-solution"),
          c.behaviour.enableRetry && a.showButton("try-again"),
          a.hideButton("check-answer"),
          a.showCheckSolution(),
          w());
        var e = a.createXAPIEventTemplate("answered");
        (T(e), k(e), a.trigger(e));
      },
      y = function () {
        var e = s('[data-content-id="' + a.contentId + '"].h5p-content'),
          t = e.parents(".h5p-container"),
          e = 0 !== t.length ? t.last() : 0 !== e.length ? e : s(document.body);
        (a.addButton(
          "show-solution",
          c.UI.showSolutionButton,
          function () {
            c.behaviour.showSolutionsRequiresInput && !a.getAnswerGiven(!0)
              ? (a.updateFeedbackContent(c.UI.noInput), a.read(c.UI.noInput))
              : (x(), a.showAllSolutions());
          },
          !1,
          { "aria-label": c.UI.a11yShowSolution },
        ),
          !c.behaviour.enableCheckButton ||
            (c.behaviour.autoCheck && c.behaviour.singleAnswer) ||
            a.addButton(
              "check-answer",
              c.UI.checkAnswerButton,
              function () {
                ((a.answered = !0),
                  b(),
                  d.find(".h5p-answer:first-child").focus());
              },
              !0,
              { "aria-label": c.UI.a11yCheck },
              {
                confirmationDialog: {
                  enable: c.behaviour.confirmCheckDialog,
                  l10n: c.confirmCheck,
                  instance: a,
                  $parentElement: e,
                },
                contentData: a.contentData,
                textIfSubmitting: c.UI.submitAnswerButton,
              },
            ),
          a.addButton(
            "try-again",
            c.UI.tryAgainButton,
            function () {
              if ((a.resetTask(!0), c.behaviour.randomAnswers)) {
                var e = C;
                C = S();
                var t = d.find(".h5p-answer"),
                  n = [];
                for (r = 0; r < t.length; r++)
                  n[r] = s(t[r]).find(".h5p-multichoice-tipwrap");
                for (r = 0; r < t.length; r++)
                  (s(t[r])
                    .find(".h5p-alternative-inner")
                    .html(c.answers[r].text),
                    s(n[r])
                      .detach()
                      .appendTo(
                        s(t[C.indexOf(e[r])]).find(
                          ".h5p-alternative-container",
                        ),
                      ));
              }
            },
            !1,
            { "aria-label": c.UI.a11yRetry },
            {
              confirmationDialog: {
                enable: c.behaviour.confirmRetryDialog,
                l10n: c.confirmRetry,
                instance: a,
                $parentElement: e,
              },
            },
          ));
      };
    this.showCheckSolution = function (r) {
      var o;
      (c.behaviour.singleAnswer ||
        c.behaviour.singlePoint ||
        !c.behaviour.showScorePoints ||
        (o = new H5P.Question.ScorePoints()),
        d.find(".h5p-answer").each(function (e, t) {
          var n = s(t),
            i = c.answers[e],
            t = "true" === n.attr("aria-checked");
          (t &&
            (i.correct
              ? n.hasClass("h5p-correct") ||
                n.addClass("h5p-correct").append(
                  s("<span/>", {
                    class: "h5p-answer-icon",
                    html: c.UI.correctAnswer + ".",
                  }),
                )
              : n.hasClass("h5p-wrong") ||
                n.addClass("h5p-wrong").append(
                  s("<span/>", {
                    class: "h5p-answer-icon",
                    html: c.UI.wrongAnswer + ".",
                  }),
                ),
            o &&
              ((e = n[0].querySelector(".h5p-alternative-container")),
              (c.behaviour.autoCheck &&
                null !==
                  e.querySelector(
                    ".h5p-question-plus-one, .h5p-question-minus-one",
                  )) ||
                e.appendChild(o.getElement(i.correct)))),
            r ||
              (t &&
              void 0 !== i.tipsAndFeedback.chosenFeedback &&
              "" !== i.tipsAndFeedback.chosenFeedback
                ? u(n, i.tipsAndFeedback.chosenFeedback)
                : t ||
                  void 0 === i.tipsAndFeedback.notChosenFeedback ||
                  "" === i.tipsAndFeedback.notChosenFeedback ||
                  u(n, i.tipsAndFeedback.notChosenFeedback)));
        }));
      var e,
        t,
        n = a.getMaxScore();
      (h === n &&
        (a.hideButton("check-answer"),
        a.hideButton("try-again"),
        a.hideButton("show-solution")),
        r ||
          this.setFeedback(
            ((e = h),
            (t = n),
            H5P.Question.determineOverallFeedback(c.overallFeedback, e / t)
              .replace("@score", e)
              .replace("@total", t)),
            h,
            n,
            c.UI.scoreBarLabel,
          ),
        a.trigger("resize"));
    };
    var w = function () {
        (s(".h5p-answer", d)
          .attr({ "aria-disabled": "true", tabindex: "-1" })
          .removeAttr("role")
          .removeAttr("aria-checked"),
          s(".h5p-answers").removeAttr("role"));
      },
      P = function () {
        (s(".h5p-answer", d).attr({
          "aria-disabled": "false",
          role: c.behaviour.singleAnswer ? "radio" : "checkbox",
        }),
          s(".h5p-answers").attr("role", c.role));
      },
      x = function () {
        h = 0;
        for (const n of c.userAnswers) {
          var e = c.answers[n],
            t = void 0 !== e.weight ? e.weight : 1;
          e.correct ? (h += t) : (h -= t);
        }
        (h < 0 && (h = 0),
          !c.userAnswers.length && l && (h = c.weight),
          c.behaviour.singlePoint &&
            (h = (100 * h) / v() >= c.behaviour.passPercentage ? c.weight : 0));
      },
      H = function (e) {
        var t = s(".h5p-answer", d)
          .removeClass("h5p-selected")
          .attr("aria-checked", "false");
        ((c.behaviour.singleAnswer ? t.first() : t).attr("tabindex", "0"),
          (e || a.isRoot()) && t.first().focus(),
          x());
      };
    this.getXAPIData = function () {
      var e = this.createXAPIEventTemplate("answered");
      return (T(e), k(e), { statement: e.data.statement });
    };
    for (
      var C,
        T = function (e) {
          var t = e.getVerifiedStatementValue(["object", "definition"]);
          ((t.description = {
            "en-US": s("<div>" + c.question + "</div>").text(),
          }),
            (t.type = "http://adlnet.gov/expapi/activities/cmi.interaction"),
            (t.interactionType = "choice"),
            (t.correctResponsesPattern = []),
            (t.choices = []));
          for (var n = 0; n < c.answers.length; n++)
            ((t.choices[n] = {
              id: c.answers[n].originalOrder + "",
              description: {
                "en-US": s("<div>" + c.answers[n].text + "</div>").text(),
              },
            }),
              c.answers[n].correct &&
                (c.singleAnswer
                  ? t.correctResponsesPattern.push(
                      "" + c.answers[n].originalOrder,
                    )
                  : (t.correctResponsesPattern.length
                      ? (t.correctResponsesPattern[0] += "[,]")
                      : t.correctResponsesPattern.push(""),
                    (t.correctResponsesPattern[0] +=
                      c.answers[n].originalOrder))));
        },
        k = function (e) {
          var t = a.getMaxScore(),
            n = (100 * h) / t >= c.behaviour.passPercentage;
          (e.setScoredResult(h, t, a, !0, n), void 0 === c.userAnswers && x());
          for (var i = "", r = 0; r < c.userAnswers.length; r++)
            ("" !== i && (i += "[,]"),
              (i += void 0 === C ? c.userAnswers[r] : C[c.userAnswers[r]]));
          e.data.statement.result.response = i;
        },
        S = function () {
          c.answers = H5P.shuffleArray(c.answers);
          var e = [];
          for (r = 0; r < c.answers.length; r++)
            e[r] = c.answers[r].originalOrder;
          return e;
        },
        r = 0;
      r < c.answers.length;
      r++
    )
      c.answers[r].originalOrder = r;
    if (
      (c.behaviour.randomAnswers && (C = S()),
      (c.userAnswers = []),
      n && void 0 !== n.previousState && n.previousState.answers)
    ) {
      if (C)
        for (r = 0; r < n.previousState.answers.length; r++)
          for (var E = 0; E < C.length; E++)
            C[E] === n.previousState.answers[r] && c.userAnswers.push(E);
      else c.userAnswers = n.previousState.answers;
      x();
    }
    for (var A = !1, I = 0; I < c.answers.length; I++) {
      var D = c.answers[I];
      (c.behaviour.singleAnswer
        ? ((D.role = "radio"),
          0 === c.userAnswers.length
            ? (0 !== r && r !== c.answers.length) || (D.tabindex = "0")
            : -1 !== c.userAnswers.indexOf(I) &&
              ((D.tabindex = "0"), (D.checked = "true"), (A = !0)))
        : ((D.role = "checkbox"),
          (D.tabindex = "0"),
          -1 !== c.userAnswers.indexOf(I) && ((D.checked = "true"), (A = !0))),
        void 0 === D.tabindex && (D.tabindex = "-1"),
        void 0 === D.checked && (D.checked = "false"));
    }
    ((H5P.MultiChoice.counter =
      void 0 === H5P.MultiChoice.counter ? 0 : H5P.MultiChoice.counter + 1),
      (c.role = c.behaviour.singleAnswer ? "radiogroup" : "group"),
      (c.labelId = "h5p-mcq" + H5P.MultiChoice.counter),
      (this.getCurrentState = function () {
        var e = {};
        if (C) {
          e.answers = [];
          for (var t = 0; t < c.userAnswers.length; t++)
            e.answers.push(C[c.userAnswers[t]]);
        } else e.answers = c.userAnswers;
        return e;
      }),
      (this.getAnswerGiven = function (e) {
        return (!e && this.answered) || 0 < c.userAnswers.length || l;
      }),
      (this.getScore = function () {
        return h;
      }),
      (this.getTitle = function () {
        return H5P.createTitle(
          this.contentData &&
            this.contentData.metadata &&
            this.contentData.metadata.title
            ? this.contentData.metadata.title
            : "Multiple Choice",
        );
      }));
  }),
  (H5P.MultiChoice.prototype = Object.create(H5P.Question.prototype)),
  (H5P.MultiChoice.prototype.constructor =
    H5P.MultiChoice) /*!@license H5P.Video-1.6/scripts/vimeo.js by Joubel licensed under MIT*/,
  (H5P.VideoVimeo = (function (k) {
    let S = 0;
    function e(i, r, o) {
      const a = this;
      let s,
        c = 0,
        l,
        u,
        d = 0,
        p = 0,
        e = 0,
        t = 0,
        n = 1,
        f = [],
        h,
        g = !1,
        m = 9 / 16,
        v = !1;
      const b = 8,
        y = "h5p-vimeo-" + ++S,
        w = k("<div/>"),
        P = k("<div/>", {
          id: y,
          html: `<div class="h5p-video-loading" style="height: 100%; min-height: 200px; display: block; z-index: 100;" aria-label="${o.loading}"></div>`,
        }).appendTo(w),
        x = async () => {
          if (P.is(":visible") && void 0 === s) {
            s = null;
            const n = await E();
            var e = Math.max(w.width(), 200),
              t = r.controls || a.pressToPlay,
              t = {
                url: i[0].path,
                controls: t,
                responsive: !0,
                dnt: !0,
                autoplay: !1,
                loop: !!r.loop,
                playsinline: !0,
                quality: "auto",
                width: e,
                muted: !1,
                keyboard: t,
              };
            ((s = new n.Player(y, t)),
              C(s),
              (h = setTimeout(() => {
                ((g = !0),
                  H(),
                  w.html(
                    `<p class="vimeo-failed-loading">${o.vimeoLoadingError}</p>`,
                  ),
                  w.css({ width: null, height: null }),
                  a.trigger("resize"),
                  a.trigger("error", o.vimeoLoadingError));
              }, 1e3 * b)));
          }
        },
        H = () => {
          P.find("div.h5p-video-loading").remove();
        },
        C = (t) => {
          let n, i;
          (t.on("loaded", async () => {
            ((n = !0), (v = !0), clearTimeout(h));
            var e = await T(t);
            ((i = e.tracks.options),
              (u = i.current),
              (p = e.duration),
              (f = e.qualities),
              (l = "auto"));
            try {
              m = e.dimensions.height / e.dimensions.width;
            } catch (e) {}
            (H(),
              r.startAt && (d = await a.seek(r.startAt)),
              a.trigger("ready"),
              a.trigger("loaded"),
              a.trigger("qualityChange", l),
              a.trigger("resize"));
          }),
            t.on("play", () => {
              n && ((n = !1), i.length && a.trigger("captions", i));
            }),
            t.on("playing", () => a.trigger("stateChange", H5P.Video.PLAYING)),
            t.on("pause", () => a.trigger("stateChange", H5P.Video.PAUSED)),
            t.on("ended", () => a.trigger("stateChange", H5P.Video.ENDED)),
            t.on("progress", (e) => {
              c = 100 * e.percent;
            }),
            t.on("timeupdate", (e) => {
              d = e.seconds;
            }));
        },
        T = (e) => {
          return Promise.all([
            e.getDuration(),
            e.getQualities(),
            e.getTextTracks(),
            e.getVideoWidth(),
            e.getVideoHeight(),
          ]).then((e) =>
            ((e) => {
              return {
                duration: e[0],
                qualities: e[1].map((e) => ({ name: e.id, label: e.label })),
                tracks: e[2].reduce(
                  (e, t) => {
                    var n = new H5P.Video.LabelValue(t.label, t.language);
                    return (
                      e.options.push(n),
                      "showing" === t.mode && (e.current = n),
                      e
                    );
                  },
                  { current: void 0, options: [] },
                ),
                dimensions: { width: e[3], height: e[4] },
              };
            })(e),
          );
        };
      try {
        !1 === document.featurePolicy.allowsFeature("autoplay") &&
          (a.pressToPlay = !0);
      } catch (e) {}
      ((a.appendTo = (e) => {
        (e.addClass("h5p-vimeo").append(w), x());
      }),
        (a.getQualities = () => f),
        (a.getQuality = () => l),
        (a.setQuality = async (e) => {
          ((l = await s.setQuality(e)), a.trigger("qualityChange", l));
        }),
        (a.play = async () => {
          if (s)
            try {
              await s.play();
            } catch (e) {
              switch (e.name) {
                case "PasswordError":
                  a.trigger("error", o.vimeoPasswordError);
                  break;
                case "PrivacyError":
                  a.trigger("error", o.vimeoPrivacyError);
                  break;
                default:
                  a.trigger("error", o.unknownError);
              }
            }
          else a.on("ready", a.play);
        }),
        (a.pause = () => {
          s && s.pause();
        }),
        (a.seek = async (e) => {
          ((d = e), await s.setCurrentTime(e));
        }),
        (a.getCurrentTime = () => d),
        (a.getDuration = () => p),
        (a.getBuffered = () => c),
        (a.mute = async () => {
          e = await s.setMuted(!0);
        }),
        (a.unMute = async () => {
          e = await s.setMuted(!1);
        }),
        (a.isMuted = () => e),
        (a.isLoaded = () => v),
        (a.getVolume = () => t),
        (a.setVolume = async (e) => {
          t = await s.setVolume(e);
        }),
        (a.getPlaybackRates = () => [0.5, 1, 1.5, 2]),
        (a.getPlaybackRate = () => n),
        (a.setPlaybackRate = async (e) => {
          ((n = await s.setPlaybackRate(e)),
            a.trigger("playbackRateChange", e));
        }),
        (a.setCaptionsTrack = (e) => {
          if (!e)
            return s.disableTextTrack().then(() => {
              u = null;
            });
          s.enableTextTrack(e.value).then(() => {
            u = e;
          });
        }),
        (a.getCaptionsTrack = () => u),
        a.on("resize", () => {
          var e, t;
          !g &&
            w.is(":visible") &&
            (void 0 !== s
              ? (w.css({ width: "100%", height: "auto" }),
                (e = w[0].clientWidth),
                0 < (t = r.fit ? w[0].clientHeight : e * m) &&
                  w.css({ width: e + "px", height: t + "px" }))
              : x());
        }));
    }
    e.canPlay = (e) => t(e[0].path);
    const t = (e) => {
        e = e.match(
          /^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/,
        );
        if (e && e[5]) return e[5];
      },
      E = async () =>
        window.Vimeo
          ? Promise.resolve(window.Vimeo)
          : new Promise((e, t) => {
              const n = document.createElement("script");
              ((n.src = "https://player.vimeo.com/api/player.js"),
                (n.onload = () => e(window.Vimeo)),
                (n.onerror = t),
                document.querySelector("script").before(n));
            });
    return e;
  })(H5P.jQuery)),
  (H5P.videoHandlers = H5P.videoHandlers || []),
  H5P.videoHandlers.push(
    H5P.VideoVimeo,
  ) /*!@license H5P.Video-1.6/scripts/youtube.js by Joubel licensed under MIT*/,
  (H5P.VideoYouTube = (function (e) {
    function t(n, r, o) {
      var a,
        s = this,
        c = 1,
        l = "h5p-youtube-" + g;
      g++;
      var u = e("<div/>"),
        d = e("<div/>", { id: l, text: o.loading }).appendTo(u),
        p = function () {
          var e, i, t;
          d.is(":visible") &&
            void 0 === a &&
            (void 0 !== window.YT
              ? void 0 !== YT.Player &&
                ((e = u.width()) < 200 && (e = 200),
                (i = !0),
                (t = f(n[0].path)),
                (a = new YT.Player(l, {
                  width: e,
                  height: e * (9 / 16),
                  videoId: t,
                  playerVars: {
                    origin: m,
                    autoplay: 0,
                    controls: r.controls ? 1 : 0,
                    disablekb: r.controls ? 0 : 1,
                    fs: 0,
                    loop: r.loop ? 1 : 0,
                    playlist: r.loop ? t : void 0,
                    rel: 0,
                    showinfo: 0,
                    iv_load_policy: 3,
                    wmode: "opaque",
                    start: r.startAt,
                    playsinline: 1,
                  },
                  events: {
                    onReady: function () {
                      (s.trigger("ready"), s.trigger("loaded"));
                    },
                    onApiChange: function () {
                      var e;
                      i && ((i = !1), a.loadModule("captions"));
                      try {
                        e = a.getOption("captions", "tracklist");
                      } catch (e) {}
                      if (e && e.length) {
                        for (var t = [], n = 0; n < e.length; n++)
                          t.push(
                            new H5P.Video.LabelValue(
                              e[n].displayName,
                              e[n].languageCode,
                            ),
                          );
                        s.trigger("captions", t);
                      }
                    },
                    onStateChange: function (e) {
                      -1 < e.data &&
                        e.data < 4 &&
                        (H5P.Video.IE11_PLAYBACK_RATE_FIX &&
                          e.data === H5P.Video.PLAYING &&
                          1 !== c &&
                          (a.setPlaybackRate(1), a.setPlaybackRate(c)),
                        s.trigger("stateChange", e.data));
                    },
                    onPlaybackQualityChange: function (e) {
                      s.trigger("qualityChange", e.data);
                    },
                    onPlaybackRateChange: function (e) {
                      s.trigger("playbackRateChange", e.data);
                    },
                    onError: function (e) {
                      var t;
                      switch (e.data) {
                        case 2:
                          t = o.invalidYtId;
                          break;
                        case 100:
                          t = o.unknownYtId;
                          break;
                        case 101:
                        case 150:
                          t = o.restrictedYt;
                          break;
                        default:
                          t = o.unknownError + " " + e.data;
                      }
                      s.trigger("error", t);
                    },
                  },
                })))
              : h(p));
        };
      if (navigator.userAgent.match(/iPad/i)) s.pressToPlay = !0;
      else
        try {
          !1 === document.featurePolicy.allowsFeature("autoplay") &&
            (s.pressToPlay = !0);
        } catch (e) {}
      ((s.appendTo = function (e) {
        (e.addClass("h5p-youtube").append(u), p());
      }),
        (s.getQualities = function () {
          if (a && a.getAvailableQualityLevels) {
            var e = a.getAvailableQualityLevels();
            if (e.length) {
              for (var t = 0; t < e.length; t++) {
                var n = e[t];
                void 0 !== i[n] && i[n];
                e[t] = { name: n, label: i[n] };
              }
              return e;
            }
          }
        }),
        (s.getQuality = function () {
          if (a && a.getPlaybackQuality) {
            var e = a.getPlaybackQuality();
            return "unknown" === e ? void 0 : e;
          }
        }),
        (s.setQuality = function (e) {
          a && a.setPlaybackQuality && a.setPlaybackQuality(e);
        }),
        (s.play = function () {
          a && a.playVideo ? a.playVideo() : s.on("ready", s.play);
        }),
        (s.pause = function () {
          (s.off("ready", s.play), a && a.pauseVideo && a.pauseVideo());
        }),
        (s.seek = function (e) {
          a && a.seekTo && a.seekTo(e, !0);
        }),
        (s.getCurrentTime = function () {
          if (a && a.getCurrentTime) return a.getCurrentTime();
        }),
        (s.getDuration = function () {
          if (a && a.getDuration) return a.getDuration();
        }),
        (s.getBuffered = function () {
          if (a && a.getVideoLoadedFraction)
            return 100 * a.getVideoLoadedFraction();
        }),
        (s.mute = function () {
          a && a.mute && a.mute();
        }),
        (s.unMute = function () {
          a && a.unMute && a.unMute();
        }),
        (s.isMuted = function () {
          if (a && a.isMuted) return a.isMuted();
        }),
        (s.isLoaded = function () {
          if (a && a.getPlayerState) return 5 === a.getPlayerState();
        }),
        (s.getVolume = function () {
          if (a && a.getVolume) return a.getVolume();
        }),
        (s.setVolume = function (e) {
          a && a.setVolume && a.setVolume(e);
        }),
        (s.getPlaybackRates = function () {
          if (a && a.getAvailablePlaybackRates) {
            var e = a.getAvailablePlaybackRates();
            if (e.length) return e;
          }
        }),
        (s.getPlaybackRate = function () {
          if (a && a.getPlaybackRate) return a.getPlaybackRate();
        }),
        (s.setPlaybackRate = function (e) {
          a && a.setPlaybackRate && ((c = Number(e)), a.setPlaybackRate(c));
        }),
        (s.setCaptionsTrack = function (e) {
          a.setOption("captions", "track", e ? { languageCode: e.value } : {});
        }),
        (s.getCaptionsTrack = function () {
          var e = a.getOption("captions", "track");
          return e.languageCode
            ? new H5P.Video.LabelValue(e.displayName, e.languageCode)
            : null;
        }),
        s.on("resize", function () {
          var e, t;
          u.is(":visible") &&
            (a
              ? (u.css({ width: "100%", height: "100%" }),
                (e = u[0].clientWidth),
                0 < (t = r.fit ? u[0].clientHeight : e * (9 / 16)) &&
                  (u.css({ width: e + "px", height: t + "px" }),
                  a.setSize(e, t)))
              : p());
        }));
    }
    t.canPlay = function (e) {
      return f(e[0].path);
    };
    var f = function (e) {
        e = e.match(
          /(?:(?:youtube.com\/(?:attribution_link\?(?:\S+))?(?:v\/|embed\/|watch\/|(?:user\/(?:\S+)\/)?watch(?:\S+)v\=))|(?:youtu.be\/|y2u.be\/))([A-Za-z0-9_-]{11})/i,
        );
        if (e && e[1]) return e[1];
      },
      h = function (t) {
        var n, e, i;
        void 0 !== window.onYouTubeIframeAPIReady
          ? ((n = window.onYouTubeIframeAPIReady),
            (window.onYouTubeIframeAPIReady = function (e) {
              (t(e), n(e));
            }))
          : (((e = document.createElement("script")).src =
              "https://www.youtube.com/iframe_api"),
            (i =
              document.getElementsByTagName(
                "script",
              )[0]).parentNode.insertBefore(e, i),
            (window.onYouTubeIframeAPIReady = t));
      },
      i = {
        highres: "2160p",
        hd2160: "2160p",
        hd1440: "1440p",
        hd1080: "1080p",
        hd720: "720p",
        large: "480p",
        medium: "360p",
        small: "240p",
        tiny: "144p",
        auto: "Auto",
      },
      g = 0,
      m =
        (m = window.location.href.match(/http[s]?:\/\/[^\/]+/)) &&
        void 0 !== m[0]
          ? m[0]
          : void 0;
    return t;
  })(H5P.jQuery)),
  (H5P.videoHandlers = H5P.videoHandlers || []),
  H5P.videoHandlers.push(
    H5P.VideoYouTube,
  ) /*!@license H5P.Video-1.6/scripts/panopto.js by Joubel licensed under MIT*/,
  (H5P.VideoPanopto = (function (e) {
    function t(n, i, r) {
      var o,
        a = this;
      a.volume = 100;
      let s;
      var c = "h5p-panopto-" + v;
      v++;
      let l = !1;
      var u = e("<div/>"),
        d = e("<div/>", {
          id: c,
          html: "<div>" + r.loading + "</div>",
        }).appendTo(u);
      try {
        !1 !== document.featurePolicy.allowsFeature("autoplay") && (s = !0);
      } catch (e) {}
      let p = !s;
      var f = function () {
        var e, t;
        d.is(":visible") &&
          void 0 === o &&
          (void 0 !== window.EmbedApi
            ? ((e = u.width()) < 200 && (e = 200),
              (t = g(n[0].path)),
              (o = new EmbedApi(c, {
                width: e,
                height: e * (9 / 16),
                serverName: t[0],
                sessionId: t[1],
                videoParams: {
                  interactivity: "none",
                  showtitle: !1,
                  autohide: !0,
                  offerviewer: !1,
                  autoplay: !1,
                  showbrand: !1,
                  start: 0,
                  hideoverlay: !i.controls,
                },
                events: {
                  onIframeReady: function () {
                    ((l = !0),
                      d.children(0).text(""),
                      s && o.loadVideo(),
                      a.trigger("containerLoaded"),
                      a.trigger("resize"));
                  },
                  onReady: function () {
                    if ((a.trigger("loaded"), o.hasCaptions())) {
                      const t = [];
                      var e = o.getCaptionTracks();
                      for (trackIndex in e)
                        t.push(
                          new H5P.Video.LabelValue(e[trackIndex], trackIndex),
                        );
                      ((h = o.getSelectedCaptionTrack()),
                        (h = t[h] || null),
                        a.trigger("captions", t));
                    }
                    p || a.pause();
                  },
                  onStateChange: function (e) {
                    -1 < e && e < 4 && a.trigger("stateChange", e);
                  },
                  onPlaybackRateChange: function () {
                    a.trigger("playbackRateChange", a.getPlaybackRate());
                  },
                  onError: function (e) {
                    e === ApiError.PlayWithSoundNotAllowed
                      ? setTimeout(function () {
                          a.unMute();
                        }, 10)
                      : a.trigger("error", r.unknownError);
                  },
                  onLoginShown: function () {
                    (d.children().first().remove(), a.trigger("loaded"));
                  },
                },
              })))
            : m(f));
      };
      ((a.pressToPlay = !0),
        (a.appendTo = function (e) {
          (e.addClass("h5p-panopto").append(u), f());
        }),
        (a.getQualities = function () {}),
        (a.getQuality = function () {}),
        (a.setQuality = function (e) {}),
        (a.play = function () {
          ((p = !0), o && o.playVideo && o.playVideo());
        }),
        (a.pause = function () {
          if (((p = !1), o && o.pauseVideo))
            try {
              o.pauseVideo();
            } catch (e) {}
        }),
        (a.seek = function (e) {
          o && o.seekTo && o.seekTo(e);
        }),
        (a.getCurrentTime = function () {
          if (o && o.getCurrentTime) return o.getCurrentTime();
        }),
        (a.getDuration = function () {
          if (o && o.getDuration) return o.getDuration();
        }),
        (a.getBuffered = function () {}),
        (a.mute = function () {
          o && o.muteVideo && o.muteVideo();
        }),
        (a.unMute = function () {
          o && o.unmuteVideo && (o.unmuteVideo(), a.setVolume(a.volume));
        }),
        (a.isMuted = function () {
          if (o && o.isMuted) return o.isMuted();
        }),
        (a.isLoaded = function () {
          return l;
        }),
        (a.getVolume = function () {
          if (o && o.getVolume) return 100 * o.getVolume();
        }),
        (a.setVolume = function (e) {
          o && o.setVolume && (o.setVolume(e / 100), (a.volume = e));
        }),
        (a.getPlaybackRates = function () {
          return [0.25, 0.5, 1, 1.25, 1.5, 2];
        }),
        (a.getPlaybackRate = function () {
          if (o && o.getPlaybackRate) return o.getPlaybackRate();
        }),
        (a.setPlaybackRate = function (e) {
          o && o.setPlaybackRate && o.setPlaybackRate(e);
        }),
        (a.setCaptionsTrack = function (e) {
          h = e
            ? (o.enableCaptions(e.value + ""), e)
            : (o.disableCaptions(), null);
        }),
        (a.getCaptionsTrack = function () {
          return h;
        }),
        a.on("resize", function () {
          if (u.is(":visible"))
            if (o) {
              u.css({ width: "100%", height: "100%" });
              var e = u[0].clientWidth,
                t = i.fit ? u[0].clientHeight : e * (9 / 16);
              u.css({ width: e + "px", height: t + "px" });
              const n = d.children("iframe");
              n.length && (n.attr("width", e), n.attr("height", t));
            } else f();
        }));
      let h;
    }
    t.canPlay = function (e) {
      return g(e[0].path);
    };
    var g = function (e) {
        e = e.match(
          /^[^\/]+:\/\/([^\/]*panopto\.[^\/]+)\/Panopto\/.+\?id=(.+)$/,
        );
        if (e && 3 === e.length) return [e[1], e[2]];
      },
      m = function (t) {
        var n, e, i;
        void 0 !== window.onPanoptoEmbedApiReady
          ? ((n = window.onPanoptoEmbedApiReady),
            (window.onPanoptoEmbedApiReady = function (e) {
              (t(e), n(e));
            }))
          : (((e = document.createElement("script")).src =
              "https://developers.panopto.com/scripts/embedapi.min.js"),
            (i =
              document.getElementsByTagName(
                "script",
              )[0]).parentNode.insertBefore(e, i),
            (window.onPanoptoEmbedApiReady = t));
      },
      v = 0;
    return t;
  })(H5P.jQuery)),
  (H5P.videoHandlers = H5P.videoHandlers || []),
  H5P.videoHandlers.push(
    H5P.VideoPanopto,
  ) /*!@license H5P.Video-1.6/scripts/html5.js by Joubel licensed under MIT*/,
  (H5P.VideoHtml5 = (function (x) {
    function e(e, r, n) {
      var o = this;
      function t() {
        var e, t;
        void 0 !== b[u] &&
          (void 0 !== H5P.setSource
            ? H5P.setSource(v, b[u].source, o.contentId)
            : ((e = H5P.getPath(b[u].source.path, o.contentId)),
              void 0 !== H5P.getCrossOrigin &&
                ((t = H5P.getCrossOrigin(e)),
                v.setAttribute("crossorigin", null !== t ? t : "anonymous")),
              (v.src = e)),
          r.poster && (v.poster = i(r.poster)),
          r.tracks.forEach(function (e, t) {
            e = a(e);
            (0 === t && (e.default = !0), e && v.appendChild(e));
          }));
      }
      const i = function (e) {
          let t = H5P.getPath(e.path, o.contentId);
          return (
            null !== v.crossOrigin &&
              H5P.addQueryParameter &&
              H5PIntegration.crossoriginCacheBuster &&
              (t = H5P.addQueryParameter(
                t,
                H5PIntegration.crossoriginCacheBuster,
              )),
            t
          );
        },
        a = function (e) {
          if (e.kind && e.track.path) {
            var t = document.createElement("track");
            return (
              (t.kind = e.kind),
              (t.src = i(e.track)),
              e.label && (t.label = e.label),
              e.srcLang && (t.srcLang = e.srcLang),
              t
            );
          }
        };
      var s,
        c,
        l,
        u,
        d,
        p = x("<div/>", { class: "h5p-video-loading" }),
        f = x("<div/>", { class: "h5p-video-error" }),
        h = !1,
        g = 1,
        m = !1,
        v = document.createElement("video"),
        b = H(e, v);
      for (d in ((numQualities = 0), b)) numQualities++;
      if (1 < numQualities && void 0 !== H5P.VideoHtml5.getExternalQuality)
        H5P.VideoHtml5.getExternalQuality(e, function (e) {
          (void 0 !== b[e] && (u = e), t());
        });
      else {
        if (void 0 === (u = T()) || void 0 === b[u])
          for (u in b) if (b.hasOwnProperty(u)) break;
        t();
      }
      (v.setAttribute("webkit-playsinline", ""),
        v.setAttribute("playsinline", ""),
        v.setAttribute("preload", "metadata"));
      let y = "nodownload";
      (r.disableFullscreen && (y += " nofullscreen"),
        r.disableRemotePlayback && (y += " noremoteplayback"),
        v.setAttribute("controlsList", y),
        (v.disablePictureInPicture = !0),
        (v.disableRemotePlayback = !!r.disableRemotePlayback),
        (v.controls = !!r.controls),
        (v.autoplay = !1),
        (v.loop = !!r.loop),
        (v.className = "h5p-video"),
        (v.style.display = "block"),
        r.fit && ((v.style.width = "100%"), (v.style.height = "100%")));
      function w(e, n, i) {
        v.addEventListener(
          e,
          function () {
            switch (n) {
              case "stateChange":
                if (l === i) return;
                var e = r.startAt && 0 < r.startAt;
                i === H5P.Video.PLAYING &&
                  e &&
                  ((v.currentTime = r.startAt), delete r.startAt);
                break;
              case "loaded":
                if (((h = !0), void 0 !== s)) return;
                if ((f.is(":visible") && f.remove(), S)) {
                  var t = function () {
                    (v.removeEventListener("durationchange", t, !1),
                      o.trigger(n));
                  };
                  return void v.addEventListener("durationchange", t, !1);
                }
                break;
              case "error":
                i = P(arguments[0], arguments[1]);
                break;
              case "playbackRateChange":
                if (m) return void (m = !1);
                if (H5P.Video.IE11_PLAYBACK_RATE_FIX && g != v.playbackRate)
                  return ((v.playbackRate = g), void (m = !0));
                i = o.getPlaybackRate();
            }
            o.trigger(n, i);
          },
          !1,
        );
      }
      var P = function (e, t) {
        if (e instanceof Event) {
          if (!e.target.error) return "";
          switch (e.target.error.code) {
            case MediaError.MEDIA_ERR_ABORTED:
              t = n.aborted;
              break;
            case MediaError.MEDIA_ERR_NETWORK:
              t = n.networkFailure;
              break;
            case MediaError.MEDIA_ERR_DECODE:
              t = n.cannotDecode;
              break;
            case MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:
              t = n.formatNotSupported;
              break;
            case MediaError.MEDIA_ERR_ENCRYPTED:
              t = n.mediaEncrypted;
          }
        }
        return (
          (t = t || n.unknownError),
          p.remove(),
          f.text(t).insertAfter(v),
          t
        );
      };
      ((o.appendTo = function (e) {
        e.append(v);
      }),
        (o.getQualities = function () {
          var e,
            t = [];
          for (e in b)
            b.hasOwnProperty(e) &&
              t.splice(0, 0, { name: e, label: b[e].label });
          if (!(t.length < 2)) return t;
        }),
        (o.getQuality = function () {
          return u;
        }),
        (o.setQuality = function (e) {
          var t;
          void 0 !== b[e] &&
            e !== u &&
            (C(e),
            s ||
              ((s = l),
              (c = v.currentTime),
              v.addEventListener(
                "loadedmetadata",
                (t = function () {
                  var e;
                  (v.removeEventListener("loadedmetadata", t, !1),
                    S
                      ? v.addEventListener(
                          "durationchange",
                          (e = function () {
                            (v.removeEventListener("durationchange", e, !1),
                              o.seek(c));
                          }),
                          !1,
                        )
                      : o.seek(c),
                    v.play(),
                    s !== H5P.Video.PLAYING && v.pause(),
                    (s = void 0),
                    f.is(":visible") && f.remove());
                }),
                !1,
              )),
            (u = e),
            o.trigger("qualityChange", u),
            o.trigger("stateChange", H5P.Video.BUFFERING),
            (v.src = i(b[e].source)),
            v.removeAttribute("poster"));
        }),
        (o.play = function () {
          if (!f.is(":visible")) return (h || v.load(), v.play());
        }),
        (o.pause = function () {
          v.pause();
        }),
        (o.seek = function (e) {
          (void 0 === l && (v.play(), v.pause()), (v.currentTime = e));
        }),
        (o.getCurrentTime = function () {
          return v.currentTime;
        }),
        (o.getDuration = function () {
          if (!isNaN(v.duration)) return v.duration;
        }),
        (o.getBuffered = function () {
          for (var e = 0, t = 0; t < v.buffered.length; t++) {
            var n = v.buffered.start(t),
              i = v.buffered.end(t);
            if (v.currentTime > n && v.currentTime < i) {
              e = i;
              break;
            }
          }
          return e ? (e / v.duration) * 100 : 0;
        }),
        (o.mute = function () {
          v.muted = !0;
        }),
        (o.unMute = function () {
          v.muted = !1;
        }),
        (o.isMuted = function () {
          return v.muted;
        }),
        (o.getVolume = function () {
          return 100 * v.volume;
        }),
        (o.setVolume = function (e) {
          v.volume = e / 100;
        }),
        (o.getPlaybackRates = function () {
          return E;
        }),
        (o.getPlaybackRate = function () {
          return v.playbackRate;
        }),
        (o.setPlaybackRate = function (e) {
          ((g = e), (v.playbackRate = e));
        }),
        (o.setCaptionsTrack = function (e) {
          for (var t = 0; t < v.textTracks.length; t++)
            v.textTracks[t].mode = e && e.value === t ? "showing" : "disabled";
        }),
        (o.getCaptionsTrack = function () {
          for (var e = 0; e < v.textTracks.length; e++)
            if ("showing" === v.textTracks[e].mode)
              return new H5P.Video.LabelValue(v.textTracks[e].label, e);
          return null;
        }),
        w("ended", "stateChange", H5P.Video.ENDED),
        w("playing", "stateChange", H5P.Video.PLAYING),
        w("pause", "stateChange", H5P.Video.PAUSED),
        w("waiting", "stateChange", H5P.Video.BUFFERING),
        w("loadedmetadata", "loaded"),
        w("canplay", "canplay"),
        w("error", "error"),
        w("ratechange", "playbackRateChange"),
        v.controls ||
          v.addEventListener(
            "contextmenu",
            function (e) {
              e.preventDefault();
            },
            !1,
          ),
        o.on("stateChange", function (e) {
          e = e.data;
          (l = e) === H5P.Video.BUFFERING ? p.insertAfter(v) : p.remove();
        }),
        o.on("loaded", function () {
          k(function () {
            for (var e = [], t = 0; t < v.textTracks.length; t++)
              e.push(new H5P.Video.LabelValue(v.textTracks[t].label, t));
            e.length && o.trigger("captions", e);
          });
        }),
        k(function () {
          o.trigger("ready");
        }),
        (o.isLoaded = function () {
          return h;
        }));
    }
    var t,
      c = function (e) {
        var t,
          n = e.mime;
        return (
          n ||
            ((t = e.path.match(/\.(\w+)$/)) && t[1] && (n = "video/" + t[1])),
          n && e.codecs && (n += '; codecs="' + e.codecs + '"'),
          n
        );
      },
      H = function (e, t) {
        for (var n = {}, i = 1, r = 0; r < e.length; r++) {
          var o,
            a = e[r],
            s = (a.type = c(a));
          s &&
            ("video/unknown" === s || "" !== t.canPlayType(s)) &&
            (void 0 === a.quality &&
              (void 0 === o || n[o].source.type === s
                ? ((a.quality = {
                    name: "q" + i,
                    label:
                      a.metadata && a.metadata.qualityName
                        ? a.metadata.qualityName
                        : "Quality " + i,
                  }),
                  i++)
                : (a.quality = n[o].source.quality)),
            (s = n[(o = a.quality.name)])
              ? a.mime.split("/")[1] === l && (s.source = a)
              : (n[a.quality.name] = { label: a.quality.label, source: a }));
        }
        return n;
      },
      C = function (e) {
        try {
          localStorage.setItem("h5pVideoQuality", e);
        } catch (e) {
          console.warn(
            "Unable to set preferred video quality, localStorage is not available.",
          );
        }
      },
      T = function () {
        let e;
        try {
          e = localStorage.getItem("h5pVideoQuality");
        } catch (e) {
          console.warn(
            "Unable to retrieve preferred video quality from localStorage.",
          );
        }
        if (!e)
          try {
            for (var t = document.cookie.split(";"), n = 0; n < t.length; n++) {
              var i = t[n].split("=");
              if ("H5PVideoQuality" === i[0]) {
                e = i[1];
                break;
              }
            }
          } catch (e) {
            console.warn(
              "Unable to retrieve preferred video quality from cookie.",
            );
          }
        return e;
      },
      k = function (e) {
        setTimeout(e, 0);
      },
      S = !(e.canPlay = function (e) {
        var t = document.createElement("video");
        if (void 0 === t.canPlayType) return !1;
        for (var n = 0; n < e.length; n++) {
          var i = c(e[n]);
          if (i && "" !== t.canPlayType(i)) return !0;
        }
        return !1;
      }),
      l = "mp4",
      E = [0.25, 0.5, 1, 1.25, 1.5, 2];
    return (
      -1 !== navigator.userAgent.indexOf("Android")
        ? (t = navigator.userAgent.match(/AppleWebKit\/(\d+\.?\d*)/)) &&
          t[1] &&
          Number(t[1]) <= 534.3 &&
          (S = !0)
        : -1 !== navigator.userAgent.indexOf("Chrome") && (l = "webm"),
      e
    );
  })(H5P.jQuery)),
  (H5P.videoHandlers = H5P.videoHandlers || []),
  H5P.videoHandlers.push(
    H5P.VideoHtml5,
  ) /*!@license H5P.Video-1.6/scripts/video.js by Joubel licensed under MIT*/,
  (H5P.Video = (function (d, p) {
    function f(n, e) {
      var i = this;
      ((i.contentId = e), (i.pressToPlay = !1));
      var t = "";
      (H5P.EventDispatcher.call(i),
        ((n = d.extend(!0, n, {
          l10n: {
            name: "Video",
            loading: "Video player loading...",
            noPlayers:
              "Found no video players that supports the given video format.",
            noSources: "Video source is missing.",
            aborted: "Media playback has been aborted.",
            networkFailure: "Network failure.",
            cannotDecode: "Unable to decode media.",
            formatNotSupported: "Video format not supported.",
            mediaEncrypted: "Media encrypted.",
            unknownError: "Unknown error.",
            vimeoPasswordError:
              "Password-protected Vimeo videos are not supported.",
            vimeoPrivacyError:
              "The Vimeo video cannot be used due to its privacy settings.",
            vimeoLoadingError: "The Vimeo video could not be loaded.",
            invalidYtId: "Invalid YouTube ID.",
            unknownYtId: "Unable to find video with the given YouTube ID.",
            restrictedYt:
              "The owner of this video does not allow it to be embedded.",
          },
        })).a11y = n.a11y || []),
        (n.playback = n.playback || {}),
        (n.visuals = d.extend(!0, n.visuals, { disableFullscreen: !1 })));
      var r = [];
      if (n.sources)
        for (var o = 0; o < n.sources.length; o++) {
          var a = d.extend(!0, {}, n.sources[o]);
          ((a.path = h.html(a.path).text()), r.push(a));
        }
      var s = [];
      n.a11y.forEach(function (e) {
        e = d.extend(!0, {}, e);
        e.track &&
          e.track.path &&
          ((e.track.path = h.html(e.track.path).text()), s.push(e));
      });
      if (
        ((i.attach = function (e) {
          (e.addClass("h5p-video").html(""),
            void 0 !== i.appendTo
              ? (i.appendTo(e),
                void 0 === window.H5PEditor &&
                  (function (e) {
                    let t;
                    (i.on("stateChange", function (e) {
                      t = e.data;
                    }),
                      (i.autoPaused = !i.pressToPlay),
                      new IntersectionObserver(
                        function (e) {
                          e[0].isIntersecting
                            ? n.playback.autoplay &&
                              i.autoPaused &&
                              ((i.autoPaused = !1), i.play())
                            : t !== f.PAUSED &&
                              ((i.autoPaused = !0), i.pause());
                        },
                        { root: null, threshold: [0, 1] },
                      ).observe(e.get(0)));
                  })(e))
              : r.length
                ? e.text(n.l10n.noPlayers)
                : e.text(n.l10n.noSources));
        }),
        (i.getHandlerName = function () {
          return t;
        }),
        i.on("loaded", function () {
          i.trigger("resize");
        }),
        r.length)
      ) {
        for (
          var c,
            l = {
              controls: n.visuals.controls,
              autoplay: !1,
              loop: n.playback.loop,
              fit: n.visuals.fit,
              poster: void 0 === n.visuals.poster ? void 0 : n.visuals.poster,
              startAt: n.startAt || 0,
              tracks: s,
              disableRemotePlayback: !0 === n.visuals.disableRemotePlayback,
              disableFullscreen: !0 === n.visuals.disableFullscreen,
            },
            o = 0;
          o < p.length;
          o++
        ) {
          var u = p[o];
          if (void 0 !== u.canPlay && u.canPlay(r))
            return (u.call(i, r, l, n.l10n), void (t = u.name));
          u === H5P.VideoHtml5 && (t = (c = u).name);
        }
        c && c.call(i, r, l, n.l10n);
      }
    }
    ((((f.prototype = Object.create(
      H5P.EventDispatcher.prototype,
    )).constructor = f).ENDED = 0),
      (f.PLAYING = 1),
      (f.PAUSED = 2),
      (f.BUFFERING = 3),
      (f.VIDEO_CUED = 5));
    var h = H5P.jQuery("<div/>");
    return (
      (f.LabelValue = function (e, t) {
        ((this.label = e), (this.value = t));
      }),
      (f.IE11_PLAYBACK_RATE_FIX =
        !!navigator.userAgent.match(/Trident.*rv[ :]*11\./)),
      f
    );
  })(
    H5P.jQuery,
    (H5P.ContentCopyrights, H5P.MediaCopyright, H5P.videoHandlers || []),
  )),
  /*!@license H5P.QuestionSet-1.20/js/questionset.js by Joubel licensed under MIT*/ ((H5P =
    H5P || {}).QuestionSet = function (e, l, o) {
    if (!(this instanceof H5P.QuestionSet)) return new H5P.QuestionSet(e, l, o);
    H5P.EventDispatcher.call(this);
    var u = H5P.jQuery,
      d = this;
    this.contentId = l;
    var t = {
      initialQuestion: 0,
      progressType: "dots",
      passPercentage: 50,
      questions: [],
      introPage: {
        showIntroPage: !1,
        title: "",
        introduction: "",
        startButtonText: "Start",
      },
      texts: {
        prevButton: "Previous question",
        nextButton: "Next question",
        finishButton: "Finish",
        submitButton: "Submit",
        textualProgress: "Question: @current of @total questions",
        jumpToQuestion: "Question %d of %total",
        questionLabel: "Question",
        readSpeakerProgress: "Question @current of @total",
        unansweredText: "Unanswered",
        answeredText: "Answered",
        currentQuestionText: "Current question",
        navigationLabel: "Questions",
      },
      endGame: {
        showResultPage: !0,
        noResultMessage: "Finished",
        message: "Your result:",
        scoreBarLabel: "You got @finals out of @totals points",
        oldFeedback: {
          successGreeting: "",
          successComment: "",
          failGreeting: "",
          failComment: "",
        },
        overallFeedback: [],
        finishButtonText: "Finish",
        submitButtonText: "Submit",
        solutionButtonText: "Show solution",
        retryButtonText: "Retry",
        showAnimations: !1,
        skipButtonText: "Skip video",
        showSolutionButton: !0,
        showRetryButton: !0,
      },
      override: {},
      disableBackwardsNavigation: !1,
    };
    this.isSubmitting = o && (o.isScoringEnabled || o.isReportingEnabled);
    var p,
      f,
      a,
      h = u.extend(!0, {}, t, e),
      i = u.extend(!0, {}, t, e),
      r = 0,
      c = [],
      s = !1,
      g = !1;
    (o = o || {}).previousState &&
      (o.previousState.progress && (r = o.previousState.progress),
      (x = o.previousState.order));
    var m,
      v = function (e) {
        var t = e.map(function (e, t) {
            return [e, t];
          }),
          t = H5P.shuffleArray(t);
        e = [];
        for (var n = 0; n < t.length; n++) e[n] = t[n][0];
        for (var i = [], r = 0; r < t.length; r++)
          o.previousState && o.previousState.questionOrder
            ? (i[r] = x[t[r][1]])
            : (i[r] = t[r][1]);
        return { questions: e, questionOrder: i };
      };
    if (0 < h.poolSize)
      if (o.previousState && o.previousState.poolOrder) {
        for (
          var b = o.previousState.poolOrder, n = [], y = 0;
          y < b.length;
          y++
        )
          n[y] = h.questions[b[y]];
        h.questions = n;
      } else {
        var e = v(h.questions),
          w = e.questions;
        ((b = e.questionOrder),
          (w = w.slice(0, h.poolSize)),
          (b = b.slice(0, h.poolSize)),
          (h.questions = w));
      }
    (h.override.showSolutionButton ||
      h.override.retryButton ||
      !1 === h.override.checkButton) &&
      ((m = {}),
      h.override.showSolutionButton &&
        (m.enableSolutionsButton = "on" === h.override.showSolutionButton),
      h.override.retryButton &&
        (m.enableRetry = "on" === h.override.retryButton),
      !1 === h.override.checkButton &&
        (m.enableCheckButton = h.override.checkButton));
    function P(e) {
      for (var t = [], n = 0; n < e.length; n++) {
        var i = void 0 !== x ? e[x[n]] : e[n];
        (m && u.extend(i.params.behaviour, m), (i.params = i.params || {}));
        var r = o.previousState && o.previousState.answers,
          r = H5P.newRunnable(i, l, void 0, void 0, {
            previousState: r ? o.previousState.answers[n] : void 0,
            parent: d,
          });
        (r.on("resize", function () {
          ((a = !0), d.trigger("resize"));
        }),
          t.push(r));
      }
      return t;
    }
    var x;
    if (
      ((c = P(h.questions)),
      (h.noOfQuestionAnswered = 0),
      o.previousState && o.previousState.answers)
    )
      for (y = 0; y < c.length; y++)
        c[y].getAnswerGiven() && h.noOfQuestionAnswered++;
    ((d.$introPage = ""),
      h.introPage.showIntroPage &&
        0 === h.noOfQuestionAnswered &&
        ((d.$introPage = u("<div>", { class: "intro-page" })),
        h.introPage.title &&
          u("<div>", {
            class: "title",
            html: "<h1>" + h.introPage.title + "</h1>",
            appendTo: d.$introPage,
          }),
        h.introPage.introduction &&
          u("<div>", {
            class: "introduction",
            html: h.introPage.introduction,
            appendTo: d.$introPage,
          }),
        (d.$introButtonsContainer = u("<div>", {
          class: "buttons",
          appendTo: d.$introPage,
        })),
        u("<button>", {
          class: "qs-startbutton h5p-joubelui-button h5p-button",
          html: h.introPage.startButtonText,
          appendTo: d.$introButtonsContainer,
        })),
      (d.$progressAnnouncer = u("<div>", {
        class: "qs-progress-announcer",
        tabindex: "-1",
      })),
      (d.$questionsContainer = u("<div>", {
        class:
          "questionset " +
          (h.introPage.showIntroPage && 0 === h.noOfQuestionAnswered
            ? "hidden"
            : ""),
      })));
    for (let e = 0; e < h.questions.length; e++)
      u("<div>", {
        class: "question-container",
        appendTo: d.$questionsContainer,
      });
    if (
      ((d.$footer = u("<div>", {
        class: "qs-footer",
        appendTo: d.$questionsContainer,
      })),
      (d.$progressBar = u("<div>", {
        class: "qs-progress",
        role: "navigation",
        "aria-label": h.texts.navigationLabel,
        appendTo: d.$footer,
      })),
      "dots" == h.progressType)
    ) {
      d.$dotsContainer = u("<ul>", {
        class: "dots-container",
        appendTo: d.$progressBar,
      });
      for (let e = 0; e < h.questions.length; e++)
        u("<li>", {
          class: "progress-item",
          html:
            '<a href="#" class= "progress-dot unanswered ' +
            (h.disableBackwardsNavigation ? "disabled" : "") +
            '" aria-label="' +
            h.texts.jumpToQuestion
              .replace("%d", e + 1)
              .replace("%total", h.questions.length) +
            ", " +
            h.texts.unansweredText +
            '" tabindex="-1" ' +
            (h.disableBackwardsNavigation ? 'aria-disabled="true"' : "") +
            "></a>",
          appendTo: d.$dotsContainer,
        });
    } else
      "textual" == h.progressType &&
        u("<span>", { class: "progress-text", appendTo: d.$progressBar });
    (h.randomQuestions &&
      void 0 === o.previousState &&
      ((w = v(c)), (c = w.questions), (x = w.questionOrder)),
      d.on("resize", function () {
        if (a) a = !1;
        else for (var e = 0; e < c.length; e++) c[e].trigger("resize");
      }));
    var H = function () {
        h.disableBackwardsNavigation &&
          (c[r].getAnswerGiven() && c.length - 1 !== r
            ? c[r].showButton("next")
            : c[r].hideButton("next"));
        for (var e = !0, t = c.length - 1; 0 <= t; t--)
          e = e && c[t].getAnswerGiven();
        r === h.questions.length - 1 &&
          c[r] &&
          (e ? c[r].showButton("finish") : c[r].hideButton("finish"));
      },
      C = function (e, t) {
        var n, i;
        return (
          (e = e < 0 ? 0 : e) >= h.questions.length &&
            (e = h.questions.length - 1),
          (r = e),
          u(".question-container", p).hide().eq(e).show(),
          c[e] &&
            ((n = c[e]).setActivityStarted(),
            void 0 !== n.$ && n.trigger("resize")),
          "textual" === h.progressType
            ? u(".progress-text", p).text(
                h.texts.textualProgress
                  .replace("@current", e + 1)
                  .replace("@total", h.questions.length),
              )
            : (0 <= (i = u(".progress-dot.current", p).parent().index()) &&
                (q(i, !1), D(i, c[i].getAnswerGiven())),
              q(e, !0)),
          t ||
            setTimeout(function () {
              var e = h.texts.readSpeakerProgress
                .replace("@current", (r + 1).toString())
                .replace("@total", c.length.toString());
              (u(".qs-progress-announcer", p).html(e).show().focus(),
                n && n.readFeedback && n.readFeedback());
            }, 0),
          H(),
          d.trigger("resize"),
          r
        );
      },
      T = function () {
        g = !0;
        for (var e = 0; e < c.length; e++) {
          (k(!0),
            e < c.length - 1 && c[e].showButton("next"),
            0 < e && c[e].showButton("prev"));
          try {
            (c[e].toggleReadSpeaker(!0),
              c[e].showSolutions(),
              c[e].toggleReadSpeaker(!1));
          } catch (e) {
            (H5P.error(
              "subcontent does not contain a valid showSolutions function",
            ),
              H5P.error(e));
          }
        }
      },
      k = function (e) {
        u(".progress-dot", p).each(function () {
          (u(this).toggleClass("disabled", !e),
            u(this).attr("aria-disabled", e ? "false" : "true"),
            e || u(this).attr("tabindex", "-1"));
        });
      },
      S = !(this.resetTask = function () {
        ((o.previousState = []), (g = !1));
        for (var e, t, n = 0; n < c.length; n++)
          try {
            (c[n].resetTask(),
              h.disableBackwardsNavigation &&
                (k(!1),
                0 === n && c[n].getAnswerGiven()
                  ? c[n].showButton("next")
                  : c[n].hideButton("next"),
                c[n].hideButton("prev")));
          } catch (e) {
            (H5P.error(
              "subcontent does not contain a valid resetTask function",
            ),
              H5P.error(e));
          }
        (c[c.length - 1].hideButton("finish"),
          u(".progress-dot").each(function (e) {
            D(e, !1);
          }),
          (S = !1),
          0 < h.poolSize
            ? ((t = (e = v(i.questions)).questions),
              (b = e.questionOrder),
              (t = t.slice(0, h.poolSize)),
              (b = b.slice(0, h.poolSize)),
              (h.questions = t),
              (c = P(h.questions)),
              B())
            : h.randomQuestions && E());
      });
    this.reRender = function () {
      S = !1;
    };
    var E = function () {
        var e = v(c);
        ((c = e.questions), (x = e.questionOrder), A(c));
      },
      A = function (e) {
        u(".question-container", p).each(function () {
          u(this).children().detach();
        });
        for (var t = 0; t < e.length; t++) {
          var n = e[t];
          (u(".question-container:eq(" + t + ")", p).attr(
            "class",
            "question-container",
          ),
            n.attach(u(".question-container:eq(" + t + ")", p)),
            e[e.length - 1] === n &&
              n.hasButton("finish") &&
              n.showButton("finish"),
            e[e.length - 1] !== n &&
              n.hasButton("next") &&
              n.showButton("next"),
            e[0] !== n &&
              n.hasButton("prev") &&
              !h.disableBackwardsNavigation &&
              n.showButton("prev"),
            e[0] === n && n.hideButton("prev"),
            e[e.length - 1] === n && n.hideButton("next"),
            e[e.length - 1] !== n && n.hideButton("finish"));
        }
      },
      I = function (e) {
        if (h.disableBackwardsNavigation && !c[r].getAnswerGiven())
          return (c[r].hideButton("next"), void c[r].hideButton("finish"));
        r + e >= c.length ? j() : C(r + e);
      },
      D = function (e, t) {
        var n = u(".progress-dot:eq(" + e + ")", p);
        n.hasClass("current") ||
          ((t = !!t),
          (e =
            h.texts.jumpToQuestion
              .replace("%d", (e + 1).toString())
              .replace("%total", u(".progress-dot", p).length) +
            ", " +
            (t ? h.texts.answeredText : h.texts.unansweredText)),
          n
            .toggleClass("unanswered", !t)
            .toggleClass("answered", t)
            .attr("aria-label", e));
      },
      q = function (e, t) {
        var n = u(".progress-dot:eq(" + e + ")", p),
          i = h.texts,
          e = i.jumpToQuestion
            .replace("%d", (e + 1).toString())
            .replace("%total", u(".progress-dot", p).length);
        e += t
          ? ", " + i.currentQuestionText
          : ", " + (n.hasClass("answered") ? i.answeredText : i.unansweredText);
        i = h.disableBackwardsNavigation && !g;
        n.toggleClass("current", t)
          .attr("aria-label", e)
          .attr("tabindex", t && !i ? 0 : -1);
      },
      j = function () {
        if ((u(".progress-dot.current", p).removeClass("current"), S))
          return (
            p.children().hide().filter(".questionset-results").show(),
            void d.trigger("resize")
          );
        (p.children().hide().filter(".questionset-results").remove(), (S = !0));
        function t(e, t) {
          u(e, p)
            .click(t)
            .keypress(function (e) {
              32 === e.which && (t(), e.preventDefault());
            });
        }
        function n() {
          d.triggerXAPICompleted(d.getScore(), d.getMaxScore(), a);
          var e = {
            message: h.endGame.showResultPage
              ? h.endGame.message
              : h.endGame.noResultMessage,
            comment: h.endGame.showResultPage
              ? a
                ? h.endGame.oldFeedback.successGreeting
                : h.endGame.oldFeedback.failGreeting
              : void 0,
            resulttext: h.endGame.showResultPage
              ? a
                ? h.endGame.oldFeedback.successComment
                : h.endGame.oldFeedback.failComment
              : void 0,
            finishButtonText: d.isSubmitting
              ? h.endGame.submitButtonText
              : h.endGame.finishButtonText,
            solutionButtonText: h.endGame.solutionButtonText,
            retryButtonText: h.endGame.retryButtonText,
          };
          ((d.$resultPage = u("<div>", { class: "questionset-results" })),
            u("<div>", {
              class: "greeting",
              html: e.message,
              appendTo: d.$resultPage,
            }),
            u("<div>", {
              class: "feedback-section",
              html: '<div class="feedback-scorebar"></div><div class="feedback-text"></div>',
              appendTo: d.$resultPage,
            }),
            h.comment &&
              u("<div>", {
                class: "result-header",
                html: e.comment,
                appendTo: d.$resultPage,
              }),
            h.resulttext &&
              u("<div>", {
                class: "result-text",
                html: e.resulttext,
                appendTo: d.$resultPage,
              }),
            (d.$buttonsContainer = u("<div>", {
              class: "buttons",
              appendTo: d.$resultPage,
            })),
            h.endGame.showSolutionButton &&
              u("<button>", {
                class: "h5p-joubelui-button h5p-button qs-solutionbutton",
                type: "button",
                html: e.solutionButtonText,
                appendTo: d.$buttonsContainer,
              }),
            h.endGame.showRetryButton &&
              u("<button>", {
                class: "h5p-joubelui-button h5p-button qs-retrybutton",
                type: "button",
                html: e.retryButtonText,
                appendTo: d.$buttonsContainer,
              }),
            p.children().hide(),
            p.append(d.$resultPage),
            h.endGame.showResultPage
              ? (t(".qs-solutionbutton", function () {
                  (T(),
                    p.children().hide().filter(".questionset").show(),
                    C(h.initialQuestion));
                }),
                t(".qs-retrybutton", function () {
                  (d.resetTask(),
                    p.children().hide(),
                    u(".intro-page", p).length
                      ? (u(".intro-page", p).show(),
                        u(".qs-startbutton", p).focus())
                      : (u(".questionset", p).show(), C(h.initialQuestion)));
                }),
                (f =
                  void 0 === f ? H5P.JoubelUI.createScoreBar(r) : f).appendTo(
                  u(".feedback-scorebar", p),
                ),
                u(".feedback-text", p).html(o),
                setTimeout(function () {
                  (u(".qs-progress-announcer", p)
                    .html(
                      e.message +
                        o +
                        "." +
                        h.endGame.scoreBarLabel
                          .replace("@finals", i)
                          .replace("@totals", r) +
                        "." +
                        e.comment +
                        "." +
                        e.resulttext,
                    )
                    .show()
                    .focus(),
                    f.setMaxScore(r),
                    f.setScore(i));
                }, 0))
              : u(
                  ".qs-solutionbutton, .qs-retrybutton, .feedback-section",
                  p,
                ).remove(),
            d.trigger("resize"));
        }
        var i = d.getScore(),
          r = d.getMaxScore(),
          o = H5P.Question.determineOverallFeedback(
            h.endGame.overallFeedback,
            i / r,
          )
            .replace("@score", i)
            .replace("@total", r),
          a = (100 * i) / r >= h.passPercentage;
        if (h.endGame.showAnimations) {
          var e = a ? h.endGame.successVideo : h.endGame.failVideo;
          if (e) {
            p.children().hide();
            var s = u('<div class="video-container"></div>').appendTo(p),
              c = new H5P.Video(
                { sources: e, fitToWrapper: !0, controls: !1, autoplay: !1 },
                l,
              );
            return (
              c.on("stateChange", function (e) {
                e.data === H5P.Video.ENDED && (n(), s.hide());
              }),
              c.attach(s),
              c.on("loaded", function () {
                d.trigger("resize");
              }),
              c.play(),
              void (
                h.endGame.skippable &&
                u(
                  '<a class="h5p-joubelui-button h5p-button skip">' +
                    h.endGame.skipButtonText +
                    "</a>",
                )
                  .click(function () {
                    (c.pause(), s.hide(), n());
                  })
                  .appendTo(s)
              )
            );
          }
        }
        (n(), d.trigger("resize"));
      },
      L = function (e) {
        H5P.on(e, "imageLoaded", function () {
          d.trigger("resize");
        });
      };
    function B() {
      for (var e = 0; e < c.length; e++) {
        var t = c[e];
        (u(".question-container:eq(" + e + ")", p).attr(
          "class",
          "question-container",
        ),
          t.attach(u(".question-container:eq(" + e + ")", p)),
          L(t));
        var n = d.isSubmitting ? h.texts.submitButton : h.texts.finishButton;
        (t.addButton("finish", n, I.bind(this, 1), !1),
          t.addButton(
            "next",
            "",
            I.bind(this, 1),
            !h.disableBackwardsNavigation || !!t.getAnswerGiven(),
            { href: "#", "aria-label": h.texts.nextButton },
          ),
          t.addButton(
            "prev",
            "",
            I.bind(this, -1),
            !(c[0] === t || h.disableBackwardsNavigation),
            { href: "#", "aria-label": h.texts.prevButton },
          ),
          c[c.length - 1] === t && t.hideButton("next"),
          t.on("xAPI", function (e) {
            var t = e.getVerb();
            (("interacted" !== t && "answered" !== t && "attempted" !== t) ||
              (D(r, c[r].getAnswerGiven()), H()),
              "completed" === t && e.setVerb("answered"),
              void 0 === e.data.statement.context.extensions &&
                (e.data.statement.context.extensions = {}),
              (e.data.statement.context.extensions[
                "http://id.tincanapi.com/extension/ending-point"
              ] = r + 1));
          }),
          D(e, t.getAnswerGiven()));
      }
    }
    ((this.attach = function (e) {
      var t, n;
      (this.isRoot() && this.setActivityStarted(),
        (p = u("string" == typeof e ? "#" + e : e)).children().remove(),
        p.append(d.$introPage, d.$progressAnnouncer, d.$questionsContainer),
        void 0 !== h.backgroundImage &&
          p.css({
            overflow: "hidden",
            background:
              '#fff url("' +
              H5P.getPath(h.backgroundImage.path, l) +
              '") no-repeat 50% 50%',
            backgroundSize: "100% auto",
          }),
        void 0 === h.introPage.backgroundImage ||
          ((t = p.find(".intro-page")).length &&
            ((e = (n = h.introPage.backgroundImage).height / n.width),
            t.css({
              background:
                '#fff url("' + H5P.getPath(n.path, l) + '") no-repeat 50% 50%',
              backgroundSize: "auto 100%",
              minHeight:
                e * +window.getComputedStyle(t[0]).width.replace("px", ""),
            }))),
        B(),
        u(".questionset", p).addClass("started"),
        u(".qs-startbutton", p)
          .click(function () {
            (u(this).parents(".intro-page").hide(),
              u(".questionset", p).show(),
              C(h.initialQuestion),
              event.preventDefault());
          })
          .keydown(function (e) {
            switch (e.which) {
              case 13:
              case 32:
                (u(this).parents(".intro-page").hide(),
                  u(".questionset", p).show(),
                  C(h.initialQuestion),
                  e.preventDefault());
            }
          }));
      function i(e) {
        (e.preventDefault(),
          (h.disableBackwardsNavigation && !g) || C(u(this).parent().index()));
      }
      return (
        u(".progress-dot", p)
          .click(i)
          .keydown(function (e) {
            var t = u(this);
            switch (e.which) {
              case 13:
              case 32:
                i.call(this, e);
                break;
              case 37:
              case 38:
                var n = t.parent().prev();
                n.length &&
                  (n.children("a").attr("tabindex", "0").focus(),
                  t.attr("tabindex", "-1"));
                break;
              case 39:
              case 40:
                n = t.parent().next();
                n.length &&
                  (n.children("a").attr("tabindex", "0").focus(),
                  t.attr("tabindex", "-1"));
            }
          }),
        C(r, !0),
        s && T(),
        H(),
        this.trigger("resize"),
        this
      );
    }),
      (this.getScore = function () {
        for (var e = 0, t = c.length - 1; 0 <= t; t--) e += c[t].getScore();
        return e;
      }),
      (this.getMaxScore = function () {
        for (var e = 0, t = c.length - 1; 0 <= t; t--) e += c[t].getMaxScore();
        return e;
      }),
      (this.totalScore = function () {
        return this.getMaxScore();
      }),
      (this.getCopyrights = function () {
        var e,
          t = new H5P.ContentCopyrights();
        (void 0 !== h.introPage &&
          void 0 !== h.introPage.backgroundImage &&
          void 0 !== h.introPage.backgroundImage.copyright &&
          ((e = new H5P.MediaCopyright(
            h.introPage.backgroundImage.copyright,
          )).setThumbnail(
            new H5P.Thumbnail(
              H5P.getPath(h.introPage.backgroundImage.path, l),
              h.introPage.backgroundImage.width,
              h.introPage.backgroundImage.height,
            ),
          ),
          t.addMedia(e)),
          void 0 !== h.backgroundImage &&
            void 0 !== h.backgroundImage.copyright &&
            ((e = new H5P.MediaCopyright(
              h.backgroundImage.copyright,
            )).setThumbnail(
              new H5P.Thumbnail(
                H5P.getPath(h.backgroundImage.path, l),
                h.backgroundImage.width,
                h.backgroundImage.height,
              ),
            ),
            t.addMedia(e)));
        for (var n, i = 0; i < c.length; i++) {
          var r = c[i],
            o = h.questions[i].params,
            a = void 0;
          void 0 === (a = void 0 !== r.getCopyrights ? r.getCopyrights() : a) &&
            ((a = new H5P.ContentCopyrights()),
            H5P.findCopyrights(a, o.params, l, {
              metadata: o.metadata,
              machineName: o.library.split(" ")[0],
            }));
          var s = h.texts.questionLabel + " " + (i + 1);
          (void 0 !== o.params.contentName
            ? (s += ": " + o.params.contentName)
            : void 0 !== r.getTitle && (s += ": " + r.getTitle()),
            a.setLabel(s),
            t.addContent(a));
        }
        return (
          void 0 !== h.endGame.successVideo &&
            0 < h.endGame.successVideo.length &&
            void 0 !== (n = h.endGame.successVideo[0]).copyright &&
            t.addMedia(new H5P.MediaCopyright(n.copyright)),
          void 0 !== h.endGame.failVideo &&
            0 < h.endGame.failVideo.length &&
            void 0 !== (n = h.endGame.failVideo[0]).copyright &&
            t.addMedia(new H5P.MediaCopyright(n.copyright)),
          t
        );
      }),
      (this.getQuestions = function () {
        return c;
      }),
      (this.showSolutions = function () {
        s = !0;
      }),
      (this.getCurrentState = function () {
        return {
          progress: g ? c.length - 1 : r,
          answers: c.map(function (e) {
            return e.getCurrentState();
          }),
          order: x,
          poolOrder: b,
        };
      }));
    var N = function () {
      var e = {
        interactionType: "compound",
        type: "http://adlnet.gov/expapi/activities/cmi.interaction",
        description: { "en-US": "" },
      };
      return e;
    };
    ((this.getXAPIData = function () {
      var e = this.createXAPIEventTemplate("answered");
      return (
        (function (e) {
          e = e.getVerifiedStatementValue(["object", "definition"]);
          u.extend(e, N());
        })(e),
        e.setScoredResult(
          this.getScore(),
          this.getMaxScore(),
          this,
          !0,
          this.getScore() === this.getMaxScore(),
        ),
        {
          statement: e.data.statement,
          children: this.getQuestions().map(function (e) {
            return e.getXAPIData();
          }),
        }
      );
    }),
      (this.getContext = function () {
        let e = { type: "question", value: r + 1 };
        return (h.randomQuestions && (e.actual = x[r] + 1), e);
      }));
  }),
  (H5P.QuestionSet.prototype = Object.create(H5P.EventDispatcher.prototype)),
  (H5P.QuestionSet.prototype.constructor = H5P.QuestionSet));
const realH5PGetPath = H5P.getPath;
H5P.getPath = function (e, t) {
  return e.startsWith("data:") ? e : realH5PGetPath(e, t);
};
H5P.getPath = function (t, n) {
  return t;
};
