H5PIntegration = {
  ajax: { setFinished: "", contentUserData: "" },
  ajaxPath: "/h5p/ajax?action=",
  contents: {
    "cid-2299536919": {
      displayOptions: {
        copy: false,
        copyright: false,
        embed: false,
        export: false,
        frame: false,
        icon: false,
      },
      fullScreen: "0",
      jsonContent:
        '{"taskDescription":"Βρείτε τα εφτά κρυμμένα υλικά.","wordList":"ΠΛΑΣΤΙΚΟ, ΓΥΑΛΙ, ΣΦΟΥΓΓΑΡΙ, ΛΑΣΤΙΧΟ, ΣΙΔΕΡΟ, ΠΗΛΟΣ, ΒΑΜΒΑΚΙ","behaviour":{"orientations":{"horizontal":true,"horizontalBack":false,"vertical":true,"verticalUp":false,"diagonal":false,"diagonalBack":false,"diagonalUp":false,"diagonalUpBack":false},"fillPool":"ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ","preferOverlap":true,"showVocabulary":true,"enableShowSolution":true,"enableRetry":true,"fillPool":"ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ"},"l10n":{"check":"Έλεγχος","tryAgain":"Επανάληψη","showSolution":"Εμφάνιση λύσης","found":"@found στα @totalWords βρέθηκαν","timeSpent":"Χρόνος","score":"Πήρατε @score/@total πόντους","wordListHeader":"Βρείτε τις λέξεις"}}',
      library: "H5P.FindTheWords 1.4",
      metadata: {
        license: "U",
        title: "Το κρυπτόλεξο της οικογένειας",
        defaultLanguage: "en",
      },
      scripts: [
        "/h5p/libraries/H5P.Timer-0.4/scripts/timer.js?version=0.4.2",
        "/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.FindTheWords-1.4/scripts/h5p-find-the-words.js?version=1.4.4",
        "/h5p/libraries/H5P.FindTheWords-1.4/scripts/h5p-find-the-words-word-grid.js?version=1.4.4",
        "/h5p/libraries/H5P.FindTheWords-1.4/scripts/h5p-find-the-words-vocabulary.js?version=1.4.4",
        "/h5p/libraries/H5P.FindTheWords-1.4/scripts/h5p-find-the-words-timer.js?version=1.4.4",
        "/h5p/libraries/H5P.FindTheWords-1.4/scripts/h5p-find-the-words-counter.js?version=1.4.4",
      ],
      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.FindTheWords-1.4/styles/h5p-find-the-words.css?version=1.4.4",
      ],
      url: "2299536919",
      exportUrl: "/h5p/download/2299536919",
    },
  },
  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-" + "2299536919"].displayOptions.embed = false;
} else {
  H5PIntegration.contents["cid-" + "2299536919"].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-" + "2299536919"].resizeCode = "";
}

