/******/ (function() { // webpackBootstrap
/******/ 	var __webpack_modules__ = ({

/***/ "./node_modules/htm/dist/htm.module.js":
/*!*********************************************!*\
  !*** ./node_modules/htm/dist/htm.module.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": function() { return /* export default binding */ __WEBPACK_DEFAULT_EXPORT__; }
/* harmony export */ });
var n = function (t, s, r, e) {
    var u;
    s[0] = 0;
    for (var h = 1; h < s.length; h++) {
      var p = s[h++],
        a = s[h] ? (s[0] |= p ? 1 : 2, r[s[h++]]) : s[++h];
      3 === p ? e[0] = a : 4 === p ? e[1] = Object.assign(e[1] || {}, a) : 5 === p ? (e[1] = e[1] || {})[s[++h]] = a : 6 === p ? e[1][s[++h]] += a + "" : p ? (u = t.apply(a, n(t, a, r, ["", null])), e.push(u), a[0] ? s[0] |= 2 : (s[h - 2] = 0, s[h] = u)) : e.push(a);
    }
    return e;
  },
  t = new Map();
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(s) {
  var r = t.get(this);
  return r || (r = new Map(), t.set(this, r)), (r = n(this, r.get(s) || (r.set(s, r = function (n) {
    for (var t, s, r = 1, e = "", u = "", h = [0], p = function (n) {
        1 === r && (n || (e = e.replace(/^\s*\n\s*|\s*\n\s*$/g, ""))) ? h.push(0, n, e) : 3 === r && (n || e) ? (h.push(3, n, e), r = 2) : 2 === r && "..." === e && n ? h.push(4, n, 0) : 2 === r && e && !n ? h.push(5, 0, !0, e) : r >= 5 && ((e || !n && 5 === r) && (h.push(r, 0, e, s), r = 6), n && (h.push(r, n, 0, s), r = 6)), e = "";
      }, a = 0; a < n.length; a++) {
      a && (1 === r && p(), p(a));
      for (var l = 0; l < n[a].length; l++) t = n[a][l], 1 === r ? "<" === t ? (p(), h = [h], r = 3) : e += t : 4 === r ? "--" === e && ">" === t ? (r = 1, e = "") : e = t + e[0] : u ? t === u ? u = "" : e += t : '"' === t || "'" === t ? u = t : ">" === t ? (p(), r = 1) : r && ("=" === t ? (r = 5, s = e, e = "") : "/" === t && (r < 5 || ">" === n[a][l + 1]) ? (p(), 3 === r && (h = h[0]), r = h, (h = h[0]).push(2, 0, r), r = 0) : " " === t || "\t" === t || "\n" === t || "\r" === t ? (p(), r = 2) : e += t), 3 === r && "!--" === e && (r = 4, h = h[0]);
    }
    return p(), h;
  }(s)), r), arguments, [])).length > 1 ? r : r[0];
}

/***/ }),

/***/ "./node_modules/preact/debug/dist/debug.module.js":
/*!********************************************************!*\
  !*** ./node_modules/preact/debug/dist/debug.module.js ***!
  \********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "resetPropWarnings": function() { return /* binding */ r; }
/* harmony export */ });
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! preact */ "./node_modules/preact/dist/preact.module.js");
/* harmony import */ var preact_devtools__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! preact/devtools */ "./node_modules/preact/devtools/dist/devtools.module.js");


var o = {};
function r() {
  o = {};
}
function a(e) {
  return e.type === preact__WEBPACK_IMPORTED_MODULE_0__.Fragment ? "Fragment" : "function" == typeof e.type ? e.type.displayName || e.type.name : "string" == typeof e.type ? e.type : "#text";
}
var i = [],
  c = [];
function s() {
  return i.length > 0 ? i[i.length - 1] : null;
}
var u = !1;
function l(e) {
  return "function" == typeof e.type && e.type != preact__WEBPACK_IMPORTED_MODULE_0__.Fragment;
}
function f(n) {
  for (var e = [n], t = n; null != t.__o;) e.push(t.__o), t = t.__o;
  return e.reduce(function (n, e) {
    n += "  in " + a(e);
    var t = e.__source;
    return t ? n += " (at " + t.fileName + ":" + t.lineNumber + ")" : u || (u = !0, console.warn("Add @babel/plugin-transform-react-jsx-source to get a more detailed component stack. Note that you should not add it to production builds of your App for bundle size reasons.")), n + "\n";
  }, "");
}
var p = "function" == typeof WeakMap;
function d(n) {
  return n ? "function" == typeof n.type ? d(n.__) : n : {};
}
var h = preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype.setState;
preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype.setState = function (n, e) {
  return null == this.__v && null == this.state && console.warn('Calling "this.setState" inside the constructor of a component is a no-op and might be a bug in your application. Instead, set "this.state = {}" directly.\n\n' + f(s())), h.call(this, n, e);
};
var v = preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype.forceUpdate;
function y(n) {
  var e = n.props,
    t = a(n),
    o = "";
  for (var r in e) if (e.hasOwnProperty(r) && "children" !== r) {
    var i = e[r];
    "function" == typeof i && (i = "function " + (i.displayName || i.name) + "() {}"), i = Object(i) !== i || i.toString ? i + "" : Object.prototype.toString.call(i), o += " " + r + "=" + JSON.stringify(i);
  }
  var c = e.children;
  return "<" + t + o + (c && c.length ? ">..</" + t + ">" : " />");
}
preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype.forceUpdate = function (n) {
  return null == this.__v ? console.warn('Calling "this.forceUpdate" inside the constructor of a component is a no-op and might be a bug in your application.\n\n' + f(s())) : null == this.__P && console.warn('Can\'t call "this.forceUpdate" on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.\n\n' + f(this.__v)), v.call(this, n);
}, function () {
  !function () {
    var n = preact__WEBPACK_IMPORTED_MODULE_0__.options.__b,
      t = preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed,
      o = preact__WEBPACK_IMPORTED_MODULE_0__.options.__,
      r = preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode,
      a = preact__WEBPACK_IMPORTED_MODULE_0__.options.__r;
    preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed = function (n) {
      l(n) && c.pop(), i.pop(), t && t(n);
    }, preact__WEBPACK_IMPORTED_MODULE_0__.options.__b = function (e) {
      l(e) && i.push(e), n && n(e);
    }, preact__WEBPACK_IMPORTED_MODULE_0__.options.__ = function (n, e) {
      c = [], o && o(n, e);
    }, preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode = function (n) {
      n.__o = c.length > 0 ? c[c.length - 1] : null, r && r(n);
    }, preact__WEBPACK_IMPORTED_MODULE_0__.options.__r = function (n) {
      l(n) && c.push(n), a && a(n);
    };
  }();
  var n = !1,
    t = preact__WEBPACK_IMPORTED_MODULE_0__.options.__b,
    r = preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed,
    s = preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode,
    u = preact__WEBPACK_IMPORTED_MODULE_0__.options.__e,
    h = preact__WEBPACK_IMPORTED_MODULE_0__.options.__,
    v = preact__WEBPACK_IMPORTED_MODULE_0__.options.__h,
    m = p ? {
      useEffect: new WeakMap(),
      useLayoutEffect: new WeakMap(),
      lazyPropTypes: new WeakMap()
    } : null,
    b = [];
  preact__WEBPACK_IMPORTED_MODULE_0__.options.__e = function (n, e, t, o) {
    if (e && e.__c && "function" == typeof n.then) {
      var r = n;
      n = new Error("Missing Suspense. The throwing component was: " + a(e));
      for (var i = e; i; i = i.__) if (i.__c && i.__c.__c) {
        n = r;
        break;
      }
      if (n instanceof Error) throw n;
    }
    try {
      (o = o || {}).componentStack = f(e), u(n, e, t, o), "function" != typeof n.then && setTimeout(function () {
        throw n;
      });
    } catch (n) {
      throw n;
    }
  }, preact__WEBPACK_IMPORTED_MODULE_0__.options.__ = function (n, e) {
    if (!e) throw new Error("Undefined parent passed to render(), this is the second argument.\nCheck if the element is available in the DOM/has the correct id.");
    var t;
    switch (e.nodeType) {
      case 1:
      case 11:
      case 9:
        t = !0;
        break;
      default:
        t = !1;
    }
    if (!t) {
      var o = a(n);
      throw new Error("Expected a valid HTML node as a second argument to render.\tReceived " + e + " instead: render(<" + o + " />, " + e + ");");
    }
    h && h(n, e);
  }, preact__WEBPACK_IMPORTED_MODULE_0__.options.__b = function (e) {
    var r = e.type,
      i = d(e.__);
    if (n = !0, void 0 === r) throw new Error("Undefined component passed to createElement()\n\nYou likely forgot to export your component or might have mixed up default and named imports" + y(e) + "\n\n" + f(e));
    if (null != r && "object" == typeof r) {
      if (void 0 !== r.__k && void 0 !== r.__e) throw new Error("Invalid type passed to createElement(): " + r + "\n\nDid you accidentally pass a JSX literal as JSX twice?\n\n  let My" + a(e) + " = " + y(r) + ";\n  let vnode = <My" + a(e) + " />;\n\nThis usually happens when you export a JSX literal and not the component.\n\n" + f(e));
      throw new Error("Invalid type passed to createElement(): " + (Array.isArray(r) ? "array" : r));
    }
    if ("thead" !== r && "tfoot" !== r && "tbody" !== r || "table" === i.type ? "tr" === r && "thead" !== i.type && "tfoot" !== i.type && "tbody" !== i.type && "table" !== i.type ? console.error("Improper nesting of table. Your <tr> should have a <thead/tbody/tfoot/table> parent." + y(e) + "\n\n" + f(e)) : "td" === r && "tr" !== i.type ? console.error("Improper nesting of table. Your <td> should have a <tr> parent." + y(e) + "\n\n" + f(e)) : "th" === r && "tr" !== i.type && console.error("Improper nesting of table. Your <th> should have a <tr>." + y(e) + "\n\n" + f(e)) : console.error("Improper nesting of table. Your <thead/tbody/tfoot> should have a <table> parent." + y(e) + "\n\n" + f(e)), void 0 !== e.ref && "function" != typeof e.ref && "object" != typeof e.ref && !("$$typeof" in e)) throw new Error('Component\'s "ref" property should be a function, or an object created by createRef(), but got [' + typeof e.ref + "] instead\n" + y(e) + "\n\n" + f(e));
    if ("string" == typeof e.type) for (var c in e.props) if ("o" === c[0] && "n" === c[1] && "function" != typeof e.props[c] && null != e.props[c]) throw new Error("Component's \"" + c + '" property should be a function, but got [' + typeof e.props[c] + "] instead\n" + y(e) + "\n\n" + f(e));
    if ("function" == typeof e.type && e.type.propTypes) {
      if ("Lazy" === e.type.displayName && m && !m.lazyPropTypes.has(e.type)) {
        var s = "PropTypes are not supported on lazy(). Use propTypes on the wrapped component itself. ";
        try {
          var u = e.type();
          m.lazyPropTypes.set(e.type, !0), console.warn(s + "Component wrapped in lazy() is " + a(u));
        } catch (n) {
          console.warn(s + "We will log the wrapped component's name once it is loaded.");
        }
      }
      var l = e.props;
      e.type.__f && delete (l = function (n, e) {
        for (var t in e) n[t] = e[t];
        return n;
      }({}, l)).ref, function (n, e, t, r, a) {
        Object.keys(n).forEach(function (t) {
          var i;
          try {
            i = n[t](e, t, r, "prop", null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
          } catch (n) {
            i = n;
          }
          i && !(i.message in o) && (o[i.message] = !0, console.error("Failed prop type: " + i.message + (a && "\n" + a() || "")));
        });
      }(e.type.propTypes, l, 0, a(e), function () {
        return f(e);
      });
    }
    t && t(e);
  }, preact__WEBPACK_IMPORTED_MODULE_0__.options.__h = function (e, t, o) {
    if (!e || !n) throw new Error("Hook can only be invoked from render methods.");
    v && v(e, t, o);
  };
  var w = function (n, e) {
      return {
        get: function () {
          var t = "get" + n + e;
          b && b.indexOf(t) < 0 && (b.push(t), console.warn("getting vnode." + n + " is deprecated, " + e));
        },
        set: function () {
          var t = "set" + n + e;
          b && b.indexOf(t) < 0 && (b.push(t), console.warn("setting vnode." + n + " is not allowed, " + e));
        }
      };
    },
    g = {
      nodeName: w("nodeName", "use vnode.type"),
      attributes: w("attributes", "use vnode.props"),
      children: w("children", "use vnode.props.children")
    },
    E = Object.create({}, g);
  preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode = function (n) {
    var e = n.props;
    if (null !== n.type && null != e && ("__source" in e || "__self" in e)) {
      var t = n.props = {};
      for (var o in e) {
        var r = e[o];
        "__source" === o ? n.__source = r : "__self" === o ? n.__self = r : t[o] = r;
      }
    }
    n.__proto__ = E, s && s(n);
  }, preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed = function (e) {
    if (e.__k && e.__k.forEach(function (n) {
      if (n && void 0 === n.type) {
        delete n.__, delete n.__b;
        var t = Object.keys(n).join(",");
        throw new Error("Objects are not valid as a child. Encountered an object with the keys {" + t + "}.\n\n" + f(e));
      }
    }), n = !1, r && r(e), null != e.__k) for (var t = [], o = 0; o < e.__k.length; o++) {
      var a = e.__k[o];
      if (a && null != a.key) {
        var i = a.key;
        if (-1 !== t.indexOf(i)) {
          console.error('Following component has two or more children with the same key attribute: "' + i + '". This may cause glitches and misbehavior in rendering process. Component: \n\n' + y(e) + "\n\n" + f(e));
          break;
        }
        t.push(i);
      }
    }
  };
}();


/***/ }),

/***/ "./node_modules/preact/devtools/dist/devtools.module.js":
/*!**************************************************************!*\
  !*** ./node_modules/preact/devtools/dist/devtools.module.js ***!
  \**************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "addHookName": function() { return /* binding */ t; }
/* harmony export */ });
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! preact */ "./node_modules/preact/dist/preact.module.js");

function t(o, e) {
  return preact__WEBPACK_IMPORTED_MODULE_0__.options.__a && preact__WEBPACK_IMPORTED_MODULE_0__.options.__a(e), o;
}
"undefined" != typeof window && window.__PREACT_DEVTOOLS__ && window.__PREACT_DEVTOOLS__.attachPreact("10.11.3", preact__WEBPACK_IMPORTED_MODULE_0__.options, {
  Fragment: preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,
  Component: preact__WEBPACK_IMPORTED_MODULE_0__.Component
});


/***/ }),

/***/ "./node_modules/preact/dist/preact.module.js":
/*!***************************************************!*\
  !*** ./node_modules/preact/dist/preact.module.js ***!
  \***************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Component": function() { return /* binding */ d; },
/* harmony export */   "Fragment": function() { return /* binding */ p; },
/* harmony export */   "cloneElement": function() { return /* binding */ q; },
/* harmony export */   "createContext": function() { return /* binding */ B; },
/* harmony export */   "createElement": function() { return /* binding */ h; },
/* harmony export */   "createRef": function() { return /* binding */ y; },
/* harmony export */   "h": function() { return /* binding */ h; },
/* harmony export */   "hydrate": function() { return /* binding */ S; },
/* harmony export */   "isValidElement": function() { return /* binding */ i; },
/* harmony export */   "options": function() { return /* binding */ l; },
/* harmony export */   "render": function() { return /* binding */ P; },
/* harmony export */   "toChildArray": function() { return /* binding */ x; }
/* harmony export */ });
var n,
  l,
  u,
  i,
  t,
  o,
  r,
  f = {},
  e = [],
  c = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
