New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

blinguidance

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blinguidance - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "blinguidance",
"version": "1.0.0",
"version": "1.0.1",
"description": "guidance",

@@ -5,0 +5,0 @@ "main": "src/lib/guidance.umd.min.js",

@@ -1,659 +0,3 @@

'use strict'
function t() {
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
t = function () {
return e
}
var e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o = 'function' == typeof Symbol ? Symbol : {},
i = o.iterator || '@@iterator',
a = o.asyncIterator || '@@asyncIterator',
c = o.toStringTag || '@@toStringTag'
function u(t, e, r) {
return (
Object.defineProperty(t, e, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[e]
)
}
try {
u({}, '')
} catch (t) {
u = function (t, e, r) {
return (t[e] = r)
}
}
function s(t, e, r, n) {
var o = e && e.prototype instanceof h ? e : h,
i = Object.create(o.prototype),
a = new k(n || [])
return (
(i._invoke = (function (t, e, r) {
var n = 'suspendedStart'
return function (o, i) {
if ('executing' === n) throw new Error('Generator is already running')
if ('completed' === n) {
if ('throw' === o) throw i
return O()
}
for (r.method = o, r.arg = i; ; ) {
var a = r.delegate
if (a) {
var c = x(a, r)
if (c) {
if (c === f) continue
return c
}
}
if ('next' === r.method) r.sent = r._sent = r.arg
else if ('throw' === r.method) {
if ('suspendedStart' === n) throw ((n = 'completed'), r.arg)
r.dispatchException(r.arg)
} else 'return' === r.method && r.abrupt('return', r.arg)
n = 'executing'
var u = l(t, e, r)
if ('normal' === u.type) {
if (((n = r.done ? 'completed' : 'suspendedYield'), u.arg === f))
continue
return { value: u.arg, done: r.done }
}
'throw' === u.type &&
((n = 'completed'), (r.method = 'throw'), (r.arg = u.arg))
}
}
})(t, r, a)),
i
)
}
function l(t, e, r) {
try {
return { type: 'normal', arg: t.call(e, r) }
} catch (t) {
return { type: 'throw', arg: t }
}
}
e.wrap = s
var f = {}
function h() {}
function p() {}
function d() {}
var v = {}
u(v, i, function () {
return this
})
var y = Object.getPrototypeOf,
m = y && y(y(j([])))
m && m !== r && n.call(m, i) && (v = m)
var w = (d.prototype = h.prototype = Object.create(v))
function g(t) {
;['next', 'throw', 'return'].forEach(function (e) {
u(t, e, function (t) {
return this._invoke(e, t)
})
})
}
function b(t, e) {
function r(o, i, a, c) {
var u = l(t[o], t, i)
if ('throw' !== u.type) {
var s = u.arg,
f = s.value
return f && 'object' == typeof f && n.call(f, '__await')
? e.resolve(f.__await).then(
function (t) {
r('next', t, a, c)
},
function (t) {
r('throw', t, a, c)
}
)
: e.resolve(f).then(
function (t) {
;(s.value = t), a(s)
},
function (t) {
return r('throw', t, a, c)
}
)
}
c(u.arg)
}
var o
this._invoke = function (t, n) {
function i() {
return new e(function (e, o) {
r(t, n, e, o)
})
}
return (o = o ? o.then(i, i) : i())
}
}
function x(t, e) {
var r = t.iterator[e.method]
if (void 0 === r) {
if (((e.delegate = null), 'throw' === e.method)) {
if (
t.iterator.return &&
((e.method = 'return'),
(e.arg = void 0),
x(t, e),
'throw' === e.method)
)
return f
;(e.method = 'throw'),
(e.arg = new TypeError(
"The iterator does not provide a 'throw' method"
))
}
return f
}
var n = l(r, t.iterator, e.arg)
if ('throw' === n.type)
return (e.method = 'throw'), (e.arg = n.arg), (e.delegate = null), f
var o = n.arg
return o
? o.done
? ((e[t.resultName] = o.value),
(e.next = t.nextLoc),
'return' !== e.method && ((e.method = 'next'), (e.arg = void 0)),
(e.delegate = null),
f)
: o
: ((e.method = 'throw'),
(e.arg = new TypeError('iterator result is not an object')),
(e.delegate = null),
f)
}
function E(t) {
var e = { tryLoc: t[0] }
1 in t && (e.catchLoc = t[1]),
2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
this.tryEntries.push(e)
}
function L(t) {
var e = t.completion || {}
;(e.type = 'normal'), delete e.arg, (t.completion = e)
}
function k(t) {
;(this.tryEntries = [{ tryLoc: 'root' }]),
t.forEach(E, this),
this.reset(!0)
}
function j(t) {
if (t) {
var e = t[i]
if (e) return e.call(t)
if ('function' == typeof t.next) return t
if (!isNaN(t.length)) {
var r = -1,
o = function e() {
for (; ++r < t.length; )
if (n.call(t, r)) return (e.value = t[r]), (e.done = !1), e
return (e.value = void 0), (e.done = !0), e
}
return (o.next = o)
}
}
return { next: O }
}
function O() {
return { value: void 0, done: !0 }
}
return (
(p.prototype = d),
u(w, 'constructor', d),
u(d, 'constructor', p),
(p.displayName = u(d, c, 'GeneratorFunction')),
(e.isGeneratorFunction = function (t) {
var e = 'function' == typeof t && t.constructor
return (
!!e && (e === p || 'GeneratorFunction' === (e.displayName || e.name))
)
}),
(e.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, d)
: ((t.__proto__ = d), u(t, c, 'GeneratorFunction')),
(t.prototype = Object.create(w)),
t
)
}),
(e.awrap = function (t) {
return { __await: t }
}),
g(b.prototype),
u(b.prototype, a, function () {
return this
}),
(e.AsyncIterator = b),
(e.async = function (t, r, n, o, i) {
void 0 === i && (i = Promise)
var a = new b(s(t, r, n, o), i)
return e.isGeneratorFunction(r)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next()
})
}),
g(w),
u(w, c, 'Generator'),
u(w, i, function () {
return this
}),
u(w, 'toString', function () {
return '[object Generator]'
}),
(e.keys = function (t) {
var e = []
for (var r in t) e.push(r)
return (
e.reverse(),
function r() {
for (; e.length; ) {
var n = e.pop()
if (n in t) return (r.value = n), (r.done = !1), r
}
return (r.done = !0), r
}
)
}),
(e.values = j),
(k.prototype = {
constructor: k,
reset: function (t) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = void 0),
(this.done = !1),
(this.delegate = null),
(this.method = 'next'),
(this.arg = void 0),
this.tryEntries.forEach(L),
!t)
)
for (var e in this)
't' === e.charAt(0) &&
n.call(this, e) &&
!isNaN(+e.slice(1)) &&
(this[e] = void 0)
},
stop: function () {
this.done = !0
var t = this.tryEntries[0].completion
if ('throw' === t.type) throw t.arg
return this.rval
},
dispatchException: function (t) {
if (this.done) throw t
var e = this
function r(r, n) {
return (
(a.type = 'throw'),
(a.arg = t),
(e.next = r),
n && ((e.method = 'next'), (e.arg = void 0)),
!!n
)
}
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
var i = this.tryEntries[o],
a = i.completion
if ('root' === i.tryLoc) return r('end')
if (i.tryLoc <= this.prev) {
var c = n.call(i, 'catchLoc'),
u = n.call(i, 'finallyLoc')
if (c && u) {
if (this.prev < i.catchLoc) return r(i.catchLoc, !0)
if (this.prev < i.finallyLoc) return r(i.finallyLoc)
} else if (c) {
if (this.prev < i.catchLoc) return r(i.catchLoc, !0)
} else {
if (!u) throw new Error('try statement without catch or finally')
if (this.prev < i.finallyLoc) return r(i.finallyLoc)
}
}
}
},
abrupt: function (t, e) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var o = this.tryEntries[r]
if (
o.tryLoc <= this.prev &&
n.call(o, 'finallyLoc') &&
this.prev < o.finallyLoc
) {
var i = o
break
}
}
i &&
('break' === t || 'continue' === t) &&
i.tryLoc <= e &&
e <= i.finallyLoc &&
(i = null)
var a = i ? i.completion : {}
return (
(a.type = t),
(a.arg = e),
i
? ((this.method = 'next'), (this.next = i.finallyLoc), f)
: this.complete(a)
)
},
complete: function (t, e) {
if ('throw' === t.type) throw t.arg
return (
'break' === t.type || 'continue' === t.type
? (this.next = t.arg)
: 'return' === t.type
? ((this.rval = this.arg = t.arg),
(this.method = 'return'),
(this.next = 'end'))
: 'normal' === t.type && e && (this.next = e),
f
)
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e]
if (r.finallyLoc === t)
return this.complete(r.completion, r.afterLoc), L(r), f
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var r = this.tryEntries[e]
if (r.tryLoc === t) {
var n = r.completion
if ('throw' === n.type) {
var o = n.arg
L(r)
}
return o
}
}
throw new Error('illegal catch attempt')
},
delegateYield: function (t, e, r) {
return (
(this.delegate = { iterator: j(t), resultName: e, nextLoc: r }),
'next' === this.method && (this.arg = void 0),
f
)
},
}),
e
)
}
function e(t, e) {
for (var r = 0; r < e.length; r++) {
var n = e[r]
;(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
'value' in n && (n.writable = !0),
Object.defineProperty(t, n.key, n)
}
}
function r(t, e) {
;(null == e || e > t.length) && (e = t.length)
for (var r = 0, n = new Array(e); r < e; r++) n[r] = t[r]
return n
}
function n(t, e) {
var n =
('undefined' != typeof Symbol && t[Symbol.iterator]) || t['@@iterator']
if (!n) {
if (
Array.isArray(t) ||
(n = (function (t, e) {
if (t) {
if ('string' == typeof t) return r(t, e)
var n = Object.prototype.toString.call(t).slice(8, -1)
return (
'Object' === n && t.constructor && (n = t.constructor.name),
'Map' === n || 'Set' === n
? Array.from(t)
: 'Arguments' === n ||
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
? r(t, e)
: void 0
)
}
})(t)) ||
(e && t && 'number' == typeof t.length)
) {
n && (t = n)
var o = 0,
i = function () {}
return {
s: i,
n: function () {
return o >= t.length ? { done: !0 } : { done: !1, value: t[o++] }
},
e: function (t) {
throw t
},
f: i,
}
}
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 a,
c = !0,
u = !1
return {
s: function () {
n = n.call(t)
},
n: function () {
var t = n.next()
return (c = t.done), t
},
e: function (t) {
;(u = !0), (a = t)
},
f: function () {
try {
c || null == n.return || n.return()
} finally {
if (u) throw a
}
},
}
}
function o(t, e, r) {
return (
(function (t, e, r) {
if (e.set) e.set.call(t, r)
else {
if (!e.writable)
throw new TypeError('attempted to set read only private field')
e.value = r
}
})(t, i(t, e, 'set'), r),
r
)
}
function i(t, e, r) {
if (!e.has(t))
throw new TypeError('attempted to ' + r + ' private field on non-instance')
return e.get(t)
}
function a(t, e) {
if (e.has(t))
throw new TypeError(
'Cannot initialize the same private elements twice on an object'
)
}
var c
function u(t, e) {
var r = t
for (var n in ('string' == typeof t && (r = document.createElement(t)), e))
r.style[n] = e[n]
return r
}
var s = new WeakMap(),
l = new WeakSet()
c = Symbol.iterator
var f = (function () {
function r(t) {
var e, n
!(function (t, e) {
if (!(t instanceof e))
throw new TypeError('Cannot call a class as a function')
})(this, r),
a((e = this), (n = l)),
n.add(e),
(function (t, e, r) {
a(t, e), e.set(t, r)
})(this, s, { writable: !0, value: !1 })
var o = t.flow,
i = t.btns,
c = void 0 === i ? { next: {}, end: {} } : i,
f = t.width,
h = void 0 === f ? '100%' : f
;(this.flow = o),
(this.mask = u('div', {
position: 'fixed',
top: '0',
left: '0',
right: '0',
bottom: '0',
background: 'rgba(0,0,0,.5)',
zIndex: '99',
})),
(this.content = u('div', {
width: h,
height: '100%',
margin: '0 auto',
position: 'relative',
})),
this.mask.appendChild(this.content),
(this.showBox = u('div', { position: 'absolute', zIndex: '999' })),
(this.nextBtn = u('div', c.next)),
(this.endBtn = u('div', c.end))
}
var f, p, d
return (
(f = r),
(d = [
{
key: 'create',
value: function (t) {
var e = new r(t)
return e.insert.bind(e)
},
},
]),
(p = [
{
key: 'insert',
value: function (e, r) {
if (
!(function (t, e) {
return e.get ? e.get.call(t) : e.value
})((a = this), i(a, s, 'get'))
) {
var a
document.body.appendChild(this.mask), o(this, s, !0)
var c = t().mark(function o(i) {
var a, c, s
return t().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
i.content.appendChild(i.showBox),
i.showBox.appendChild(i.nextBtn),
i.showBox.appendChild(i.endBtn),
(i.nextBtn.onclick = e),
(i.endBtn.onclick = r),
(a = n(i.flow)),
(t.prev = 6),
a.s()
case 8:
if ((c = a.n()).done) {
t.next = 17
break
}
return (
(s = c.value),
u(i.showBox, s),
u(i.nextBtn, s.next),
u(i.endBtn, s.end),
void (t.next = 15)
)
case 15:
t.next = 8
break
case 17:
t.next = 22
break
case 19:
;(t.prev = 19), (t.t0 = t.catch(6)), a.e(t.t0)
case 22:
return (t.prev = 22), a.f(), t.finish(22)
case 25:
case 'end':
return t.stop()
}
},
o,
null,
[[6, 19, 22, 25]]
)
})(this)
return (
(c.end = (function (t, e, r) {
if (!e.has(t))
throw new TypeError(
'attempted to get private field on non-instance'
)
return r
})(this, l, h).bind(this)),
c
)
}
},
},
{
key: c,
value: t().mark(function e() {
return t().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return t.delegateYield(this.flow, 't0', 1)
case 1:
case 'end':
return t.stop()
}
},
e,
this
)
}),
},
]) && e(f.prototype, p),
d && e(f, d),
Object.defineProperty(f, 'prototype', { writable: !1 }),
r
)
})()
function h() {
document.body.removeChild(this.mask),
(this.mask = null),
(this.showBox = null)
}
module.exports = f
"use strict";function t(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
t=function(){return e};var e={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new k(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(j([])));m&&m!==r&&n.call(m,i)&&(v=m);var w=d.prototype=h.prototype=Object.create(v);function g(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function x(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=l(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=d,u(w,"constructor",d),u(d,"constructor",p),p.displayName=u(d,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},g(b.prototype),u(b.prototype,a,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new b(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},g(w),u(w,c,"Generator"),u(w,i,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function n(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}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 a,c=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){u=!0,a=t},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw a}}}}function o(t,e,r){return function(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}(t,i(t,e,"set"),r),r}function i(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function a(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}var c;function u(t,e){var r=t;for(var n in"string"==typeof t&&(r=document.createElement(t)),e)r.style[n]=e[n];return r}var s=new WeakMap,l=new WeakSet;c=Symbol.iterator;var f=function(){function r(t){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),a(e=this,n=l),n.add(e),function(t,e,r){a(t,e),e.set(t,r)}(this,s,{writable:!0,value:!1});var o=t.flow,i=t.btns,c=void 0===i?{next:{},end:{}}:i,f=t.width,h=void 0===f?"100%":f;this.flow=o,this.mask=u("div",{position:"fixed",top:"0",left:"0",right:"0",bottom:"0",background:"rgba(0,0,0,.5)",zIndex:"99"}),this.content=u("div",{width:h,height:"100%",margin:"0 auto",position:"relative"}),this.mask.appendChild(this.content),this.showBox=u("div",{position:"absolute",zIndex:"999"}),this.nextBtn=u("div",c.next),this.endBtn=u("div",c.end)}var f,p,d;return f=r,d=[{key:"create",value:function(t){var e=new r(t);return e.insert.bind(e)}}],(p=[{key:"insert",value:function(e,r){if(!function(t,e){return e.get?e.get.call(t):e.value}(a=this,i(a,s,"get"))){var a;document.body.appendChild(this.mask),o(this,s,!0);var c=t().mark((function o(i){var a,c,s;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i.content.appendChild(i.showBox),i.showBox.appendChild(i.nextBtn),i.showBox.appendChild(i.endBtn),i.nextBtn.onclick=e,i.endBtn.onclick=r,a=n(i.flow),t.prev=6,a.s();case 8:if((c=a.n()).done){t.next=17;break}return s=c.value,u(i.showBox,s),u(i.nextBtn,s.next),u(i.endBtn,s.end),void(t.next=15);case 15:t.next=8;break;case 17:t.next=22;break;case 19:t.prev=19,t.t0=t.catch(6),a.e(t.t0);case 22:return t.prev=22,a.f(),t.finish(22);case 25:case"end":return t.stop()}}),o,null,[[6,19,22,25]])}))(this);return c.end=function(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}(this,l,h).bind(this),c}}},{key:c,value:t().mark((function e(){return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this.flow,"t0",1);case 1:case"end":return t.stop()}}),e,this)}))}])&&e(f.prototype,p),d&&e(f,d),Object.defineProperty(f,"prototype",{writable:!1}),r}();function h(){document.body.removeChild(this.mask),this.mask=null,this.showBox=null}module.exports=f;