!(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 (w, 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,
    y = i.hasOwnProperty,
    a = y.toString,
    l = a.call(Object),
    b = {},
    H = w.document,
    u = { type: !0, src: !0, nonce: !0, noModule: !0 };
  function P(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 = y.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) {
        P(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: b,
    }),
    "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() {
      w();
    }
    var e,
      f,
      P,
      o,
      r,
      h,
      g,
      m,
      x,
      c,
      l,
      w,
      H,
      a,
      C,
      v,
      s,
      u,
      y,
      T = "sizzle" + +new Date(),
      b = n.document,
      S = 0,
      E = 0,
      k = ce(),
      I = ce(),
      A = ce(),
      D = ce(),
      j = function (e, t) {
        return (e === t && (l = !0), 0);
      },
      L = {}.hasOwnProperty,
      t = [],
      N = t.pop,
      $ = t.push,
      M = t.push,
      O = t.slice,
      B = 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",
      z = "[\\x20\\t\\r\\n\\f]",
      q =
        "(?:\\\\[\\da-fA-F]{1,6}" +
        z +
        "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",
      R =
        "\\[" +
        z +
        "*(" +
        q +
        ")(?:" +
        z +
        "*([*^$|!~]?=)" +
        z +
        "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" +
        q +
        "))|)" +
        z +
        "*\\]",
      W =
        ":(" +
        q +
        ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" +
        R +
        ")*)|.*)\\)|)",
      V = new RegExp(z + "+", "g"),
      Q = new RegExp("^" + z + "+|((?:^|[^\\\\])(?:\\\\.)*)" + z + "+$", "g"),
      U = new RegExp("^" + z + "*," + z + "*"),
      _ = new RegExp("^" + z + "*([>+~]|" + z + ")" + z + "*"),
      G = new RegExp(z + "|>"),
      X = new RegExp(W),
      Y = new RegExp("^" + q + "$"),
      J = {
        ID: new RegExp("^#(" + q + ")"),
        CLASS: new RegExp("^\\.(" + q + ")"),
        TAG: new RegExp("^(" + q + "|[*])"),
        ATTR: new RegExp("^" + R),
        PSEUDO: new RegExp("^" + W),
        CHILD: new RegExp(
          "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" +
            z +
            "*(even|odd|(([+-]|)(\\d*)n|)" +
            z +
            "*(?:([+-]|)" +
            z +
            "*(\\d+)|))" +
            z +
            "*\\)|)",
          "i",
        ),
        bool: new RegExp("^(?:" + F + ")$", "i"),
        needsContext: new RegExp(
          "^" +
            z +
            "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
            z +
            "*((?:-\\d)?\\d*)" +
            z +
            "*\\)|)(?=[^-]|$)",
          "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}" + z + "?|\\\\([^\\r\\n\\f])", "g"),
      oe = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
      ae = ye(
        function (e) {
          return !0 === e.disabled && "fieldset" === e.nodeName.toLowerCase();
        },
        { dir: "parentNode", next: "legend" },
      );
    try {
      (M.apply((t = O.call(b.childNodes)), b.childNodes),
        t[b.childNodes.length].nodeType);
    } catch (e) {
      M = {
        apply: t.length
          ? function (e, t) {
              $.apply(e, O.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 && (w(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)) && y(t, o) && o.id === l)
              return (n.push(o), n);
          } else {
            if (s[2]) return (M.apply(n, t.getElementsByTagName(e)), n);
            if (
              (l = s[3]) &&
              f.getElementsByClassName &&
              t.getElementsByClassName
            )
              return (M.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 && (G.test(e) || _.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 (M.apply(n, u.querySelectorAll(l)), n);
          } catch (t) {
            D(e, !0);
          } finally {
            a === T && t.removeAttribute("id");
          }
        }
      }
      return m(e.replace(Q, "$1"), t, n, i);
    }
    function ce() {
      var i = [];
      return function e(t, n) {
        return (
          i.push(t + " ") > P.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--; ) P.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");
      }),
    (w = se.setDocument =
      function (e) {
        var t,
          e = e ? e.ownerDocument || e : b;
        return (
          e != H &&
            9 === e.nodeType &&
            e.documentElement &&
            ((a = (H = e).documentElement),
            (C = !r(H)),
            b != 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
              ? ((P.filter.ID = function (e) {
                  var t = e.replace(re, d);
                  return function (e) {
                    return e.getAttribute("id") === t;
                  };
                }),
                (P.find.ID = function (e, t) {
                  if (void 0 !== t.getElementById && C) {
                    e = t.getElementById(e);
                    return e ? [e] : [];
                  }
                }))
              : ((P.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;
                  };
                }),
                (P.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 [];
                  }
                })),
            (P.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;
                }),
            (P.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("[*^$]=" + z + "*(?:''|\"\")"),
                  e.querySelectorAll("[selected]").length ||
                    v.push("\\[" + z + "*(?:value|" + F + ")"),
                  e.querySelectorAll("[id~=" + T + "-]").length || v.push("~="),
                  (t = H.createElement("input")).setAttribute("name", ""),
                  e.appendChild(t),
                  e.querySelectorAll("[name='']").length ||
                    v.push("\\[" + z + "*name" + z + "*=" + z + "*(?:''|\"\")"),
                  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" + z + "*[*^$|!~]?="),
                  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("!=", W));
              }),
            (v = v.length && new RegExp(v.join("|"))),
            (s = s.length && new RegExp(s.join("|"))),
            (t = te.test(a.compareDocumentPosition)),
            (y =
              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;
                  }),
            (j = 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 == b && y(b, e))
                            ? -1
                            : t == H || (t.ownerDocument == b && y(b, t))
                              ? 1
                              : c
                                ? B(c, e) - B(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
                              ? B(c, e) - B(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] == b
                      ? -1
                      : s[i] == b
                        ? 1
                        : 0;
                })),
          H
        );
      }),
    (se.matches = function (e, t) {
      return se(e, null, null, t);
    }),
    (se.matchesSelector = function (e, t) {
      if (
        (w(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 && w(e), y(e, t));
    }),
    (se.attr = function (e, t) {
      (e.ownerDocument || e) != H && w(e);
      var n = P.attrHandle[t.toLowerCase()],
        n = n && L.call(P.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(j),
        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;
      }),
    ((P = 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 = k[e + " "];
            return (
              t ||
              ((t = new RegExp("(^|" + z + ")" + e + "(" + z + "|$)")) &&
                k(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(V, " ") + " ").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),
              y = "last" !== h.slice(-4),
              b = "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 != y ? "nextSibling" : "previousSibling",
                    u = e.parentNode,
                    d = b && e.nodeName.toLowerCase(),
                    p = !n && !b,
                    f = !1;
                  if (u) {
                    if (v) {
                      for (; l; ) {
                        for (a = e; (a = a[l]); )
                          if (
                            b
                              ? a.nodeName.toLowerCase() === d
                              : 1 === a.nodeType
                          )
                            return !1;
                        c = l = "only" === h && !c && "nextSibling";
                      }
                      return !0;
                    }
                    if (((c = [y ? u.firstChild : u.lastChild]), y && p)) {
                      for (
                        f =
                          (s =
                            (i =
                              (r =
                                (o = (a = u)[T] || (a[T] = {}))[a.uniqueID] ||
                                (o[a.uniqueID] = {}))[h] || [])[0] === S &&
                            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] = [S, s, f];
                          break;
                        }
                    } else if (
                      !1 ===
                      (f = p
                        ? (s =
                            (i =
                              (r =
                                (o = (a = e)[T] || (a[T] = {}))[a.uniqueID] ||
                                (o[a.uniqueID] = {}))[h] || [])[0] === S &&
                            i[1])
                        : f)
                    )
                      for (
                        ;
                        (a = (++s && a && a[l]) || (f = s = 0) || c.pop()) &&
                        ((b
                          ? a.nodeName.toLowerCase() !== d
                          : 1 !== a.nodeType) ||
                          !++f ||
                          (p &&
                            ((r =
                              (o = a[T] || (a[T] = {}))[a.uniqueID] ||
                              (o[a.uniqueID] = {}))[h] = [S, f]),
                          a !== e));

                      );
                    return (f -= m) === g || (f % g == 0 && 0 <= f / g);
                  }
                };
          },
          PSEUDO: function (e, o) {
            var t,
              a =
                P.pseudos[e] ||
                P.setFilters[e.toLowerCase()] ||
                se.error("unsupported pseudo: " + e);
            return a[T]
              ? a(o)
              : 1 < a.length
                ? ((t = [e, e, "", o]),
                  P.setFilters.hasOwnProperty(e.toLowerCase())
                    ? le(function (e, t) {
                        for (var n, i = a(e, o), r = i.length; r--; )
                          e[(n = B(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(Q, "$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 !P.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 = P.pseudos.eq),
    { radio: !0, checkbox: !0, file: !0, password: !0, image: !0 }))
      P.pseudos[e] = (function (t) {
        return function (e) {
          return "input" === e.nodeName.toLowerCase() && e.type === t;
        };
      })(e);
    for (e in { submit: !0, reset: !0 })
      P.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 ye(a, e, t) {
      var s = e.dir,
        c = e.next,
        l = c || s,
        u = t && "parentNode" === l,
        d = E++;
      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 = [S, 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] === S && r[1] === d)
                      return (o[2] = r[2]);
                    if (((i[l] = o)[2] = a(e, t, n))) return !0;
                  }
            return !1;
          };
    }
    function be(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 Pe(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 xe(e) {
      for (
        var i,
          t,
          n,
          r = e.length,
          o = P.relative[e[0].type],
          a = o || P.relative[" "],
          s = o ? 1 : 0,
          c = ye(
            function (e) {
              return e === i;
            },
            a,
            !0,
          ),
          l = ye(
            function (e) {
              return -1 < B(i, e);
            },
            a,
            !0,
          ),
          u = [
            function (e, t, n) {
              n = (!o && (n || t !== x)) || ((i = t).nodeType ? c : l)(e, t, n);
              return ((i = null), n);
            },
          ];
        s < r;
        s++
      )
        if ((t = P.relative[e[s].type])) u = [ye(be(u), t)];
        else {
          if ((t = P.filter[e[s].type].apply(null, e[s].matches))[T]) {
            for (n = ++s; n < r && !P.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 : Pe(u, s, f, n, i),
                    p = g ? (v || (e ? f : l || m) ? [] : t) : d;
                  if ((g && g(d, p, n, i), m))
                    for (r = Pe(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 ? B(e, a) : s[o]) &&
                          (e[r] = !(t[r] = a));
                    }
                  } else
                    ((p = Pe(p === t ? p.splice(l, p.length) : p)),
                      v ? v(null, t, p, i) : M.apply(t, p));
                })
              );
            })(
              1 < s && be(u),
              1 < s &&
                ve(
                  e
                    .slice(0, s - 1)
                    .concat({ value: " " === e[s - 2].type ? "*" : "" }),
                ).replace(Q, "$1"),
              t,
              s < n && xe(e.slice(s, n)),
              n < r && xe((e = e.slice(n))),
              n < r && ve(e),
            );
          }
          u.push(t);
        }
      return be(u);
    }
    return (
      (me.prototype = P.filters = P.pseudos),
      (P.setFilters = new me()),
      (h = se.tokenize =
        function (e, t) {
          var n,
            i,
            r,
            o,
            a,
            s,
            c,
            l = I[e + " "];
          if (l) return t ? 0 : l.slice(0);
          for (a = e, s = [], c = P.preFilter; a; ) {
            for (o in ((n && !(i = U.exec(a))) ||
              (i && (a = a.slice(i[0].length) || a), s.push((r = []))),
            (n = !1),
            (i = _.exec(a)) &&
              ((n = i.shift()),
              r.push({ value: n, type: i[0].replace(Q, " ") }),
              (a = a.slice(n.length))),
            P.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) : I(e, s).slice(0);
        }),
      (g = se.compile =
        function (e, t) {
          var n,
            m,
            v,
            y,
            b,
            i,
            r = [],
            o = [],
            a = A[e + " "];
          if (!a) {
            for (n = (t = t || h(e)).length; n--; )
              ((a = xe(t[n]))[T] ? r : o).push(a);
            (a = A(
              e,
              ((y = 0 < (v = r).length),
              (b = 0 < (m = o).length),
              (i = function (e, t, n, i, r) {
                var o,
                  a,
                  s,
                  c = 0,
                  l = "0",
                  u = e && [],
                  d = [],
                  p = x,
                  f = e || (b && P.find.TAG("*", r)),
                  h = (S += null == p ? 1 : Math.random() || 0.1),
                  g = f.length;
                for (
                  r && (x = t == H || t || r);
                  l !== g && null != (o = f[l]);
                  l++
                ) {
                  if (b && o) {
                    for (
                      a = 0, t || o.ownerDocument == H || (w(o), (n = !C));
                      (s = m[a++]);

                    )
                      if (s(o, t || H, n)) {
                        i.push(o);
                        break;
                      }
                    r && (S = h);
                  }
                  y && ((o = !s && o) && c--, e && u.push(o));
                }
                if (((c += l), y && 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] = N.call(i));
                    d = Pe(d);
                  }
                  (M.apply(i, d),
                    r &&
                      !e &&
                      0 < d.length &&
                      1 < c + v.length &&
                      se.uniqueSort(i));
                }
                return (r && ((S = h), (x = p)), u);
              }),
              y ? 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 &&
              P.relative[o[1].type]
            ) {
              if (!(t = (P.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]), !P.relative[(s = a.type)]);

            )
              if (
                (c = P.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 (M.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(j).join("") === T),
      (f.detectDuplicates = !!l),
      w(),
      (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
    );
  })(w);
  ((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 x(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 S = C.expr.match.needsContext;
  function E(e, t) {
    return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase();
  }
  var k = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;
  function I(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(I(this, e || [], !1));
      },
      not: function (e) {
        return this.pushStack(I(this, e || [], !0));
      },
      is: function (e) {
        return !!I(this, "string" == typeof e && S.test(e) ? C(e) : e || [], !1)
          .length;
      },
    }));
  var A = /^(?:\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]
          : A.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),
        ),
        k.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),
    j = /^(?:parents|prev(?:Until|All))/,
    L = { children: !0, contents: !0, next: !0, prev: !0 };
  function N(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 (!S.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 x(e, "parentNode");
        },
        parentsUntil: function (e, t, n) {
          return x(e, "parentNode", n);
        },
        next: function (e) {
          return N(e, "nextSibling");
        },
        prev: function (e) {
          return N(e, "previousSibling");
        },
        nextAll: function (e) {
          return x(e, "nextSibling");
        },
        prevAll: function (e) {
          return x(e, "previousSibling");
        },
        nextUntil: function (e, t, n) {
          return x(e, "nextSibling", n);
        },
        prevUntil: function (e, t, n) {
          return x(e, "previousSibling", n);
        },
        siblings: function (e) {
          return T((e.parentNode || {}).firstChild, e);
        },
        children: function (e) {
          return T(e.firstChild);
        },
        contents: function (e) {
          return null != e.contentDocument && n(e.contentDocument)
            ? e.contentDocument
            : (E(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 &&
              (L[i] || C.uniqueSort(n), j.test(i) && n.reverse()),
            this.pushStack(n)
          );
        };
      },
    ));
  var $ = /[^\x20\t\r\n\f]+/g;
  function M(e) {
    return e;
  }
  function O(e) {
    throw e;
  }
  function B(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($) || [], 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, M, s), l(c, o, O, s))
                            : (c++,
                              t.call(
                                e,
                                l(c, o, M, s),
                                l(c, o, O, s),
                                l(c, o, M, o.notifyWith),
                              ))
                          : (a !== M && ((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 !== O && ((n = void 0), (i = [e])),
                                o.rejectWith(n, i)));
                          }
                        };
                  r
                    ? t()
                    : (C.Deferred.getStackHook &&
                        (t.stackTrace = C.Deferred.getStackHook()),
                      w.setTimeout(t));
                };
              }
              return C.Deferred(function (e) {
                (o[0][3].add(l(0, e, g(i) ? i : M, e.notifyWith)),
                  o[1][3].add(l(0, e, g(t) ? t : M)),
                  o[2][3].add(l(0, e, g(n) ? n : O)));
              }).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 &&
          (B(e, a.done(t(i)).resolve, a.reject, !n),
          "pending" === a.state() || g(o[i] && o[i].then))
        )
          return a.then();
        for (; i--; ) B(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) {
    w.console &&
      w.console.warn &&
      e &&
      F.test(e.name) &&
      w.console.warn("jQuery.Deferred exception: " + e.message, e.stack, t);
  }),
    (C.readyException = function (e) {
      w.setTimeout(function () {
        throw e;
      });
    }));
  var z = C.Deferred();
  function q() {
    (H.removeEventListener("DOMContentLoaded", q),
      w.removeEventListener("load", q),
      C.ready());
  }
  ((C.fn.ready = function (e) {
    return (
      z.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) ||
          z.resolveWith(H, [C]);
      },
    }),
    (C.ready.then = z.then),
    "complete" === H.readyState ||
    ("loading" !== H.readyState && !H.documentElement.doScroll)
      ? w.setTimeout(C.ready)
      : (H.addEventListener("DOMContentLoaded", q),
        w.addEventListener("load", q)));
  function R(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)) R(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 W = /^-ms-/,
    V = /-([a-z])/g;
  function Q(e, t) {
    return t.toUpperCase();
  }
  function U(e) {
    return e.replace(W, "ms-").replace(V, Q);
  }
  function _(e) {
    return 1 === e.nodeType || 9 === e.nodeType || !+e.nodeType;
  }
  function G() {
    this.expando = C.expando + G.uid++;
  }
  ((G.uid = 1),
    (G.prototype = {
      cache: function (e) {
        var t = e[this.expando];
        return (
          t ||
            ((t = {}),
            _(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[U(t)] = n;
        else for (i in t) r[U(i)] = t[i];
        return r;
      },
      get: function (e, t) {
        return void 0 === t
          ? this.cache(e)
          : e[this.expando] && e[this.expando][U(t)];
      },
      access: function (e, t, n) {
        return void 0 === t || (t && "string" == typeof t && void 0 === n)
          ? this.get(e, t)
          : (this.set(e, t, n), void 0 !== n ? n : t);
      },
      remove: function (e, t) {
        var n,
          i = e[this.expando];
        if (void 0 !== i) {
          if (void 0 !== t) {
            n = (t = Array.isArray(t)
              ? t.map(U)
              : (t = U(t)) in i
                ? [t]
                : t.match($) || []).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 G(),
    Y = new G(),
    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);
              })
            : R(
                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 = U(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),
    (b.checkClone = d.cloneNode(!0).cloneNode(!0).lastChild.checked),
    (d.innerHTML = "<textarea>x</textarea>"),
    (b.noCloneChecked = !!d.cloneNode(!0).lastChild.defaultValue),
    (d.innerHTML = "<option></option>"),
    (b.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 && E(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),
    b.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 ye = /^key/,
    be = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
    Pe = /^([^.]*)(?:\.(.+)|)/;
  function xe() {
    return !0;
  }
  function we() {
    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 = we;
    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, xe);
  }
  ((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 (_(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($) || [""]).length;
          c--;

        )
          ((d = f = (l = Pe.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($) || [""]).length; l--; )
          if (
            ((f = g = (s = Pe.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 && E(e, "input") && Te(e, "click", xe),
            !1
          );
        },
        trigger: function (e) {
          e = this || e;
          return (
            ue.test(e.type) && e.click && E(e, "input") && Te(e, "click"),
            !0
          );
        },
        _default: function (e) {
          e = e.target;
          return (
            (ue.test(e.type) &&
              e.click &&
              E(e, "input") &&
              X.get(e, "click")) ||
            E(e, "a")
          );
        },
      },
      beforeunload: {
        postDispatch: function (e) {
          void 0 !== e.result &&
            e.originalEvent &&
            (e.originalEvent.returnValue = e.result);
        },
      },
    },
  }),
    (C.removeEvent = function (e, t, n) {
      e.removeEventListener && e.removeEventListener(t, n);
    }),
    (C.Event = function (e, t) {
      if (!(this instanceof C.Event)) return new C.Event(e, t);
      (e && e.type
        ? ((this.originalEvent = e),
          (this.type = e.type),
          (this.isDefaultPrevented =
            e.defaultPrevented ||
            (void 0 === e.defaultPrevented && !1 === e.returnValue)
              ? xe
              : we),
          (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: we,
      isPropagationStopped: we,
      isImmediatePropagationStopped: we,
      isSimulated: !1,
      preventDefault: function () {
        var e = this.originalEvent;
        ((this.isDefaultPrevented = xe),
          e && !this.isSimulated && e.preventDefault());
      },
      stopPropagation: function () {
        var e = this.originalEvent;
        ((this.isPropagationStopped = xe),
          e && !this.isSimulated && e.stopPropagation());
      },
      stopImmediatePropagation: function () {
        var e = this.originalEvent;
        ((this.isImmediatePropagationStopped = xe),
          e && !this.isSimulated && e.stopImmediatePropagation(),
          this.stopPropagation());
      },
    }),
    C.each(
      {
        altKey: !0,
        bubbles: !0,
        cancelable: !0,
        changedTouches: !0,
        ctrlKey: !0,
        detail: !0,
        eventPhase: !0,
        metaKey: !0,
        pageX: !0,
        pageY: !0,
        shiftKey: !0,
        view: !0,
        char: !0,
        code: !0,
        charCode: !0,
        key: !0,
        keyCode: !0,
        button: !0,
        buttons: !0,
        clientX: !0,
        clientY: !0,
        offsetX: !0,
        offsetY: !0,
        pointerId: !0,
        pointerType: !0,
        screenX: !0,
        screenY: !0,
        targetTouches: !0,
        toElement: !0,
        touches: !0,
        which: function (e) {
          var t = e.button;
          return null == e.which && ye.test(e.type)
            ? null != e.charCode
              ? e.charCode
              : e.keyCode
            : !e.which && void 0 !== t && be.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 = we),
            this.each(function () {
              C.event.remove(this, e, n, t);
            })
          );
        for (r in e) this.off(r, t, e[r]);
        return this;
      },
    }));
  var Se = /<script|<style|<link/i,
    Ee = /checked\s*(?:[^=]|=\s*.checked.)/i,
    ke = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
  function Ie(e, t) {
    return (
      (E(e, "table") &&
        E(11 !== t.nodeType ? t : t.firstChild, "tr") &&
        C(e).children("tbody")[0]) ||
      e
    );
  }
  function Ae(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 je(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 Le(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 && !b.checkClone && Ee.test(f)))
      return n.each(function (e) {
        var t = n.eq(e);
        (h && (i[0] = f.call(this, e, t.html())), Le(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"), Ae)).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,
                  )
                : P(c.textContent.replace(ke, ""), c, l)));
    }
    return n;
  }
  function Ne(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 (
        !(
          b.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++)
            je(o[i], a[i]);
        else je(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 (_(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 Ne(this, e, !0);
      },
      remove: function (e) {
        return Ne(this, e);
      },
      text: function (e) {
        return R(
          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 Le(this, arguments, function (e) {
          (1 !== this.nodeType &&
            11 !== this.nodeType &&
            9 !== this.nodeType) ||
            Ie(this, e).appendChild(e);
        });
      },
      prepend: function () {
        return Le(this, arguments, function (e) {
          var t;
          (1 !== this.nodeType &&
            11 !== this.nodeType &&
            9 !== this.nodeType) ||
            (t = Ie(this, e)).insertBefore(e, t.firstChild);
        });
      },
      before: function () {
        return Le(this, arguments, function (e) {
          this.parentNode && this.parentNode.insertBefore(e, this);
        });
      },
      after: function () {
        return Le(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 R(
          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 &&
              !Se.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 Le(
          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 $e(e) {
    var t = e.ownerDocument.defaultView;
    return (t = !t || !t.opener ? w : t).getComputedStyle(e);
  }
  function Me(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 Oe,
    Be,
    Fe,
    ze,
    qe,
    Re,
    We,
    Ve,
    Qe = new RegExp("^(" + ee + ")(?!px)[a-z%]+$", "i"),
    Ue = new RegExp(ne.join("|"), "i");
  function _e(e, t, n) {
    var i,
      r,
      o = e.style;
    return (
      (n = n || $e(e)) &&
        ("" !== (r = n.getPropertyValue(t) || n[t]) ||
          re(e) ||
          (r = C.style(e, t)),
        !b.pixelBoxStyles() &&
          Qe.test(r) &&
          Ue.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 Ge(e, t) {
    return {
      get: function () {
        if (!e()) return (this.get = t).apply(this, arguments);
        delete this.get;
      },
    };
  }
  function Xe() {
    var e;
    Ve &&
      ((We.style.cssText =
        "position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0"),
      (Ve.style.cssText =
        "position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%"),
      ie.appendChild(We).appendChild(Ve),
      (e = w.getComputedStyle(Ve)),
      (Oe = "1%" !== e.top),
      (Re = 12 === Ye(e.marginLeft)),
      (Ve.style.right = "60%"),
      (ze = 36 === Ye(e.right)),
      (Be = 36 === Ye(e.width)),
      (Ve.style.position = "absolute"),
      (Fe = 12 === Ye(Ve.offsetWidth / 3)),
      ie.removeChild(We),
      (Ve = null));
  }
  function Ye(e) {
    return Math.round(parseFloat(e));
  }
  ((We = H.createElement("div")),
    (Ve = H.createElement("div")).style &&
      ((Ve.style.backgroundClip = "content-box"),
      (Ve.cloneNode(!0).style.backgroundClip = ""),
      (b.clearCloneStyle = "content-box" === Ve.style.backgroundClip),
      C.extend(b, {
        boxSizingReliable: function () {
          return (Xe(), Be);
        },
        pixelBoxStyles: function () {
          return (Xe(), ze);
        },
        pixelPosition: function () {
          return (Xe(), Oe);
        },
        reliableMarginLeft: function () {
          return (Xe(), Re);
        },
        scrollboxSize: function () {
          return (Xe(), Fe);
        },
        reliableTrDimensions: function () {
          var e, t, n;
          return (
            null == qe &&
              ((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 = w.getComputedStyle(n)),
              (qe = 3 < parseInt(n.height)),
              ie.removeChild(e)),
            qe
          );
        },
      })));
  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 = $e(e),
      r =
        (!b.boxSizingReliable() || n) &&
        "border-box" === C.css(e, "boxSizing", !1, i),
      o = r,
      a = _e(e, t, i),
      s = "offset" + t[0].toUpperCase() + t.slice(1);
    if (Qe.test(a)) {
      if (!n) return a;
      a = "auto";
    }
    return (
      ((!b.boxSizingReliable() && r) ||
        (!b.reliableTrDimensions() && E(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 = _e(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 = U(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")),
            b.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 = U(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)
              ? _e(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)
              : Me(e, it, function () {
                  return st(e, s, n);
                });
        },
        set: function (e, t, n) {
          var i,
            r = $e(e),
            o = !b.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 = Ge(b.reliableMarginLeft, function (e, t) {
      if (t)
        return (
          (parseFloat(_e(e, "marginLeft")) ||
            e.getBoundingClientRect().left -
              Me(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 R(
          this,
          function (e, t, n) {
            var i,
              r,
              o = {},
              a = 0;
            if (Array.isArray(t)) {
              for (i = $e(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 && w.requestAnimationFrame
        ? w.requestAnimationFrame(ft)
        : w.setTimeout(ft, C.fx.interval),
      C.fx.tick());
  }
  function ht() {
    return (
      w.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 = U(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($)).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 = w.setTimeout(e, i);
          t.stop = function () {
            w.clearTimeout(n);
          };
        })
      );
    }),
    (d = H.createElement("input")),
    (ee = H.createElement("select").appendChild(H.createElement("option"))),
    (d.type = "checkbox"),
    (b.checkOn = "" !== d.value),
    (b.optSelected = ee.selected),
    ((d = H.createElement("input")).value = "t"),
    (d.type = "radio"),
    (b.radioValue = "t" === d.value));
  var yt,
    bt = C.expr.attrHandle;
  (C.fn.extend({
    attr: function (e, t) {
      return R(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) ? yt : 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 (!b.radioValue && "radio" === t && E(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($);
        if (r && 1 === e.nodeType) for (; (n = r[i++]); ) e.removeAttribute(n);
      },
    }),
    (yt = {
      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 = bt[t] || C.find.attr;
      bt[t] = function (e, t, n) {
        var i,
          r,
          o = t.toLowerCase();
        return (
          n ||
            ((r = bt[o]),
            (bt[o] = i),
            (i = null != a(e, t, n) ? o : null),
            (bt[o] = r)),
          i
        );
      };
    }));
  var Pt = /^(?:input|select|textarea|button)$/i,
    xt = /^(?:a|area)$/i;
  function wt(e) {
    return (e.match($) || []).join(" ");
  }
  function Ht(e) {
    return (e.getAttribute && e.getAttribute("class")) || "";
  }
  function Ct(e) {
    return Array.isArray(e) ? e : ("string" == typeof e && e.match($)) || [];
  }
  (C.fn.extend({
    prop: function (e, t) {
      return R(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)
              : Pt.test(e.nodeName) || (xt.test(e.nodeName) && e.href)
                ? 0
                : -1;
          },
        },
      },
      propFix: { for: "htmlFor", class: "className" },
    }),
    b.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 && " " + wt(a) + " "))) {
              for (o = 0; (r = e[o++]); )
                i.indexOf(" " + r + " ") < 0 && (i += r + " ");
              a !== (a = wt(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 && " " + wt(a) + " "))) {
              for (o = 0; (r = e[o++]); )
                for (; -1 < i.indexOf(" " + r + " "); )
                  i = i.replace(" " + r + " ", " ");
              a !== (a = wt(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 < (" " + wt(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 : wt(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 || !E(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));
        },
      }),
        b.checkOn ||
          (C.valHooks[this].get = function (e) {
            return null === e.getAttribute("value") ? "on" : e.value;
          }));
    }),
    (b.focusin = "onfocusin" in w));
  function St(e) {
    e.stopPropagation();
  }
  var Et = /^(?:focusinfocus|focusoutblur)$/;
  (C.extend(C.event, {
    trigger: function (e, t, n, i) {
      var r,
        o,
        a,
        s,
        c,
        l,
        u,
        d = [n || H],
        p = y.call(e, "type") ? e.type : e,
        f = y.call(e, "namespace") ? e.namespace.split(".") : [],
        h = (u = o = n = n || H);
      if (
        3 !== n.nodeType &&
        8 !== n.nodeType &&
        !Et.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, Et.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 || w);
        }
        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 &&
              _(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)) ||
            !_(n) ||
            (s &&
              g(n[p]) &&
              !m(n) &&
              ((o = n[s]) && (n[s] = null),
              (C.event.triggered = p),
              e.isPropagationStopped() && u.addEventListener(p, St),
              n[p](),
              e.isPropagationStopped() && u.removeEventListener(p, St),
              (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);
      },
    }),
    b.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 kt = w.location,
    It = { guid: Date.now() },
    At = /\?/;
  C.parseXML = function (e) {
    var t;
    if (!e || "string" != typeof e) return null;
    try {
      t = new w.DOMParser().parseFromString(e, "text/xml");
    } catch (e) {
      t = void 0;
    }
    return (
      (t && !t.getElementsByTagName("parsererror").length) ||
        C.error("Invalid XML: " + e),
      t
    );
  };
  var Dt = /\[\]$/,
    jt = /\r?\n/g,
    Lt = /^(?:submit|button|image|reset|file)$/i,
    Nt = /^(?: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") &&
              Nt.test(this.nodeName) &&
              !Lt.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(jt, "\r\n") };
                  })
                : { name: t.name, value: n.replace(jt, "\r\n") };
          })
          .get();
      },
    }));
  var $t = /%20/g,
    Mt = /#.*$/,
    Ot = /([?&])_=[^&]*/,
    Bt = /^(.*?):[ \t]*([^\r\n]*)$/gm,
    Ft = /^(?:GET|HEAD)$/,
    zt = /^\/\//,
    qt = {},
    Rt = {},
    Wt = "*/".concat("*"),
    Vt = H.createElement("a");
  function Qt(o) {
    return function (e, t) {
      "string" != typeof e && ((t = e), (e = "*"));
      var n,
        i = 0,
        r = e.toLowerCase().match($) || [];
      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 Ut(t, i, r, o) {
    var a = {},
      s = t === Rt;
    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 _t(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);
  }
  ((Vt.href = kt.href),
    C.extend({
      active: 0,
      lastModified: {},
      etag: {},
      ajaxSettings: {
        url: kt.href,
        type: "GET",
        isLocal:
          /^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(
            kt.protocol,
          ),
        global: !0,
        processData: !0,
        async: !0,
        contentType: "application/x-www-form-urlencoded; charset=UTF-8",
        accepts: {
          "*": Wt,
          text: "text/plain",
          html: "text/html",
          xml: "application/xml, text/xml",
          json: "application/json, text/javascript",
        },
        contents: { xml: /\bxml\b/, html: /\bhtml/, json: /\bjson\b/ },
        responseFields: {
          xml: "responseXML",
          text: "responseText",
          json: "responseJSON",
        },
        converters: {
          "* text": String,
          "text html": !0,
          "text json": JSON.parse,
          "text xml": C.parseXML,
        },
        flatOptions: { url: !0, context: !0 },
      },
      ajaxSetup: function (e, t) {
        return t ? _t(_t(e, C.ajaxSettings), t) : _t(C.ajaxSettings, e);
      },
      ajaxPrefilter: Qt(qt),
      ajaxTransport: Qt(Rt),
      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(),
          y = C.Callbacks("once memory"),
          b = h.statusCode || {},
          o = {},
          a = {},
          s = "canceled",
          P = {
            readyState: 0,
            getResponseHeader: function (e) {
              var t;
              if (p) {
                if (!n)
                  for (n = {}; (t = Bt.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) P.always(e[P.status]);
                else for (var t in e) b[t] = [b[t], e[t]];
              return this;
            },
            abort: function (e) {
              e = e || s;
              return (c && c.abort(e), x(0, e), this);
            },
          };
        if (
          (v.promise(P),
          (h.url = ((e || h.url || kt.href) + "").replace(
            zt,
            kt.protocol + "//",
          )),
          (h.type = t.method || t.type || h.method || h.type),
          (h.dataTypes = (h.dataType || "*").toLowerCase().match($) || [""]),
          null == h.crossDomain)
        ) {
          r = H.createElement("a");
          try {
            ((r.href = h.url),
              (r.href = r.href),
              (h.crossDomain =
                Vt.protocol + "//" + Vt.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)),
          Ut(qt, h, t, P),
          p)
        )
          return P;
        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(Mt, "")),
        h.hasContent
          ? h.data &&
            h.processData &&
            0 ===
              (h.contentType || "").indexOf(
                "application/x-www-form-urlencoded",
              ) &&
            (h.data = h.data.replace($t, "+"))
          : ((r = h.url.slice(l.length)),
            h.data &&
              (h.processData || "string" == typeof h.data) &&
              ((l += (At.test(l) ? "&" : "?") + h.data), delete h.data),
            !1 === h.cache &&
              ((l = l.replace(Ot, "$1")),
              (r = (At.test(l) ? "&" : "?") + "_=" + It.guid++ + r)),
            (h.url = l + r)),
        h.ifModified &&
          (C.lastModified[l] &&
            P.setRequestHeader("If-Modified-Since", C.lastModified[l]),
          C.etag[l] && P.setRequestHeader("If-None-Match", C.etag[l])),
        ((h.data && h.hasContent && !1 !== h.contentType) || t.contentType) &&
          P.setRequestHeader("Content-Type", h.contentType),
        P.setRequestHeader(
          "Accept",
          h.dataTypes[0] && h.accepts[h.dataTypes[0]]
            ? h.accepts[h.dataTypes[0]] +
                ("*" !== h.dataTypes[0] ? ", " + Wt + "; q=0.01" : "")
            : h.accepts["*"],
        ),
        h.headers))
          P.setRequestHeader(i, h.headers[i]);
        if (h.beforeSend && (!1 === h.beforeSend.call(g, P, h) || p))
          return P.abort();
        if (
          ((s = "abort"),
          y.add(h.complete),
          P.done(h.success),
          P.fail(h.error),
          (c = Ut(Rt, h, t, P)))
        ) {
          if (((P.readyState = 1), f && m.trigger("ajaxSend", [P, h]), p))
            return P;
          h.async &&
            0 < h.timeout &&
            (d = w.setTimeout(function () {
              P.abort("timeout");
            }, h.timeout));
          try {
            ((p = !1), c.send(o, x));
          } catch (e) {
            if (p) throw e;
            x(-1, e);
          }
        } else x(-1, "No Transport");
        function x(e, t, n, i) {
          var r,
            o,
            a,
            s = t;
          p ||
            ((p = !0),
            d && w.clearTimeout(d),
            (c = void 0),
            (u = i || ""),
            (P.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, P, 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, P, i)),
            i
              ? (h.ifModified &&
                  ((n = P.getResponseHeader("Last-Modified")) &&
                    (C.lastModified[l] = n),
                  (n = P.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))),
            (P.status = e),
            (P.statusText = (t || s) + ""),
            i ? v.resolveWith(g, [r, s, P]) : v.rejectWith(g, [P, s, o]),
            P.statusCode(b),
            (b = void 0),
            f && m.trigger(i ? "ajaxSuccess" : "ajaxError", [P, h, i ? r : o]),
            y.fireWith(g, [P, s]),
            f &&
              (m.trigger("ajaxComplete", [P, h]),
              --C.active || C.event.trigger("ajaxStop")));
        }
        return P;
      },
      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 w.XMLHttpRequest();
      } catch (e) {}
    }));
  var Gt = { 0: 200, 1223: 204 },
    Xt = C.ajaxSettings.xhr();
  ((b.cors = !!Xt && "withCredentials" in Xt),
    (b.ajax = Xt = !!Xt),
    C.ajaxTransport(function (r) {
      var o, a;
      if (b.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(
                          Gt[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 &&
                      w.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 + "_" + It.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 += (At.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 = w[i]),
          (w[i] = function () {
            o = arguments;
          }),
          n.always(function () {
            (void 0 === r ? C(w).removeProp(i) : (w[i] = r),
              e[i] && ((e.jsonpCallback = t.jsonpCallback), Yt.push(i)),
              o && g(r) && r(o[0]),
              (o = r = void 0));
          }),
          "script"
        );
    }),
    (b.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 ||
            (b.createHTMLDocument
              ? (((i = (t =
                  H.implementation.createHTMLDocument("")).createElement(
                  "base",
                )).href = H.location.href),
                t.head.appendChild(i))
              : (t = H)),
          (i = !n && []),
          (n = k.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 = wt(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 R(
            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] = Ge(b.pixelPosition, function (e, t) {
        if (t)
          return ((t = _e(e, n)), Qe.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 R(
              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 = E),
    (C.isFunction = g),
    (C.isWindow = m),
    (C.camelCase = U),
    (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 = w.jQuery,
    en = w.$;
  return (
    (C.noConflict = function (e) {
      return (
        w.$ === C && (w.$ = en),
        e && w.jQuery === C && (w.jQuery = Zt),
        C
      );
    }),
    void 0 === e && (w.jQuery = w.$ = 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,
        };
        H5P.getUserData(r, "state", function (e, t) {
          var i;
          t
            ? (a.userDatas = { state: t })
            : null === t &&
              H5PIntegration.saveFreq &&
              (delete o.contentUserData,
              (i = new H5P.Dialog(
                "content-user-data-reset",
                "Data Reset",
                "<p>" +
                  H5P.t("contentChanged") +
                  "</p><p>" +
                  H5P.t("startingOver") +
                  '</p><div class="h5p-dialog-ok-button" tabIndex="0" role="button">OK</div>',
                n,
              )),
              H5P.jQuery(i)
                .on("dialog-opened", function (e, t) {
                  function n(e) {
                    ("click" !== e.type && 32 !== e.which) ||
                      (i.close(), H5P.deleteUserData(r, "state", 0));
                  }
                  (t.find(".h5p-dialog-ok-button").click(n).keypress(n),
                    H5P.trigger(s, "resize"));
                })
                .on("dialog-closed", function () {
                  H5P.trigger(s, "resize");
                }),
              i.open());
        });
        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, y = document.getElementsByTagName("meta"), b = 0;
            b < y.length;
            b++
          )
            if ("viewport" === y[b].name) {
              ((f = y[b]), (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 P,
          x =
            "ms" === H5P.fullScreenBrowserPrefix
              ? "MSFullscreenChange"
              : H5P.fullScreenBrowserPrefix + "fullscreenchange";
        (document.addEventListener(x, function () {
          return void 0 === P
            ? ((P = !1), void u())
            : (d("h5p-fullscreen"),
              void document.removeEventListener(x, 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,
        y = [],
        b = [];
      this.appendTo = function (e) {
        return ((g = e), this);
      };
      var P = function (e) {
          l.contains(e.target) || (e.preventDefault(), h.focus());
        },
        x = function (e) {
          for (
            var t = [], n = e.parentNode.children, i = 0;
            i < n.length;
            i += 1
          )
            ((t[i] = !!n[i].getAttribute("aria-hidden")),
              n[i] !== e && n[i].setAttribute("aria-hidden", !0));
          return t;
        },
        w = 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", P, !0),
          (y = x(g)),
          (b = x(l)),
          l.classList.remove("hidden"),
          (t = e),
          (e = parseInt(u.style.top, 10)),
          (e =
            (e = (e = void 0 !== t ? t : e) || 0) + u.offsetHeight >
            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", P, !0),
            n.skipRestoreFocus || v.focus(),
            w(g, y),
            w(l, b),
            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 (P, x) {
    return function (e) {
      const n = new P();
      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 x({
          headerText: H5P.t("offlineDialogHeader"),
          dialogText: H5P.t("offlineDialogBody"),
          confirmText: H5P.t("offlineDialogRetryButtonLabel"),
          hideCancel: !0,
          hideExit: !0,
          classes: ["offline"],
          instance: e,
          skipRestoreFocus: !0,
        }),
        u = l.getElement(),
        d = document.createElement("div");
      (d.classList.add("count-down"),
        (d.innerHTML = H5P.t("offlineDialogRetryMessage").replace(
          ":num",
          '<span class="count-down-num">0</span>',
        )),
        u.querySelector(".h5p-confirmation-dialog-text").appendChild(d));
      const p = d.querySelector(".count-down-num"),
        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));
              }
              y();
            }
          }.bind(this),
        ),
        n.on(
          "queueEmptied",
          function (e) {
            e.data && e.data.length
              ? y(!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));
        },
        y = 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(b, 100)));
        },
        b = 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)));
/*!@license H5P.Timer-0.4/scripts/timer.js by Oliver Tacke licensed under pd*/ var _typeof =
  "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
    ? function (e) {
        return typeof e;
      }
    : function (e) {
        return e &&
          "function" == typeof Symbol &&
          e.constructor === Symbol &&
          e !== Symbol.prototype
          ? "symbol"
          : typeof e;
      };
(((H5P = H5P || {}).Timer = (function (v) {
  function y() {
    var r =
        arguments.length <= 0 || void 0 === arguments[0]
          ? y.DEFAULT_INTERVAL
          : arguments[0],
      o = this,
      n = 0,
      i = 0,
      a = 0,
      t = null,
      s = null,
      c = null,
      l = null,
      u = y.STOPPED,
      d = y.FORWARD,
      p = [],
      f = 0;
    (H5P.EventDispatcher.call(o),
      (r = y.isInteger(r) ? Math.max(r, 1) : y.DEFAULT_INTERVAL),
      (o.getStatus = function () {
        return u;
      }),
      (o.getMode = function () {
        return d;
      }));
    function h() {
      return n;
    }
    ((o.getTime = function () {
      var e =
        arguments.length <= 0 || void 0 === arguments[0]
          ? y.TYPE_CLOCK
          : arguments[0];
      if (y.isInteger(e))
        switch (e) {
          case y.TYPE_CLOCK:
            return h();
          case y.TYPE_PLAYING:
            return i;
          case y.TYPE_RUNNING:
            return t
              ? u !== y.STOPPED
                ? new Date().getTime() - t.getTime()
                : c
                  ? c.getTime() - t
                  : 0
              : 0;
          default:
            return h();
        }
    }),
      (o.setClockTime = function (e) {
        ("string" === v.type(e) && (e = y.toMilliseconds(e)),
          y.isInteger(e) && ((a = (e - n) * d < 0 ? e - n : 0), (n = e)));
      }),
      (o.reset = function () {
        u === y.STOPPED &&
          ((l = c = t = null),
          (p = []),
          (f = i = n = 0),
          o.trigger("reset", {}, { bubbles: !0, external: !0 }));
      }),
      (o.setMode = function (e) {
        (e !== y.FORWARD && e !== y.BACKWARD) || (d = e);
      }),
      (o.play = function () {
        u !== y.PLAYING &&
          ((t = t || new Date()),
          (s = new Date()),
          (u = y.PLAYING),
          o.trigger("play", {}, { bubbles: !0, external: !0 }),
          e());
      }),
      (o.pause = function () {
        u === y.PLAYING &&
          ((u = y.PAUSED),
          o.trigger("pause", {}, { bubbles: !0, external: !0 }));
      }),
      (o.stop = function () {
        u !== y.STOPPED &&
          ((c = new Date()),
          (u = y.STOPPED),
          o.trigger("stop", {}, { bubbles: !0, external: !0 }));
      }));
    var e = function e() {
      var t;
      u !== y.STOPPED
        ? d === y.BACKWARD && n <= 0
          ? o.stop()
          : (u === y.PLAYING &&
              ((t = new Date().getTime() - s), (n += t * d), (i += t)),
            (s = new Date()),
            m(),
            (l = setTimeout(function () {
              e();
            }, r)))
        : clearTimeout(l);
    };
    ((o.notify = function (e, t) {
      var n =
          2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : f++,
        i = {
          every_tenth_second: { repeat: 100 },
          every_second: { repeat: 1e3 },
          every_minute: { repeat: 6e4 },
          every_hour: { repeat: 36e5 },
        };
      if (
        !((!t) instanceof Function) &&
        null !== (e = "string" === v.type(e) ? i[e] : e) &&
        "object" === (void 0 === e ? "undefined" : _typeof(e))
      ) {
        if (e.type) {
          if (!y.isInteger(e.type)) return;
          if (e.type < y.TYPE_CLOCK || e.type > y.TYPE_RUNNING) return;
        } else e.type = y.TYPE_CLOCK;
        if (e.mode) {
          if (!y.isInteger(e.mode)) return;
          if (e.mode < y.NOTIFY_ABSOLUTE || e.type > y.NOTIFY_RELATIVE) return;
        } else e.mode = y.NOTIFY_ABSOLUTE;
        if (e.calltime) {
          if (
            ("string" === v.type(e.calltime) &&
              (e.calltime = y.toMilliseconds(e.calltime)),
            !y.isInteger(e.calltime))
          )
            return;
          if (e.calltime < 0) return;
          e.mode === y.NOTIFY_RELATIVE &&
            ((e.calltime = Math.max(e.calltime, r)),
            e.type === y.TYPE_CLOCK && (e.calltime *= d),
            (e.calltime += o.getTime(e.type)));
        } else
          e.calltime = e.mode === y.NOTIFY_ABSOLUTE ? o.getTime(e.type) : 0;
        if (
          ("string" === v.type(e.repeat) &&
            (e.repeat = y.toMilliseconds(e.repeat)),
          void 0 !== e.repeat)
        ) {
          if (!y.isInteger(e.repeat)) return;
          e.repeat = Math.max(e.repeat, r);
        }
        return (
          p.push({
            id: n,
            type: e.type,
            calltime: e.calltime,
            repeat: e.repeat,
            callback: t,
          }),
          n
        );
      }
    }),
      (o.clearNotification = function (t) {
        p = v.grep(
          p,
          function (e) {
            return e.id === t;
          },
          !0,
        );
      }));
    var g = function (e, t) {
        y.isInteger(t) &&
          e.forEach(function (e) {
            (o.clearNotification(e.id),
              o.notify(
                {
                  type: e.type,
                  calltime: o.getTime(e.type) + t,
                  repeat: e.repeat,
                },
                e.callback,
                e.id,
              ));
          });
      },
      m = function () {
        var t, e;
        (0 !== a &&
          ((e = v.grep(p, function (e) {
            return e.type === y.TYPE_CLOCK && null != e.repeat;
          })),
          g(e, a),
          (a = 0)),
          p.forEach(function (e) {
            ((t = e.type === y.TYPE_CLOCK ? d : 1),
              e.calltime * t <= o.getTime(e.type) * t &&
                (e.callback.apply(this),
                o.clearNotification(e.id),
                e.repeat &&
                  o.notify(
                    {
                      type: e.type,
                      calltime: o.getTime(e.type) + e.repeat * t,
                      repeat: e.repeat,
                    },
                    e.callback,
                    e.id,
                  )));
          }));
      };
  }
  ((y.prototype = Object.create(H5P.EventDispatcher.prototype)),
    (y.prototype.constructor = y));
  function r(e) {
    var t, n, i, r, o, a;
    if (y.isInteger(e))
      return (
        (a = (e = Math.round(e / 100)) - 10 * Math.floor(e / 10)),
        (o = Math.floor(e / 10)),
        (r = Math.floor(o / 60)),
        (i = Math.floor(r / 60)),
        (n = Math.floor(i / 24)),
        (t = Math.floor(n / 7)),
        (e = Math.floor(n / 30.4375)),
        {
          years: Math.floor(n / 365),
          month: e,
          weeks: t,
          days: n,
          hours: i,
          minutes: r,
          seconds: o,
          tenthSeconds: a,
        }
      );
  }
  return (
    (y.extractTimeElement = function (e, t) {
      var n =
        !(arguments.length <= 2 || void 0 === arguments[2]) && arguments[2];
      if (
        ("string" === v.type(e) && (e = y.toMilliseconds(e)),
        y.isInteger(e) && "string" === v.type(t) && "boolean" === v.type(n))
      )
        return (
          n
            ? {
                years: Math.round(e / 31536e6),
                month: Math.round(e / 26298e5),
                weeks: Math.round(e / 6048e5),
                days: Math.round(e / 864e5),
                hours: Math.round(e / 36e5),
                minutes: Math.round(e / 6e4),
                seconds: Math.round(e / 1e3),
                tenthSeconds: Math.round(e / 100),
              }
            : r(e)
        )[t];
    }),
    (y.toTimecode = function (e) {
      var t,
        n,
        i = "";
      if (y.isInteger(e) && !(e < 0))
        return (
          (t = r(e)),
          (n = Math.floor(t.minutes % 60)),
          (e = Math.floor(t.seconds % 60)),
          0 < t.hours && (i += t.hours + ":"),
          n < 10 && (i += "0"),
          (i += n + ":"),
          e < 10 && (i += "0"),
          (i += e + "."),
          (i += t.tenthSeconds)
        );
    }),
    (y.toMilliseconds = function (e) {
      var t = [],
        n = 0;
      if (y.isTimecode(e)) {
        for (t = e.split(".")[0].split(":"); t.length < 3; )
          t = ["0"].concat(t);
        return (
          100 *
          (36e3 * parseInt(t[0]) +
            600 * parseInt(t[1]) +
            10 * parseInt(t[2]) +
            (n = (e = e.split(".")[1])
              ? Math.round(parseInt(e) / Math.pow(10, e.length - 1))
              : n))
        );
      }
    }),
    (y.isTimecode = function (e) {
      return (
        "string" === v.type(e) &&
        e === e.match(/((((((\d+:)?([0-5]))?\d:)?([0-5]))?\d)(\.\d+)?)/)[0]
      );
    }),
    (y.isInteger =
      y.isInteger ||
      function (e) {
        return "number" == typeof e && isFinite(e) && Math.floor(e) === e;
      }),
    (y.STOPPED = 0),
    (y.PLAYING = 1),
    (y.PAUSED = 2),
    (y.FORWARD = 1),
    (y.BACKWARD = -1),
    (y.DEFAULT_INTERVAL = 10),
    (y.TYPE_CLOCK = 0),
    (y.TYPE_PLAYING = 1),
    (y.TYPE_RUNNING = 2),
    (y.NOTIFY_ABSOLUTE = 0),
    (y.NOTIFY_RELATIVE = 1),
    y
  );
})(H5P.jQuery, H5P.EventDispatcher)),
  ((H5P = H5P || {}).Transition = (function () {
    Transition = {
      transitionEndEventNames: {
        WebkitTransition: "webkitTransitionEnd",
        transition: "transitionend",
        MozTransition: "transitionend",
        OTransition: "oTransitionEnd",
        msTransition: "MSTransitionEnd",
      },
      cache: [],
      getVendorPropertyName: function (e) {
        if (void 0 !== Transition.cache[e]) return Transition.cache[e];
        var t = document.createElement("div");
        if (e in t.style) Transition.cache[e] = e;
        else {
          var n = ["Moz", "Webkit", "O", "ms"],
            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.FindTheWords-1.4/scripts/h5p-find-the-words.js by JithinSpace licensed under MIT*/ (H5P.FindTheWords =
    (function (i, r) {
      function o(e, t, n) {
        ((this.id = t),
          (this.extras = n),
          (this.numFound = 0),
          (this.isAttempted = !1),
          (this.isGameStarted = !1));
        n = e.wordList
          .split(",")
          .map(function (e) {
            return e.trim();
          })
          .filter(function (e, t, n) {
            return n.indexOf(e) === t;
          });
        ((this.options = i.extend(
          !0,
          {
            vocabulary: n,
            height: 5,
            width: 5,
            fillBlanks: !0,
            maxAttempts: 5,
            l10n: { wordListHeader: "Find the words" },
          },
          e,
        )),
          H5P.EventDispatcher.call(this),
          (this.gridParams = {
            height: this.options.height,
            width: this.options.width,
            orientations: a(e.behaviour.orientations),
            fillBlanks: this.options.fillBlanks,
            maxAttempts: this.options.maxAttempts,
            preferOverlap: e.behaviour.preferOverlap,
            vocabulary: this.options.vocabulary,
            gridActive: !0,
            fillPool: this.options.behaviour.fillPool,
          }),
          (this.grid = new o.WordGrid(this.gridParams)),
          (this.vocabulary = new o.Vocabulary(
            this.options.vocabulary,
            this.options.behaviour.showVocabulary,
            this.options.l10n.wordListHeader,
          )),
          this.registerDOMElements(),
          this.on("resize", function () {
            var e = this.elementSize,
              t = this.isVocModeBlock;
            (this.calculateElementSize(),
              this.setVocabularyMode(),
              this.elementSize !== e &&
                (this.$puzzleContainer.empty(),
                this.grid.appendTo(this.$puzzleContainer, this.elementSize),
                this.grid.drawGrid(8),
                this.grid.options.gridActive
                  ? this.grid.mark(this.vocabulary.getFound())
                  : (this.grid.enableGrid(),
                    this.grid.mark(this.vocabulary.getFound()),
                    this.grid.disableGrid(),
                    this.grid.mark(this.vocabulary.getSolved())),
                this.registerGridEvents()),
              this.options.behaviour.showVocabulary &&
                t !== this.isVocModeBlock &&
                (this.vocabulary.setMode(this.isVocModeBlock),
                this.isVocModeBlock
                  ? this.$puzzleContainer
                      .removeClass("puzzle-inline")
                      .addClass("puzzle-block")
                  : (this.$playArea.css({
                      width: parseInt(this.$gameContainer.width()) + 200,
                    }),
                    this.$puzzleContainer
                      .removeClass("puzzle-block")
                      .addClass("puzzle-inline"))),
              this.isVocModeBlock
                ? this.$playArea.css({
                    width: parseInt(this.$puzzleContainer.width()) + 2,
                  })
                : this.$playArea.css({
                    width: parseInt(this.$gameContainer.width()) + 2,
                  }));
          }));
      }
      ((o.prototype = Object.create(H5P.EventDispatcher.prototype)),
        (o.prototype.constructor = o));
      const a = function (t) {
        return Object.keys(t).filter(function (e) {
          return t[e];
        });
      };
      return (
        (o.prototype.registerDOMElements = function () {
          var e = this;
          ((this.$playArea = i("<div />", { class: "h5p-play-area" })),
            (this.$taskDescription = i("<div />", {
              class: "h5p-task-description",
              html: this.options.taskDescription,
              tabIndex: 0,
            })),
            (this.$timer = i("<div/>", {
              class: "time-status",
              tabindex: 0,
              html:
                '<span role="term" ><em class="fa fa-clock-o" ></em>' +
                this.options.l10n.timeSpent +
                '</span >:<span role="definition"  class="h5p-time-spent" >0:00</span>',
            })),
            (this.timer = new o.Timer(this.$timer.find(".h5p-time-spent"))));
          var t = e.options.l10n.found
            .replace("@found", '<span class="h5p-counter">0</span>')
            .replace(
              "@totalWords",
              "<span><strong>" +
                this.vocabulary.words.length +
                "</strong></span>",
            );
          ((this.$counter = i("<div/>", {
            class: "counter-status",
            tabindex: 0,
            html:
              '<div role="term"><span role="definition">' + t + "</span></div>",
          })),
            (this.counter = new o.Counter(this.$counter.find(".h5p-counter"))),
            (this.$feedback = i("<div/>", {
              class: "feedback-element",
              tabindex: "0",
            })),
            (this.$progressBar = r.createScoreBar(
              this.vocabulary.words.length,
              "scoreBarLabel",
            )),
            (e.$submitButton = e.createButton(
              "submit",
              "check",
              e.options.l10n.check,
              e.gameSubmitted,
            )),
            this.options.behaviour.enableShowSolution &&
              (this.$showSolutionButton = this.createButton(
                "solution",
                "eye",
                this.options.l10n.showSolution,
                e.showSolutions,
              )),
            this.options.behaviour.enableRetry &&
              (this.$retryButton = this.createButton(
                "retry",
                "undo",
                this.options.l10n.tryAgain,
                e.resetTask,
              )),
            (this.$gameContainer = i('<div class="game-container"/>')),
            (this.$puzzleContainer = i(
              '<div class="puzzle-container puzzle-inline" tabIndex="0" role="grid" />',
            )),
            (this.$vocabularyContainer = i(
              '<div class="vocabulary-container" tabIndex="0" />',
            )),
            (this.$footerContainer = i('<div class="footer-container" />')),
            (this.$statusContainer = i("<div />", {
              class: "game-status",
              "aria-label": "game-status",
              role: "group",
              tabindex: "0",
            })),
            (this.$feedbackContainer = i('<div class="feedback-container"/>')),
            (this.$buttonContainer = i('<div class="button-container" />')));
        }),
        (o.prototype.createButton = function (e, t, n, i) {
          i = i.bind(this);
          return r.createButton({
            title: e,
            click: i,
            html:
              '<span><i class="fa fa-' +
              t +
              '" aria-hidden="true"></i></span>' +
              n,
          });
        }),
        (o.prototype.calculateElementSize = function () {
          var e = this.$container.width(),
            t = this.grid.wordGrid[0].length,
            n = (e - 16) / t;
          this.elementSize = n > 64 ? 64 : n; /*!(64*t+16<e)&&32<n?n:64*/
        }),
        (o.prototype.setVocabularyMode = function () {
          var e = this.grid.wordGrid[0].length;
          this.isVocModeBlock = !(
            200 <
            this.$container.width() - (e * this.elementSize + 16)
          );
        }),
        (o.prototype.gameSubmitted = function () {
          var e = this.vocabulary.words.length,
            t = this.options.l10n.score
              .replace("@score", this.numFound)
              .replace("@total", e);
          (this.timer.stop(),
            this.$progressBar.setScore(this.numFound),
            this.$feedback.html(t),
            (this.$submitButton = this.$submitButton.detach()),
            this.grid.disableGrid(),
            e !== this.numFound &&
              this.options.behaviour.enableShowSolution &&
              this.$showSolutionButton.appendTo(this.$buttonContainer),
            this.options.behaviour.enableRetry &&
              this.$retryButton.appendTo(this.$buttonContainer),
            this.$feedbackContainer.addClass("feedback-show"),
            this.$feedback.focus());
          e = this.createXAPIEventTemplate("answered");
          (this.addQuestionToXAPI(e),
            this.addResponseToXAPI(e),
            this.trigger(e),
            this.trigger("resize"));
        }),
        (o.prototype.showSolutions = function () {
          (this.grid.disableGrid(),
            this.grid.mark(this.vocabulary.getNotFound()),
            this.vocabulary.solveWords(),
            this.$showSolutionButton.detach(),
            this.$vocabularyContainer.focus(),
            this.trigger("resize"));
        }),
        (o.prototype.resetTask = function () {
          ((this.numFound = 0),
            this.timer.reset(),
            this.counter.reset(),
            this.$progressBar.reset(),
            this.$puzzleContainer.empty(),
            this.vocabulary.reset(),
            this.$showSolutionButton && this.$showSolutionButton.detach(),
            this.$retryButton.detach(),
            this.$feedbackContainer.removeClass("feedback-show"),
            (this.grid = new o.WordGrid(this.gridParams)),
            this.grid.appendTo(this.$puzzleContainer, this.elementSize),
            this.grid.drawGrid(8),
            this.grid.enableGrid(),
            this.registerGridEvents(),
            this.$submitButton.appendTo(this.$buttonContainer),
            this.$puzzleContainer.focus(),
            this.trigger("resize"));
        }),
        (o.prototype.getAnswerGiven = function () {
          return this.isAttempted;
        }),
        (o.prototype.getScore = function () {
          return this.numFound;
        }),
        (o.prototype.getMaxScore = function () {
          return this.vocabulary.words.length;
        }),
        (o.prototype.getXAPIData = function () {
          var e = this.createXAPIEventTemplate("answered");
          return (
            this.addQuestionToXAPI(e),
            this.addResponseToXAPI(e),
            { statement: e.data.statement }
          );
        }),
        (o.prototype.addQuestionToXAPI = function (e) {
          const t = e.getVerifiedStatementValue(["object", "definition"]);
          ((t.description = { "en-US": this.options.taskDescription }),
            (t.type = "http://adlnet.gov/expapi/activities/cmi.interaction"),
            (t.interactionType = "choice"),
            (t.correctResponsesPattern = []),
            (t.correctResponsesPattern[0] = this.vocabulary.words.join([","])));
        }),
        (o.prototype.addResponseToXAPI = function (e) {
          var t = this.getMaxScore(),
            n = this.getScore(),
            i = n === t,
            r = this.vocabulary.getFound().join("[,]");
          (e.setScoredResult(n, t, this, !0, i),
            (e.data.statement.result.response = r));
        }),
        (o.prototype.registerGridEvents = function () {
          const t = this;
          (this.grid.on("drawStart", function () {
            t.isGameStarted ||
              (t.timer.play(),
              t.triggerXAPI("interacted"),
              (t.isGameStarted = !0));
          }),
            this.grid.on("drawEnd", function (e) {
              ((t.isAttempted = !0),
                t.vocabulary.checkWord(e.data.markedWord) &&
                  (t.numFound++,
                  t.counter.increment(),
                  t.grid.markWord(e.data.wordObject),
                  t.numFound === t.vocabulary.words.length &&
                    t.gameSubmitted()));
            }));
        }),
        (o.prototype.attach = function (e) {
          ((this.$container = e.addClass("h5p-find-the-words")),
            this.triggerXAPI("attempted"),
            this.grid &&
              (this.calculateElementSize(),
              this.grid.appendTo(this.$puzzleContainer, this.elementSize),
              this.$puzzleContainer.appendTo(this.$gameContainer),
              this.options.behaviour.showVocabulary &&
                (this.setVocabularyMode(),
                this.vocabulary.appendTo(
                  this.$vocabularyContainer,
                  this.isVocModeBlock,
                ),
                this.$vocabularyContainer.appendTo(this.$gameContainer))),
            this.$timer.appendTo(this.$statusContainer),
            this.$counter.appendTo(this.$statusContainer),
            this.$feedback.appendTo(this.$feedbackContainer),
            this.$progressBar.appendTo(this.$feedbackContainer),
            this.$submitButton.appendTo(this.$buttonContainer),
            this.$statusContainer.appendTo(this.$footerContainer),
            this.$feedbackContainer.appendTo(this.$footerContainer),
            this.$buttonContainer.appendTo(this.$footerContainer),
            this.$taskDescription.appendTo(this.$playArea),
            this.$gameContainer.appendTo(this.$playArea),
            this.$footerContainer.appendTo(this.$playArea),
            this.$playArea.appendTo(this.$container),
            this.grid.drawGrid(8),
            this.registerGridEvents(),
            this.trigger("resize"));
        }),
        o
      );
    })(H5P.jQuery, H5P.JoubelUI)),
  /*!@license H5P.FindTheWords-1.4/scripts/h5p-find-the-words-word-grid.js by JithinSpace licensed under MIT*/ (function (
    e,
    t,
    f,
  ) {
    ((e.WordGrid = function (e) {
      ((this.options = e), t.call(this), this.createWordGrid());
    }),
      (e.WordGrid.prototype = Object.create(t.prototype)),
      (e.WordGrid.prototype.constructor = e.WordGrid));
    function i(e, n) {
      const i = [];
      for (let t = 0; t < n.height; t++) {
        i[t] = [];
        for (let e = 0; e < n.width; e++) i[t][e] = "";
      }
      for (const t in e)
        if (
          !(function (t, e, n) {
            e = a(t, e, n);
            if (0 === e.length) return !1;
            var i = e[Math.floor(Math.random() * e.length)];
            for (let e = 0; e < n.length; e++) {
              var r = g[i.orientation](i.x, i.y, e);
              t[r.y][r.x] = n[e];
            }
            return !0;
          })(i, n, e[t])
        )
          return null;
      return i;
    }
    function h(e, t, n) {
      return (
        (e = Math.floor(e / n)),
        (t = Math.floor(t / n)),
        [e * n + n / 2, t * n + n / 2, e, t]
      );
    }
    function n(e) {
      const t = e.changedTouches[0],
        n = document.createEvent("MouseEvent");
      let i = "";
      switch (e.type) {
        case "touchstart":
          i = "mousedown";
          break;
        case "touchmove":
          i = "mousemove";
          break;
        case "touchend":
          i = "mouseup";
          break;
        default:
          return;
      }
      (n.initMouseEvent(
        i,
        !0,
        !0,
        window,
        1,
        t.screenX,
        t.screenY,
        t.clientX,
        t.clientY,
        !1,
        !1,
        !1,
        !1,
        0,
        null,
      ),
        t.target.dispatchEvent(n),
        e.preventDefault());
    }
    const g = {
        horizontal: function (e, t, n) {
          return { x: e + n, y: t };
        },
        horizontalBack: function (e, t, n) {
          return { x: e - n, y: t };
        },
        vertical: function (e, t, n) {
          return { x: e, y: t + n };
        },
        verticalUp: function (e, t, n) {
          return { x: e, y: t - n };
        },
        diagonal: function (e, t, n) {
          return { x: e + n, y: t + n };
        },
        diagonalBack: function (e, t, n) {
          return { x: e - n, y: t + n };
        },
        diagonalUp: function (e, t, n) {
          return { x: e + n, y: t - n };
        },
        diagonalUpBack: function (e, t, n) {
          return { x: e - n, y: t - n };
        },
      },
      m = {
        horizontal: function (e, t, n, i, r) {
          return e + r <= i;
        },
        horizontalBack: function (e, t, n, i, r) {
          return r <= e + 1;
        },
        vertical: function (e, t, n, i, r) {
          return t + r <= n;
        },
        verticalUp: function (e, t, n, i, r) {
          return r <= t + 1;
        },
        diagonal: function (e, t, n, i, r) {
          return e + r <= i && t + r <= n;
        },
        diagonalBack: function (e, t, n, i, r) {
          return r <= e + 1 && t + r <= n;
        },
        diagonalUp: function (e, t, n, i, r) {
          return e + r <= i && r <= t + 1;
        },
        diagonalUpBack: function (e, t, n, i, r) {
          return r <= e + 1 && r <= t + 1;
        },
      },
      v = {
        horizontal: function (e, t) {
          return { x: 0, y: t + 1 };
        },
        horizontalBack: function (e, t, n) {
          return { x: n - 1, y: t };
        },
        vertical: function (e, t) {
          return { x: 0, y: t + 100 };
        },
        verticalUp: function (e, t, n) {
          return { x: 0, y: n - 1 };
        },
        diagonal: function (e, t) {
          return { x: 0, y: t + 1 };
        },
        diagonalBack: function (e, t, n) {
          return { x: n - 1, y: n - 1 <= e ? t + 1 : t };
        },
        diagonalUp: function (e, t, n) {
          return { x: 0, y: t < n - 1 ? n - 1 : t + 1 };
        },
        diagonalUpBack: function (e, t, n) {
          return { x: n - 1, y: n - 1 <= e ? t + 1 : t };
        },
      },
      a = function (s, c, l) {
        const u = [],
          d = c.height,
          p = c.width,
          f = l.length;
        let h = 0;
        return (
          c.orientations.forEach(function (e) {
            const t = m[e];
            var n,
              i = g[e];
            const r = v[e];
            let o = 0,
              a = 0;
            for (; a < d; )
              t(o, a, d, p, f)
                ? (((n = (function (t, n, i, r, o) {
                    let a = 0;
                    for (let e = 0; e < t.length; e++) {
                      var s = o(i, r, e),
                        s = n[s.y][s.x];
                      if (s === t[e]) a++;
                      else if ("" !== s) return -1;
                    }
                    return a;
                  })(l, s, o, a, i)) >= h ||
                    (!c.preferOverlap && -1 < n)) &&
                    ((h = n),
                    u.push({ x: o, y: a, orientation: e, overlap: n })),
                  o++,
                  o >= p && ((o = 0), a++))
                : ((n = r(o, a, f)), (o = n.x), (a = n.y));
          }),
          u
        );
      };
    ((e.WordGrid.prototype.createWordGrid = function () {
      let e = null,
        t = 0;
      for (
        var n = this.options.vocabulary.slice(0).sort(function (e, t) {
          return e.length < t.length;
        });
        !e;

      ) {
        for (; !e && t++ < this.options.maxAttempts; ) e = i(n, this.options);
        e || (this.options.height++, this.options.width++, (t = 0));
      }
      (this.options.fillBlanks &&
        (e = (function (n, i) {
          for (let t = 0; t < n.length; t++)
            for (let e = 0; e < n[0].length; e++) {
              var r;
              n[t][e] ||
                ((r = Math.floor(Math.random() * i.length)), (n[t][e] = i[r]));
            }
          return n;
        })(e, this.options.fillPool)),
        (this.wordGrid = e));
    }),
      (e.WordGrid.prototype.markWord = function (e) {
        var t = e.directionKey,
          n = e.start,
          i = e.end;
        const r = this.$outputCanvas[0].getContext("2d");
        var o =
            this.$container.offset().top > 0.75 * this.elementSize
              ? -1 * Math.floor(0.75 * this.elementSize)
              : this.$container.offset().top,
          a = Math.floor(this.elementSize / 8),
          e = Math.abs(Math.floor(o / 16)),
          o = Math.floor(this.elementSize / 4);
        let s;
        switch (
          ((r.lineWidth = 2),
          (r.strokeStyle = "rgba(107,177,125,0.9)"),
          (r.fillStyle = "rgba(107,177,125,0.3)"),
          this.options.gridActive ||
            ((r.strokeStyle = "rgba(51, 102, 255,0.9)"),
            (r.fillStyle = "rgba(51, 102, 255,0.1)"),
            r.setLineDash([8, 4])),
          t)
        ) {
          case "horizontal":
            s = Math.PI / 2;
            break;
          case "horizontalBack":
            s = -Math.PI / 2;
            break;
          case "diagonal":
            s = (Math.PI / 4) * 3;
            break;
          case "diagonalBack":
            s = (Math.PI / 4) * 5;
            break;
          case "diagonalUp":
            s = Math.PI / 4;
            break;
          case "diagonalUpBack":
            s = -Math.PI / 4;
            break;
          case "vertical":
            s = Math.PI;
            break;
          case "verticalUp":
            s = 0;
        }
        (r.beginPath(),
          r.arc(n[0] - a, n[1] + e, o, s, s + Math.PI),
          r.arc(i[0] - a, i[1] + e, o, s + Math.PI, s + 2 * Math.PI),
          r.closePath(),
          r.stroke(),
          r.fill());
      }),
      (e.WordGrid.prototype.mark = function (e) {
        const t = e,
          n = this,
          i = {
            height: this.wordGrid.length,
            width: this.wordGrid[0].length,
            orientations: this.options.orientations,
            preferOverlap: this.options.preferOverlap,
          },
          r = [],
          o = [];
        (t.forEach(function (e) {
          const t = a(n.wordGrid, i, e);
          0 < t.length && t[0].overlap === e.length
            ? ((t[0].word = e), r.push(t[0]))
            : o.push(e);
        }),
          this.markSolution(r));
      }),
      (e.WordGrid.prototype.markSolution = function (e) {
        const o = this;
        e.forEach(function (e) {
          const t = g[e.orientation];
          var n = e.word,
            i = e.x,
            r = e.y,
            n = t(i, r, n.length - 1),
            e = {
              start: [
                i * o.elementSize + o.elementSize / 2,
                r * o.elementSize + o.elementSize / 2,
                i,
                r,
              ],
              end: [
                n.x * o.elementSize + o.elementSize / 2,
                n.y * o.elementSize + o.elementSize / 2,
                n.x,
                n.y,
              ],
              directionKey: e.orientation,
            };
          o.markWord(e);
        });
      }),
      (e.WordGrid.prototype.disableGrid = function () {
        this.options.gridActive = !1;
      }),
      (e.WordGrid.prototype.enableGrid = function () {
        this.options.gridActive = !0;
      }),
      (e.WordGrid.prototype.appendTo = function (e, t) {
        ((this.$container = e),
          (this.canvasWidth = t * this.wordGrid[0].length),
          (this.canvasHeight = t * this.wordGrid.length),
          (this.elementSize = t),
          e.css("height", this.canvasHeight),
          e.css("width", this.canvasWidth));
      }),
      (e.WordGrid.prototype.drawGrid = function (e) {
        const l = this,
          i =
            Math.floor(l.elementSize / 8) < e
              ? Math.floor(l.elementSize / 8)
              : e,
          r =
            l.$container.offset().top > 0.75 * l.elementSize
              ? Math.floor(0.75 * l.elementSize)
              : l.$container.offset().top;
        ((this.$gridCanvas = f(
          '<canvas id="grid-canvas" class="canvas-element" height="' +
            l.canvasHeight +
            'px" width="' +
            l.canvasWidth +
            'px" />',
        ).appendTo(l.$container)),
          (this.$outputCanvas = f(
            '<canvas class="canvas-element" height="' +
              l.canvasHeight +
              'px" width="' +
              l.canvasWidth +
              'px"/>',
          ).appendTo(l.$container)),
          (this.$drawingCanvas = f(
            '<canvas id="drawing-canvas" class="canvas-element" height="' +
              l.canvasHeight +
              'px" width="' +
              l.canvasWidth +
              'px"/>',
          ).appendTo(l.$container)));
        const o = this.$gridCanvas[0].getContext("2d");
        e = l.$container.offset();
        factorY = l.canvasWidth < 600 ? 1 : 1.15;
        (o.clearRect(e.left, e.top, l.canvasWidth, l.canvasHeight),
          (o.font = l.elementSize / 2.1 + "px sans-serif"),
          l.wordGrid.forEach(function (e, n) {
            e.forEach(function (e, t) {
              o.fillText(
                e.toUpperCase(),
                t * l.elementSize + 2 * i,
                n * l.elementSize + r * factorY,
              );
            });
          }));
        let u = [],
          d = !1,
          p = !1;
        (this.$container[0].addEventListener("keydown", function () {}, !1),
          this.$drawingCanvas[0].addEventListener(
            "touchstart",
            function (e) {
              n(e);
            },
            !1,
          ),
          this.$drawingCanvas[0].addEventListener(
            "touchmove",
            function (e) {
              n(e);
            },
            !1,
          ),
          this.$drawingCanvas[0].addEventListener(
            "touchend",
            function (e) {
              n(e);
            },
            !1,
          ),
          this.$drawingCanvas.on("mousedown", function (e) {
            var t, n, i;
            l.options.gridActive &&
              (p ||
                ((l.enableDrawing = !0),
                (u =
                  ((t = e),
                  (n = this),
                  (i = l.elementSize),
                  (e = t.pageX - f(n).offset().left),
                  (n = t.pageY - f(n).offset().top),
                  h(e, n, i))),
                l.trigger("drawStart")));
          }),
          this.$drawingCanvas.on("mouseup", function (e) {
            if (l.enableDrawing)
              if (d || p) {
                p = p && !1;
                let n = "";
                const s = (function (e, t, n, i) {
                  let r = {};
                  var o =
                      f(t).offset().top > 0.75 * n
                        ? -1 * Math.floor(0.75 * n)
                        : f(t).offset().top,
                    a = e.pageX - f(t).offset().left,
                    o = e.pageY - f(t).offset().top,
                    n = h(a, o, n);
                  const s = t.getContext("2d");
                  return (
                    Math.abs(n[0] - a) < 20 &&
                      Math.abs(n[1] - o) < 15 &&
                      (r = {
                        start: i,
                        end: n,
                        dir: (function (e, t, n, i) {
                          var r = e < n ? 1 : n < e ? -1 : 0,
                            o = t < i ? 1 : i < t ? -1 : 0;
                          let a = t,
                            s = e;
                          if (0 != r) for (; s !== n; ) ((s += r), (a += o));
                          else for (; a !== i; ) a += o;
                          return i === a && [r, o];
                        })(i[2], i[3], n[2], n[3]),
                      }),
                    s.closePath(),
                    s.clearRect(0, 0, t.width, t.height),
                    r
                  );
                })(e, this, l.elementSize, u);
                var i = {
                  horizontal: [1, 0],
                  horizontalBack: [-1, 0],
                  diagonal: [1, 1],
                  diagonalBack: [-1, 1],
                  diagonalUp: [1, -1],
                  diagonalUpBack: [-1, -1],
                  vertical: [0, 1],
                  verticalUp: [0, -1],
                };
                if (!f.isEmptyObject(s) && !1 !== s.dir) {
                  var r = s.dir;
                  let e = s.start[3],
                    t = s.start[2];
                  for (
                    var o = s.end[2], a = s.end[3];
                    (n += l.wordGrid[e][t]),
                      (t += r[0]),
                      (e += r[1]),
                      e !== a || t !== o;

                  );
                  n += l.wordGrid[a][o];
                  for (const c in i)
                    if (i[c][0] === r[0] && i[c][1] === r[1]) {
                      s.directionKey = c;
                      break;
                    }
                }
                ((l.enableDrawing = !1),
                  (d = !1),
                  l.trigger("drawEnd", { markedWord: n, wordObject: s }));
              } else if (!p) {
                p = !0;
                e =
                  l.$container.offset().top > 0.75 * l.elementSize
                    ? Math.floor(0.75 * l.elementSize)
                    : l.$container.offset().top;
                const t = l.$drawingCanvas[0].getContext("2d");
                (t.clearRect(0, 0, t.canvas.width, t.canvas.height),
                  (t.lineWidth = Math.floor(l.elementSize / 2)),
                  (t.strokeStyle = "rgba(107,177,125,0.9)"),
                  (t.fillStyle = "rgba(107,177,125,0.3)"),
                  t.beginPath(),
                  t.arc(
                    u[0] - l.elementSize / 8,
                    u[1] + Math.floor(e / 8),
                    l.elementSize / 4,
                    0,
                    2 * Math.PI,
                  ),
                  t.fill(),
                  t.closePath());
              }
          }),
          this.$drawingCanvas.on("mousemove", function (e) {
            l.enableDrawing &&
              ((d = !0),
              (function (e, t, n, i) {
                var r =
                    f(t).offset().top > 0.75 * i
                      ? Math.floor(0.75 * i)
                      : f(t).offset().top,
                  o = e.pageX - f(t).offset().left,
                  e = e.pageY - f(t).offset().top;
                const a = t.getContext("2d");
                (a.clearRect(0, 0, a.canvas.width, a.canvas.height),
                  (a.fillStyle = "rgba(107,177,125,0.3)"),
                  a.beginPath(),
                  (a.lineCap = "round"),
                  a.moveTo(n[0] - i / 8, n[1] + r / 8),
                  (a.strokeStyle = "rgba(107,177,125,0.4)"),
                  (a.lineWidth = Math.floor(i / 2)),
                  a.lineTo(o - i / 8, e + r / 8),
                  a.stroke(),
                  a.closePath());
              })(e, this, u, l.elementSize));
          }));
      }),
      e.WordGrid);
  })(H5P.FindTheWords, H5P.EventDispatcher, H5P.jQuery),
  /*!@license H5P.FindTheWords-1.4/scripts/h5p-find-the-words-vocabulary.js by JithinSpace licensed under MIT*/ (function (
    e,
    t,
    n,
  ) {
    ((e.Vocabulary = function (e, t, n) {
      ((this.words = e),
        (this.header = n),
        (this.showVocabulary = t),
        (this.wordsFound = []),
        (this.wordsNotFound = []),
        (this.wordsSolved = []));
    }),
      (e.Vocabulary.prototype = Object.create(t.prototype)),
      (e.Vocabulary.prototype.constructor = e.Vocabulary),
      (e.Vocabulary.prototype.appendTo = function (e, t) {
        let n =
          '<div class="vocHeading"><em class="fa fa-book fa-fw" ></em>' +
          this.header +
          '</div><ul role="list" tabindex="0">';
        (this.words.forEach(function (e) {
          var t = e.replace(/ /g, "");
          n +=
            '<li role="presentation" ><div role="listitem"  aria-label="' +
            t +
            ' not found" id="' +
            t +
            '"class="word">      <em class="fa fa-check" ></em>' +
            e +
            "</div></li>";
        }),
          (n += "</ul>"),
          e.html(n),
          e.addClass("vocabulary-container"),
          (this.$container = e),
          this.setMode(t));
      }),
      (e.Vocabulary.prototype.setMode = function (e) {
        this.$container
          .toggleClass("vocabulary-block-container", e)
          .toggleClass("vocabulary-inline-container", !e);
      }),
      (e.Vocabulary.prototype.checkWord = function (e) {
        var t = e.split("").reverse().join("");
        const n =
          -1 !== this.words.indexOf(e)
            ? e
            : -1 !== this.words.indexOf(t)
              ? t
              : null;
        return (
          !(!n || -1 !== this.wordsFound.indexOf(n)) &&
          (this.wordsFound.push(n),
          this.showVocabulary &&
            ((t = n.replace(/ /g, "")),
            this.$container
              .find("#" + t)
              .addClass("word-found")
              .attr("aria-label", t + " found")),
          !0)
        );
      }),
      (e.Vocabulary.prototype.reset = function () {
        ((this.wordsFound = []),
          (this.wordsNotFound = this.words),
          this.showVocabulary &&
            this.$container.find(".word").each(function () {
              n(this)
                .removeClass("word-found")
                .removeClass("word-solved")
                .attr("aria-label", n(this).attr("id") + " not found");
            }));
      }),
      (e.Vocabulary.prototype.solveWords = function () {
        const t = this;
        ((t.wordsSolved = t.wordsNotFound),
          t.showVocabulary &&
            t.wordsNotFound.forEach(function (e) {
              e = e.replace(/ /g, "");
              t.$container
                .find("#" + e)
                .addClass("word-solved")
                .attr("aria-label", e + " solved");
            }));
      }),
      (e.Vocabulary.prototype.getNotFound = function () {
        const t = this;
        return (
          (this.wordsNotFound = this.words.filter(function (e) {
            return -1 === t.wordsFound.indexOf(e);
          })),
          this.wordsNotFound
        );
      }),
      (e.Vocabulary.prototype.getFound = function () {
        const t = this;
        return this.words.filter(function (e) {
          return -1 !== t.wordsFound.indexOf(e);
        });
      }),
      (e.Vocabulary.prototype.getSolved = function () {
        const t = this;
        return this.words.filter(function (e) {
          return -1 !== t.wordsSolved.indexOf(e);
        });
      }),
      e.Vocabulary);
  })(H5P.FindTheWords, H5P.EventDispatcher, H5P.jQuery),
  /*!@license H5P.FindTheWords-1.4/scripts/h5p-find-the-words-timer.js by JithinSpace licensed under MIT*/ (function (
    e,
    o,
  ) {
    ((e.Timer = function (i) {
      const r = this;
      o.call(r, 100);
      function e() {
        var e = r.getTime(),
          t = o.extractTimeElement(e, "minutes");
        let n = o.extractTimeElement(e, "seconds") % 60;
        (n < 10 && (n = "0" + n), i.text(t + ":" + n));
      }
      (r.notify("every_tenth_second", e),
        r.on("reset", function () {
          (i.text("0:00"), r.notify("every_tenth_second", e));
        }));
    }),
      (e.Timer.prototype = Object.create(o.prototype)),
      (e.Timer.prototype.constructor = e.Timer));
  })(H5P.FindTheWords, H5P.Timer),
  (H5P.FindTheWords.Counter = function (e) {
    function t() {
      e[0].innerText = n;
    }
    var n = 0;
    ((this.increment = function () {
      (n++, t());
    }),
      (this.reset = function () {
        ((n = 0), t());
      }));
  }));
const realH5PGetPath = H5P.getPath;
H5P.getPath = function (e, t) {
  return e.startsWith("data:") ? e : realH5PGetPath(e, t);
};
H5P.getPath = function (t, n) {
  return t;
};