function s(n, l) {
  for (var u in l) n[u] = l[u];
  return n;
}
function a(n) {
  var l = n.parentNode;
  l && l.removeChild(n);
}
function h(l, u, i) {
  var t,
    o,
    r,
    f = {};
  for (r in u) "key" == r ? t = u[r] : "ref" == r ? o = u[r] : f[r] = u[r];
  if (arguments.length > 2 && (f.children = arguments.length > 3 ? n.call(arguments, 2) : i), "function" == typeof l && null != l.defaultProps) for (r in l.defaultProps) void 0 === f[r] && (f[r] = l.defaultProps[r]);
  return v(l, f, t, o, null);
}
function v(n, i, t, o, r) {
  var f = {
    type: n,
    props: i,
    key: t,
    ref: o,
    __k: null,
    __: null,
    __b: 0,
    __e: null,
    __d: void 0,
    __c: null,
    __h: null,
    constructor: void 0,
    __v: null == r ? ++u : r
  };
  return null == r && null != l.vnode && l.vnode(f), f;
}
function y() {
  return {
    current: null
  };
}
function p(n) {
  return n.children;
}
function d(n, l) {
  this.props = n, this.context = l;
}
function _(n, l) {
  if (null == l) return n.__ ? _(n.__, n.__.__k.indexOf(n) + 1) : null;
  for (var u; l < n.__k.length; l++) if (null != (u = n.__k[l]) && null != u.__e) return u.__e;
  return "function" == typeof n.type ? _(n) : null;
}
function k(n) {
  var l, u;
  if (null != (n = n.__) && null != n.__c) {
    for (n.__e = n.__c.base = null, l = 0; l < n.__k.length; l++) if (null != (u = n.__k[l]) && null != u.__e) {
      n.__e = n.__c.base = u.__e;
      break;
    }
    return k(n);
  }
}
function b(n) {
  (!n.__d && (n.__d = !0) && t.push(n) && !g.__r++ || o !== l.debounceRendering) && ((o = l.debounceRendering) || setTimeout)(g);
}
function g() {
  for (var n; g.__r = t.length;) n = t.sort(function (n, l) {
    return n.__v.__b - l.__v.__b;
  }), t = [], n.some(function (n) {
    var l, u, i, t, o, r;
    n.__d && (o = (t = (l = n).__v).__e, (r = l.__P) && (u = [], (i = s({}, t)).__v = t.__v + 1, j(r, t, i, l.__n, void 0 !== r.ownerSVGElement, null != t.__h ? [o] : null, u, null == o ? _(t) : o, t.__h), z(u, t), t.__e != o && k(t)));
  });
}
function w(n, l, u, i, t, o, r, c, s, a) {
  var h,
    y,
    d,
    k,
    b,
    g,
    w,
    x = i && i.__k || e,
    C = x.length;
  for (u.__k = [], h = 0; h < l.length; h++) if (null != (k = u.__k[h] = null == (k = l[h]) || "boolean" == typeof k ? null : "string" == typeof k || "number" == typeof k || "bigint" == typeof k ? v(null, k, null, null, k) : Array.isArray(k) ? v(p, {
    children: k
  }, null, null, null) : k.__b > 0 ? v(k.type, k.props, k.key, k.ref ? k.ref : null, k.__v) : k)) {
    if (k.__ = u, k.__b = u.__b + 1, null === (d = x[h]) || d && k.key == d.key && k.type === d.type) x[h] = void 0;else for (y = 0; y < C; y++) {
      if ((d = x[y]) && k.key == d.key && k.type === d.type) {
        x[y] = void 0;
        break;
      }
      d = null;
    }
    j(n, k, d = d || f, t, o, r, c, s, a), b = k.__e, (y = k.ref) && d.ref != y && (w || (w = []), d.ref && w.push(d.ref, null, k), w.push(y, k.__c || b, k)), null != b ? (null == g && (g = b), "function" == typeof k.type && k.__k === d.__k ? k.__d = s = m(k, s, n) : s = A(n, k, d, x, b, s), "function" == typeof u.type && (u.__d = s)) : s && d.__e == s && s.parentNode != n && (s = _(d));
  }
  for (u.__e = g, h = C; h--;) null != x[h] && N(x[h], x[h]);
  if (w) for (h = 0; h < w.length; h++) M(w[h], w[++h], w[++h]);
}
function m(n, l, u) {
  for (var i, t = n.__k, o = 0; t && o < t.length; o++) (i = t[o]) && (i.__ = n, l = "function" == typeof i.type ? m(i, l, u) : A(u, i, i, t, i.__e, l));
  return l;
}
function x(n, l) {
  return l = l || [], null == n || "boolean" == typeof n || (Array.isArray(n) ? n.some(function (n) {
    x(n, l);
  }) : l.push(n)), l;
}
function A(n, l, u, i, t, o) {
  var r, f, e;
  if (void 0 !== l.__d) r = l.__d, l.__d = void 0;else if (null == u || t != o || null == t.parentNode) n: if (null == o || o.parentNode !== n) n.appendChild(t), r = null;else {
    for (f = o, e = 0; (f = f.nextSibling) && e < i.length; e += 1) if (f == t) break n;
    n.insertBefore(t, o), r = o;
  }
  return void 0 !== r ? r : t.nextSibling;
}
function C(n, l, u, i, t) {
  var o;
  for (o in u) "children" === o || "key" === o || o in l || H(n, o, null, u[o], i);
  for (o in l) t && "function" != typeof l[o] || "children" === o || "key" === o || "value" === o || "checked" === o || u[o] === l[o] || H(n, o, l[o], u[o], i);
}
function $(n, l, u) {
  "-" === l[0] ? n.setProperty(l, u) : n[l] = null == u ? "" : "number" != typeof u || c.test(l) ? u : u + "px";
}
function H(n, l, u, i, t) {
  var o;
  n: if ("style" === l) {
    if ("string" == typeof u) n.style.cssText = u;else {
      if ("string" == typeof i && (n.style.cssText = i = ""), i) for (l in i) u && l in u || $(n.style, l, "");
      if (u) for (l in u) i && u[l] === i[l] || $(n.style, l, u[l]);
    }
  } else if ("o" === l[0] && "n" === l[1]) o = l !== (l = l.replace(/Capture$/, "")), l = l.toLowerCase() in n ? l.toLowerCase().slice(2) : l.slice(2), n.l || (n.l = {}), n.l[l + o] = u, u ? i || n.addEventListener(l, o ? T : I, o) : n.removeEventListener(l, o ? T : I, o);else if ("dangerouslySetInnerHTML" !== l) {
    if (t) l = l.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");else if ("href" !== l && "list" !== l && "form" !== l && "tabIndex" !== l && "download" !== l && l in n) try {
      n[l] = null == u ? "" : u;
      break n;
    } catch (n) {}
    "function" == typeof u || (null == u || !1 === u && -1 == l.indexOf("-") ? n.removeAttribute(l) : n.setAttribute(l, u));
  }
}
function I(n) {
  this.l[n.type + !1](l.event ? l.event(n) : n);
}
function T(n) {
  this.l[n.type + !0](l.event ? l.event(n) : n);
}
function j(n, u, i, t, o, r, f, e, c) {
  var a,
    h,
    v,
    y,
    _,
    k,
    b,
    g,
    m,
    x,
    A,
    C,
    $,
    H,
    I,
    T = u.type;
  if (void 0 !== u.constructor) return null;
  null != i.__h && (c = i.__h, e = u.__e = i.__e, u.__h = null, r = [e]), (a = l.__b) && a(u);
  try {
    n: if ("function" == typeof T) {
      if (g = u.props, m = (a = T.contextType) && t[a.__c], x = a ? m ? m.props.value : a.__ : t, i.__c ? b = (h = u.__c = i.__c).__ = h.__E : ("prototype" in T && T.prototype.render ? u.__c = h = new T(g, x) : (u.__c = h = new d(g, x), h.constructor = T, h.render = O), m && m.sub(h), h.props = g, h.state || (h.state = {}), h.context = x, h.__n = t, v = h.__d = !0, h.__h = [], h._sb = []), null == h.__s && (h.__s = h.state), null != T.getDerivedStateFromProps && (h.__s == h.state && (h.__s = s({}, h.__s)), s(h.__s, T.getDerivedStateFromProps(g, h.__s))), y = h.props, _ = h.state, v) null == T.getDerivedStateFromProps && null != h.componentWillMount && h.componentWillMount(), null != h.componentDidMount && h.__h.push(h.componentDidMount);else {
        if (null == T.getDerivedStateFromProps && g !== y && null != h.componentWillReceiveProps && h.componentWillReceiveProps(g, x), !h.__e && null != h.shouldComponentUpdate && !1 === h.shouldComponentUpdate(g, h.__s, x) || u.__v === i.__v) {
          for (h.props = g, h.state = h.__s, u.__v !== i.__v && (h.__d = !1), h.__v = u, u.__e = i.__e, u.__k = i.__k, u.__k.forEach(function (n) {
            n && (n.__ = u);
          }), A = 0; A < h._sb.length; A++) h.__h.push(h._sb[A]);
          h._sb = [], h.__h.length && f.push(h);
          break n;
        }
        null != h.componentWillUpdate && h.componentWillUpdate(g, h.__s, x), null != h.componentDidUpdate && h.__h.push(function () {
          h.componentDidUpdate(y, _, k);
        });
      }
      if (h.context = x, h.props = g, h.__v = u, h.__P = n, C = l.__r, $ = 0, "prototype" in T && T.prototype.render) {
        for (h.state = h.__s, h.__d = !1, C && C(u), a = h.render(h.props, h.state, h.context), H = 0; H < h._sb.length; H++) h.__h.push(h._sb[H]);
        h._sb = [];
      } else do {
        h.__d = !1, C && C(u), a = h.render(h.props, h.state, h.context), h.state = h.__s;
      } while (h.__d && ++$ < 25);
      h.state = h.__s, null != h.getChildContext && (t = s(s({}, t), h.getChildContext())), v || null == h.getSnapshotBeforeUpdate || (k = h.getSnapshotBeforeUpdate(y, _)), I = null != a && a.type === p && null == a.key ? a.props.children : a, w(n, Array.isArray(I) ? I : [I], u, i, t, o, r, f, e, c), h.base = u.__e, u.__h = null, h.__h.length && f.push(h), b && (h.__E = h.__ = null), h.__e = !1;
    } else null == r && u.__v === i.__v ? (u.__k = i.__k, u.__e = i.__e) : u.__e = L(i.__e, u, i, t, o, r, f, c);
    (a = l.diffed) && a(u);
  } catch (n) {
    u.__v = null, (c || null != r) && (u.__e = e, u.__h = !!c, r[r.indexOf(e)] = null), l.__e(n, u, i);
  }
}
function z(n, u) {
  l.__c && l.__c(u, n), n.some(function (u) {
    try {
      n = u.__h, u.__h = [], n.some(function (n) {
        n.call(u);
      });
    } catch (n) {
      l.__e(n, u.__v);
    }
  });
}
function L(l, u, i, t, o, r, e, c) {
  var s,
    h,
    v,
    y = i.props,
    p = u.props,
    d = u.type,
    k = 0;
  if ("svg" === d && (o = !0), null != r) for (; k < r.length; k++) if ((s = r[k]) && "setAttribute" in s == !!d && (d ? s.localName === d : 3 === s.nodeType)) {
    l = s, r[k] = null;
    break;
  }
  if (null == l) {
    if (null === d) return document.createTextNode(p);
    l = o ? document.createElementNS("http://www.w3.org/2000/svg", d) : document.createElement(d, p.is && p), r = null, c = !1;
  }
  if (null === d) y === p || c && l.data === p || (l.data = p);else {
    if (r = r && n.call(l.childNodes), h = (y = i.props || f).dangerouslySetInnerHTML, v = p.dangerouslySetInnerHTML, !c) {
      if (null != r) for (y = {}, k = 0; k < l.attributes.length; k++) y[l.attributes[k].name] = l.attributes[k].value;
      (v || h) && (v && (h && v.__html == h.__html || v.__html === l.innerHTML) || (l.innerHTML = v && v.__html || ""));
    }
    if (C(l, p, y, o, c), v) u.__k = [];else if (k = u.props.children, w(l, Array.isArray(k) ? k : [k], u, i, t, o && "foreignObject" !== d, r, e, r ? r[0] : i.__k && _(i, 0), c), null != r) for (k = r.length; k--;) null != r[k] && a(r[k]);
    c || ("value" in p && void 0 !== (k = p.value) && (k !== l.value || "progress" === d && !k || "option" === d && k !== y.value) && H(l, "value", k, y.value, !1), "checked" in p && void 0 !== (k = p.checked) && k !== l.checked && H(l, "checked", k, y.checked, !1));
  }
  return l;
}
function M(n, u, i) {
  try {
    "function" == typeof n ? n(u) : n.current = u;
  } catch (n) {
    l.__e(n, i);
  }
}
function N(n, u, i) {
  var t, o;
  if (l.unmount && l.unmount(n), (t = n.ref) && (t.current && t.current !== n.__e || M(t, null, u)), null != (t = n.__c)) {
    if (t.componentWillUnmount) try {
      t.componentWillUnmount();
    } catch (n) {
      l.__e(n, u);
    }
    t.base = t.__P = null, n.__c = void 0;
  }
  if (t = n.__k) for (o = 0; o < t.length; o++) t[o] && N(t[o], u, i || "function" != typeof n.type);
  i || null == n.__e || a(n.__e), n.__ = n.__e = n.__d = void 0;
}
function O(n, l, u) {
  return this.constructor(n, u);
}
function P(u, i, t) {
  var o, r, e;
  l.__ && l.__(u, i), r = (o = "function" == typeof t) ? null : t && t.__k || i.__k, e = [], j(i, u = (!o && t || i).__k = h(p, null, [u]), r || f, f, void 0 !== i.ownerSVGElement, !o && t ? [t] : r ? null : i.firstChild ? n.call(i.childNodes) : null, e, !o && t ? t : r ? r.__e : i.firstChild, o), z(e, u);
}
function S(n, l) {
  P(n, l, S);
}
function q(l, u, i) {
  var t,
    o,
    r,
    f = s({}, l.props);
  for (r in u) "key" == r ? t = u[r] : "ref" == r ? o = u[r] : f[r] = u[r];
  return arguments.length > 2 && (f.children = arguments.length > 3 ? n.call(arguments, 2) : i), v(l.type, f, t || l.key, o || l.ref, null);
}
function B(n, l) {
  var u = {
    __c: l = "__cC" + r++,
    __: n,
    Consumer: function (n, l) {
      return n.children(l);
    },
    Provider: function (n) {
      var u, i;
      return this.getChildContext || (u = [], (i = {})[l] = this, this.getChildContext = function () {
        return i;
      }, this.shouldComponentUpdate = function (n) {
        this.props.value !== n.value && u.some(b);
      }, this.sub = function (n) {
        u.push(n);
        var l = n.componentWillUnmount;
        n.componentWillUnmount = function () {
          u.splice(u.indexOf(n), 1), l && l.call(n);
        };
      }), n.children;
    }
  };
  return u.Provider.__ = u.Consumer.contextType = u;
}
n = e.slice, l = {
  __e: function (n, l, u, i) {
    for (var t, o, r; l = l.__;) if ((t = l.__c) && !t.__) try {
      if ((o = t.constructor) && null != o.getDerivedStateFromError && (t.setState(o.getDerivedStateFromError(n)), r = t.__d), null != t.componentDidCatch && (t.componentDidCatch(n, i || {}), r = t.__d), r) return t.__E = t;
    } catch (l) {
      n = l;
    }
    throw n;
  }
}, u = 0, i = function (n) {
  return null != n && void 0 === n.constructor;
}, d.prototype.setState = function (n, l) {
  var u;
  u = null != this.__s && this.__s !== this.state ? this.__s : this.__s = s({}, this.state), "function" == typeof n && (n = n(s({}, u), this.props)), n && s(u, n), null != n && this.__v && (l && this._sb.push(l), b(this));
}, d.prototype.forceUpdate = function (n) {
  this.__v && (this.__e = !0, n && this.__h.push(n), b(this));
}, d.prototype.render = p, t = [], g.__r = 0, r = 0;


/***/ }),

/***/ "./node_modules/preact/hooks/dist/hooks.module.js":
/*!********************************************************!*\
  !*** ./node_modules/preact/hooks/dist/hooks.module.js ***!
  \********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "useCallback": function() { return /* binding */ T; },
/* harmony export */   "useContext": function() { return /* binding */ q; },
/* harmony export */   "useDebugValue": function() { return /* binding */ x; },
/* harmony export */   "useEffect": function() { return /* binding */ h; },
/* harmony export */   "useErrorBoundary": function() { return /* binding */ P; },
/* harmony export */   "useId": function() { return /* binding */ V; },
/* harmony export */   "useImperativeHandle": function() { return /* binding */ A; },
/* harmony export */   "useLayoutEffect": function() { return /* binding */ s; },
/* harmony export */   "useMemo": function() { return /* binding */ F; },
/* harmony export */   "useReducer": function() { return /* binding */ y; },
/* harmony export */   "useRef": function() { return /* binding */ _; },
/* harmony export */   "useState": function() { return /* binding */ p; }
/* harmony export */ });
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! preact */ "./node_modules/preact/dist/preact.module.js");

var t,
  r,
  u,
  i,
  o = 0,
  f = [],
  c = [],
  e = preact__WEBPACK_IMPORTED_MODULE_0__.options.__b,
  a = preact__WEBPACK_IMPORTED_MODULE_0__.options.__r,
  v = preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed,
  l = preact__WEBPACK_IMPORTED_MODULE_0__.options.__c,
  m = preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount;