@@ -1,3 +0,3 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Log=e()}(this,(function(){"use strict";function t(){
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Guidance=e()}(this,(function(){"use strict";function t(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
t=function(){return e};var e={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new k(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===l)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var l={};function h(){}function d(){}function p(){}var v={};u(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(j([])));m&&m!==r&&n.call(m,i)&&(v=m);var g=p.prototype=h.prototype=Object.create(v);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function x(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=p,u(g,"constructor",p),u(p,"constructor",d),d.displayName=u(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},w(b.prototype),u(b.prototype,a,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new b(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(g),u(g,c,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},e}function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function n(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}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 a,c=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){u=!0,a=t},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw a}}}}function o(t,e,r){return function(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}(t,i(t,e,"set"),r),r}function i(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function a(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}var c;function u(t,e){var r=t;for(var n in"string"==typeof t&&(r=document.createElement(t)),e)r.style[n]=e[n];return r}var s=new WeakMap,f=new WeakSet;function l(){document.body.removeChild(this.mask),this.mask=null,this.showBox=null}return c=Symbol.iterator,function(){function r(t){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),a(e=this,n=f),n.add(e),function(t,e,r){a(t,e),e.set(t,r)}(this,s,{writable:!0,value:!1});var o=t.flow,i=t.btns,c=void 0===i?{next:{},end:{}}:i,l=t.width,h=void 0===l?"100%":l;this.flow=o,this.mask=u("div",{position:"fixed",top:"0",left:"0",right:"0",bottom:"0",background:"rgba(0,0,0,.5)",zIndex:"99"}),this.content=u("div",{width:h,height:"100%",margin:"0 auto",position:"relative"}),this.mask.appendChild(this.content),this.showBox=u("div",{position:"absolute",zIndex:"999"}),this.nextBtn=u("div",c.next),this.endBtn=u("div",c.end)}var h,d,p;return h=r,p=[{key:"create",value:function(t){var e=new r(t);return e.insert.bind(e)}}],(d=[{key:"insert",value:function(e,r){if(!function(t,e){return e.get?e.get.call(t):e.value}(a=this,i(a,s,"get"))){var a;document.body.appendChild(this.mask),o(this,s,!0);var c=t().mark((function o(i){var a,c,s;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i.content.appendChild(i.showBox),i.showBox.appendChild(i.nextBtn),i.showBox.appendChild(i.endBtn),i.nextBtn.onclick=e,i.endBtn.onclick=r,a=n(i.flow),t.prev=6,a.s();case 8:if((c=a.n()).done){t.next=17;break}return s=c.value,u(i.showBox,s),u(i.nextBtn,s.next),u(i.endBtn,s.end),void(t.next=15);case 15:t.next=8;break;case 17:t.next=22;break;case 19:t.prev=19,t.t0=t.catch(6),a.e(t.t0);case 22:return t.prev=22,a.f(),t.finish(22);case 25:case"end":return t.stop()}}),o,null,[[6,19,22,25]])}))(this);return c.end=function(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}(this,f,l).bind(this),c}}},{key:c,value:t().mark((function e(){return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this.flow,"t0",1);case 1:case"end":return t.stop()}}),e,this)}))}])&&e(h.prototype,d),p&&e(h,p),Object.defineProperty(h,"prototype",{writable:!1}),r}()}));
t=function(){return e};var e={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new k(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===l)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var l={};function h(){}function d(){}function p(){}var v={};u(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(j([])));m&&m!==r&&n.call(m,i)&&(v=m);var w=p.prototype=h.prototype=Object.create(v);function g(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function x(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=p,u(w,"constructor",p),u(p,"constructor",d),d.displayName=u(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},g(b.prototype),u(b.prototype,a,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new b(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},g(w),u(w,c,"Generator"),u(w,i,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},e}function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function n(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}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 a,c=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){u=!0,a=t},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw a}}}}function o(t,e,r){return function(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}(t,i(t,e,"set"),r),r}function i(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function a(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}var c;function u(t,e){var r=t;for(var n in"string"==typeof t&&(r=document.createElement(t)),e)r.style[n]=e[n];return r}var s=new WeakMap,f=new WeakSet;function l(){document.body.removeChild(this.mask),this.mask=null,this.showBox=null}return c=Symbol.iterator,function(){function r(t){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),a(e=this,n=f),n.add(e),function(t,e,r){a(t,e),e.set(t,r)}(this,s,{writable:!0,value:!1});var o=t.flow,i=t.btns,c=void 0===i?{next:{},end:{}}:i,l=t.width,h=void 0===l?"100%":l;this.flow=o,this.mask=u("div",{position:"fixed",top:"0",left:"0",right:"0",bottom:"0",background:"rgba(0,0,0,.5)",zIndex:"99"}),this.content=u("div",{width:h,height:"100%",margin:"0 auto",position:"relative"}),this.mask.appendChild(this.content),this.showBox=u("div",{position:"absolute",zIndex:"999"}),this.nextBtn=u("div",c.next),this.endBtn=u("div",c.end)}var h,d,p;return h=r,p=[{key:"create",value:function(t){var e=new r(t);return e.insert.bind(e)}}],(d=[{key:"insert",value:function(e,r){if(!function(t,e){return e.get?e.get.call(t):e.value}(a=this,i(a,s,"get"))){var a;document.body.appendChild(this.mask),o(this,s,!0);var c=t().mark((function o(i){var a,c,s;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i.content.appendChild(i.showBox),i.showBox.appendChild(i.nextBtn),i.showBox.appendChild(i.endBtn),i.nextBtn.onclick=e,i.endBtn.onclick=r,a=n(i.flow),t.prev=6,a.s();case 8:if((c=a.n()).done){t.next=17;break}return s=c.value,u(i.showBox,s),u(i.nextBtn,s.next),u(i.endBtn,s.end),void(t.next=15);case 15:t.next=8;break;case 17:t.next=22;break;case 19:t.prev=19,t.t0=t.catch(6),a.e(t.t0);case 22:return t.prev=22,a.f(),t.finish(22);case 25:case"end":return t.stop()}}),o,null,[[6,19,22,25]])}))(this);return c.end=function(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}(this,f,l).bind(this),c}}},{key:c,value:t().mark((function e(){return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this.flow,"t0",1);case 1:case"end":return t.stop()}}),e,this)}))}])&&e(h.prototype,d),p&&e(h,p),Object.defineProperty(h,"prototype",{writable:!1}),r}()}));
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc