"use strict";
!function(e){const t="undefined";if("object"==typeof exports&&t!=typeof ǃEE)ǃEE.exports=e();else if("function"==typeof ǃEL&&ǃEL.ǃEf)ǃEL([],e);else{var n;n=t==typeof window?t==typeof global?t==typeof self?this:self:global:window,n.localforage=e()}}(function(){return function t(n,a,o){function i(d,r){if(!a[d]){if(!n[d]){var s="function"==typeof ǃEM&&ǃEM;if(!r&&s)return s(d,!0);if(e)return e(d,!0);var l=new Error("Cannot find module '"+d+"'");throw l.code="MODULE_NOT_FOUND",l}var z=a[d]={exports:{}};n[d][0].call(z.exports,function(e){var t=n[d][1][e];return i(t?t:e)},z,z.exports,t,n,a,o)}return a[d].exports}for(var e="function"==typeof ǃEM&&ǃEM,d=0;d>>8^n[255&(t^e[i])];this.crc=t},t.prototype.get=function(){return~this.crc},t.prototype.table=function(){var e=[],n,i,a;for(n=0;256>n;n++){for(a=n,i=0;8>i;i++)1&a?a=3988292384^a>>>1:a>>>=1;e[n]=a}return e}(),n.prototype.append=function(e){return e},n.prototype.flush=function(){},o.prototype=new d,o.prototype.constructor=o,r.prototype=new d,r.prototype.constructor=r,s.prototype=new d,s.prototype.constructor=s,l.prototype.getData=function(e){e(this.data)},z.prototype=new l,z.prototype.constructor=z,$.prototype=new l,$.prototype.constructor=$,y.prototype=new l,y.prototype.constructor=y;var V={ǃySs:["z-worker.js","deflate.js"],inflater:["z-worker.js","inflate.js"]};e.zip={ǃySE:d,ǃySL:l,ǃySf:s,ǃySM:r,ǃySt:o,ǃySJ:y,ǃySC:$,ǃySk:z,ǃySW:function(e,t,n){n=n||C,e.init(function(){B(e,t,n)},n)},ǃySe:function(e,t,n,i){n=n||C,i=!!i,e.init(function(){k(e,t,n,i)},n)},ǃy_P:!0,ǃySD:null,ǃySF:null}}(this),"use strict",zip.ǃySF={deflater:["3rdparty/zipjs/z-worker.js","3rdparty/zipjs/zlib-asm/zlib.js","3rdparty/zipjs/zlib-asm/codecs.js"],inflater:["3rdparty/zipjs/z-worker.js","3rdparty/zipjs/zlib-asm/zlib.js","3rdparty/zipjs/zlib-asm/codecs.js"]},!function(n,e){"function"==typeof ǃEL&&ǃEL.ǃEf?ǃEL(n):"undefined"!=typeof ǃEE&&"object"==typeof exports?ǃEE.exports=n():e.rangy=n()}(function(){function z(i,a){var t=typeof i[a];return t==m||t==h&&i[a]||"unknown"==t}function d(n,e){return typeof n[e]==h&&n[e]}function $(n,e){return typeof n[e]!=C}function g(i){return function(e,t){for(var n=t.length;n--;)if(!i(e,t[n]))return!1;return!0}}function v(t){return t&&N(t,w)&&T(t,y)}function j(t){return d(t,"body")?t.body:t.getElementsByTagName("body")[0]}function G(e){typeof console!=C&&z(console,"log")&&console.log(e)}function a(n,e){V&&e?alert(n):G(n)}function F(t){K.ǃySK=!0,K.ǃySh=!1,a("Rangy is not supported in this environment. Reason: "+t,K.ǃEj.ǃySQ)}function s(t){return t.message||t.description||t+""}function r(){if(V&&!K.ǃySK){var e=!1,i=!1,a;z(document,"createRange")&&(a=document.createRange(),N(a,S)&&T(a,E)&&(e=!0));var t=j(document);if(!t||"body"!=t.nodeName.toLowerCase())return void F("No body element found");if(t&&z(t,"createTextRange")&&(a=t.createTextRange(),v(a)&&(i=!0)),!e&&!i)return void F("Neither Range nor TextRange are available");K.ǃySK=!0,K.ǃyQw={ǃySu:e,ǃyST:i};var o,d;for(var $ in U)(o=U[$])instanceof c&&o.init(o,K);for(var l=0,y=H.length;y>l;++l)try{H[l](K)}catch(e){d="Rangy init listener threw an exception. Continuing. Detail: "+s(e),G(d)}}}function u(i,e,t){t&&(i+=" in module "+t.name),K.warn("DEPRECATED: "+i+" is deprecated. Please use "+e+" instead.")}function l(i,e,t,n){i[e]=function(){return u(e,t,n),i[t].apply(i,Y.toArray(arguments))}}function c(i,e,t){this.name=i,this.ǃySq=e,this.ǃySK=!1,this.ǃySh=!1,this.ǃySx=t}function p(i,e,a){var t=new c(i,e,function(e){if(!e.ǃySK){e.ǃySK=!0;try{a(K,e),e.ǃySh=!0}catch(e){var t="Module '"+i+"' failed to load: "+s(e);G(t),e.stack&&G(e.stack)}}});return U[i]=t,t}function f(){}var h="object",m="function",C="undefined",E=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],S=["setStart","setStartBefore","setStartAfter","setEnd","setEndBefore","setEndAfter","collapse","selectNode","selectNodeContents","compareBoundaryPoints","deleteContents","extractContents","cloneContents","insertNode","surroundContents","cloneRange","toString","detach"],y=["boundingHeight","boundingLeft","boundingTop","boundingWidth","htmlText","text"],w=["collapse","compareEndPoints","duplicate","moveToElementText","parentElement","select","setEndPoint","getBoundingClientRect"],N=g(z),R=g(d),T=g($),q=[].forEach?function(n,e){n.forEach(e)}:function(i,e){for(var t=0,n=i.length;n>t;++t)e(i[t],t)},U={},V=typeof window!=C&&typeof document!=C,Y={ǃySr:z,ǃyS_:d,ǃySS:$,ǃySO:N,ǃySn:R,ǃySA:T,ǃySG:v,ǃySN:j,forEach:q},K={version:"1.3.0",ǃySK:!1,ǃySm:V,ǃySh:!0,ǃySa:Y,ǃyQw:{},ǃFA:U,ǃEj:{ǃySQ:!1,ǃySX:!1,ǃySv:!1,ǃySd:!(typeof ǃySg!=C)||ǃySg}};K.ǃySI=F,K.warn=function(t){a("Rangy warning: "+t,K.ǃEj.ǃySX)};var I;({}).hasOwnProperty?(Y.extend=I=function(a,e,t){var n,d;for(var s in e)e.hasOwnProperty(s)&&(n=a[s],d=e[s],t&&null!==n&&"object"==typeof n&&null!==d&&"object"==typeof d&&I(n,d,!0),a[s]=d);return e.hasOwnProperty("toString")&&(a.toString=e.toString),a},Y.ǃySp=function(i,e){var t={};return I(t,e),i&&I(t,i),t}):F("hasOwnProperty not supported"),V||F("Rangy can only run in a browser"),function(){var i;if(V){var e=document.createElement("div");e.appendChild(document.createElement("span"));var t=[].slice;try{1==t.call(e.childNodes,0)[0].nodeType&&(i=function(n){return t.call(n,0)})}catch(e){}}i||(i=function(i){for(var e=[],t=0,n=i.length;n>t;++t)e[t]=i[t];return e}),Y.toArray=i}();var B;V&&(z(document,"addEventListener")?B=function(i,e,t){i.addEventListener(e,t,!1)}:z(document,"attachEvent")?B=function(i,e,t){i.attachEvent("on"+e,t)}:F("Document does not have required addEventListener or attachEvent method"),Y.addListener=B);var H=[];Y.ǃySU=u,Y.ǃySR=l,K.init=r,K.ǃySP=function(t){K.ǃySK?t(K):H.push(t)};var M=[];K.ǃySV=function(t){M.push(t)},V&&(K.ǃySc=K.ǃySj=function(i){i=i||window,r();for(var e=0,t=M.length;t>e;++e)M[e](i)},l(K,"createMissingNativeApi","shim")),c.prototype={init:function(){for(var i=this.ǃySq||[],n=0,a=i.length,d,e;a>n;++n){if(e=i[n],d=U[e],!(d&&d instanceof c))throw new Error("required module '"+e+"' not found");if(d.init(),!d.ǃySh)throw new Error("required module '"+e+"' not supported")}this.ǃySx(this)},ǃySI:function(t){throw this.ǃySK=!0,this.ǃySh=!1,new Error(t)},warn:function(t){K.warn("Module "+this.name+": "+t)},ǃySU:function(n,e){K.warn("DEPRECATED: "+n+" in module "+this.name+" is deprecated. Please use "+e+" instead")},ǃySw:function(t){return new Error("Error in Rangy "+this.name+" module: "+t)}},K.ǃyOy=function(i){var e,t;2==arguments.length?(e=arguments[1],t=[]):(e=arguments[2],t=arguments[1]);var n=p(i,t,e);K.ǃySK&&K.ǃySh&&n.init()},K.ǃyOz=function(i,e,t){p(i,e,t)},K.ǃyO$=f,K.ǃyOH=new f,K.ǃyOl=new function(){},K.ǃyOz("DomUtil",[],function(i,z){function $(n){for(var e=0;n=n.previousSibling;)++e;return e}function t(i,e){var t=[],a;for(a=i;a;a=a.parentNode)t.push(a);for(a=e;a;a=a.parentNode)if(H(t,a))return a;return null}function n(i,e,t){for(var n=t?e:e.parentNode;n;){if(n===i)return!0;n=n.parentNode}return!1}function h(i,e,t){for(var n=t?i:i.parentNode,a;n;){if(a=n.parentNode,a===e)return n;n=a}return null}function r(n){var e=n.nodeType;return 3==e||4==e||8==e}function u(i,e){var t=e.nextSibling,n=e.parentNode;return t?n.insertBefore(i,t):n.appendChild(i),i}function c(t){if(9==t.nodeType)return t;if(typeof t.ownerDocument!=x)return t.ownerDocument;if(typeof t.document!=x)return t.document;if(t.parentNode)return c(t.parentNode);throw z.ǃySw("getDocument: no document found for node")}function E(t){var e=c(t);if(typeof e.defaultView!=x)return e.defaultView;if(typeof e.parentWindow!=x)return e.parentWindow;throw z.ǃySw("Cannot get a window object for node")}function w(t){if(typeof t.contentDocument!=x)return t.contentDocument;if(typeof t.contentWindow!=x)return t.contentWindow.document;throw z.ǃySw("getIframeDocument: No Document object found for iframe element")}function C(t){return t&&b.ǃySr(t,"setTimeout")&&b.ǃyS_(t,"document")}function D(n){var e;try{return e=n.parentNode,!1}catch(e){return!0}}function e(n){if(!n)return"[No node]";if(G&&D(n))return"[Broken node]";if(r(n))return"\""+n.data+"\"";if(1==n.nodeType){var i=n.id?" id=\""+n.id+"\"":"";return"<"+n.nodeName+i+">[index:"+$(n)+",length:"+n.childNodes.length+"]["+(n.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return n.nodeName}function j(t){this.root=t,this.ǃyOY=t}function O(n,e){this.node=n,this.offset=e}function N(t){this.code=this[t],this.ǃyOi=t,this.message="DOMException: "+this.ǃyOi}var x="undefined",b=i.ǃySa,R=b.ǃySN;b.ǃySO(document,["createDocumentFragment","createElement","createTextNode"])||z.ǃySI("document missing a Node creation method"),b.ǃySr(document,"getElementsByTagName")||z.ǃySI("document missing getElementsByTagName method");var P=document.createElement("div");b.ǃySO(P,["insertBefore","appendChild","cloneNode"])||z.ǃySI("Incomplete Element implementation"),b.ǃySS(P,"innerHTML")||z.ǃySI("Element is missing innerHTML property");var B=document.createTextNode("test");b.ǃySO(B,["splitText","deleteData","insertData","appendData","cloneNode"])||z.ǃySI("Incomplete Text Node implementation");var H=function(i,e){for(var t=i.length;t--;)if(i[t]===e)return!0;return!1},G=!1;!function(){var e=document.createElement("b");e.innerHTML="1";var t=e.firstChild;e.innerHTML="
",G=D(t),i.ǃyQw.ǃyOZ=G}();var k;typeof window.getComputedStyle==x?typeof document.documentElement.currentStyle==x?z.ǃySI("No means of obtaining computed style properties found"):k=function(n,e){return n.currentStyle?n.currentStyle[e]:""}:k=function(n,e){return E(n).getComputedStyle(n,null)[e]},j.prototype={ǃyOB:null,ǃyOb:function(){return!!this.ǃyOY},next:function(){var i=this.ǃyOB=this.ǃyOY,n,e;if(this.ǃyOB)if(n=i.firstChild)this.ǃyOY=n;else{for(e=null;i!==this.root&&!(e=i.nextSibling);)i=i.parentNode;this.ǃyOY=e}return this.ǃyOB},detach:function(){this.ǃyOB=this.ǃyOY=this.root=null}},O.prototype={ǃzP:function(t){return!!t&&this.node===t.node&&this.offset==t.offset},ǃyOo:function(){return"[DomPosition("+e(this.node)+":"+this.offset+")]"},toString:function(){return this.ǃyOo()}},N.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},N.prototype.toString=function(){return this.message},i.ǃyOs={ǃyOF:H,ǃyOD:function(n){var e;return typeof n.namespaceURI==x||null===(e=n.namespaceURI)||"http://www.w3.org/1999/xhtml"==e},parentElement:function(n){var e=n.parentNode;return 1==e.nodeType?e:null},ǃyOE:$,ǃyOL:function(t){switch(t.nodeType){case 7:case 10:return 0;case 3:case 8:return t.length;default:return t.childNodes.length;}},ǃyOf:t,ǃyOM:n,ǃyOt:function(i,e){return n(i,e,!0)},ǃyOJ:h,ǃyOC:r,ǃyOk:function(n){if(!n)return!1;var i=n.nodeType;return 3==i||8==i},ǃyOW:u,ǃyOe:function(d,e,t){var n=d.cloneNode(!1);if(n.deleteData(0,e),d.deleteData(e,d.length-e),u(n,d),t)for(var o=0,a;a=t[o++];)a.node==d&&a.offset>e?(a.node=n,a.offset-=e):a.node==d.parentNode&&a.offset>$(d)&&++a.offset;return n},ǃyOK:c,ǃyOh:E,ǃyOQ:function(t){if(typeof t.contentWindow!=x)return t.contentWindow;if(typeof t.contentDocument!=x)return t.contentDocument.defaultView;throw z.ǃySw("getIframeWindow: No Window object found for iframe element")},ǃyOX:w,ǃySN:R,ǃyOu:C,ǃyOT:function(i,e,t){var n;if(i?b.ǃySS(i,"nodeType")?n=1==i.nodeType&&"iframe"==i.tagName.toLowerCase()?w(i):c(i):C(i)&&(n=i.document):n=document,!n)throw e.ǃySw(t+"(): Parameter must be a Window object or DOM node");return n},ǃyOq:function(n){for(var e;e=n.parentNode;)n=e;return n},ǃyOx:function(a,e,n,d){var i,o,r,s,y;if(a==n)return e===d?0:d>e?-1:1;if(i=h(n,a,!0))return e<=$(i)?-1:1;if(i=h(a,n,!0))return $(i)
1
",n.collapse(e,2),n.setStart(e.firstChild,0),ae=1==(""+n).length,j.removeNode(e),n.removeAllRanges()}();var de={ǃyAA:!0,ǃyAG:!0,ǃyAN:!0,ǃyAm:!0,ǃyAa:""},oe={ǃyAA:!!0,ǃyAG:!ie,ǃyAN:!ae,ǃyAm:!0},re={ǃyAv:{ǃyAL:/[a-z0-9]+('[a-z0-9]+)*/gi,ǃyAf:!1,ǃyAQ:t}},se={ǃyAn:!1,ǃyAd:null,ǃyA_:!1,wrap:!1,direction:"forward",wordOptions:null,characterOptions:null},le={wordOptions:null,characterOptions:null},ze={wordOptions:null,characterOptions:null,trim:!1,ǃyAg:!0,ǃyAI:!0},$e={wordOptions:null,characterOptions:null,direction:"forward"},ye=j.ǃyOS,ue;!function(){var n=document.createElement("table"),e=z(document);e.appendChild(n),ue="block"==ye(n,"display"),e.removeChild(n)}();var ce={table:"table",caption:"table-caption",ǃyAp:"table-column-group",ǃyAU:"table-column",ǃyAR:"table-header-group",ǃyAP:"table-row-group",ǃyAV:"table-footer-group",ǃyAc:"table-row",ǃyAj:"table-cell",ǃyAw:"table-cell"};m.prototype={get:function(t){return this.ǃyxE.hasOwnProperty(t)?this.ǃyxE[t]:null},set:function(n,e){return this.ǃyxE[n]=e}};var pe=0,fe=0,he={ǃyGy:function(n){var e=this.positions;return e.get(n)||e.set(n,new P(this,n))},toString:function(){return"[NodeWrapper("+j.ǃyO_(this.node)+")]"}};C.prototype=he;var me="EMPTY",ge="NON_SPACE",ve="UNCOLLAPSIBLE_SPACE",He="COLLAPSIBLE_SPACE",be="TRAILING_SPACE_BEFORE_BLOCK",Be="TRAILING_SPACE_IN_BLOCK",Ee="TRAILING_SPACE_BEFORE_BR",we="PRE_LINE_TRAILING_SPACE_BEFORE_LINE_BREAK",ke="INCLUDED_TRAILING_LINE_BREAK_AFTER_BR";G(he,{ǃyOC:x("isCharacterDataNode",j.ǃyOC,"node"),ǃyOE:x("nodeIndex",j.ǃyOE,"node"),ǃyrD:x("nodeLength",j.ǃyOL,"node"),ǃyGz:x("containsPositions",function(t){return j.ǃyOC(t)||!/^(area|base|basefont|br|col|frame|hr|img|input|isindex|link|meta|param)$/i.test(t.nodeName)},"node"),ǃyG$:x("isWhitespace",f,"node"),ǃyGH:x("isCollapsedWhitespace",h,"node"),ǃyGl:x("computedDisplay",a,"node"),isCollapsed:x("collapsed",g,"node"),ǃyGY:x("ignored",y,"node"),next:x("nextPos",c,"node"),ǃyGi:x("previous",p,"node"),ǃyGZ:x("textNodeInfo",function(a){var d=null,o=!1,s=ye(a.parentNode,"whiteSpace"),r="pre-line"==s;return r?(d=Y,o=!0):("normal"==s||"nowrap"==s)&&(d=H,o=!0),{node:a,text:a.data,ǃyGB:d,ǃyGb:o,ǃyGo:r}},"node"),ǃyGs:x("hasInnerText",function(d,e){for(var t=this.session,n=t.ǃyGy(d.parentNode,this.ǃyOE()+1),r=t.ǃyGy(d,0),i=e?n:r,o=e?r:n;i!==o;){if(i.ǃyGF(),i.ǃyGD())return!0;i=e?i.ǃyAC():i.ǃyAk()}return!1},"node"),ǃyGE:x("isRenderedBlock",function(i){for(var e=i.getElementsByTagName("br"),t=0,n=e.length;n>t;++t)if(!g(e[t]))return!0;return this.ǃyGs()},"node"),ǃyGL:x("trailingSpace",function(n){if("br"==n.tagName.toLowerCase())return"";switch(this.ǃyGl()){case"inline":for(var e=n.lastChild;e;){if(!y(e))return 1==e.nodeType?this.session.ǃyGf(e).ǃyGL():"";e=e.previousSibling}break;case"inline-block":case"inline-table":case"none":case"table-column":case"table-column-group":break;case"table-cell":return"\t";default:return this.ǃyGE(!0)?"\n":"";}return""},"node"),ǃyGM:x("leadingSpace",function(){switch(this.ǃyGl()){case"inline":case"inline-block":case"inline-table":case"none":case"table-column":case"table-column-group":case"table-cell":break;default:return this.ǃyGE(!1)?"\n":"";}return""},"node")});var Le={ǃyAh:"",ǃyGt:me,ǃyGJ:!1,ǃyGF:function(){var z=this;if(!z.ǃyGC){var e=z.node,t=z.offset,n="",$=me,i=!1;if(0