function d(t, u) {
  preact__WEBPACK_IMPORTED_MODULE_0__.options.__h && preact__WEBPACK_IMPORTED_MODULE_0__.options.__h(r, t, o || u), o = 0;
  var i = r.__H || (r.__H = {
    __: [],
    __h: []
  });
  return t >= i.__.length && i.__.push({
    __V: c
  }), i.__[t];
}
function p(n) {
  return o = 1, y(B, n);
}
function y(n, u, i) {
  var o = d(t++, 2);
  if (o.t = n, !o.__c && (o.__ = [i ? i(u) : B(void 0, u), function (n) {
    var t = o.__N ? o.__N[0] : o.__[0],
      r = o.t(t, n);
    t !== r && (o.__N = [r, o.__[1]], o.__c.setState({}));
  }], o.__c = r, !r.u)) {
    r.u = !0;
    var f = r.shouldComponentUpdate;
    r.shouldComponentUpdate = function (n, t, r) {
      if (!o.__c.__H) return !0;
      var u = o.__c.__H.__.filter(function (n) {
        return n.__c;
      });
      if (u.every(function (n) {
        return !n.__N;
      })) return !f || f.call(this, n, t, r);
      var i = !1;
      return u.forEach(function (n) {
        if (n.__N) {
          var t = n.__[0];
          n.__ = n.__N, n.__N = void 0, t !== n.__[0] && (i = !0);
        }
      }), !(!i && o.__c.props === n) && (!f || f.call(this, n, t, r));
    };
  }
  return o.__N || o.__;
}
function h(u, i) {
  var o = d(t++, 3);
  !preact__WEBPACK_IMPORTED_MODULE_0__.options.__s && z(o.__H, i) && (o.__ = u, o.i = i, r.__H.__h.push(o));
}
function s(u, i) {
  var o = d(t++, 4);
  !preact__WEBPACK_IMPORTED_MODULE_0__.options.__s && z(o.__H, i) && (o.__ = u, o.i = i, r.__h.push(o));
}
function _(n) {
  return o = 5, F(function () {
    return {
      current: n
    };
  }, []);
}
function A(n, t, r) {
  o = 6, s(function () {
    return "function" == typeof n ? (n(t()), function () {
      return n(null);
    }) : n ? (n.current = t(), function () {
      return n.current = null;
    }) : void 0;
  }, null == r ? r : r.concat(n));
}
function F(n, r) {
  var u = d(t++, 7);
  return z(u.__H, r) ? (u.__V = n(), u.i = r, u.__h = n, u.__V) : u.__;
}
function T(n, t) {
  return o = 8, F(function () {
    return n;
  }, t);
}
function q(n) {
  var u = r.context[n.__c],
    i = d(t++, 9);
  return i.c = n, u ? (null == i.__ && (i.__ = !0, u.sub(r)), u.props.value) : n.__;
}
function x(t, r) {
  preact__WEBPACK_IMPORTED_MODULE_0__.options.useDebugValue && preact__WEBPACK_IMPORTED_MODULE_0__.options.useDebugValue(r ? r(t) : t);
}
function P(n) {
  var u = d(t++, 10),
    i = p();
  return u.__ = n, r.componentDidCatch || (r.componentDidCatch = function (n, t) {
    u.__ && u.__(n, t), i[1](n);
  }), [i[0], function () {
    i[1](void 0);
  }];
}
function V() {
  var n = d(t++, 11);
  if (!n.__) {
    for (var u = r.__v; null !== u && !u.__m && null !== u.__;) u = u.__;
    var i = u.__m || (u.__m = [0, 0]);
    n.__ = "P" + i[0] + "-" + i[1]++;
  }
  return n.__;
}
function b() {
  for (var t; t = f.shift();) if (t.__P && t.__H) try {
    t.__H.__h.forEach(k), t.__H.__h.forEach(w), t.__H.__h = [];
  } catch (r) {
    t.__H.__h = [], preact__WEBPACK_IMPORTED_MODULE_0__.options.__e(r, t.__v);
  }
}
preact__WEBPACK_IMPORTED_MODULE_0__.options.__b = function (n) {
  r = null, e && e(n);
}, preact__WEBPACK_IMPORTED_MODULE_0__.options.__r = function (n) {
  a && a(n), t = 0;
  var i = (r = n.__c).__H;
  i && (u === r ? (i.__h = [], r.__h = [], i.__.forEach(function (n) {
    n.__N && (n.__ = n.__N), n.__V = c, n.__N = n.i = void 0;
  })) : (i.__h.forEach(k), i.__h.forEach(w), i.__h = [])), u = r;
}, preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed = function (t) {
  v && v(t);
  var o = t.__c;
  o && o.__H && (o.__H.__h.length && (1 !== f.push(o) && i === preact__WEBPACK_IMPORTED_MODULE_0__.options.requestAnimationFrame || ((i = preact__WEBPACK_IMPORTED_MODULE_0__.options.requestAnimationFrame) || j)(b)), o.__H.__.forEach(function (n) {
    n.i && (n.__H = n.i), n.__V !== c && (n.__ = n.__V), n.i = void 0, n.__V = c;
  })), u = r = null;
}, preact__WEBPACK_IMPORTED_MODULE_0__.options.__c = function (t, r) {
  r.some(function (t) {
    try {
      t.__h.forEach(k), t.__h = t.__h.filter(function (n) {
        return !n.__ || w(n);
      });
    } catch (u) {
      r.some(function (n) {
        n.__h && (n.__h = []);
      }), r = [], preact__WEBPACK_IMPORTED_MODULE_0__.options.__e(u, t.__v);
    }
  }), l && l(t, r);
}, preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount = function (t) {
  m && m(t);
  var r,
    u = t.__c;
  u && u.__H && (u.__H.__.forEach(function (n) {
    try {
      k(n);
    } catch (n) {
      r = n;
    }
  }), u.__H = void 0, r && preact__WEBPACK_IMPORTED_MODULE_0__.options.__e(r, u.__v));
};
var g = "function" == typeof requestAnimationFrame;
function j(n) {
  var t,
    r = function () {
      clearTimeout(u), g && cancelAnimationFrame(t), setTimeout(n);
    },
    u = setTimeout(r, 100);
  g && (t = requestAnimationFrame(r));
}
function k(n) {
  var t = r,
    u = n.__c;
  "function" == typeof u && (n.__c = void 0, u()), r = t;
}
function w(n) {
  var t = r;
  n.__c = n.__(), r = t;
}
function z(n, t) {
  return !n || n.length !== t.length || t.some(function (t, r) {
    return t !== n[r];
  });
}
function B(n, t) {
  return "function" == typeof t ? t(n) : t;
}


/***/ }),

/***/ "./scripts/widgetsLoader/dataDefault.js":
/*!**********************************************!*\
  !*** ./scripts/widgetsLoader/dataDefault.js ***!
  \**********************************************/
/***/ (function(module) {

var data = {
  data: {
    parentCss: null,
    widgetsArray: []
  }
};
module.exports = data;

/***/ }),

/***/ "./scripts/widgetsLoader/localStorageData.js":
/*!***************************************************!*\
  !*** ./scripts/widgetsLoader/localStorageData.js ***!
  \***************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "LocalStorageData": function() { return /* binding */ LocalStorageData; }
/* harmony export */ });
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
var LocalStorageData = /*#__PURE__*/function () {
  // объявление свойства sid
  /** @type {{ date?: string, utm_source?: string, utm_medium?: string, utm_campaign?: string, utm_term?: string, utm_content?: string, host_id?: number, }} */
  // объявление и инициализация свойства storageObject

  function LocalStorageData(sid) {
    _classCallCheck(this, LocalStorageData);
    this.sid = void 0;
    this.storageObject = {};
    this.sid = sid;
    this.loadData();
  }
  _createClass(LocalStorageData, [{
    key: "loadData",
    value: function loadData() {
      try {
        this.storageObject = JSON.parse(localStorage.getItem(this.sid)) || {};
      } catch (e) {
        var potentialDate = localStorage.getItem(this.sid);
        if (potentialDate) {
          var date = new Date(potentialDate);
          if (isNaN(date.getTime())) {
            this.storageObject = {};
          } else {
            this.updateData({
              date: potentialDate
            });
          }
        } else {
          this.storageObject = {};
        }
      }
    }
  }, {
    key: "getData",
    value: function getData() {
      return this.storageObject;
    }
  }, {
    key: "updateData",
    value: function updateData(data) {
      this.storageObject = _objectSpread(_objectSpread({}, this.getData()), data);
      this.saveData();
    }
  }, {
    key: "saveData",
    value: function saveData() {
      localStorage.setItem(this.sid, JSON.stringify(this.getData()));
    }
  }]);
  return LocalStorageData;
}();

/***/ }),

/***/ "./scripts/widgetsLoader/sessionStorageData.js":
/*!*****************************************************!*\
  !*** ./scripts/widgetsLoader/sessionStorageData.js ***!
  \*****************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SessionStorageData": function() { return /* binding */ SessionStorageData; }
/* harmony export */ });
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
var SessionStorageData = /*#__PURE__*/function () {
  // объявление свойства sid
  /** @type {{ date?: string , referrer?:string, startSource?:string }} */
  // объявление и инициализация свойства storageObject

  function SessionStorageData(sid) {
    _classCallCheck(this, SessionStorageData);
    this.sid = void 0;
    this.storageObject = {};
    this.sid = sid;
    this.loadData();
    this.updateData({
      referrer: document.referrer,
      startSource: location.href
    });
  }
  _createClass(SessionStorageData, [{
    key: "loadData",
    value: function loadData() {
      var defaultData = {
        referrer: document.referrer,
        startSource: location.href
      };
      try {
        this.storageObject = JSON.parse(sessionStorage.getItem(this.sid)) || defaultData;
      } catch (e) {
        this.storageObject = defaultData;
      }
    }
  }, {
    key: "getData",
    value: function getData() {
      return this.storageObject;
    }
  }, {
    key: "updateData",
    value: function updateData(data) {
      this.storageObject = _objectSpread(_objectSpread({}, this.getData()), data);
      this.saveData();
    }
  }, {
    key: "saveData",
    value: function saveData() {
      sessionStorage.setItem(this.sid, JSON.stringify(this.getData()));
    }
  }]);
  return SessionStorageData;
}();

/***/ }),

/***/ "./build/scripts/reminder/style/styles.css.mjs":
/*!*****************************************************!*\
  !*** ./build/scripts/reminder/style/styles.css.mjs ***!
  \*****************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("/* http://meyerweb.com/eric/tools/css/reset/ \n   v2.0 | 20110126\n   License: none (public domain)\n*/\nhtml, body, div, span, applet, object, iframe,\nh1, h2, h3, h4, h5, h6, p, blockquote, pre,\na, abbr, acronym, address, big, cite, code,\ndel, dfn, em, img, ins, kbd, q, s, samp,\nsmall, strike, strong, sub, sup, tt, var,\nb, u, i, center,\ndl, dt, dd, ol, ul, li,\nfieldset, form, label, legend,\ntable, caption, tbody, tfoot, thead, tr, th, td,\narticle, aside, canvas, details, embed,\nfigure, figcaption, footer, header, hgroup,\nmenu, nav, output, ruby, section, summary,\ntime, mark, audio, video {\n  margin: 0;\n  padding: 0;\n  border: 0;\n  font-size: 100%;\n  font: inherit;\n  vertical-align: baseline;\n}\n\n/* HTML5 display-role reset for older browsers */\narticle, aside, details, figcaption, figure,\nfooter, header, hgroup, menu, nav, section {\n  display: block;\n}\n\nbody {\n  line-height: 1;\n}\n\nol, ul {\n  list-style: none;\n}\n\nblockquote, q {\n  quotes: none;\n}\n\nblockquote:before, blockquote:after,\nq:before, q:after {\n  content: \"\";\n  content: none;\n}\n\ntable {\n  border-collapse: collapse;\n  border-spacing: 0;\n}\n\n#d7_modal_overlay {\n  position: fixed;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n  background: rgba(0, 0, 0, 0.75);\n  z-index: 99999;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  font-family: \"Rubik\", sans-serif;\n  line-height: 1.2;\n  font-weight: normal;\n}\n#d7_modal_overlay .modal-wrapper {\n  position: relative;\n  max-width: 100%;\n}\n@media only screen and (min-width: 401px) {\n  #d7_modal_overlay .modal-wrapper {\n    padding-right: 13px;\n  }\n}\n#d7_modal_overlay .close-container {\n  width: 24px;\n  height: 24px;\n  position: absolute;\n  right: -3px;\n  top: 10px;\n  border-radius: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  z-index: 1;\n}\n@media only screen and (max-width: 400px) {\n  #d7_modal_overlay .close-container {\n    width: 100%;\n    justify-content: end;\n    position: static;\n    margin: 0 -5px -5px;\n  }\n}\n#d7_modal_overlay .close-container .close-icon {\n  height: 12px;\n  width: 12px;\n  display: block;\n  margin: 5px;\n  background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEyIiBoZWlnaHQ9IjEyIj48cGF0aCBmaWxsPSIjODY5MzlFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03IDZsNSA1LTEgMS01LTUtNSA1LTEtMSA1LTUtNS01IDEtMSA1IDUgNS01IDEgMS01IDV6Ii8+PC9zdmc+);\n  cursor: pointer;\n}\n#d7_modal_overlay .modal-container {\n  background: white;\n  border-radius: 4px;\n  max-height: 90vh;\n  max-height: 90dvh;\n  overflow: auto;\n  flex: 1;\n  max-width: 450px;\n  margin: 10px;\n}\n@media only screen and (max-width: 340px) {\n  #d7_modal_overlay .modal-container {\n    margin: 10px 0 0 0;\n  }\n}\n#d7_modal_overlay .modal-container .modal-content {\n  max-width: 100%;\n  padding: 10px;\n  min-width: 200px;\n  min-height: 200px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n@media only screen and (min-width: 400px) {\n  #d7_modal_overlay .modal-container .modal-content {\n    padding: 20px;\n  }\n}\n#d7_modal_overlay .modal-container .modal-content #widget-form-container {\n  max-width: 100%;\n}\n\n.theme_xbox .pace_activity, .theme_xbox_lg .pace_activity, .theme_xbox_sm .pace_activity {\n  -webkit-animation: rotation 1.5s ease-in-out infinite;\n  animation: rotation 1.5s ease-in-out infinite;\n  margin: 0 auto;\n  width: 38px;\n  height: 38px;\n}\n\n.theme_xbox .pace_activity, .theme_xbox .pace_activity:after, .theme_xbox .pace_activity:before, .theme_xbox_lg .pace_activity, .theme_xbox_lg .pace_activity:after, .theme_xbox_lg .pace_activity:before, .theme_xbox_sm .pace_activity, .theme_xbox_sm .pace_activity:after, .theme_xbox_sm .pace_activity:before {\n  border: 2px solid transparent;\n  border-top-color: var(--d7reminder-loader-color);\n  border-radius: 50%;\n}\n\n.theme_xbox .pace_activity:before, .theme_xbox_lg .pace_activity:before, .theme_xbox_sm .pace_activity:before {\n  content: \"\";\n  position: absolute;\n  top: 5px;\n  left: 5px;\n  right: 5px;\n  bottom: 5px;\n  -webkit-animation: rotation ease-in-out 2s infinite;\n  animation: rotation ease-in-out 2s infinite;\n}\n\n.theme_xbox .pace_activity:after, .theme_xbox_lg .pace_activity:after, .theme_xbox_sm .pace_activity:after {\n  content: \"\";\n  position: absolute;\n  top: 12px;\n  left: 12px;\n  right: 12px;\n  bottom: 12px;\n  -webkit-animation: rotation ease-in-out 1s infinite;\n  animation: rotation ease-in-out 1s infinite;\n}\n\n.theme_xbox_with_text .pace_activity {\n  margin-top: -10px;\n}\n\n.theme_xbox_with_text span {\n  display: block;\n  margin-top: 10px;\n  color: #fff;\n  white-space: nowrap;\n}\n\n.theme_xbox_sm .pace_activity, .theme_xbox_sm .pace_activity:after, .theme_xbox_sm .pace_activity:before {\n  border-width: 1px;\n}\n\n.theme_xbox_lg .pace_activity, .theme_xbox_lg .pace_activity:after, .theme_xbox_lg .pace_activity:before {\n  border-width: 3px;\n}\n\n.theme_xbox, .theme_xbox_lg, .theme_xbox_sm {\n  position: initial;\n  top: initial;\n  left: initial;\n  right: initial;\n}\n\n@-webkit-keyframes rotation {\n  0% {\n    -webkit-transform: rotate(0);\n    transform: rotate(0);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n@keyframes rotation {\n  0% {\n    -webkit-transform: rotate(0);\n    transform: rotate(0);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n@-webkit-keyframes rotation_reverse {\n  0% {\n    -webkit-transform: rotate(0);\n    transform: rotate(0);\n  }\n  100% {\n    -webkit-transform: rotate(-360deg);\n    transform: rotate(-360deg);\n  }\n}\n@keyframes rotation_reverse {\n  0% {\n    -webkit-transform: rotate(0);\n    transform: rotate(0);\n  }\n  100% {\n    -webkit-transform: rotate(-360deg);\n    transform: rotate(-360deg);\n  }\n}\n.d7reminder-fixed, .d7reminder-absolute {\n  position: fixed;\n  background: white;\n  transition: 0.3s;\n  z-index: 9999;\n}\n.d7reminder-fixed[data-position=\"0\"], .d7reminder-absolute[data-position=\"0\"] {\n  top: var(--d7reminder-padding);\n  right: var(--d7reminder-padding);\n  margin-left: var(--d7reminder-padding);\n}\n.d7reminder-fixed[data-position=\"1\"], .d7reminder-absolute[data-position=\"1\"] {\n  bottom: var(--d7reminder-padding);\n  right: var(--d7reminder-padding);\n  margin-left: var(--d7reminder-padding);\n}\n.d7reminder-fixed[data-position=\"2\"], .d7reminder-absolute[data-position=\"2\"] {\n  bottom: var(--d7reminder-padding);\n  left: var(--d7reminder-padding);\n  margin-right: var(--d7reminder-padding);\n}\n.d7reminder-fixed[data-position=\"3\"], .d7reminder-absolute[data-position=\"3\"] {\n  top: var(--d7reminder-padding);\n  left: var(--d7reminder-padding);\n  margin-right: var(--d7reminder-padding);\n}\n.d7reminder-fixed.zoom-out, .d7reminder-absolute.zoom-out {\n  transform: matrix(0.1, 0, 0, 0.1, 0, 0);\n}\n.d7reminder-fixed .reminder-content, .d7reminder-absolute .reminder-content {\n  cursor: pointer;\n  position: relative;\n  font-family: \"Rubik\", sans-serif;\n  line-height: 1.2;\n  font-weight: normal;\n  font-size: 14px;\n  display: flex;\n  justify-content: space-between;\n  gap: 10px;\n  min-height: 60px;\n  text-align: left;\n}\n@media (min-width: 760px) {\n  .d7reminder-fixed .reminder-content, .d7reminder-absolute .reminder-content {\n    line-height: 1.4;\n  }\n}\n.d7reminder-fixed .reminder-content .target-block, .d7reminder-absolute .reminder-content .target-block {\n  display: flex;\n  gap: 10px;\n}\n@media (min-width: 760px) {\n  .d7reminder-fixed .reminder-content .target-block, .d7reminder-absolute .reminder-content .target-block {\n    width: 100%;\n  }\n}\n.d7reminder-fixed .reminder-content .target-block .text, .d7reminder-absolute .reminder-content .target-block .text {\n  min-width: 150px;\n}\n.d7reminder-fixed .reminder-content .title, .d7reminder-absolute .reminder-content .title {\n  font-weight: bold;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  display: -webkit-box;\n  -webkit-line-clamp: 2;\n  -webkit-box-orient: vertical;\n}\n.d7reminder-fixed .reminder-content .description, .d7reminder-absolute .reminder-content .description {\n  margin-top: 6px;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  display: -webkit-box;\n  -webkit-line-clamp: 4;\n  -webkit-box-orient: vertical;\n}\n\n.d7reminder-absolute {\n  position: absolute;\n}\n\n.reminder-mac {\n  background: rgba(255, 255, 255, 0.4);\n  backdrop-filter: blur(12px);\n  -webkit-backdrop-filter: blur(12px);\n  border-radius: 0.5rem;\n  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);\n  display: flex;\n  flex-direction: column;\n  font-family: sans-serif;\n  color: black;\n  font-size: 0.9rem;\n  line-height: 1.4;\n  margin-left: auto;\n  padding: 0.625rem 1.375rem 0.625rem 0.625rem;\n  -webkit-font-smoothing: antialiased;\n  max-width: 500px;\n}\n.reminder-mac .reminder-content .logo {\n  width: 84px;\n  min-width: 84px;\n  height: 84px;\n  object-fit: cover;\n  border-radius: 0.5rem;\n}\n@media (max-width: 760px) {\n  .reminder-mac .reminder-content .logo {\n    width: 94px;\n    height: 94px;\n  }\n}\n@media (max-width: 500px) {\n  .reminder-mac .reminder-content .logo {\n    display: none;\n  }\n}\n.reminder-mac .reminder-content .title {\n  font-weight: bold;\n  -webkit-line-clamp: 1;\n}\n.reminder-mac .reminder-content .description {\n  -webkit-line-clamp: 3;\n}\n@media (max-width: 760px) {\n  .reminder-mac .reminder-content .description {\n    -webkit-line-clamp: 4;\n  }\n}\n@media (max-width: 400px) {\n  .reminder-mac .reminder-content .description {\n    -webkit-line-clamp: 5;\n  }\n}\n.reminder-mac .reminder-content .text-menu {\n  display: flex;\n  flex-direction: column;\n  justify-content: space-evenly;\n  border-left: solid 1px rgba(0, 0, 0, 0.1);\n  margin: -0.625rem -1.375rem -0.625rem 0;\n}\n.reminder-mac .reminder-content .text-menu .divider {\n  border-top: solid 1px rgba(0, 0, 0, 0.1);\n}\n.reminder-mac .reminder-content .text-menu .btn {\n  white-space: nowrap;\n  padding: 5px 22px 5px 10px;\n  font-weight: bold;\n  font-size: 90%;\n  opacity: 0.6;\n  transition: 0.3s;\n  line-height: 1;\n}\n.reminder-mac .reminder-content .text-menu .btn:first-child {\n  opacity: 1;\n}\n.reminder-mac .reminder-content .text-menu .btn:hover {\n  opacity: 1;\n}\n\n.d-none {\n  display: none !important;\n}\n\n.text-center {\n  text-align: center !important;\n}\n");

/***/ }),

/***/ "./scripts/constants.mjs":
/*!*******************************!*\
  !*** ./scripts/constants.mjs ***!
  \*******************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DntnVisitsDataIdKey": function() { return /* binding */ DntnVisitsDataIdKey; },
/* harmony export */   "FUNDRAISING_PRODUCT_BY_SOURCE": function() { return /* binding */ FUNDRAISING_PRODUCT_BY_SOURCE; },
/* harmony export */   "FailDonationInfoKey": function() { return /* binding */ FailDonationInfoKey; },
/* harmony export */   "FieldRepeatVariants": function() { return /* binding */ FieldRepeatVariants; },
/* harmony export */   "FieldStates": function() { return /* binding */ FieldStates; },
/* harmony export */   "FieldSumBadgesSortVariants": function() { return /* binding */ FieldSumBadgesSortVariants; },
/* harmony export */   "FieldSumVariants": function() { return /* binding */ FieldSumVariants; },
/* harmony export */   "FormMode": function() { return /* binding */ FormMode; },
/* harmony export */   "FundTypes": function() { return /* binding */ FundTypes; },
/* harmony export */   "InfoBlockTypes": function() { return /* binding */ InfoBlockTypes; },
/* harmony export */   "MobileOperators": function() { return /* binding */ MobileOperators; },
/* harmony export */   "MxRequestMerchantFields": function() { return /* binding */ MxRequestMerchantFields; },
/* harmony export */   "OnSiteParam": function() { return /* binding */ OnSiteParam; },
/* harmony export */   "PayDataParamName": function() { return /* binding */ PayDataParamName; },
/* harmony export */   "PayStatusParamName": function() { return /* binding */ PayStatusParamName; },
/* harmony export */   "PayStatusValues": function() { return /* binding */ PayStatusValues; },
/* harmony export */   "PaymentMethod": function() { return /* binding */ PaymentMethod; },
/* harmony export */   "ProjectOperators": function() { return /* binding */ ProjectOperators; },
/* harmony export */   "RejectDonationInfoKey": function() { return /* binding */ RejectDonationInfoKey; },
/* harmony export */   "ScriptUrlParams": function() { return /* binding */ ScriptUrlParams; },
/* harmony export */   "SourceConsts": function() { return /* binding */ SourceConsts; },
/* harmony export */   "SuccessDonationAmountsKey": function() { return /* binding */ SuccessDonationAmountsKey; },
/* harmony export */   "TargetType": function() { return /* binding */ TargetType; },
/* harmony export */   "TargetTypes": function() { return /* binding */ TargetTypes; },
/* harmony export */   "WidgetFundraisingProduct": function() { return /* binding */ WidgetFundraisingProduct; },
/* harmony export */   "WidgetVisitDateKey": function() { return /* binding */ WidgetVisitDateKey; },
/* harmony export */   "d7domain": function() { return /* binding */ d7domain; },
/* harmony export */   "fancyBoxSrc": function() { return /* binding */ fancyBoxSrc; },
/* harmony export */   "productExportName": function() { return /* binding */ productExportName; },
/* harmony export */   "yaMetrikaGoals": function() { return /* binding */ yaMetrikaGoals; }
/* harmony export */ });
var _productExportName, _FUNDRAISING_PRODUCT_;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var d7domain = 'donation.ru';
var WidgetFundraisingProduct = {
  FORM: 'donation_form',
  NATIVE_FORM: 'donation_native',
  COMMERCIAL_FORM: 'commercial_form',
  STICKER: 'donation_sticker',
  STICKY_BUTTON: 'donation_bookmark',
  REMINDER: 'donation_reminder',
  SLIDER: 'donation_slider',
  BUTTON: 'donation_button',
  STAT_LIST: 'donation_list',
  STAT_PROGRESSBAR: 'donation_progressbar',
  INFO_BLOCK: 'donation_info_block'
};
var productExportName = (_productExportName = {}, _defineProperty(_productExportName, WidgetFundraisingProduct.BUTTON, WidgetFundraisingProduct.BUTTON), _defineProperty(_productExportName, WidgetFundraisingProduct.REMINDER, WidgetFundraisingProduct.REMINDER), _defineProperty(_productExportName, WidgetFundraisingProduct.SLIDER, WidgetFundraisingProduct.SLIDER), _defineProperty(_productExportName, WidgetFundraisingProduct.STAT_LIST, WidgetFundraisingProduct.STAT_LIST), _defineProperty(_productExportName, WidgetFundraisingProduct.STAT_PROGRESSBAR, WidgetFundraisingProduct.STAT_PROGRESSBAR), _defineProperty(_productExportName, WidgetFundraisingProduct.STICKER, WidgetFundraisingProduct.STICKER), _defineProperty(_productExportName, WidgetFundraisingProduct.STICKY_BUTTON, WidgetFundraisingProduct.STICKY_BUTTON), _defineProperty(_productExportName, WidgetFundraisingProduct.FORM, WidgetFundraisingProduct.FORM), _defineProperty(_productExportName, WidgetFundraisingProduct.COMMERCIAL_FORM, WidgetFundraisingProduct.COMMERCIAL_FORM), _defineProperty(_productExportName, WidgetFundraisingProduct.INFO_BLOCK, WidgetFundraisingProduct.BUTTON), _productExportName);

//Список констант JS-событий Яндекс.Метрики
var yaMetrikaGoals = {
  FORM_SUBMIT: 'MX_WIDGET_FORM_SUBMIT'
};
var FieldStates = {
  allways: 1,
  never: 0,
  ifnone: 2
};
var FundTypes = {
  NON_COMMERCIAL: 1,
  COMMERCIAL: 2,
  RELIGIOUS: 3
};
var FormMode = {
  form: 'form',
  success: 'success',
  fail: 'fail',
  mobile: 'mobile',
  requisites: 'requisites',
  installPrompt: 'installPrompt'
};
var TargetTypes = {
  MAIN: 0,
  PERSON: 1,
  PROJECT: 2
};
var InfoBlockTypes = {
  SEND_SMS: 1,
  CUSTOMER_INFORMATION: 2,
  FOUNDING_DOCUMENTS: 3,
  //Учредительный документы
  ACTIVITY_REPORTS: 4,
  DONATION_OFFER: 5,
  CONSENT_TO_PERSONAL_DATA_PROCESSING: 6,
  MANAGEMENT_OF_REGULAR_DONATIONS: 7,
  PAYMENT_SECURITY_TEXT: 8,
  MIXPLAT_PROCESSING_TEXT: 9,
  DESCRIPTION_OF_ACTIVITIES: 10,
  PROGRAM_DESCRIPTION: 11,
  PROGRAM_CARD: 12,
  PERSON_DESCRIPTION: 13,
  PERSON_CARD: 14
};
var MobileOperators = {
  mts: 'mts',
  megafon: 'megafon',
  beeline: 'beeline',
  tele2: 'tele2',
  yota: 'yota',
  tinkoff: 'tinkoff'
};
var FieldSumVariants = {
  slider: 0,
  badges_2: 1,
  badges_3: 2,
  badges_4: 5,
  badges_5: 6,
  badges_6: 3,
  badges_7: 7,
  only_input: 4,
  sum_effects: 8,
  fixed_badge: 9
};
var FieldSumBadgesSortVariants = {
  ASC: 'asc',
  DESC: 'desc'
};
var FieldRepeatVariants = {
  radio: 0,
  checkbox: 1,
  toggle: 2,
  heart: 3
};
var PayStatusValues = {
  success: 'success',
  fail: 'fail'
};
var PaymentMethod = {
  card: 'card',
  sbp: 'sbp',
  mobile: 'mobile',
  wallet: 'wallet',
  requisites: 'requisites',
  yandex_pay: 'yandex_pay',
  mir_pay: 'mir_pay',
  sberpay: 'sberpay'
};
var ProjectOperators = {
  SBP: 62,
  SBER_PAY: 20
};
var PayStatusParamName = 'mx_status';
var PayDataParamName = 'mx_data';
var OnSiteParam = 'onsite';
var TargetType = {
  MAIN: 0,
  PERSON: 1,
  PROJECT: 2
};
var SourceConsts = {
  SOURCE_WIDGET: 'widget',
  SOURCE_QR: 'qr',
  SOURCE_FRAME: 'frame',
  SOURCE_VK: 'vk',
  SOURCE_QRSTICKER: 'qrsticker',
  SOURCE_DOBILLING: 'd',
  SOURCE_CP: 'cp',
  SOURCE_FORM: 'form',
  SOURCE_PRODUCT_LANDING: 'Страница пожертвований',
  SOURCE_PRODUCT_QR: 'QR-код',
  SOURCE_PRODUCT_WIDGET: 'Виджет благотворительности',
  SOURCE_PRODUCT_QRSTICKER: 'Стикеры "Помочь Просто"',
  SOURCE_PRODUCT_DOBILLING: 'Добиллинг картами',
  SOURCE_PRODUCT_CP: 'CP proxy',
  SOURCE_PRODUCT_FORM: 'Форма благотворительности'
};
var FUNDRAISING_PRODUCT_BY_SOURCE = (_FUNDRAISING_PRODUCT_ = {}, _defineProperty(_FUNDRAISING_PRODUCT_, SourceConsts.SOURCE_QR, SourceConsts.SOURCE_PRODUCT_QR), _defineProperty(_FUNDRAISING_PRODUCT_, SourceConsts.SOURCE_WIDGET, SourceConsts.SOURCE_PRODUCT_WIDGET), _defineProperty(_FUNDRAISING_PRODUCT_, SourceConsts.SOURCE_QRSTICKER, SourceConsts.SOURCE_PRODUCT_QRSTICKER), _defineProperty(_FUNDRAISING_PRODUCT_, SourceConsts.SOURCE_DOBILLING, SourceConsts.SOURCE_PRODUCT_DOBILLING), _defineProperty(_FUNDRAISING_PRODUCT_, SourceConsts.SOURCE_CP, SourceConsts.SOURCE_PRODUCT_CP), _FUNDRAISING_PRODUCT_);
var MxRequestMerchantFields = {
  prefix: 'user_',
  utm_medium: 'utm_medium',
  utm_source: 'utm_source',
  utm_campaign: 'utm_campaign',
  utm_term: 'utm_term',
  utm_content: 'utm_content',
  terminal_sn: 'terminal_sn',
  terminal_address: 'terminal_address',
  fundraising_product: 'fundraising_product',
  fundraising_program: 'fundraising_program',
  fundraising_program_id: 'fundraising_program_id',
  charity_page_id: 'charity_page_id',
  fundraising_sticker_id: 'fundraising_sticker_id'
};
var ScriptUrlParams = {
  tid: 'tid'
};
var WidgetVisitDateKey = 'DonationWidgetVisitDate';
var DntnVisitsDataIdKey = 'DntnVisitsDataId';
var SuccessDonationAmountsKey = 'SuccessDonationAmounts';
var FailDonationInfoKey = 'FailDonationInfo';
var RejectDonationInfoKey = 'RejectDonationInfo';
var fancyBoxSrc = 'https://file.donation.ru:4443/assets/target/js/fancybox.js?v=1654945513';

/***/ }),

/***/ "./scripts/reminder/reminder-form.mjs":
/*!********************************************!*\
  !*** ./scripts/reminder/reminder-form.mjs ***!
  \********************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ReminderForm": function() { return /* binding */ ReminderForm; }
/* harmony export */ });
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! preact */ "./node_modules/preact/dist/preact.module.js");
/* harmony import */ var htm__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! htm */ "./node_modules/htm/dist/htm.module.js");
/* harmony import */ var preact_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! preact/hooks */ "./node_modules/preact/hooks/dist/hooks.module.js");
/* harmony import */ var _constants_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constants.mjs */ "./scripts/constants.mjs");
var _templateObject;
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }





