UNPKG

@caspingus/lt

Version:

A utility library of helpers and tools for working with Learnosity APIs.

2 lines 1.83 MB
/*! For license information please see index.js.LICENSE.txt */ var __webpack_modules__={124:(e,t,r)=>{var n=r(9325);e.exports=function(){return n.Date.now()}},228:e=>{var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function a(e,t,n,a,s){if("function"!=typeof n)throw new TypeError("The listener must be a function");var o=new i(n,a||e,s),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],o]:e._events[l].push(o):(e._events[l]=o,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function o(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),o.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},o.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,s=new Array(a);i<a;i++)s[i]=n[i].fn;return s},o.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},o.prototype.emit=function(e,t,n,i,a,s){var o=r?r+e:e;if(!this._events[o])return!1;var l,c,d=this._events[o],u=arguments.length;if(d.fn){switch(d.once&&this.removeListener(e,d.fn,void 0,!0),u){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,n),!0;case 4:return d.fn.call(d.context,t,n,i),!0;case 5:return d.fn.call(d.context,t,n,i,a),!0;case 6:return d.fn.call(d.context,t,n,i,a,s),!0}for(c=1,l=new Array(u-1);c<u;c++)l[c-1]=arguments[c];d.fn.apply(d.context,l)}else{var p,h=d.length;for(c=0;c<h;c++)switch(d[c].once&&this.removeListener(e,d[c].fn,void 0,!0),u){case 1:d[c].fn.call(d[c].context);break;case 2:d[c].fn.call(d[c].context,t);break;case 3:d[c].fn.call(d[c].context,t,n);break;case 4:d[c].fn.call(d[c].context,t,n,i);break;default:if(!l)for(p=1,l=new Array(u-1);p<u;p++)l[p-1]=arguments[p];d[c].fn.apply(d[c].context,l)}}return!0},o.prototype.on=function(e,t,r){return a(this,e,t,r,!1)},o.prototype.once=function(e,t,r){return a(this,e,t,r,!0)},o.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn!==t||i&&!o.once||n&&o.context!==n||s(this,a);else{for(var l=0,c=[],d=o.length;l<d;l++)(o[l].fn!==t||i&&!o[l].once||n&&o[l].context!==n)&&c.push(o[l]);c.length?this._events[a]=1===c.length?c[0]:c:s(this,a)}return this},o.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=r,o.EventEmitter=o,e.exports=o},251:(e,t)=>{t.read=function(e,t,r,n,i){var a,s,o=8*i-n-1,l=(1<<o)-1,c=l>>1,d=-7,u=r?i-1:0,p=r?-1:1,h=e[t+u];for(u+=p,a=h&(1<<-d)-1,h>>=-d,d+=o;d>0;a=256*a+e[t+u],u+=p,d-=8);for(s=a&(1<<-d)-1,a>>=-d,d+=n;d>0;s=256*s+e[t+u],u+=p,d-=8);if(0===a)a=1-c;else{if(a===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),a-=c}return(h?-1:1)*s*Math.pow(2,a-n)},t.write=function(e,t,r,n,i,a){var s,o,l,c=8*a-i-1,d=(1<<c)-1,u=d>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:a-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=d):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+u>=1?p/l:p*Math.pow(2,1-u))*l>=2&&(s++,l/=2),s+u>=d?(o=0,s=d):s+u>=1?(o=(t*l-1)*Math.pow(2,i),s+=u):(o=t*Math.pow(2,u-1)*Math.pow(2,i),s=0));i>=8;e[r+h]=255&o,h+=f,o/=256,i-=8);for(s=s<<i|o,c+=i;c>0;e[r+h]=255&s,h+=f,s/=256,c-=8);e[r+h-f]|=128*m}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},659:(e,t,r)=>{var n=r(1873),i=Object.prototype,a=i.hasOwnProperty,s=i.toString,o=n?n.toStringTag:void 0;e.exports=function(e){var t=a.call(e,o),r=e[o];try{e[o]=void 0;var n=!0}catch(e){}var i=s.call(e);return n&&(t?e[o]=r:delete e[o]),i}},908:(e,t,r)=>{var n,i,a=r(5969),s=r(6100).isArray;function o(e,t,r){return(!r&&e.spaces?"\n":"")+Array(t+1).join(e.spaces)}function l(e,t,r){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,i,n));var a,s,l,c,d=[];for(a in e)e.hasOwnProperty(a)&&null!==e[a]&&void 0!==e[a]&&(c=t.noQuotesForNativeAttributes&&"string"!=typeof e[a]?"":'"',s=(s=""+e[a]).replace(/"/g,"&quot;"),l="attributeNameFn"in t?t.attributeNameFn(a,s,i,n):a,d.push(t.spaces&&t.indentAttributes?o(t,r+1,!1):" "),d.push(l+"="+c+("attributeValueFn"in t?t.attributeValueFn(s,a,i,n):s)+c));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&d.push(o(t,r,!1)),d.join("")}function c(e,t,r){return n=e,i="xml",t.ignoreDeclaration?"":"<?xml"+l(e[t.attributesKey],t,r)+"?>"}function d(e,t,r){if(t.ignoreInstruction)return"";var a;for(a in e)if(e.hasOwnProperty(a))break;var s="instructionNameFn"in t?t.instructionNameFn(a,e[a],i,n):a;if("object"==typeof e[a])return n=e,i=s,"<?"+s+l(e[a][t.attributesKey],t,r)+"?>";var o=e[a]?e[a]:"";return"instructionFn"in t&&(o=t.instructionFn(o,a,i,n)),"<?"+s+(o?" "+o:"")+"?>"}function u(e,t){return t.ignoreComment?"":"\x3c!--"+("commentFn"in t?t.commentFn(e,i,n):e)+"--\x3e"}function p(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,i,n):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function h(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,i,n):e)+">"}function f(e,t){return t.ignoreText?"":(e=(e=(e=""+e).replace(/&amp;/g,"&")).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in t?t.textFn(e,i,n):e)}function m(e,t,r,a){return e.reduce((function(e,s){var c=o(t,r,a&&!e);switch(s.type){case"element":return e+c+function(e,t,r){n=e,i=e.name;var a=[],s="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;a.push("<"+s),e[t.attributesKey]&&a.push(l(e[t.attributesKey],t,r));var o=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&"preserve"===e[t.attributesKey]["xml:space"];return o||(o="fullTagEmptyElementFn"in t?t.fullTagEmptyElementFn(e.name,e):t.fullTagEmptyElement),o?(a.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(a.push(m(e[t.elementsKey],t,r+1)),n=e,i=e.name),a.push(t.spaces&&function(e,t){var r;if(e.elements&&e.elements.length)for(r=0;r<e.elements.length;++r)switch(e.elements[r][t.typeKey]){case"text":if(t.indentText)return!0;break;case"cdata":if(t.indentCdata)return!0;break;case"instruction":if(t.indentInstruction)return!0;break;default:return!0}return!1}(e,t)?"\n"+Array(r+1).join(t.spaces):""),a.push("</"+s+">")):a.push("/>"),a.join("")}(s,t,r);case"comment":return e+c+u(s[t.commentKey],t);case"doctype":return e+c+h(s[t.doctypeKey],t);case"cdata":return e+(t.indentCdata?c:"")+p(s[t.cdataKey],t);case"text":return e+(t.indentText?c:"")+f(s[t.textKey],t);case"instruction":var g={};return g[s[t.nameKey]]=s[t.attributesKey]?s:s[t.instructionKey],e+(t.indentInstruction?c:"")+d(g,t,r)}}),"")}function g(e,t,r){var n;for(n in e)if(e.hasOwnProperty(n))switch(n){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||r)return!0;break;case t.cdataKey:if(t.indentCdata||r)return!0;break;case t.instructionKey:if(t.indentInstruction||r)return!0;break;case t.doctypeKey:case t.commentKey:default:return!0}return!1}function _(e,t,r,a,s){n=e,i=t;var c="elementNameFn"in r?r.elementNameFn(t,e):t;if(null==e||""===e)return"fullTagEmptyElementFn"in r&&r.fullTagEmptyElementFn(t,e)||r.fullTagEmptyElement?"<"+c+"></"+c+">":"<"+c+"/>";var d=[];if(t){if(d.push("<"+c),"object"!=typeof e)return d.push(">"+f(e,r)+"</"+c+">"),d.join("");e[r.attributesKey]&&d.push(l(e[r.attributesKey],r,a));var u=g(e,r,!0)||e[r.attributesKey]&&"preserve"===e[r.attributesKey]["xml:space"];if(u||(u="fullTagEmptyElementFn"in r?r.fullTagEmptyElementFn(t,e):r.fullTagEmptyElement),!u)return d.push("/>"),d.join("");d.push(">")}return d.push(b(e,r,a+1,!1)),n=e,i=t,t&&d.push((s?o(r,a,!1):"")+"</"+c+">"),d.join("")}function b(e,t,r,n){var i,a,l,m=[];for(a in e)if(e.hasOwnProperty(a))for(l=s(e[a])?e[a]:[e[a]],i=0;i<l.length;++i){switch(a){case t.declarationKey:m.push(c(l[i],t,r));break;case t.instructionKey:m.push((t.indentInstruction?o(t,r,n):"")+d(l[i],t,r));break;case t.attributesKey:case t.parentKey:break;case t.textKey:m.push((t.indentText?o(t,r,n):"")+f(l[i],t));break;case t.cdataKey:m.push((t.indentCdata?o(t,r,n):"")+p(l[i],t));break;case t.doctypeKey:m.push(o(t,r,n)+h(l[i],t));break;case t.commentKey:m.push(o(t,r,n)+u(l[i],t));break;default:m.push(o(t,r,n)+_(l[i],a,t,r,g(l[i],t)))}n=n&&!m.length}return m.join("")}e.exports=function(e,t){t=function(e){var t=a.copyOptions(e);return a.ensureFlagExists("ignoreDeclaration",t),a.ensureFlagExists("ignoreInstruction",t),a.ensureFlagExists("ignoreAttributes",t),a.ensureFlagExists("ignoreText",t),a.ensureFlagExists("ignoreComment",t),a.ensureFlagExists("ignoreCdata",t),a.ensureFlagExists("ignoreDoctype",t),a.ensureFlagExists("compact",t),a.ensureFlagExists("indentText",t),a.ensureFlagExists("indentCdata",t),a.ensureFlagExists("indentAttributes",t),a.ensureFlagExists("indentInstruction",t),a.ensureFlagExists("fullTagEmptyElement",t),a.ensureFlagExists("noQuotesForNativeAttributes",t),a.ensureSpacesExists(t),"number"==typeof t.spaces&&(t.spaces=Array(t.spaces+1).join(" ")),a.ensureKeyExists("declaration",t),a.ensureKeyExists("instruction",t),a.ensureKeyExists("attributes",t),a.ensureKeyExists("text",t),a.ensureKeyExists("comment",t),a.ensureKeyExists("cdata",t),a.ensureKeyExists("doctype",t),a.ensureKeyExists("type",t),a.ensureKeyExists("name",t),a.ensureKeyExists("elements",t),a.checkFnExists("doctype",t),a.checkFnExists("instruction",t),a.checkFnExists("cdata",t),a.checkFnExists("comment",t),a.checkFnExists("text",t),a.checkFnExists("instructionName",t),a.checkFnExists("elementName",t),a.checkFnExists("attributeName",t),a.checkFnExists("attributeValue",t),a.checkFnExists("attributes",t),a.checkFnExists("fullTagEmptyElement",t),t}(t);var r=[];return n=e,i="_root_",t.compact?r.push(b(e,t,0,!0)):(e[t.declarationKey]&&r.push(c(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&r.push(m(e[t.elementsKey],t,0,!r.length))),r.join("")}},1026:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2736%27 height=%2712%27%3E%3Cpath fill=%27rgba%2817, 17, 17, 0.9%29%27 d=%27M33.342 12H1.338c6 0 11.627-12.002 16.002-12.002S27.406 12 33.342 12%27/%3E%3C/svg%3E"},1113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},1427:(e,t,r)=>{r(8990);const n=r(9233);e.exports={check:function(e,t){const r=t||{};return r.platform=r.platform||"all",n.check(e,t).then((e=>e))},verifyAndFix:function(e,t){const r=t||{};return r.platform=r.platform||"all",n.verifyAndFix(e,t).then((e=>e))}}},1601:e=>{e.exports=function(e){return e[1]}},1701:e=>{function t(e,t,r){const n={type:"tag",tag:e.name};return n.tag=e.name,n.attribute=t,n.value=r||!e.attributes?void 0:e.attributes[t],void 0!==e.position&&(n.position=e.position),n}function r(e,t,r){let n;if(r||"infinity"!==e)if(e.match("[0-9]+ms"))n=parseInt(e);else if(e.match(/^[0-9]+(\.[0-9]+)?s$/g))n=1e3*parseInt(e);else{if("google"!==t||!e.match(/^[0-9]+(\.[0-9]+)?$/g))return;n=1e3*parseInt(e)}else n=Number.MAX_SAFE_INTEGER;return r&&(n=n<=r?n:void 0),n}function n(e,t,r,n){let i=parseFloat(e),a=!0;return isNaN(i)?(a=!1,i=n):i<t?(a=!1,i=t):i>r&&(a=!1,i=r),{inRange:a,value:i}}const i=(e,r,n,i,a,s)=>(Object.keys(i.attributes||{}).forEach((e=>{n.push(t(i,e,!0)),i.attributes[e]=void 0})),!1),a=i,s=(e,t,r,n,i,a)=>{if(n.elements){let e;for(e=0;e<n.elements.length;e++){const t=n.elements[e];if(-1===["par","seq","media"].indexOf(t.name)){const i={type:"tag",tag:n.name};i.value=t.name,void 0!==n.position&&(i.position=n.position),r.push(i),n.elements.splice(e,1),e--}}}return!1},o=s;e.exports={check_alexa_name:(e,r,n,i,a,s)=>{const o=Object.keys(i.attributes||{});return o.forEach((e=>{"type"===e?-1===["first"].indexOf(i.attributes.type)&&(n.push(t(i,e)),i.attributes.type="first"):"personId"===e?-1===i.attributes.personId.indexOf("amzn1.ask.person.")&&n.push(t(i,e)):(n.push(t(i,e,!0)),i.attributes[e]=void 0)})),-1===o.indexOf("type")&&(n.push(t(i,"missing type")),i.attributes={type:"first"}),-1===o.indexOf("personId")&&(n.push(t(i,"missing personId")),i.attributes={personId:"amzn1.ask.person.ABCD"}),!1},check_amazon_auto_breaths:(e,r,n,i,a,s)=>(Object.keys(i.attributes||{}).forEach((e=>{"duration"===e?-1===["default","x-short","short","medium","long","x-long"].indexOf(i.attributes.duration)&&(n.push(t(i,e)),i.attributes.duration="medium"):"volume"===e?-1===["default","x-soft","soft","medium","loud","x-loud"].indexOf(i.attributes.volume)&&(n.push(t(i,e)),i.attributes.volume="medium"):"frequency"===e?-1===["default","x-low","low","medium","high","x-high"].indexOf(i.attributes.frequency)&&(n.push(t(i,e)),i.attributes.frequncy="medium"):(n.push(t(i,e,!0)),i.attributes[e]=void 0)})),!1),check_amazon_breath:(e,r,n,i,a,s)=>(Object.keys(i.attributes||{}).forEach((e=>{"duration"===e?-1===["default","x-short","short","medium","long","x-long"].indexOf(i.attributes.duration)&&(n.push(t(i,e)),i.attributes.duration="medium"):"volume"===e?-1===["default","x-soft","soft","medium","loud","x-loud"].indexOf(i.attributes.volume)&&(n.push(t(i,e)),i.attributes.volume="medium"):(n.push(t(i,e,!0)),i.attributes[e]=void 0)})),!1),check_amazon_domain:(e,r,n,i,a,s)=>{if(s&&-1===["en-US","en-GB","jp-JP","de-DE","en-CA","en-AU"].indexOf(s))return n.push(t(i,"none")),i.elements?e.elements.splice(r,1,...i.elements):e.elements.splice(r,1),!0;const o=Object.keys(i.attributes||{});o.forEach((e=>{if("name"===e){const r={conversational:["en-US","jp-JP"],"long-form":["en-US"],music:["de-DE","en-US","en-CA","en-GB"],news:["en-US","en-AU"],fun:["jp-JP"]};(!r[i.attributes.name]||s&&-1===r[i.attributes.name].indexOf(s))&&(n.push(t(i,e)),i.attributes.name="news")}else n.push(t(i,e,!0)),i.attributes[e]=void 0})),0===o.length&&(n.push(t(i,"none")),i.attributes={name:"news"})},check_amazon_effect:(e,r,i,a,s,o)=>{const l=Object.keys(a.attributes||{});return l.forEach((e=>{if("name"===e)-1===["drc","whispered"].indexOf(a.attributes.name)&&(i.push(t(a,e)),a.attributes.name="whispered");else if("phonation"===e)-1===["soft"].indexOf(a.attributes.phonation)&&(i.push(t(a,e)),a.attributes.phonation="soft");else if("vocal-tract-length"===e){const r=a.attributes["vocal-tract-length"].match(/([\+|\-]?)(\d+)%/);if(r){if(r[1].length){const s=n(`${r[1]}${r[2]}`,-50,100,void 0);s.inRange||(i.push(t(a,e)),a.attributes["vocal-tract-length"]=`${s.value>0?"+":""}${s.value}%`)}}else i.push(t(a,e)),a.attributes["vocal-tract-length"]="+100%"}else i.push(t(a,e,!0)),a.attributes[e]=void 0})),0===l.length&&(i.push(t(a,"none")),a.attributes={name:"whispered"}),!1},check_amazon_emotion:(e,r,n,i,a,s)=>{if(-1===["en-US","en-GB","jp-JP"].indexOf(s))return n.push(t(i,"none")),i.elements?e.elements.splice(r,1,...i.elements):e.elements.splice(r,1),!0;const o=Object.keys(i.attributes||{});return o.forEach((e=>{"name"===e?-1===["excited","disappointed"].indexOf(i.attributes.name)&&(n.push(t(i,e)),i.attributes.name="excited"):"intensity"===e?-1===["low","medium","high"].indexOf(i.attributes.intensity)&&(n.push(t(i,e)),i.attributes.intensity="medium"):(n.push(t(i,e,!0)),i.attributes[e]=void 0)})),2!==o.length&&(n.push(t(i,"none")),i.attributes.name=i.attributes.name||"excited",i.attributes.intensity=i.attributes.intensity||"medium"),!1},check_audio:(e,i,a,s,o,l)=>{const c=Object.keys(s.attributes||{});let d;return c.forEach((e=>{if("google"===o&&"clipBegin"===e)void 0===r(s.attributes.clipBegin,o)&&(a.push(t(s,e)),s.attributes.clipBegin=void 0);else if("google"===o&&"clipEnd"===e)void 0===r(s.attributes.clipEnd,o)&&(a.push(t(s,e)),s.attributes.clipEnd=void 0);else if("google"===o&&"speed"===e){const r=n(s.attributes.speed,50,200,100);s.attributes.speed.match(/^(\+)?[0-9]+(\.[0-9]+)?%$/g)&&r.inRange||(a.push(t(s,e)),s.attributes.speed=r.value+"%")}else if("google"===o&&"repeatCount"===e)s.attributes.repeatCount.match(/^(\+)?[0-9]+(\.[0-9]+)?$/g)||(a.push(t(s,e)),s.attributes.repeatCount="1");else if("google"===o&&"repeatDur"===e)void 0===r(s.attributes.repeatDur,o)&&(a.push(t(s,e)),s.attributes.repeatDur=void 0);else if("google"===o&&"soundLevel"===e){const r=n(s.attributes.soundLevel,-40,40,0);s.attributes.soundLevel.match(/^[+-][0-9]+(\.[0-9]+)?dB$/g)&&r.inRange||(a.push(t(s,e)),s.attributes.soundLevel=r.value<0?r.value+"dB":"+"+r.value+"dB")}else"src"!==e&&(a.push(t(s,e,!0)),s.attributes[e]=void 0)})),0===c.length&&(a.push(t(s,"none")),e.elements.splice(i,1),d=!0),d},check_break:(e,n,i,a,s,o)=>(Object.keys(a.attributes||{}).forEach((e=>{"strength"===e?-1===["none","x-weak","weak","medium","strong","x-strong"].indexOf(a.attributes.strength)&&(i.push(t(a,e)),a.attributes.strength="medium"):"time"===e?void 0===r(a.attributes.time,s,1e4)&&(i.push(t(a,e)),a.attributes.time="10s"):(i.push(t(a,e,!0)),a.attributes[e]=void 0)})),a.attributes.strength||a.attributes.time||(a.attributes.strength="medium"),!1),check_desc:(e,t,r,n,i,a)=>{let s;if(!e||"audio"!==e.name){const i={type:"tag",tag:n.name};void 0!==n.position&&(i.position=n.position),r.push(i),e.elements.splice(t,1),s=!0}return s},check_emphasis:(e,r,n,i,a,s)=>{const o=Object.keys(i.attributes||{});return o.forEach((e=>{"level"===e?-1===["strong","moderate","reduced"].indexOf(i.attributes.level)&&("google"===a&&"none"===i.attributes.level||(n.push(t(i,e)),i.attributes.level="moderate")):(n.push(t(i,e,!0)),i.attributes[e]=void 0)})),0===o.length&&(n.push(t(i,"none")),i.attributes={level:"moderate"}),!1},check_lang:(e,r,n,i,a,s)=>{const o=Object.keys(i.attributes||{}),l=["de-DE","en-AU","en-CA","en-GB","en-IN","en-US","es-ES","es-MX","es-US","fr-CA","fr-FR","hi-IN","it-IT","ja-JP","pt-BR"];return o.forEach((e=>{"xml:lang"===e?l.includes(i.attributes["xml:lang"])||(n.push(t(i,e)),i.attributes["xml:lang"]="en-US"):(n.push(t(i,e,!0)),i.attributes[e]=void 0)})),0===o.length&&(n.push(t(i,"none")),i.attributes={"xml:lang":"en-US"}),!1},check_mark:(e,r,n,i,a,s)=>{const o=Object.keys(i.attributes||{});return o.forEach((e=>{"name"!==e&&(n.push(t(i,e,!0)),i.attributes[e]=void 0)})),0===o.length&&(n.push(t(i,"none")),i.attributes={name:"mark"}),!1},check_media:(e,n,i,a,s,o)=>(Object.keys(a.attributes||{}).forEach((e=>{"xml:id"===e?a.attributes["xml:id"].match(/^([-_#]|[a-z]|[A-Z]|ß|ö|ä|ü|Ö|Ä|Ü|æ|é|[0-9])+$/g)||(i.push(t(a,e)),a.attributes["xml:id"]="id_"+n):"begin"===e?a.attributes.begin.match(/^[+-]?[0-9]+(\.[0-9]+)?(h|min|s|ms)$/g)||a.attributes.begin.match(/^([-_#]|[a-z]|[A-Z]|ß|ö|ä|ü|Ö|Ä|Ü|æ|é|[0-9])+\.(begin|end)[+-][0-9]+(\.[0-9]+)?(h|min|s|ms)$/g)||(i.push(t(a,e)),a.attributes.begin="0"):"end"===e?a.attributes.end.match(/^[+-]?[0-9]+(\.[0-9]+)?(h|min|s|ms)$/g)||a.attributes.end.match(/^([-_#]|[a-z]|[A-Z]|ß|ö|ä|ü|Ö|Ä|Ü|æ|é|[0-9])+\.(begin|end)[+-][0-9]+(\.[0-9]+)?(h|min|s|ms)$/g)||(i.push(t(a,e)),a.attributes.end=void 0):"repeatCount"===e?a.attributes.repeatCount.match(/^(\+)?[0-9]+(\.[0-9]+)?$/g)||(i.push(t(a,e)),a.attributes.repeatCount="1"):"repeatDur"===e?void 0===r(a.attributes.repeatDur,s)&&(i.push(t(a,e)),a.attributes.repeatDur=void 0):"soundLevel"===e?a.attributes.soundLevel.match(/^[+-]?[0-9]+(\.[0-9]+)?dB$/g)||(i.push(t(a,e)),a.attributes.soundLevel="+0dB"):"fadeInDur"===e?void 0===r(a.attributes.fadeInDur,s)&&(i.push(t(a,e)),a.attributes.fadeInDur="0s"):"fadeOutDur"===e?void 0===r(a.attributes.fadeOutDur,s)&&(i.push(t(a,e)),a.attributes.fadeOutDur="0s"):i.push(t(a,e,!0))})),!1),check_p:i,check_par:s,check_phoneme:(e,r,n,i,a,s)=>(Object.keys(i.attributes||{}).forEach((e=>{"alphabet"===e?-1===["ipa","x-sampa"].indexOf(i.attributes.alphabet)&&(n.push(t(i,e)),i.attributes.alphabet="ipa"):"ph"!==e&&(n.push(t(i,e,!0)),i.attributes[e]=void 0)})),!1),check_prosody:(e,i,a,s,o,l)=>(Object.keys(s.attributes||{}).forEach((e=>{if("rate"===e){if(-1===["x-slow","slow","medium","fast","x-fast"].indexOf(s.attributes.rate)){const r=n(s.attributes.rate,20,Number.MAX_SAFE_INTEGER,100);s.attributes.rate.match(/^[0-9]+(\.[0-9]+)?%$/g)&&r.inRange||(a.push(t(s,e)),s.attributes.rate=r.value+"%")}}else if("pitch"===e){if(-1===["x-low","low","medium","high","x-high"].indexOf(s.attributes.pitch)){const r=n(s.attributes.pitch,-33.3,50,0);s.attributes.pitch.match(/^[+-][0-9]+(\.[0-9]+)?%$/g)&&r.inRange||"google"===o&&s.attributes.pitch.match(/^[+-]+[0-9]+(\.[0-9]+)?st$/g)||(a.push(t(s,e)),s.attributes.pitch=r.value<0?r.value+"%":"+"+r.value+"%")}}else"volume"===e?-1===["silent","x-soft","soft","medium","loud","x-loud"].indexOf(s.attributes.volume)&&(s.attributes.volume.match(/^[+-][0-9]+(\.[0-9]+)?dB$/g)||(a.push(t(s,e)),s.attributes.volume="+0dB")):"amazon:max-duration"===e&&"amazon"===o?void 0===r(s.attributes["amazon:max-duration"],o,void 0)&&(a.push(t(s,e)),s.attributes["amazon:max-duration"]="2s"):(a.push(t(s,e,!0)),s.attributes[e]=void 0)})),!1),check_s:a,check_say_as:(e,r,n,i,a,s)=>(Object.keys(i.attributes||{}).forEach((e=>{if("interpret-as"===e){if(-1===["characters","spell-out","cardinal","ordinal","fraction","unit","date","time","telephone","expletive","beep","number","verbatim","currency"].indexOf(i.attributes["interpret-as"])){let r=!1;("amazon"===a&&["number","digits","address","interjection"].indexOf(-1!==i.attributes["interpret-as"])||"google"===a&&["bleep","verbatim"].indexOf(-1!==i.attributes["interpret-as"]))&&(r=!0),r||(n.push(t(i,e)),i.attributes["interpret-as"]="cardinal")}}else"format"===e?"date"===i.attributes["interpret-as"]?-1===["mdy","dmy","ymd","md","dm","ym","my","d","m","y"].indexOf(i.attributes.format)&&(n.push(t(i,e)),i.attributes.format="mdy"):"google"===a?i.attributes.format.match(/^[hmsZ^\s.!?:;(12|24)]*$/g)||(n.push(t(i,e)),i.attributes.format="hms12"):(n.push(t(i,e)),i.attributes.format=void 0):"google"===a&&"detail"===e?-1===["1","2"].indexOf(i.attributes.detail)&&(n.push(t(i,e)),i.attributes.detail="1"):(n.push(t(i,e,!0)),i.attributes[e]=void 0)})),!1),check_seq:o,check_speak:(e,t,r,n,i,a)=>!1,check_sub:(e,r,n,i,a,s)=>(Object.keys(i.attributes||{}).forEach((e=>{"alias"!==e&&(n.push(t(i,e,!0)),i.attributes[e]=void 0)})),!1),check_voice:(e,r,n,i,a,s)=>"amazon"===a?((e,r,n,i)=>(Object.keys(i.attributes||{}).forEach((e=>{"name"===e?-1===["Ivy","Joanna","Joey","Justin","Kendra","Kimberly","Matthew","Salli","Nicole","Russell","Amy","Brian","Emma","Aditi","Raveena","Hans","Marlene","Vicki","Conchita","Enrique","Carla","Giorgio","Mizuki","Takumi","Celine","Lea","Mathieu"].indexOf(i.attributes.name)&&(n.push(t(i,e)),i.attributes.name="Ivy"):(n.push(t(i,e,!0)),i.attributes[e]=void 0)})),!1))(0,0,n,i):"google"===a?((e,r,n,i)=>{const a=e=>{const t=e.split("-");return 4===t.length&&-1!==["af","ar","bn","cmn","cs","da","de","el","en","es","fi","fil","fr","gu","hi","hu","id","it","ja","kn","ko","ml","mr","nb","nl","pl","pt","ru","sk","sv","sw","ta","te","th","tr","uk","vi","yue","zh"].indexOf(t[0])&&-1!==["Standard","Wavenet"].indexOf(t[2])&&-1!==["A","B","C","D","E","F","G","H","I","J"].indexOf(t[3])&&2===t[1].length};let s=!1,o=!1;Object.keys(i.attributes||{}).forEach((e=>{"name"===e?(s=!0,a(i.attributes.name)||(n.push(t(i,e)),i.attributes.name="en-US-Standard-A")):"gender"===e?(o=!0,-1===["male","female","neutral"].indexOf(i.attributes.gender)&&(n.push(t(i,e)),i.attributes.gender="neutral")):"variant"===e?(o=!0,a(i.attributes.variant)||(n.push(t(i,e)),i.attributes.variant="en-US-Standard-A")):"language"===e?(o=!0,i.attributes.language.match(/^[a-z]{2}-[A-Z]{2}$/)||(n.push(t(i,e)),i.attributes.language="en-US")):"required"!==e&&"ordering"!==e&&(n.push(t(i,e,!0)),i.attributes[e]=void 0)})),s||o||(n.push(t(i,"name",!0)),i.attributes||(i.attributes={}),i.attributes.name="en-US-Standard-A")})(0,0,n,i):(n.push(t(i,"voice",!0)),i.attributes.voice=void 0,!1),check_w:(e,r,n,i,a,s)=>(Object.keys(i.attributes||{}).forEach((e=>{"role"===e?-1===["amazon:VB","amazon:VBD","amazon:NN","amazon:DT","amazon:IN","amazon:JJ","amazon:SENSE_1"].indexOf(i.attributes.role)&&(n.push(t(i,e)),i.attributes.role="amazon:VB"):(n.push(t(i,e,!0)),i.attributes[e]=void 0)})),!1)}},1800:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},1873:(e,t,r)=>{var n=r(9325).Symbol;e.exports=n},2147:(e,t,r)=>{r.r(t),r.d(t,{diagnostics:()=>s,filterEvent:()=>o,handleEvent:()=>l,listen:()=>c});var n=r(5059);const i={rE:"2.24.4"};var a={events:{broadcast:!1,listenFor:"all"}};function s(){var e=window.LearnosityApp?LearnosityApp.versions:{};return{apps:{},LT:{version:i.rE},versions:e}}function o(e){/^[a-zA-Z:*]*$/.test(e)?a.events.listenFor=e:n.A.warn("Invalid event type")}function l(e){if(a.events.broadcast){var t=a.events.listenFor,r=t.replaceAll("*","");1===t.length&&"*"===t||"all"===t?n.A.info(e):t.startsWith("*")&&!t.endsWith("*")?e.endsWith(r)&&n.A.info(e):t.endsWith("*")&&!t.startsWith("*")?e.startsWith(r)&&n.A.info(e):t.startsWith("*")&&t.endsWith("*")?e.includes(r)&&n.A.info(e):e.startsWith(r)&&n.A.info(e)}}function c(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a.events.broadcast=Boolean(e),Boolean(e)?n.A.info("👂 listening for '".concat(a.events.listenFor,"'")):n.A.info("🚫👂 not listening")}},2530:(e,t,r)=>{r.r(t),r.d(t,{type:()=>i});var n=r(5716);function i(){var e;return null===(e=n.appInstance().getWidget())||void 0===e?void 0:e.type}},2552:(e,t,r)=>{var n=r(1873),i=r(659),a=r(9350),s=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):a(e)}},2660:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const n=r(5606),i=r(7193),a=r(8142),s=r(9106);t.AttributeMap=s.default;const o=r(5759);t.Op=o.default;const l=r(8317);t.OpIterator=l.default;const c=String.fromCharCode(0),d=(e,t)=>{if("object"!=typeof e||null===e)throw new Error("cannot retain a "+typeof e);if("object"!=typeof t||null===t)throw new Error("cannot retain a "+typeof t);const r=Object.keys(e)[0];if(!r||r!==Object.keys(t)[0])throw new Error(`embed types not matched: ${r} != ${Object.keys(t)[0]}`);return[r,e[r],t[r]]};class u{constructor(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}static registerEmbed(e,t){this.handlers[e]=t}static unregisterEmbed(e){delete this.handlers[e]}static getHandler(e){const t=this.handlers[e];if(!t)throw new Error(`no handlers for embed type "${e}"`);return t}insert(e,t){const r={};return"string"==typeof e&&0===e.length?this:(r.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(r.attributes=t),this.push(r))}delete(e){return e<=0?this:this.push({delete:e})}retain(e,t){if("number"==typeof e&&e<=0)return this;const r={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(r.attributes=t),this.push(r)}push(e){let t=this.ops.length,r=this.ops[t-1];if(e=i(e),"object"==typeof r){if("number"==typeof e.delete&&"number"==typeof r.delete)return this.ops[t-1]={delete:r.delete+e.delete},this;if("number"==typeof r.delete&&null!=e.insert&&(t-=1,r=this.ops[t-1],"object"!=typeof r))return this.ops.unshift(e),this;if(a(e.attributes,r.attributes)){if("string"==typeof e.insert&&"string"==typeof r.insert)return this.ops[t-1]={insert:r.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof r.retain)return this.ops[t-1]={retain:r.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this}chop(){const e=this.ops[this.ops.length-1];return e&&"number"==typeof e.retain&&!e.attributes&&this.ops.pop(),this}filter(e){return this.ops.filter(e)}forEach(e){this.ops.forEach(e)}map(e){return this.ops.map(e)}partition(e){const t=[],r=[];return this.forEach((n=>{(e(n)?t:r).push(n)})),[t,r]}reduce(e,t){return this.ops.reduce(e,t)}changeLength(){return this.reduce(((e,t)=>t.insert?e+o.default.length(t):t.delete?e-t.delete:e),0)}length(){return this.reduce(((e,t)=>e+o.default.length(t)),0)}slice(e=0,t=1/0){const r=[],n=new l.default(this.ops);let i=0;for(;i<t&&n.hasNext();){let a;i<e?a=n.next(e-i):(a=n.next(t-i),r.push(a)),i+=o.default.length(a)}return new u(r)}compose(e){const t=new l.default(this.ops),r=new l.default(e.ops),n=[],i=r.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){let e=i.retain;for(;"insert"===t.peekType()&&t.peekLength()<=e;)e-=t.peekLength(),n.push(t.next());i.retain-e>0&&r.next(i.retain-e)}const o=new u(n);for(;t.hasNext()||r.hasNext();)if("insert"===r.peekType())o.push(r.next());else if("delete"===t.peekType())o.push(t.next());else{const e=Math.min(t.peekLength(),r.peekLength()),n=t.next(e),i=r.next(e);if(i.retain){const l={};if("number"==typeof n.retain)l.retain="number"==typeof i.retain?e:i.retain;else if("number"==typeof i.retain)null==n.retain?l.insert=n.insert:l.retain=n.retain;else{const e=null==n.retain?"insert":"retain",[t,r,a]=d(n[e],i.retain),s=u.getHandler(t);l[e]={[t]:s.compose(r,a,"retain"===e)}}const c=s.default.compose(n.attributes,i.attributes,"number"==typeof n.retain);if(c&&(l.attributes=c),o.push(l),!r.hasNext()&&a(o.ops[o.ops.length-1],l)){const e=new u(t.rest());return o.concat(e).chop()}}else"number"==typeof i.delete&&("number"==typeof n.retain||"object"==typeof n.retain&&null!==n.retain)&&o.push(i)}return o.chop()}concat(e){const t=new u(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t}diff(e,t){if(this.ops===e.ops)return new u;const r=[this,e].map((t=>t.map((r=>{if(null!=r.insert)return"string"==typeof r.insert?r.insert:c;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join(""))),i=new u,o=n(r[0],r[1],t,!0),d=new l.default(this.ops),p=new l.default(e.ops);return o.forEach((e=>{let t=e[1].length;for(;t>0;){let r=0;switch(e[0]){case n.INSERT:r=Math.min(p.peekLength(),t),i.push(p.next(r));break;case n.DELETE:r=Math.min(t,d.peekLength()),d.next(r),i.delete(r);break;case n.EQUAL:r=Math.min(d.peekLength(),p.peekLength(),t);const e=d.next(r),o=p.next(r);a(e.insert,o.insert)?i.retain(r,s.default.diff(e.attributes,o.attributes)):i.push(o).delete(r)}t-=r}})),i.chop()}eachLine(e,t="\n"){const r=new l.default(this.ops);let n=new u,i=0;for(;r.hasNext();){if("insert"!==r.peekType())return;const a=r.peek(),s=o.default.length(a)-r.peekLength(),l="string"==typeof a.insert?a.insert.indexOf(t,s)-s:-1;if(l<0)n.push(r.next());else if(l>0)n.push(r.next(l));else{if(!1===e(n,r.next(1).attributes||{},i))return;i+=1,n=new u}}n.length()>0&&e(n,{},i)}invert(e){const t=new u;return this.reduce(((r,n)=>{if(n.insert)t.delete(o.default.length(n));else{if("number"==typeof n.retain&&null==n.attributes)return t.retain(n.retain),r+n.retain;if(n.delete||"number"==typeof n.retain){const i=n.delete||n.retain;return e.slice(r,r+i).forEach((e=>{n.delete?t.push(e):n.retain&&n.attributes&&t.retain(o.default.length(e),s.default.invert(n.attributes,e.attributes))})),r+i}if("object"==typeof n.retain&&null!==n.retain){const i=e.slice(r,r+1),a=new l.default(i.ops).next(),[o,c,p]=d(n.retain,a.insert),h=u.getHandler(o);return t.retain({[o]:h.invert(c,p)},s.default.invert(n.attributes,a.attributes)),r+1}}return r}),0),t.chop()}transform(e,t=!1){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);const r=e,n=new l.default(this.ops),i=new l.default(r.ops),a=new u;for(;n.hasNext()||i.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===i.peekType())if("insert"===i.peekType())a.push(i.next());else{const e=Math.min(n.peekLength(),i.peekLength()),r=n.next(e),o=i.next(e);if(r.delete)continue;if(o.delete)a.push(o);else{const n=r.retain,i=o.retain;let l="object"==typeof i&&null!==i?i:e;if("object"==typeof n&&null!==n&&"object"==typeof i&&null!==i){const e=Object.keys(n)[0];if(e===Object.keys(i)[0]){const r=u.getHandler(e);r&&(l={[e]:r.transform(n[e],i[e],t)})}}a.retain(l,s.default.transform(r.attributes,o.attributes,t))}}else a.retain(o.default.length(n.next()));return a.chop()}transformPosition(e,t=!1){t=!!t;const r=new l.default(this.ops);let n=0;for(;r.hasNext()&&n<=e;){const i=r.peekLength(),a=r.peekType();r.next(),"delete"!==a?("insert"===a&&(n<e||!t)&&(e+=i),n+=i):e-=Math.min(i,e-n)}return e}}u.Op=o.default,u.OpIterator=l.default,u.AttributeMap=s.default,u.handlers={},t.default=u,e.exports=u,e.exports.default=u},2861:(e,t,r)=>{var n=r(8287),i=n.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(a(n,t),t.Buffer=s),s.prototype=Object.create(i.prototype),a(i,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},2978:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(1601),i=r.n(n),a=r(6314),s=r.n(a)()(i());s.push([e.id,"/*!\n * Quill Editor v2.0.3\n * https://quilljs.com\n * Copyright (c) 2017-2024, Slab\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */\n.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container:not(.ql-disabled) li[data-list=checked] > .ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked] > .ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor > *{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}@supports (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li > .ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked] > .ql-ui,.ql-editor li[data-list=unchecked] > .ql-ui{color:#777}.ql-editor li[data-list=bullet] > .ql-ui:before{content:'\\2022'}.ql-editor li[data-list=checked] > .ql-ui:before{content:'\\2611'}.ql-editor li[data-list=unchecked] > .ql-ui:before{content:'\\2610'}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered] > .ql-ui:before{content:counter(list-0, decimal) '. '}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1 > .ql-ui:before{content:counter(list-1, lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2 > .ql-ui:before{content:counter(list-2, lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3 > .ql-ui:before{content:counter(list-3, decimal) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4 > .ql-ui:before{content:counter(list-4, lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5 > .ql-ui:before{content:counter(list-5, lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6 > .ql-ui:before{content:counter(list-6, decimal) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7 > .ql-ui:before{content:counter(list-7, lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8 > .ql-ui:before{content:counter(list-8, lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9 > .ql-ui:before{content:counter(list-9, decimal) '. '}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl > .ql-ui:before{margin-left:.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:none}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank::before{color:rgba(0,0,0,0.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}",""]);const o=s},3141:(e,t,r)=>{var n=r(2861).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=d,this.end=u,t=3;break;default:return this.write=p,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function d(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.I=a,a.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=s(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=s(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=s(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},3145:(e,t,r)=>{var n=r(908),i=r(8287).Buffer;e.exports=function(e,t){e instanceof i&&(e=e.toString());var r=null;if("string"==typeof e)try{r=JSON.parse(e)}catch(e){throw new Error("The JSON structure is invalid")}else r=e;return n(r,t)}},3167:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2748%27 height=%2748%27%3E%3Cpath fill=%27%231269CF%27 d=%27M24 1v1C11.85 2 2 11.85 2 24s9.85 22 22 22 22-9.85 22-22S36.15 2 24 2zm0 0V0c13.254 0 24 10.746 24 24S37.254 48 24 48 0 37.254 0 24 10.746 0 24 0zm7.707 19.293a.999.999 0 1 1-1.414 1.414L25 16.414V34a1 1 0 1 1-2 0V16.414l-5.293 5.293a.999.999 0 1 1-1.414-1.414l7-7a1 1 0 0 1 1.414 0z%27/%3E%3C/svg%3E"},3803:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2736%27%3E%3Cpath fill=%27rgba%2817, 17, 17, 0.9%29%27 d=%27M0 33.342V1.338c0 6 12.002 11.627 12.002 16.002S0 27.406 0 33.342%27/%3E%3C/svg%3E"},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3807:function(e){e.exports=function(){function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function t(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?e(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function n(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}function a(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var s={exports:{}};!function(e){"undefined"!=typeof window&&function(t){var r=t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype,n=t.Blob&&function(){try{return Boolean(new Blob)}catch(e){r