// Initialize htm with Preact
var html = htm__WEBPACK_IMPORTED_MODULE_1__["default"].bind(preact__WEBPACK_IMPORTED_MODULE_0__.h);
var ReminderForm = function ReminderForm(props) {
  var data = props.reminderProps.data,
    ctrl = props.ctrl,
    isCommercial = props.isCommercial;
  var onStopPropagation = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (e) {
    e.stopPropagation();
  });
  var formScriptUrl = function formScriptUrl() {
    var _ctrl$props, _ctrl$props$options, _ctrl$props2, _ctrl$props2$reminder, _ctrl$props2$reminder2, _ctrl$state, _ctrl$state3, _props$reminderProps, _props$reminderProps$, _props$reminderProps$2, _props$reminderProps2, _props$reminderProps3, _props$reminderProps4, _props$reminderProps5, _props$reminderProps6;
    var widgetsHost = ctrl === null || ctrl === void 0 ? void 0 : (_ctrl$props = ctrl.props) === null || _ctrl$props === void 0 ? void 0 : (_ctrl$props$options = _ctrl$props.options) === null || _ctrl$props$options === void 0 ? void 0 : _ctrl$props$options.widgetsHost;
    if (widgetsHost && widgetsHost[widgetsHost.length - 1] === '/') {
      widgetsHost = widgetsHost.substr(0, widgetsHost.length - 1);
    }
    var tail = ctrl !== null && ctrl !== void 0 && (_ctrl$props2 = ctrl.props) !== null && _ctrl$props2 !== void 0 && (_ctrl$props2$reminder = _ctrl$props2.reminderProps) !== null && _ctrl$props2$reminder !== void 0 && (_ctrl$props2$reminder2 = _ctrl$props2$reminder.data) !== null && _ctrl$props2$reminder2 !== void 0 && _ctrl$props2$reminder2.recurrent ? '&recurrent_payment=1' : '';
    if (ctrl !== null && ctrl !== void 0 && (_ctrl$state = ctrl.state) !== null && _ctrl$state !== void 0 && _ctrl$state.forcedSum) {
      var _ctrl$state2;
      tail = tail + "&sum=".concat(ctrl === null || ctrl === void 0 ? void 0 : (_ctrl$state2 = ctrl.state) === null || _ctrl$state2 === void 0 ? void 0 : _ctrl$state2.forcedSum);
    }
    if (!(ctrl !== null && ctrl !== void 0 && (_ctrl$state3 = ctrl.state) !== null && _ctrl$state3 !== void 0 && _ctrl$state3.reminderByWloader)) {
      tail = tail + "&parentType=".concat(_constants_mjs__WEBPACK_IMPORTED_MODULE_3__.WidgetFundraisingProduct.REMINDER);
    }
    var baseForm = props === null || props === void 0 ? void 0 : (_props$reminderProps = props.reminderProps) === null || _props$reminderProps === void 0 ? void 0 : (_props$reminderProps$ = _props$reminderProps.clientData) === null || _props$reminderProps$ === void 0 ? void 0 : (_props$reminderProps$2 = _props$reminderProps$.form) === null || _props$reminderProps$2 === void 0 ? void 0 : _props$reminderProps$2.sid;
    var commercialForm = props === null || props === void 0 ? void 0 : (_props$reminderProps2 = props.reminderProps) === null || _props$reminderProps2 === void 0 ? void 0 : (_props$reminderProps3 = _props$reminderProps2.clientData) === null || _props$reminderProps3 === void 0 ? void 0 : (_props$reminderProps4 = _props$reminderProps3.commercialForm) === null || _props$reminderProps4 === void 0 ? void 0 : _props$reminderProps4.sid;
    var formType = isCommercial ? "cForms/".concat(commercialForm, "/cForm.js") : "forms/".concat(baseForm, "/form.js");
    var tid = props === null || props === void 0 ? void 0 : (_props$reminderProps5 = props.reminderProps) === null || _props$reminderProps5 === void 0 ? void 0 : _props$reminderProps5.target_id;
    return "".concat(widgetsHost, "/").concat(formType, "?tid=").concat(tid, "&parentSid=").concat(props === null || props === void 0 ? void 0 : (_props$reminderProps6 = props.reminderProps) === null || _props$reminderProps6 === void 0 ? void 0 : _props$reminderProps6.sid).concat(tail);
  };
  var onHideWidgetForm = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (e) {
    ctrl.setState({
      showModal: false
    });

    //Удаляем подчинённые виджеты
    var elms = document.querySelectorAll("[src='" + formScriptUrl() + "']");
    for (var i = 0; i < elms.length; i++) {
      var el = elms[i];
      el.remove();
    }
  });

  //Добавляем подчинённый виджет
  var childWidgetForm = document.createElement('script');
  childWidgetForm.src = formScriptUrl();
  childWidgetForm.async = true;
  document.body.appendChild(childWidgetForm);
  var vdom = html(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n        <div class='modal-wrapper' onMousedown=", ">\n            <div class=\"close-container\">\n                <i class=\"close-icon\" onclick=", "></i>\n            </div>\n            <div class=\"modal-container\">\n                <div class=\"modal-content\">\n                    <div id=\"widget-form-container\">\n                        <div class=\"loader\">\n                            <div class=\"theme_xbox_lg\">\n                                <div class=\"pace_progress\"></div>\n                                <div class=\"pace_activity\"></div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    "])), onStopPropagation, onHideWidgetForm);
  return vdom;
};

/***/ }),

/***/ "./scripts/reminder/reminder-reminder.mjs":
/*!************************************************!*\
  !*** ./scripts/reminder/reminder-reminder.mjs ***!
  \************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Reminder": function() { return /* binding */ Reminder; }
/* harmony export */ });
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! preact */ "./node_modules/preact/dist/preact.module.js");
/* harmony import */ var htm__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! htm */ "./node_modules/htm/dist/htm.module.js");
/* harmony import */ var preact_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! preact/hooks */ "./node_modules/preact/hooks/dist/hooks.module.js");
var _templateObject, _templateObject2, _templateObject3;
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }




// Initialize htm with Preact
var html = htm__WEBPACK_IMPORTED_MODULE_1__["default"].bind(preact__WEBPACK_IMPORTED_MODULE_0__.h);
var Reminder = function Reminder(props) {
  var _ctrl$state5, _ctrl$state6, _data$reminderStyle3, _data$reminderStyle3$;
  var data = props.reminderProps.data,
    ctrl = props.ctrl,
    isCommercial = props.isCommercial;
  var onStopPropagation = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (e) {
    e.stopPropagation();
  });
  var onWidgetForm = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (e) {
    var _props$reminderProps;
    if ((props === null || props === void 0 ? void 0 : (_props$reminderProps = props.reminderProps) === null || _props$reminderProps === void 0 ? void 0 : _props$reminderProps.test) === 1) {
      alert('Вызов виджета формы недоступен в тестовом режиме!');
    } else {
      ctrl.setState({
        showModal: true
      });
    }
  });
  var onWidgetClose = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (e) {
    e.stopPropagation();
    ctrl.reminderImmediatelyCloseInitiator();
  });
  var typeClass = function typeClass(ctrl, data) {
    var _ctrl$props, _ctrl$props$reminderP, _ctrl$state, _ctrl$state2;
    var result = [((_ctrl$props = ctrl.props) === null || _ctrl$props === void 0 ? void 0 : (_ctrl$props$reminderP = _ctrl$props.reminderProps) === null || _ctrl$props$reminderP === void 0 ? void 0 : _ctrl$props$reminderP.test) === 1 ? 'd7reminder-absolute' : 'd7reminder-fixed'];
    if (!((_ctrl$state = ctrl.state) !== null && _ctrl$state !== void 0 && _ctrl$state.showReminder)) {
      result.push('d-none');
    }
    if ((_ctrl$state2 = ctrl.state) !== null && _ctrl$state2 !== void 0 && _ctrl$state2.remindZoomOut) {
      result.push('zoom-out');
    }
    result.push("reminder-mac");
    return result.join(" ");
  };
  var dataPlacement = function dataPlacement(data) {
    var _data$reminderStyle, _data$reminderStyle2;
    return (data === null || data === void 0 ? void 0 : (_data$reminderStyle = data.reminderStyle) === null || _data$reminderStyle === void 0 ? void 0 : _data$reminderStyle.placement) !== undefined ? +((_data$reminderStyle2 = data.reminderStyle) === null || _data$reminderStyle2 === void 0 ? void 0 : _data$reminderStyle2.placement) : 0;
  };
  var title = function title() {
    var _props$options, _ctrl$state3, _props$reminderProps2, _props$reminderProps3;
    var title = ((_props$options = props.options) === null || _props$options === void 0 ? void 0 : _props$options.previewTargetTitle) || ((_ctrl$state3 = ctrl.state) === null || _ctrl$state3 === void 0 ? void 0 : _ctrl$state3.title);
    if ((props === null || props === void 0 ? void 0 : (_props$reminderProps2 = props.reminderProps) === null || _props$reminderProps2 === void 0 ? void 0 : (_props$reminderProps3 = _props$reminderProps2.data) === null || _props$reminderProps3 === void 0 ? void 0 : _props$reminderProps3.textsByTarget) === false) {
      var _props$reminderProps4, _props$reminderProps5, _props$reminderProps6, _props$reminderProps7, _props$reminderProps8, _props$reminderProps9, _props$reminderProps10, _props$reminderProps11, _props$reminderProps12;
      title = props !== null && props !== void 0 && (_props$reminderProps4 = props.reminderProps) !== null && _props$reminderProps4 !== void 0 && (_props$reminderProps5 = _props$reminderProps4.data) !== null && _props$reminderProps5 !== void 0 && (_props$reminderProps6 = _props$reminderProps5.title) !== null && _props$reminderProps6 !== void 0 && _props$reminderProps6.trim() ? props === null || props === void 0 ? void 0 : (_props$reminderProps7 = props.reminderProps) === null || _props$reminderProps7 === void 0 ? void 0 : (_props$reminderProps8 = _props$reminderProps7.data) === null || _props$reminderProps8 === void 0 ? void 0 : (_props$reminderProps9 = _props$reminderProps8.title) === null || _props$reminderProps9 === void 0 ? void 0 : _props$reminderProps9.trim() : title || (props === null || props === void 0 ? void 0 : (_props$reminderProps10 = props.reminderProps) === null || _props$reminderProps10 === void 0 ? void 0 : (_props$reminderProps11 = _props$reminderProps10.clientData) === null || _props$reminderProps11 === void 0 ? void 0 : (_props$reminderProps12 = _props$reminderProps11.target) === null || _props$reminderProps12 === void 0 ? void 0 : _props$reminderProps12.title);
    }
    return title;
  };
  var description = function description() {
    var _props$options2, _ctrl$state4, _props$reminderProps13, _props$reminderProps14;
    var description = ((_props$options2 = props.options) === null || _props$options2 === void 0 ? void 0 : _props$options2.previewTargetShortText) || ((_ctrl$state4 = ctrl.state) === null || _ctrl$state4 === void 0 ? void 0 : _ctrl$state4.description);
    if ((props === null || props === void 0 ? void 0 : (_props$reminderProps13 = props.reminderProps) === null || _props$reminderProps13 === void 0 ? void 0 : (_props$reminderProps14 = _props$reminderProps13.data) === null || _props$reminderProps14 === void 0 ? void 0 : _props$reminderProps14.textsByTarget) === false) {
      var _props$reminderProps15, _props$reminderProps16, _props$reminderProps17, _props$reminderProps18, _props$reminderProps19, _props$reminderProps20, _props$reminderProps21, _props$reminderProps22, _props$reminderProps23;
      description = props !== null && props !== void 0 && (_props$reminderProps15 = props.reminderProps) !== null && _props$reminderProps15 !== void 0 && (_props$reminderProps16 = _props$reminderProps15.data) !== null && _props$reminderProps16 !== void 0 && (_props$reminderProps17 = _props$reminderProps16.description) !== null && _props$reminderProps17 !== void 0 && _props$reminderProps17.trim() ? props === null || props === void 0 ? void 0 : (_props$reminderProps18 = props.reminderProps) === null || _props$reminderProps18 === void 0 ? void 0 : (_props$reminderProps19 = _props$reminderProps18.data) === null || _props$reminderProps19 === void 0 ? void 0 : (_props$reminderProps20 = _props$reminderProps19.description) === null || _props$reminderProps20 === void 0 ? void 0 : _props$reminderProps20.trim() : description || (props === null || props === void 0 ? void 0 : (_props$reminderProps21 = props.reminderProps) === null || _props$reminderProps21 === void 0 ? void 0 : (_props$reminderProps22 = _props$reminderProps21.clientData) === null || _props$reminderProps22 === void 0 ? void 0 : (_props$reminderProps23 = _props$reminderProps22.target) === null || _props$reminderProps23 === void 0 ? void 0 : _props$reminderProps23.short_text);
    }
    return description;
  };

  //Выбор метки от типа фонда
  var fundTypeLabel = function fundTypeLabel(commercialLabel, defaultLabel) {
    return isCommercial ? commercialLabel : defaultLabel;
  };
  var vdom = html(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n        <div class=\"", "\"  data-position=\"", "\" onMousedown=", ">\n            <div class=\"reminder-content\" onclick=", ">\n                <div class=\"target-block\">\n                    ", "\n                    <div class=\"text\">\n                        <div class=\"title\">\n                            ", "\n                        </div>\n                        ", "\n                    </div>\n                </div>\n                <div class=\"text-menu\">\n                    <div class=\"btn btn-help\">\n                        ", "\n                    </div>\n                    <div class=\"divider\"></div>\n                    <div class=\"btn btn-close\" onclick=", ">\n                        \u041D\u0435 \u0441\u0435\u0439\u0447\u0430\u0441\n                    </div>\n                </div>\n            </div>\n        </div>\n    "])), typeClass(ctrl, data), dataPlacement(data), onStopPropagation, onWidgetForm, ((_ctrl$state5 = ctrl.state) === null || _ctrl$state5 === void 0 ? void 0 : _ctrl$state5.logo) && html(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["<img src=\"", "\" alt=\"\" class=\"logo\"/>"])), (_ctrl$state6 = ctrl.state) === null || _ctrl$state6 === void 0 ? void 0 : _ctrl$state6.logo), title(), description() && html(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n                            <div class=\"description\">\n                                ", "\n                            </div>"])), description()), ((_data$reminderStyle3 = data.reminderStyle) === null || _data$reminderStyle3 === void 0 ? void 0 : (_data$reminderStyle3$ = _data$reminderStyle3.helpButtonText) === null || _data$reminderStyle3$ === void 0 ? void 0 : _data$reminderStyle3$.trim()) || fundTypeLabel("Я оплачу", "Я помогу"), onWidgetClose);
  return vdom;
};

/***/ }),

/***/ "./scripts/reminder/reminder-widgets.mjs":
/*!***********************************************!*\
  !*** ./scripts/reminder/reminder-widgets.mjs ***!
  \***********************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CssCustom": function() { return /* binding */ CssCustom; },
/* harmony export */   "CssStatic": function() { return /* binding */ CssStatic; },
/* harmony export */   "CssVars": function() { return /* binding */ CssVars; }
/* harmony export */ });
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! preact */ "./node_modules/preact/dist/preact.module.js");
/* harmony import */ var htm__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! htm */ "./node_modules/htm/dist/htm.module.js");
/* harmony import */ var _build_scripts_reminder_style_styles_css_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../build/scripts/reminder/style/styles.css.mjs */ "./build/scripts/reminder/style/styles.css.mjs");




// Initialize htm with Preact
var html = htm__WEBPACK_IMPORTED_MODULE_1__["default"].bind(preact__WEBPACK_IMPORTED_MODULE_0__.h);
var CssVars = function CssVars(_ref) {
  var _data$reminderStyle;
  var data = _ref.data;
  return (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)('span', {
    children: [(0,preact__WEBPACK_IMPORTED_MODULE_0__.h)('style', {
      key: 'vars',
      children: "\n.d7reminder {\n    --d7reminder-loader-color: #e1e1e1;\n    --d7reminder-padding: ".concat(((_data$reminderStyle = data.reminderStyle) === null || _data$reminderStyle === void 0 ? void 0 : _data$reminderStyle.padding) || 24, "px;\n}\n            ")
    })]
  });
};
var CssCustom = function CssCustom(_ref2) {
  var data = _ref2.data;
  return (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)('style', {
    children: "".concat(data.css)
  });
};
var CssStatic = function CssStatic() {
  return (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)('style', {
    children: _build_scripts_reminder_style_styles_css_mjs__WEBPACK_IMPORTED_MODULE_2__["default"].toString()
  });
};

/***/ }),

/***/ "./scripts/widget-utils.mjs":
/*!**********************************!*\
  !*** ./scripts/widget-utils.mjs ***!
  \**********************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Loader": function() { return /* binding */ Loader; },
/* harmony export */   "arrowDownIcon": function() { return /* binding */ arrowDownIcon; },
/* harmony export */   "classNames": function() { return /* binding */ classNames; },
/* harmony export */   "colorAlpha": function() { return /* binding */ colorAlpha; },
/* harmony export */   "colorDark": function() { return /* binding */ colorDark; },
/* harmony export */   "consoleWrite": function() { return /* binding */ consoleWrite; },
/* harmony export */   "currentDate": function() { return /* binding */ currentDate; },
/* harmony export */   "darkenColor": function() { return /* binding */ darkenColor; },
/* harmony export */   "deleteCookie": function() { return /* binding */ deleteCookie; },
/* harmony export */   "domElem": function() { return /* binding */ domElem; },
/* harmony export */   "domReplaceChild": function() { return /* binding */ domReplaceChild; },
/* harmony export */   "findScriptHost": function() { return /* binding */ findScriptHost; },
/* harmony export */   "findScriptTag": function() { return /* binding */ findScriptTag; },
/* harmony export */   "findScriptUrl": function() { return /* binding */ findScriptUrl; },
/* harmony export */   "fixDataFileUrls": function() { return /* binding */ fixDataFileUrls; },
/* harmony export */   "getCookie": function() { return /* binding */ getCookie; },
/* harmony export */   "getMyAmountsFromLocalStorage": function() { return /* binding */ getMyAmountsFromLocalStorage; },
/* harmony export */   "getMyFailInfoFromLocalStorage": function() { return /* binding */ getMyFailInfoFromLocalStorage; },
/* harmony export */   "getMyRejectInfoFromLocalStorage": function() { return /* binding */ getMyRejectInfoFromLocalStorage; },
/* harmony export */   "getUrlParams": function() { return /* binding */ getUrlParams; },
/* harmony export */   "getUtmParams": function() { return /* binding */ getUtmParams; },
/* harmony export */   "mediaDependentValue": function() { return /* binding */ mediaDependentValue; },
/* harmony export */   "removeFailAndRejectInfo": function() { return /* binding */ removeFailAndRejectInfo; },
/* harmony export */   "roubleIcon": function() { return /* binding */ roubleIcon; },
/* harmony export */   "roundStepped": function() { return /* binding */ roundStepped; },
/* harmony export */   "saveMyFailInfoToLocalStorage": function() { return /* binding */ saveMyFailInfoToLocalStorage; },
/* harmony export */   "saveMyRejectInfoToLocalStorage": function() { return /* binding */ saveMyRejectInfoToLocalStorage; },
/* harmony export */   "saveMySuccessAmountToLocalStorage": function() { return /* binding */ saveMySuccessAmountToLocalStorage; },
/* harmony export */   "saveUtmParams": function() { return /* binding */ saveUtmParams; },
/* harmony export */   "sendWidgetEvent": function() { return /* binding */ sendWidgetEvent; },
/* harmony export */   "setCookie": function() { return /* binding */ setCookie; },
/* harmony export */   "sumStepper": function() { return /* binding */ sumStepper; }
/* harmony export */ });
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! preact */ "./node_modules/preact/dist/preact.module.js");
/* harmony import */ var htm__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! htm */ "./node_modules/htm/dist/htm.module.js");
/* harmony import */ var _constants_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants.mjs */ "./scripts/constants.mjs");
var _templateObject, _templateObject2, _templateObject3;
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }




// Initialize htm with Preact
var html = htm__WEBPACK_IMPORTED_MODULE_1__["default"].bind(preact__WEBPACK_IMPORTED_MODULE_0__.h);
var steps = [{
  range: [0, 50],
  step: 10
}, {
  range: [50, 1000],
  step: 50
}, {
  range: [1000, 2000],
  step: 100
}, {
  range: [2000, 10000],
  step: 500
}, {
  range: [10000, 20000],
  step: 1000
}, {
  range: [20000, 100000],
  step: 5000
}, {
  range: [100000, 123123123],
  step: 50000
}];
function sumStepper(v, dir) {
  var useStep = 0;
  var _iterator = _createForOfIteratorHelper(steps),
    _step;
  try {
    for (_iterator.s(); !(_step = _iterator.n()).done;) {
      var _step$value = _step.value,
        range = _step$value.range,
        step = _step$value.step;
      var _range = range,
        _range2 = _slicedToArray(_range, 2),
        min = _range2[0],
        max = _range2[1];
      if (v >= min && v <= max) {
        if (v == max && dir > 0) {
          continue;
        }
        useStep = step;
        if (dir > 0) {
          v -= v % step;
        } else {
          v += v % step ? -(v % step) + step : 0;
        }
        break;
      }
    }
  } catch (err) {
    _iterator.e(err);
  } finally {
    _iterator.f();
  }
  return v + dir * useStep;
}
function getUrlParams() {
  var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window.location.toString();
  var vars = [],
    hash;
  var search = url.replace(/(^.*\?)|(^.*$)/, '');
  var hashes = search ? search.split('&') : [];
  for (var i = 0; i < hashes.length; i++) {
    hash = hashes[i].split('=');
    vars.push(hash[0]);
    vars[hash[0]] = decodeURIComponent(hash[1]);
  }
  return vars;
}
function consoleWrite() {
  var _getUrlParams;
  if ((_getUrlParams = getUrlParams(location.href)) !== null && _getUrlParams !== void 0 && _getUrlParams.hasOwnProperty('debug')) {
    var _console;
    (_console = console).log.apply(_console, arguments);
  }
}
function getCookie(name) {
  var matches = document.cookie.match(new RegExp("(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"));
  return matches ? decodeURIComponent(matches[1]) : undefined;
}
function deleteCookie(name) {
  setCookie(name, "", {
    'max-age': -1
  });
}
function setCookie(name, value) {
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  options.path = '/';
  if (options.expires) {
    options.expires = options.expires.toUTCString();
  }
  var updatedCookie = encodeURIComponent(name) + "=" + encodeURIComponent(value);
  for (var optionKey in options) {
    updatedCookie += "; " + optionKey;
    var optionValue = options[optionKey];
    if (optionValue !== true) {
      updatedCookie += "=" + optionValue;
    }
  }
  document.cookie = updatedCookie;
}
var utmParams = ['utm_medium', 'utm_source', 'utm_campaign', 'utm_term', 'utm_content'];
function saveUtmParams() {
  var params = getUrlParams();
  var utm = {};
  var _iterator2 = _createForOfIteratorHelper(utmParams),
    _step2;
  try {
    for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
      var name = _step2.value;
      if (params[name]) {
        utm[name] = params[name];
      }
    }
    //setCookie('widget_utm', JSON.stringify(utm));
  } catch (err) {
    _iterator2.e(err);
  } finally {
    _iterator2.f();
  }
  sessionStorage.setItem('widget_utm', JSON.stringify(utm));
}
function getUtmParams() {
  //var utm = getCookie('widget_utm');
  var utm = sessionStorage.getItem('widget_utm');
  try {
    utm = utm ? JSON.parse(utm) : {};
  } catch (e) {
    utm = {};
  }
  utm = _typeof(utm) == 'object' ? utm : {};
  utm = Object.fromEntries(Object.entries(utm).filter(function (_ref) {
    var _ref2 = _slicedToArray(_ref, 1),
      name = _ref2[0];
    return utmParams.includes(name);
  })); // filter
  return utm;
}
function sendWidgetEvent(type, id) {
  var host = findScriptHost(id);
  if (!host) return;
  return fetch(host + '/register', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      id: id,
      type: type
    })
  });
}
function colorAlpha(rgba, alpha) {
  return rgba === null || rgba === void 0 ? void 0 : rgba.replace(/,\s*\d+\s*\)/, ',' + alpha + ')');
}
function colorDark(rgba, share) {
  var ms = rgba === null || rgba === void 0 ? void 0 : rgba.match(/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\)/);
  if (!ms) return rgba;
  var cs = ms.slice(1, 4);
  return "rgba(".concat(cs.map(function (c) {
    return Math.round(c * share);
  }).map(function (c) {
    return Math.max(0, c);
  }).map(function (c) {
    return Math.min(255, c);
  }).join(','), ", ").concat(ms[4], ")");
  //return 'rgba(' . implode(',', array_map(fn($cv) => intval($cv * $share), $cs)) . ',' . $ms[4] . ')';
}

function findScriptUrl(id) {
  var s = document.querySelector("script[src*=\"".concat(id, "\"]"));
  return s ? s.src : null;
}
function findScriptHost(id) {
  var url = findScriptUrl(id);
  if (!url) return url;
  url = url.replace(/\/\/widget\./, '//widgets.'); // fix old host
  var ms = url.match(/(https?:\/\/[^\/]+)/);
  return ms[1] || false;
}
function findScriptTag(sid) {
  //Будем возвращать последний найденный экземпляр (актуально для вызывающих виджетов-родителей)
  var scriptTags = document.querySelectorAll("script[src*=\"".concat(sid, "\"]"));
  return scriptTags.length > 0 ? scriptTags[scriptTags.length - 1] : null;
}
var dataFileProps = ['widget.style.image', 'block1.style.image', 'block1.style.backImage', 'block2.style.image', 'block2.style.backImage', 'stripe.style.image', 'stripeForm.style.image', 'stripeForm.style.backImage'];
var setProp = function setProp(o, prop, v) {
  var propPath = Array.isArray(prop) ? prop : prop.split('.');
  var _propPath = _slicedToArray(propPath, 1),
    p1 = _propPath[0];
  if (propPath.length == 1) {
    o[p1] = v;
  } else {
    var subo = o[p1];
    if (_typeof(subo) == 'object') {
      setProp(subo, propPath.slice(1), v);
    }
  }
};
var getProp = function getProp(o, prop) {
  var def = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  var propPath = Array.isArray(prop) ? prop : prop.split('.');
  var _propPath2 = _slicedToArray(propPath, 1),
    p1 = _propPath2[0];
  var v = o[p1] || def;
  return propPath.length > 1 && v !== null ? getProp(v, propPath.slice(1)) : v;
};
var fixDataFileUrls = function fixDataFileUrls(data) {
  var scriptUrl = findScriptUrl(data.site_id);
  if (scriptUrl && scriptUrl.indexOf('//widget.') != -1) {
    // old widget host https://widget.donation.ru/js/id, convert to new
    scriptUrl = 'https://widgets.donation.ru/widgets/' + data.site_id + '/widget.js';
  }
  var urlPath = scriptUrl ? scriptUrl.replace(/[^/]+$/, '') : null; // rm file name
  if (!urlPath) {
    return;
  }
  var _iterator3 = _createForOfIteratorHelper(dataFileProps),
    _step3;
  try {
    for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
      var prop = _step3.value;
      var fileName = getProp(data, prop);
      if (!fileName) {
        continue;
      }
      var fileFix = urlPath + fileName;
      setProp(data, prop, fileFix);
    }
  } catch (err) {
    _iterator3.e(err);
  } finally {
    _iterator3.f();
  }
};
function domElem(tag, props) {
  var content = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  var e = document.createElement(tag);
  Object.entries(props).forEach(function (_ref3) {
    var _ref4 = _slicedToArray(_ref3, 2),
      a = _ref4[0],
      v = _ref4[1];
    return e.setAttribute(a, v);
  });
  if (content instanceof Object) {
    if (Array.isArray(content)) {
      content.forEach(function (item) {
        return e.appendChild(item);
      });
    } else {
      e.appendChild(content);
    }
  }
  typeof content == "string" && (e.textContent = content);
  return e;
}

// replace or append
function domReplaceChild(container, child) {
  var oldChild = child.id ? container.ownerDocument.getElementById(child.id) : null;
  if (oldChild) {
    container.replaceChild(child, oldChild);
  } else {
    container.appendChild(child);
  }
}

/**
 * { 480: 1, 1024: 2 }
 */
var mediaDependentValue = function mediaDependentValue(mediaBreakPointsMap) {
  var def = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  var w = window.innerWidth;
  for (var _i2 = 0, _Object$entries = Object.entries(mediaBreakPointsMap); _i2 < _Object$entries.length; _i2++) {
    var _Object$entries$_i = _slicedToArray(_Object$entries[_i2], 2),
      breakPoint = _Object$entries$_i[0],
      v = _Object$entries$_i[1];
    if (w <= breakPoint) {
      return v;
    }
  }
  return def;
};
var roundSteps = [[100, 10], [1000, 50], [10000, 100], [50000, 500], [100000000, 1000]];
function roundStepped(v) {
  var vr = v;
  for (var s = 0, step = roundSteps[0]; s < roundSteps.length; s++, step = roundSteps[s]) {
    if (v < step[0]) {
      vr = v - vr % step[1];
      break;
    }
  }
  return vr;
}
var classNames = function classNames(obj) {
  var cs = [];
  for (var c in obj) {
    if (obj[c]) {
      cs.push(c);
    }
  }
  return cs.join(' ');
};
function darkenColor(color) {
  var k = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.95;
  if (color.toLowerCase().startsWith('rgba')) {
    // Extract the R, G, B, and A channels from the RGBA color
    var rgbaChannels = color.substring(color.indexOf('(') + 1, color.lastIndexOf(')')).split(',');
    var r = parseInt(rgbaChannels[0]);
    var g = parseInt(rgbaChannels[1]);
    var b = parseInt(rgbaChannels[2]);
    var a = parseFloat(rgbaChannels[3]);

    // Decrease the value of each channel by the given factor k
    var newR = Math.round(r * k);
    var newG = Math.round(g * k);
    var newB = Math.round(b * k);

    // Return the new RGBA color
    return "rgba(".concat(newR, ",").concat(newG, ",").concat(newB, ",").concat(a, ")");
  } else if (color.toLowerCase().startsWith('rgb')) {
    // Extract the R, G, and B channels from the RGB color
    var rgbChannels = color.substring(color.indexOf('(') + 1, color.lastIndexOf(')')).split(',');
    var _r = parseInt(rgbChannels[0]);
    var _g = parseInt(rgbChannels[1]);
    var _b = parseInt(rgbChannels[2]);

    // Decrease the value of each channel by the given factor k
    var _newR = Math.round(_r * k);
    var _newG = Math.round(_g * k);
    var _newB = Math.round(_b * k);

    // Return the new RGB color
    return "rgb(".concat(_newR, ",").concat(_newG, ",").concat(_newB, ")");
  } else {
    // Extract the RGB channels from the HEX color
    var _r2 = parseInt(color.substring(1, 3), 16);
    var _g2 = parseInt(color.substring(3, 5), 16);
    var _b2 = parseInt(color.substring(5, 7), 16);

    // Decrease the value of each channel by the given factor k
    var _newR2 = Math.round(_r2 * k);
    var _newG2 = Math.round(_g2 * k);
    var _newB2 = Math.round(_b2 * k);

    // Convert the new RGB color back to a HEX color
    return "#".concat((_newR2 < 16 ? '0' : '') + _newR2.toString(16)).concat((_newG2 < 16 ? '0' : '') + _newG2.toString(16)).concat((_newB2 < 16 ? '0' : '') + _newB2.toString(16));
  }
}
var currentDate = function currentDate() {
  var currentDate = new Date();
  var year = currentDate.getFullYear();
  var month = String(currentDate.getMonth() + 1).padStart(2, '0');
  var day = String(currentDate.getDate()).padStart(2, '0');
  return "".concat(year, "-").concat(month, "-").concat(day);
};
var Loader = function Loader() {
  return html(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n        <div class=\"loader\">\n            <div class=\"theme_xbox_lg\">\n                <div class=\"pace_progress\"/>\n                <div class=\"pace_activity\"/>\n            </div>\n        </div>\n    "])));
};
function getMyAmountsFromLocalStorage() {
  try {
    var myAmounts = localStorage.getItem(_constants_mjs__WEBPACK_IMPORTED_MODULE_2__.SuccessDonationAmountsKey);
    myAmounts = myAmounts ? JSON.parse(myAmounts) : [];
    return Array.isArray(myAmounts) ? myAmounts : [];
  } catch (e) {}
  return [];
}
function saveMySuccessAmountToLocalStorage(amount) {
  try {
    removeFailAndRejectInfo();
    var myAmounts = getMyAmountsFromLocalStorage();
    myAmounts.push(amount);
    localStorage.setItem(_constants_mjs__WEBPACK_IMPORTED_MODULE_2__.SuccessDonationAmountsKey, JSON.stringify(myAmounts));
    return true;
  } catch (e) {}
  return false;
}
function getMyFailInfoFromLocalStorage() {
  try {
    var myFail = localStorage.getItem(_constants_mjs__WEBPACK_IMPORTED_MODULE_2__.FailDonationInfoKey);
    return myFail ? JSON.parse(myFail) : {};
  } catch (e) {}
  return {};
}
function saveMyFailInfoToLocalStorage(target_id, amount) {
  var form_sid = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  try {
    localStorage.setItem(_constants_mjs__WEBPACK_IMPORTED_MODULE_2__.FailDonationInfoKey, JSON.stringify({
      target_id: target_id,
      amount: amount,
      form_sid: form_sid
    }));
    localStorage.removeItem(_constants_mjs__WEBPACK_IMPORTED_MODULE_2__.RejectDonationInfoKey);
    return true;
  } catch (e) {}
  return false;
}
function getMyRejectInfoFromLocalStorage() {
  try {
    var myReject = localStorage.getItem(_constants_mjs__WEBPACK_IMPORTED_MODULE_2__.RejectDonationInfoKey);
    return myReject ? JSON.parse(myReject) : {};
  } catch (e) {}
  return {};
}
function saveMyRejectInfoToLocalStorage(target_id, amount) {
  var form_sid = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  try {
    localStorage.setItem(_constants_mjs__WEBPACK_IMPORTED_MODULE_2__.RejectDonationInfoKey, JSON.stringify({
      target_id: target_id,
      amount: amount,
      form_sid: form_sid
    }));
    localStorage.removeItem(_constants_mjs__WEBPACK_IMPORTED_MODULE_2__.FailDonationInfoKey);
    return true;
  } catch (e) {}
  return false;
}
function removeFailAndRejectInfo() {
  try {
    localStorage.removeItem(_constants_mjs__WEBPACK_IMPORTED_MODULE_2__.FailDonationInfoKey);
    localStorage.removeItem(_constants_mjs__WEBPACK_IMPORTED_MODULE_2__.RejectDonationInfoKey);
    return true;
  } catch (e) {}
  return false;
}
var roubleIcon = function roubleIcon() {
  var width = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '10px';
  var height = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '10px';
  return html(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n        <svg width=\"", "\" height=\"", "\" viewBox=\"-1 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n            <path fill=\"currentColor\"\n                  d=\"m17.778 7.449c.002-.043.003-.093.003-.143 0-1.028-.425-1.956-1.11-2.618l-.001-.001c-.717-.658-1.678-1.061-2.732-1.061-.064 0-.128.002-.191.004h.009-5.454v7.636h5.454c.054.003.118.004.182.004 1.054 0 2.015-.403 2.735-1.064l-.003.003c.685-.663 1.111-1.591 1.111-2.619 0-.05-.001-.1-.003-.149v.007zm4.04 0c.003.076.005.164.005.253 0 2.006-.829 3.819-2.163 5.115l-.002.002c-1.371 1.292-3.224 2.086-5.262 2.086-.107 0-.213-.002-.319-.006h.015-5.795v2.011h8.608.021c.29 0 .525.235.525.525v.022-.001 2.182.021c0 .29-.235.525-.525.525-.007 0-.015 0-.022 0h.001-8.608v3.273.018c0 .147-.061.28-.16.374-.097.095-.23.154-.377.154-.002 0-.004 0-.007 0h-2.846c-.006 0-.014 0-.021 0-.29 0-.525-.235-.525-.525 0-.007 0-.015 0-.022v.001-3.273h-3.818c-.006 0-.014 0-.021 0-.29 0-.525-.235-.525-.525 0-.007 0-.015 0-.022v.001-2.182c0-.006 0-.014 0-.021 0-.29.235-.525.525-.525h.022-.001 3.818v-2.011h-3.818c-.006 0-.014 0-.021 0-.29 0-.525-.235-.525-.525 0-.007 0-.015 0-.022v.001-2.54c0-.002 0-.004 0-.006 0-.147.059-.28.154-.377.094-.099.227-.16.374-.16h.019-.001 3.818v-10.72c0-.006 0-.014 0-.021 0-.29.235-.525.525-.525h.022-.001 9.187c.091-.004.197-.006.304-.006 2.038 0 3.891.794 5.266 2.09l-.004-.004c1.334 1.297 2.162 3.109 2.162 5.114 0 .088-.002.176-.005.264v-.013z\"/>\n        </svg>"])), width, height);
};
var arrowDownIcon = function arrowDownIcon() {
  var width = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '10px';
  var height = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '10px';
  return html(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n        <svg fill=\"currentColor\" width=\"", "\" height=\"", "\" viewBox=\"200 200 600 600\"\n             xmlns=\"http://www.w3.org/2000/svg\">\n            <path d=\"M759.2 419.8L697.4 358 512 543.4 326.6 358l-61.8 61.8L512 667z\"/>\n        </svg>"])), width, height);
};

/***/ }),

/***/ "./scripts/widgetsLoader/api.mjs":
/*!***************************************!*\
  !*** ./scripts/widgetsLoader/api.mjs ***!
  \***************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Api": function() { return /* binding */ Api; },
/* harmony export */   "getApiClient": function() { return /* binding */ getApiClient; }
/* harmony export */ });
/* harmony import */ var _constants_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../constants.mjs */ "./scripts/constants.mjs");
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }

var Api = /*#__PURE__*/function () {
  function Api(_ref) {
    var _ref$apiHost = _ref.apiHost,
      apiHost = _ref$apiHost === void 0 ? null : _ref$apiHost;
    _classCallCheck(this, Api);
    this.apiHost = null;
    this.apiHost = apiHost;

    //var { apiHost = null } = config;
  }
  _createClass(Api, [{
    key: "getApiHost",
    value: function getApiHost() {
      return this.apiHost || "https://".concat(_constants_mjs__WEBPACK_IMPORTED_MODULE_0__.d7domain);
    }
  }]);
  return Api;
}();
function getApiClient(config) {
  return new Api(config);
}
;

/***/ })

/******/ 	});
/************************************************************************/
/******/ 	// The module cache
/******/ 	var __webpack_module_cache__ = {};
/******/ 	
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/ 		// Check if module is in cache
/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
/******/ 		if (cachedModule !== undefined) {
/******/ 			return cachedModule.exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = __webpack_module_cache__[moduleId] = {
/******/ 			// no module.id needed
/******/ 			// no module.loaded needed
/******/ 			exports: {}
/******/ 		};
/******/ 	
/******/ 		// Execute the module function
/******/ 		__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/ 	
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/define property getters */
/******/ 	!function() {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require__.d = function(exports, definition) {
/******/ 			for(var key in definition) {
/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 				}
/******/ 			}
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	!function() {
/******/ 		__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	!function() {
/******/ 		// define __esModule on exports
/******/ 		__webpack_require__.r = function(exports) {
/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 			}
/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
/******/ 		};
/******/ 	}();
/******/ 	
/************************************************************************/
var __webpack_exports__ = {};
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
!function() {
"use strict";
/*!*******************************************!*\
  !*** ./scripts/widgetsLoader/wloader.mjs ***!
  \*******************************************/
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "WidgetsLoaderWidgetItemType": function() { return /* binding */ WidgetsLoaderWidgetItemType; },
/* harmony export */   "donationRuWLoader": function() { return /* binding */ donationRuWLoader; }
/* harmony export */ });
/* harmony import */ var preact_debug__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! preact/debug */ "./node_modules/preact/debug/dist/debug.module.js");
/* harmony import */ var _dataDefault_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dataDefault.js */ "./scripts/widgetsLoader/dataDefault.js");
/* harmony import */ var _widget_utils_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../widget-utils.mjs */ "./scripts/widget-utils.mjs");
/* harmony import */ var _constants_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constants.mjs */ "./scripts/constants.mjs");
/* harmony import */ var _api_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./api.mjs */ "./scripts/widgetsLoader/api.mjs");
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! preact */ "./node_modules/preact/dist/preact.module.js");
/* harmony import */ var htm__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! htm */ "./node_modules/htm/dist/htm.module.js");
/* harmony import */ var _reminder_reminder_reminder_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../reminder/reminder-reminder.mjs */ "./scripts/reminder/reminder-reminder.mjs");
/* harmony import */ var _reminder_reminder_form_mjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../reminder/reminder-form.mjs */ "./scripts/reminder/reminder-form.mjs");
/* harmony import */ var _reminder_reminder_widgets_mjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../reminder/reminder-widgets.mjs */ "./scripts/reminder/reminder-widgets.mjs");
/* harmony import */ var _localStorageData_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./localStorageData.js */ "./scripts/widgetsLoader/localStorageData.js");
/* harmony import */ var _sessionStorageData_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./sessionStorageData.js */ "./scripts/widgetsLoader/sessionStorageData.js");
function _typeof(obj) {
  "@babel/helpers - typeof";

  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
    return typeof obj;
  } : function (obj) {
    return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  }, _typeof(obj);
}
var _templateObject;
function _taggedTemplateLiteral(strings, raw) {
  if (!raw) {
    raw = strings.slice(0);
  }
  return Object.freeze(Object.defineProperties(strings, {
    raw: {
      value: Object.freeze(raw)
    }
  }));
}
function _defineProperty(obj, key, value) {
  if (key in obj) {
    Object.defineProperty(obj, key, {
      value: value,
      enumerable: true,
      configurable: true,
      writable: true
    });
  } else {
    obj[key] = value;
  }
  return obj;
}
function _classCallCheck(instance, Constructor) {
  if (!(instance instanceof Constructor)) {
    throw new TypeError("Cannot call a class as a function");
  }
}
function _defineProperties(target, props) {
  for (var i = 0; i < props.length; i++) {
    var descriptor = props[i];
    descriptor.enumerable = descriptor.enumerable || false;
    descriptor.configurable = true;
    if ("value" in descriptor) descriptor.writable = true;
    Object.defineProperty(target, descriptor.key, descriptor);
  }
}
function _createClass(Constructor, protoProps, staticProps) {
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  if (staticProps) _defineProperties(Constructor, staticProps);
  Object.defineProperty(Constructor, "prototype", {
    writable: false
  });
  return Constructor;
}
function _inherits(subClass, superClass) {
  if (typeof superClass !== "function" && superClass !== null) {
    throw new TypeError("Super expression must either be null or a function");
  }
  subClass.prototype = Object.create(superClass && superClass.prototype, {
    constructor: {
      value: subClass,
      writable: true,
      configurable: true
    }
  });
  Object.defineProperty(subClass, "prototype", {
    writable: false
  });
  if (superClass) _setPrototypeOf(subClass, superClass);
}
function _setPrototypeOf(o, p) {
  _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
    o.__proto__ = p;
    return o;
  };
  return _setPrototypeOf(o, p);
}
function _createSuper(Derived) {
  var hasNativeReflectConstruct = _isNativeReflectConstruct();
  return function _createSuperInternal() {
    var Super = _getPrototypeOf(Derived),
      result;
    if (hasNativeReflectConstruct) {
      var NewTarget = _getPrototypeOf(this).constructor;
      result = Reflect.construct(Super, arguments, NewTarget);
    } else {
      result = Super.apply(this, arguments);
    }
    return _possibleConstructorReturn(this, result);
  };
}
function _possibleConstructorReturn(self, call) {
  if (call && (_typeof(call) === "object" || typeof call === "function")) {
    return call;
  } else if (call !== void 0) {
    throw new TypeError("Derived constructors may only return object or undefined");
  }
  return _assertThisInitialized(self);
}
function _assertThisInitialized(self) {
  if (self === void 0) {
    throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  }
  return self;
}
function _isNativeReflectConstruct() {
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  if (Reflect.construct.sham) return false;
  if (typeof Proxy === "function") return true;
  try {
    Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
    return true;
  } catch (e) {
    return false;
  }
}
function _getPrototypeOf(o) {
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
    return o.__proto__ || Object.getPrototypeOf(o);
  };
  return _getPrototypeOf(o);
}













// Initialize htm with Preact
var html = htm__WEBPACK_IMPORTED_MODULE_6__["default"].bind(preact__WEBPACK_IMPORTED_MODULE_5__.h);
var WidgetsLoaderWidgetItemType = {
  REMINDER: 0,
  NATIVE_FORM: 1,
  STICKY_BUTTON: 2,
  BUTTON: 3,
  STRIPE: 4,
  WIDGET: 5,
  SLIDER: 6,
  STAT_LIST: 7,
  STAT_PROGRESS: 8,
  STAT_INFORMER: 9,
  FORM: 10,
  INFO_BLOCK: 11,
  ROTATOR: 12,
  PAGE: 13,
  COMMERCIAL_FORM: 14
};
var SessionKeys = {
  lastNotFinishedPaymentNotifyClose: 'lastNotFinishedPaymentNotifyClose'
};
var WloaderController = /*#__PURE__*/function (_Component) {
  _inherits(WloaderController, _Component);
  var _super = _createSuper(WloaderController);
  function WloaderController(props) {
    var _this;
    _classCallCheck(this, WloaderController);
    _this = _super.call(this, props);
    _this.stateInit = {
      showModal: false,
      showReminder: false,
      remindZoomOut: true,
      waitingPrepare: false,
      repaintTag: false,
      reminderByWloader: true
    };
    _this.state = JSON.parse(JSON.stringify(_this.stateInit));
    _this.forceRepaint = function () {
      _this.setState({
        repaintTag: !_this.state.repaintTag
      });
    };
    donationRuWLoader.wloader = _assertThisInitialized(_this);
    return _this;
  }
  _createClass(WloaderController, [{
    key: "resetState",
    value: function resetState() {
      this.state = JSON.parse(JSON.stringify(this.stateInit));
    }
  }, {
    key: "componentDidMount",
    value: function componentDidMount() {
      this.sendSetSource();
    }
  }, {
    key: "sendSetSource",
    value: function sendSetSource() {
      var _this$props,
        _this$props$wloaderPr,
        _this$props2,
        _this$props2$wloaderP,
        _lastNotFinishedPayme,
        _lastNotFinishedPayme2,
        _lastNotFinishedPayme3,
        _lastNotFinishedPayme4,
        _localStorage,
        _localStorage2,
        _JSON$stringify,
        _this2 = this;
      var currDate = (0,_widget_utils_mjs__WEBPACK_IMPORTED_MODULE_2__.currentDate)();
      var apiURL = this.apiHost() + "/wloader-api/set-source?sid=".concat((_this$props = this.props) === null || _this$props === void 0 ? void 0 : (_this$props$wloaderPr = _this$props.wloaderProps) === null || _this$props$wloaderPr === void 0 ? void 0 : _this$props$wloaderPr.sid);
      var lastNotFinishedPayment = (0,_widget_utils_mjs__WEBPACK_IMPORTED_MODULE_2__.getMyFailInfoFromLocalStorage)();
      var includeReminders = true;
      var useLastNotFinishedPayment = false;
      var sid = (_this$props2 = this.props) === null || _this$props2 === void 0 ? void 0 : (_this$props2$wloaderP = _this$props2.wloaderProps) === null || _this$props2$wloaderP === void 0 ? void 0 : _this$props2$wloaderP.sid;
      var sessionStorageData = new _sessionStorageData_js__WEBPACK_IMPORTED_MODULE_11__.SessionStorageData(sid);
      var localStorageData = new _localStorageData_js__WEBPACK_IMPORTED_MODULE_10__.LocalStorageData(sid);
      if (!((_lastNotFinishedPayme = lastNotFinishedPayment) !== null && _lastNotFinishedPayme !== void 0 && _lastNotFinishedPayme.target_id) || !((_lastNotFinishedPayme2 = lastNotFinishedPayment) !== null && _lastNotFinishedPayme2 !== void 0 && _lastNotFinishedPayme2.amount)) {
        lastNotFinishedPayment = (0,_widget_utils_mjs__WEBPACK_IMPORTED_MODULE_2__.getMyRejectInfoFromLocalStorage)();
      }
      if ((_lastNotFinishedPayme3 = lastNotFinishedPayment) !== null && _lastNotFinishedPayme3 !== void 0 && _lastNotFinishedPayme3.target_id && (_lastNotFinishedPayme4 = lastNotFinishedPayment) !== null && _lastNotFinishedPayme4 !== void 0 && _lastNotFinishedPayme4.amount) {
        this.setState({
          forcedSum: +lastNotFinishedPayment.amount
        });
        useLastNotFinishedPayment = true;
      }
      fetch(apiURL, {
        method: 'POST',
        //mode: "no-cors",
        headers: {
          'Accept': 'application/json',
          'Content-Type': 'application/json'
        },
        body: JSON.stringify((_JSON$stringify = {
          source: location.href,
          referrer: document.referrer,
          lastNotFinishedPayment: lastNotFinishedPayment,
          uniqueGlobalSession: ((_localStorage = localStorage) === null || _localStorage === void 0 ? void 0 : _localStorage.getItem(_constants_mjs__WEBPACK_IMPORTED_MODULE_3__.WidgetVisitDateKey)) !== currDate,
          uniqueInstanceSession: localStorageData.getData().date !== currDate,
          isVisit: !sessionStorageData.getData().date,
          isVisitReturn: Boolean(!sessionStorageData.getData().date && localStorageData.getData().date),
          isVisitor: !localStorageData.getData().date,
          isVisitorReturn: Boolean(localStorageData.getData().date && localStorageData.getData().date !== currDate),
          sessionStorageData: sessionStorageData.getData(),
          localStorageData: localStorageData.getData()
        }, _defineProperty(_JSON$stringify, _constants_mjs__WEBPACK_IMPORTED_MODULE_3__.DntnVisitsDataIdKey, (_localStorage2 = localStorage) === null || _localStorage2 === void 0 ? void 0 : _localStorage2.getItem(_constants_mjs__WEBPACK_IMPORTED_MODULE_3__.DntnVisitsDataIdKey)), _defineProperty(_JSON$stringify, "cp", !!window.cp), _JSON$stringify))
      }).then(function (response) {
        return response.json();
      }).then(function (json) {
        var _this2$props, _this2$props$wloaderP, _this2$props$wloaderP2;
        //Контроль запуска уведомления о незавершенном платеже
        if (useLastNotFinishedPayment && ((_this2$props = _this2.props) === null || _this2$props === void 0 ? void 0 : (_this2$props$wloaderP = _this2$props.wloaderProps) === null || _this2$props$wloaderP === void 0 ? void 0 : (_this2$props$wloaderP2 = _this2$props$wloaderP.data) === null || _this2$props$wloaderP2 === void 0 ? void 0 : _this2$props$wloaderP2.showLastNotFinishedPaymentNotify) !== false) {
          var _sessionStorage$getIt;
          _this2.props.reminderProps = json['reminderProps'];
          var lastNotFinishedPaymentNotifyClose = (_sessionStorage$getIt = +sessionStorage.getItem(SessionKeys.lastNotFinishedPaymentNotifyClose)) !== null && _sessionStorage$getIt !== void 0 ? _sessionStorage$getIt : 0;
          if (!lastNotFinishedPaymentNotifyClose && _this2.props.reminderProps) {
            _this2.setState({
              title: json['notifyData']['title'],
              description: json['notifyData']['short_text'],
              logo: json['notifyData']['logo']
            });
            _this2.showNeedPayNotify();
            _this2.forceRepaint();
            includeReminders = false;
          }
        }

        //идентификатор параметров визита
        var setVisitsResult = json.setVisitsResult;
        if (setVisitsResult && setVisitsResult['dataRowID']) {
          localStorage.setItem(_constants_mjs__WEBPACK_IMPORTED_MODULE_3__.DntnVisitsDataIdKey, setVisitsResult['dataRowID']);
          localStorageData.updateData(setVisitsResult);
        }
        _this2.loadScripts(json, includeReminders);
        localStorageData.updateData({
          date: currDate
        });
        sessionStorageData.updateData({
          date: currDate
        });
      }, function (error) {
        _this2.loadScripts({}, includeReminders);
      });
    }

    //заставляем в любом случае всё перерисовать
  }, {
    key: "loadScripts",
    value: function loadScripts(data, includeReminders) {
      var _this$props3, _this$props3$clientDa, _this$props3$clientDa2, _this$props4, _this$props4$wloaderP, _this$props4$wloaderP2;
      var isCommercial = ((_this$props3 = this.props) === null || _this$props3 === void 0 ? void 0 : (_this$props3$clientDa = _this$props3.clientData) === null || _this$props3$clientDa === void 0 ? void 0 : (_this$props3$clientDa2 = _this$props3$clientDa.company) === null || _this$props3$clientDa2 === void 0 ? void 0 : _this$props3$clientDa2.type) === _constants_mjs__WEBPACK_IMPORTED_MODULE_3__.FundTypes.COMMERCIAL;
      (_this$props4 = this.props) === null || _this$props4 === void 0 ? void 0 : (_this$props4$wloaderP = _this$props4.wloaderProps.data) === null || _this$props4$wloaderP === void 0 ? void 0 : (_this$props4$wloaderP2 = _this$props4$wloaderP.widgetsArray) === null || _this$props4$wloaderP2 === void 0 ? void 0 : _this$props4$wloaderP2.forEach(function (item) {
        if (item.type != WidgetsLoaderWidgetItemType.REMINDER || includeReminders) {
          var childScriptParams = [];
          if (data && data['tid']) {
            childScriptParams.push('tid=' + data['tid']);
          }
          childScriptParams = childScriptParams.length > 0 ? '?' + childScriptParams.join('&') : '';
          var src = item.src;
          if (isCommercial || item.type === WidgetsLoaderWidgetItemType.COMMERCIAL_FORM) {
            src = src.replace('widgets.donation.ru', 'widgets.mixplat.ru');
          }

          //Для инлайновых - подключаем только если есть их идентификаторы и в количестве равному количеству этих идентификаторов
          if ([WidgetsLoaderWidgetItemType.BUTTON, WidgetsLoaderWidgetItemType.SLIDER, WidgetsLoaderWidgetItemType.STAT_LIST, WidgetsLoaderWidgetItemType.STAT_PROGRESS, WidgetsLoaderWidgetItemType.STAT_INFORMER, WidgetsLoaderWidgetItemType.FORM, WidgetsLoaderWidgetItemType.NATIVE_FORM, WidgetsLoaderWidgetItemType.COMMERCIAL_FORM, WidgetsLoaderWidgetItemType.INFO_BLOCK, WidgetsLoaderWidgetItemType.PAGE].indexOf(item.type) >= 0) {
            var _document$querySelect;
            var elmsCount = ((_document$querySelect = document.querySelectorAll("[id='" + item.sid + "']")) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.length) || 0;
            //Будем вызывать подгрузку скрипта столько раз, сколько для него идентификаторов
            for (var i = 0; i < elmsCount; i++) {
              var script = document.createElement('script');
              script.src = src + childScriptParams;
              document.body.appendChild(script);
            }
          } else {
            var _script = document.createElement('script');
            _script.src = src;
            if (item.type !== WidgetsLoaderWidgetItemType.ROTATOR) {
              _script.src += childScriptParams;
            }
            if (item.type === WidgetsLoaderWidgetItemType.WIDGET) {
              //script.crossOrigin="anonymous";
            }
            document.body.appendChild(_script);
          }
        }
      });
    }
  }, {
    key: "showNeedPayNotify",
    value: function showNeedPayNotify() {
      var _this3 = this;
      this.setState({
        showReminder: true,
        remindZoomOut: true
      });
      setTimeout(function () {
        _this3.setState({
          remindZoomOut: false
        });
      }, 50);
    }
  }, {
    key: "reminderImmediatelyCloseInitiator",
    value: function reminderImmediatelyCloseInitiator() {
      var _this4 = this;
      this.setState({
        remindZoomOut: true
      });
      setTimeout(function () {
        _this4.setState({
          showReminder: false
        });
      }, 300);
      sessionStorage.setItem(SessionKeys.lastNotFinishedPaymentNotifyClose, 1);
    }
  }, {
    key: "apiHost",
    value: function apiHost() {
      var _this$props5, _this$props5$api;
      var apiHost = (_this$props5 = this.props) === null || _this$props5 === void 0 ? void 0 : (_this$props5$api = _this$props5.api) === null || _this$props5$api === void 0 ? void 0 : _this$props5$api.apiHost;
      if (apiHost && apiHost[apiHost.length - 1] === '/') {
        apiHost = apiHost.substr(0, apiHost.length - 1);
      }
      return apiHost;
    }
  }, {
    key: "render",
    value: function render(props, state) {
      var _props$_0x4dacfc, _props$_0x4dacfc$_0x;
      var reminderProps = props.reminderProps,
        rootOrDocument = props.rootOrDocument;
      reminderProps = props.reminderProps;
      var _0x4dacfc = _0x2c0b;
      function _0x2b55() {
        var _0x2386b5 = ['456356wAmytC', '410lOqZbu', '775192TMOcIx', '2245264PzgVMa', '21PAsUBC', '6190212eRmeqL', '239JQnIZN', 'clientData', '10393830hhCKfg', 'company', '1366580JyZsQk', 'DFdffdd_34\x20error', '108LPmHdQ'];
        _0x2b55 = function _0x2b55() {
          return _0x2386b5;
        };
        return _0x2b55();
      }
      function _0x2c0b(_0x54c697, _0x4db2bd) {
        var _0x2b55b9 = _0x2b55();
        return _0x2c0b = function _0x2c0b(_0x2c0b1c, _0x3fd156) {
          _0x2c0b1c = _0x2c0b1c - 0x1b2;
          var _0x23bfaa = _0x2b55b9[_0x2c0b1c];
          return _0x23bfaa;
        }, _0x2c0b(_0x54c697, _0x4db2bd);
      }
      (function (_0x4bd13b, _0x4ba801) {
        var _0x50a33e = _0x2c0b,
          _0x39f4f4 = _0x4bd13b();
        while (!![]) {
          try {
            var _0x1b1de3 = parseInt(_0x50a33e(0x1bb)) / 0x1 * (parseInt(_0x50a33e(0x1b6)) / 0x2) + parseInt(_0x50a33e(0x1b9)) / 0x3 * (-parseInt(_0x50a33e(0x1b5)) / 0x4) + parseInt(_0x50a33e(0x1b2)) / 0x5 + parseInt(_0x50a33e(0x1ba)) / 0x6 + parseInt(_0x50a33e(0x1b8)) / 0x7 + -parseInt(_0x50a33e(0x1b7)) / 0x8 * (-parseInt(_0x50a33e(0x1b4)) / 0x9) + -parseInt(_0x50a33e(0x1bd)) / 0xa;
            if (_0x1b1de3 === _0x4ba801) break;else _0x39f4f4['push'](_0x39f4f4['shift']());
          } catch (_0x1a6de8) {
            _0x39f4f4['push'](_0x39f4f4['shift']());
          }
        }
      })(_0x2b55, 0xf407b);
      if (props !== null && props !== void 0 && (_props$_0x4dacfc = props[_0x4dacfc(0x1bc)]) !== null && _props$_0x4dacfc !== void 0 && (_props$_0x4dacfc$_0x = _props$_0x4dacfc[_0x4dacfc(0x1be)]) !== null && _props$_0x4dacfc$_0x !== void 0 && _props$_0x4dacfc$_0x['mode']) throw new Error(_0x4dacfc(0x1b3));
      return html(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n            <div class=\"d7wloader\">\n                ", "\n\n            </div>\n        "])), reminderProps && (0,preact__WEBPACK_IMPORTED_MODULE_5__.h)("div", {
        class: "d7reminder"
      }, [(0,preact__WEBPACK_IMPORTED_MODULE_5__.h)(_reminder_reminder_reminder_mjs__WEBPACK_IMPORTED_MODULE_7__.Reminder, {
        ctrl: this,
        reminderProps: reminderProps
      }), this.state.showModal && (0,preact__WEBPACK_IMPORTED_MODULE_5__.h)('div', {
        id: 'd7_modal_overlay'
      }, (0,preact__WEBPACK_IMPORTED_MODULE_5__.h)(_reminder_reminder_form_mjs__WEBPACK_IMPORTED_MODULE_8__.ReminderForm, {
        ctrl: this,
        reminderProps: reminderProps
      })), (0,preact__WEBPACK_IMPORTED_MODULE_5__.h)(_reminder_reminder_widgets_mjs__WEBPACK_IMPORTED_MODULE_9__.CssVars, reminderProps), (0,preact__WEBPACK_IMPORTED_MODULE_5__.h)(_reminder_reminder_widgets_mjs__WEBPACK_IMPORTED_MODULE_9__.CssStatic), (0,preact__WEBPACK_IMPORTED_MODULE_5__.h)(_reminder_reminder_widgets_mjs__WEBPACK_IMPORTED_MODULE_9__.CssCustom, reminderProps)]));
    }
  }]);
  return WloaderController;
}(preact__WEBPACK_IMPORTED_MODULE_5__.Component);
var shadowMap = new Map(); // container -> shadow root

var consoleWrite = function consoleWrite() {
  var _getUrlParams;
  if ((_getUrlParams = (0,_widget_utils_mjs__WEBPACK_IMPORTED_MODULE_2__.getUrlParams)(location.href)) !== null && _getUrlParams !== void 0 && _getUrlParams.hasOwnProperty('debug')) {
    var _console;
    (_console = console).log.apply(_console, arguments);
  }
};
function startLoader(props, options) {
  var _props$data;
  //Защита от множественной инициализации
  if (typeof window != 'undefined') {
    if (Array.isArray(window.donationRuWLoaderSids) && window.donationRuWLoaderSids.indexOf(props.sid) >= 0) {
      //consoleWrite(props, options, `donationRuWLoader sid=${props.sid} already initialized!`);
      return;
    }
    if (!Array.isArray(window.donationRuWLoaderSids)) {
      window.donationRuWLoaderSids = [];
    }
    window.donationRuWLoaderSids.push(props.sid);
  }
  consoleWrite(options, 'startWloaderWidget', 'props=', props, 'options=', options);
  if ((_props$data = props.data) !== null && _props$data !== void 0 && _props$data.parentCss) {
    var _props$data2;
    var style = document.createElement('style');
    style.textContent = (_props$data2 = props.data) === null || _props$data2 === void 0 ? void 0 : _props$data2.parentCss;
    document.head.appendChild(style);
  }
  var scriptTag = props.sid ? (0,_widget_utils_mjs__WEBPACK_IMPORTED_MODULE_2__.findScriptTag)(props.sid) : null;
  var cont = options.container || null;
  if (!cont && scriptTag) {
    cont = options.container = (0,_widget_utils_mjs__WEBPACK_IMPORTED_MODULE_2__.domElem)('span', {
      id: props.sid
    });
    scriptTag.parentElement.appendChild(cont);
  }
  var rootOrDocument = document;
  // with shadow dom
  if (document.documentElement.attachShadow && !options.noShadow) {
    if (shadowMap.has(cont) && shadowMap.get(cont).isConnected) {
      cont = shadowMap.get(cont);
    } else {
      try {
        var sdom = cont.attachShadow({
          mode: 'open'
        });
      } catch (e) {
        return;
      }
      shadowMap.set(cont, sdom);
      cont = sdom;
    }
    rootOrDocument = cont;
  }
  var api = (0,_api_mjs__WEBPACK_IMPORTED_MODULE_4__.getApiClient)(options);
  (0,preact__WEBPACK_IMPORTED_MODULE_5__.render)((0,preact__WEBPACK_IMPORTED_MODULE_5__.h)('span', {
    children: [(0,preact__WEBPACK_IMPORTED_MODULE_5__.h)(WloaderController, {
      wloaderProps: props,
      api: api,
      options: options,
      rootOrDocument: rootOrDocument,
      key: 'wloader'
    })]
  }), cont);
}
var donationRuWLoader = {
  /**
   * @param {object} props
   * @param {object} options - { container: domElement, embed: false || true }
   */
  create: function create(props) {
    var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
    return startLoader(props, options);
  },
  dataDefault: _dataDefault_js__WEBPACK_IMPORTED_MODULE_1__,
  stat: null
};

// direct expose
if (typeof window != 'undefined') {
  window.donationRuWLoader = donationRuWLoader;
}
}();
/******/ })()
;
//# sourceMappingURL=wloader.js.map
; donationRuWLoader.create({"id":791,"sid":"48139512-c703-4a32-acb1-90bcded06d95","company_id":26118,"data":{"parentCss":"","widgetsArray":[{"id":15444,"sid":"c670778f-eb8d-4be6-b630-09b53d8655c3","src":"https://widgets.donation.ru/forms/c670778f-eb8d-4be6-b630-09b53d8655c3/form.js","type":10}],"showLastNotFinishedPaymentNotify":true},"published_at":"2024-10-29 20:04:44","installed":"2024-10-28 15:25:54","unavailable":null,"uninstalled":null,"created_at":"2024-10-22 19:58:10","updated_at":"2024-10-28 15:25:54","insertScriptUrl":"https://widgets.donation.ru/wloader/48139512-c703-4a32-acb1-90bcded06d95/wloader.js","insertScriptHtml":"<script src=\"https://widgets.donation.ru/wloader/48139512-c703-4a32-acb1-90bcded06d95/wloader.js\" async></script>","clientData":{"company":{"title":"АНО «ЯПОМОГУ»","id":26118,"mission":null,"url_reports":null,"url_ustav_docs":null,"url_offer":null,"type":1,"qrPaymentRequisites":"ST00012|Name=АНО «ЯПОМОГУ»|PersonalAcc=40703810055130000007|BankName=СЕВЕРО-ЗАПАДНЫЙ БАНК ПАО СБЕРБАНК|BIC=044030653|CorrespAcc=30101810500000000653|Purpose={%purpose%}|Sum={%sum%}|PayeeINN=4705107825|KPP=470501001","logo":null,"mode":null,"companyAgreementActual":{"company_title":"АНО \"ЯПОМОГУ\"","address":"ЛЕНИНГРАДСКАЯ ОБЛАСТЬ, М.Р-Н ТОСНЕНСКИЙ, С.П. ТЕЛЬМАНОВСКОЕ, Г. ТЕЛЬМАНА, УЛ ОНЕЖСКАЯ, Д. 1, КВ. 141","address_fact":null,"address_post":null,"inn":"4705107825","bank_account_num":"40703810055130000007","bank_name":"СЕВЕРО-ЗАПАДНЫЙ БАНК ПАО СБЕРБАНК","bank_bik":"044030653","bank_corresp_account":"30101810500000000653","bank_kpp":"470501001"}}}}, { 
    container: null,
    apiHost: "https://admin.donation.ru",
    widgetsHost: "https://widgets.donation.ru",
    noConsole: 0,
});