locizify 5.2.2 → 5.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/umd/locizify.js +5 -0
- package/dist/umd/locizify.min.js +1 -1
- package/locizify.js +5 -0
- package/locizify.min.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/umd/locizify.js
CHANGED
|
@@ -9101,6 +9101,11 @@
|
|
|
9101
9101
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
9102
9102
|
var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
9103
9103
|
var callback = arguments.length > 3 ? arguments[3] : undefined;
|
|
9104
|
+
|
|
9105
|
+
if (!options.referenceLng && allOptions.fallbackLng && Array.isArray(allOptions.fallbackLng) && allOptions.fallbackLng[0] !== 'dev') {
|
|
9106
|
+
options.referenceLng = allOptions.fallbackLng[0];
|
|
9107
|
+
}
|
|
9108
|
+
|
|
9104
9109
|
this.services = services;
|
|
9105
9110
|
this.options = defaults$2(options, this.options || {}, getDefaults$3());
|
|
9106
9111
|
this.allOptions = allOptions;
|
package/dist/umd/locizify.min.js
CHANGED
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
23
|
* THE SOFTWARE.
|
|
24
24
|
*/
|
|
25
|
-
e.exports=t;var n=e.exports.properties=["accept","accessKey","action","alt","async","autoComplete","autoPlay","cellPadding","cellSpacing","checked","className","colSpan","content","contentEditable","controls","crossOrigin","data","defer","dir","download","draggable","encType","formNoValidate","href","hrefLang","htmlFor","httpEquiv","icon","id","label","lang","list","loop","max","mediaGroup","method","min","multiple","muted","name","noValidate","pattern","placeholder","poster","preload","radioGroup","readOnly","rel","required","rowSpan","sandbox","scope","scrollLeft","scrolling","scrollTop","selected","span","spellCheck","src","srcDoc","srcSet","start","step","style","tabIndex","target","title","type","value","autoCapitalize","autoCorrect","property","attributes"],r=e.exports.attrBlacklist={class:"className"}})),Rt=(Tt.properties,Tt.attrBlacklist,Array.isArray),It=Object.prototype.toString,Mt=Rt||function(e){return"[object Array]"===It.call(e)};_t.NONE=0,_t.VTEXT=1,_t.VNODE=2,_t.WIDGET=3,_t.PROPS=4,_t.ORDER=5,_t.INSERT=6,_t.REMOVE=7,_t.THUNK=8;var Ut=_t;function _t(e,t,n){this.type=Number(e),this.vNode=t,this.patch=n}_t.prototype.version="2",_t.prototype.type="VirtualPatch";var Ht=function(e){return e&&"VirtualText"===e.type&&"2"===e.version};var zt=function(e,t){var n=e,r=t;Ot(t)&&(r=qt(t,e));Ot(e)&&(n=qt(e,null));return{a:n,b:r}};function qt(e,t){var n=e.vnode;if(n||(n=e.vnode=e.render(t)),!(wt(n)||Ht(n)||Ft(n)))throw new Error("thunk did not return a valid node");return n}var Vt=function(e){return"object"==typeof e&&null!==e},Kt=function e(t,n){var r;for(var o in t){o in n||((r=r||{})[o]=void 0);var u=t[o],i=n[o];if(u!==i)if(Vt(u)&&Vt(i))if(Xt(i)!==Xt(u))(r=r||{})[o]=i;else if(xt(i))(r=r||{})[o]=i;else{var a=e(u,i);a&&((r=r||{})[o]=a)}else(r=r||{})[o]=i}for(var s in n)s in t||((r=r||{})[s]=n[s]);return r};function Xt(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}function Wt(e,t){var n={a:e};return Jt(e,t,n,0),n}function Jt(e,t,n,r){if(e!==t){var o=n[r],u=!1;if(Ot(e)||Ot(t))Gt(e,t,n,r);else if(null==t)Ft(e)||($t(e,n,r),o=n[r]),o=Qt(o,new Ut(Ut.REMOVE,e,t));else if(wt(t))if(wt(e))if(e.tagName===t.tagName&&e.namespace===t.namespace&&e.key===t.key){var i=Kt(e.properties,t.properties);i&&(o=Qt(o,new Ut(Ut.PROPS,e,i))),o=function(e,t,n,r,o){for(var u=e.children,i=function(e,t){var n=Zt(t),r=n.keys,o=n.free;if(o.length===t.length)return{children:t,moves:null};var u=Zt(e),i=u.keys;if(u.free.length===e.length)return{children:t,moves:null};for(var a=[],s=0,l=o.length,c=0,p=0;p<e.length;p++){var f,d=e[p];d.key?r.hasOwnProperty(d.key)?(f=r[d.key],a.push(t[f])):(f=p-c++,a.push(null)):s<l?(f=o[s++],a.push(t[f])):(f=p-c++,a.push(null))}for(var h=s>=o.length?t.length:o[s],g=0;g<t.length;g++){var v=t[g];v.key?i.hasOwnProperty(v.key)||a.push(v):g>=h&&a.push(v)}for(var y,m=a.slice(),E=0,A=[],b=[],C=0;C<t.length;){var w=t[C];for(y=m[E];null===y&&m.length;)A.push(Yt(m,E,null)),y=m[E];y&&y.key===w.key?(E++,C++):w.key?(y&&y.key&&r[y.key]!==C+1?(A.push(Yt(m,E,y.key)),(y=m[E])&&y.key===w.key?E++:b.push({key:w.key,to:C})):b.push({key:w.key,to:C}),C++):y&&y.key&&A.push(Yt(m,E,y.key))}for(;E<m.length;)y=m[E],A.push(Yt(m,E,y&&y.key));if(A.length===c&&!b.length)return{children:a,moves:null};return{children:a,moves:{removes:A,inserts:b}}}(u,t.children),a=i.children,s=u.length,l=a.length,c=s>l?s:l,p=0;p<c;p++){var f=u[p],d=a[p];o+=1,f?Jt(f,d,n,o):d&&(r=Qt(r,new Ut(Ut.INSERT,null,d))),wt(f)&&f.count&&(o+=f.count)}i.moves&&(r=Qt(r,new Ut(Ut.ORDER,e,i.moves)));return r}(e,t,n,o,r)}else o=Qt(o,new Ut(Ut.VNODE,e,t)),u=!0;else o=Qt(o,new Ut(Ut.VNODE,e,t)),u=!0;else Ht(t)?Ht(e)?e.text!==t.text&&(o=Qt(o,new Ut(Ut.VTEXT,e,t))):(o=Qt(o,new Ut(Ut.VTEXT,e,t)),u=!0):Ft(t)&&(Ft(e)||(u=!0),o=Qt(o,new Ut(Ut.WIDGET,e,t)));o&&(n[r]=o),u&&$t(e,n,r)}}function $t(e,t,n){!function e(t,n,r){if(wt(t)){if(t.hooks&&(n[r]=Qt(n[r],new Ut(Ut.PROPS,t,function(e){var t={};for(var n in e)t[n]=void 0;return t}(t.hooks)))),t.descendantHooks||t.hasThunks)for(var o=t.children,u=o.length,i=0;i<u;i++){var a=o[i];e(a,n,r+=1),wt(a)&&a.count&&(r+=a.count)}}else Ot(t)&&Gt(t,null,n,r)}(e,t,n),function e(t,n,r){if(Ft(t))"function"==typeof t.destroy&&(n[r]=Qt(n[r],new Ut(Ut.REMOVE,t,null)));else if(wt(t)&&(t.hasWidgets||t.hasThunks))for(var o=t.children,u=o.length,i=0;i<u;i++){var a=o[i];e(a,n,r+=1),wt(a)&&a.count&&(r+=a.count)}else Ot(t)&&Gt(t,null,n,r)}(e,t,n)}function Gt(e,t,n,r){var o=zt(e,t),u=Wt(o.a,o.b);(function(e){for(var t in e)if("a"!==t)return!0;return!1})(u)&&(n[r]=new Ut(Ut.THUNK,null,u))}function Yt(e,t,n){return e.splice(t,1),{from:t,key:n}}function Zt(e){for(var t={},n=[],r=e.length,o=0;o<r;o++){var u=e[o];u.key?t[u.key]=o:n.push(o)}return{keys:t,free:n}}function Qt(e,t){return e?(Mt(e)?e.push(t):e=[e,t],e):t}var en=Wt,tn=Array.prototype.slice,nn=function(e,t){"length"in e||(e=[e]);e=tn.call(e);for(;e.length;){var n=e.shift(),r=t(n);if(r)return r;n.childNodes&&n.childNodes.length&&(e=tn.call(n.childNodes).concat(e))}};var rn=on;function on(e,t){if(!(this instanceof on))return new on(e,t);this.data=e,this.nodeValue=e,this.length=e.length,this.ownerDocument=t||null}on.prototype.nodeType=8,on.prototype.nodeName="#comment",on.prototype.toString=function(){return"[object Comment]"};var un=an;function an(e,t){if(!(this instanceof an))return new an(e);this.data=e||"",this.length=this.data.length,this.ownerDocument=t||null}an.prototype.type="DOMTextNode",an.prototype.nodeType=3,an.prototype.nodeName="#text",an.prototype.toString=function(){return this.data},an.prototype.replaceData=function(e,t,n){var r=this.data,o=r.substring(0,e),u=r.substring(e+t,r.length);this.data=o+n+u,this.length=this.data.length};var sn=function(e){var t=this,n=e.type;e.target||(e.target=t);t.listeners||(t.listeners={});var r=t.listeners[n];if(r)return r.forEach((function(n){e.currentTarget=t,"function"==typeof n?n(e):n.handleEvent(e)}));t.parentNode&&t.parentNode.dispatchEvent(e)};var ln=function(e,t){this.listeners||(this.listeners={});this.listeners[e]||(this.listeners[e]=[]);-1===this.listeners[e].indexOf(t)&&this.listeners[e].push(t)};var cn=function(e,t){if(!this.listeners)return;if(!this.listeners[e])return;var n=this.listeners[e],r=n.indexOf(t);-1!==r&&n.splice(r,1)};var pn=dn,fn=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function dn(e){switch(e.nodeType){case 3:return vn(e.data);case 8:return"\x3c!--"+e.data+"--\x3e";default:return function(e){var t=[],n=e.tagName;"http://www.w3.org/1999/xhtml"===e.namespaceURI&&(n=n.toLowerCase());t.push("<"+n+function(e){var t=[];for(var n in e)hn(e,n)&&t.push({name:n,value:e[n]});for(var r in e._attributes)for(var o in e._attributes[r]){var u=e._attributes[r][o],i=(u.prefix?u.prefix+":":"")+o;t.push({name:i,value:u.value})}e.className&&t.push({name:"class",value:e.className});return t.length?gn(t):""}(e)+function(e){var t=e.dataset,n=[];for(var r in t)n.push({name:"data-"+r,value:t[r]});return n.length?gn(n):""}(e)),fn.indexOf(n)>-1?t.push(" />"):(t.push(">"),e.childNodes.length?t.push.apply(t,e.childNodes.map(dn)):e.textContent||e.innerText?t.push(vn(e.textContent||e.innerText)):e.innerHTML&&t.push(e.innerHTML),t.push("</"+n+">"));return t.join("")}(e)}}function hn(e,t){var n=typeof e[t];return"style"===t&&Object.keys(e.style).length>0||e.hasOwnProperty(t)&&("string"===n||"boolean"===n||"number"===n)&&"nodeName"!==t&&"className"!==t&&"tagName"!==t&&"textContent"!==t&&"innerText"!==t&&"namespaceURI"!==t&&"innerHTML"!==t}function gn(e){var t=[];return e.forEach((function(e){var n=e.name,r=e.value;"style"===n&&(r=function(e){if("string"==typeof e)return e;var t="";return Object.keys(e).forEach((function(n){var r=e[n];n=n.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})),t+=n+":"+r+";"})),t}(r)),t.push(n+'="'+(vn(r).replace(/"/g,""")+'"'))})),t.length?" "+t.join(" "):""}function vn(e){var t="";return"string"==typeof e?t=e:e&&(t=e.toString()),t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}var yn="http://www.w3.org/1999/xhtml",mn=En;function En(e,t,n){if(!(this instanceof En))return new En(e);var r=void 0===n?yn:n||null;this.tagName=r===yn?String(e).toUpperCase():e,this.nodeName=this.tagName,this.className="",this.dataset={},this.childNodes=[],this.parentNode=null,this.style={},this.ownerDocument=t||null,this.namespaceURI=r,this._attributes={},"INPUT"===this.tagName&&(this.type="text")}En.prototype.type="DOMElement",En.prototype.nodeType=1,En.prototype.appendChild=function(e){return e.parentNode&&e.parentNode.removeChild(e),this.childNodes.push(e),e.parentNode=this,e},En.prototype.replaceChild=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var n=this.childNodes.indexOf(t);return t.parentNode=null,this.childNodes[n]=e,e.parentNode=this,t},En.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);return this.childNodes.splice(t,1),e.parentNode=null,e},En.prototype.insertBefore=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var n=null==t?-1:this.childNodes.indexOf(t);return n>-1?this.childNodes.splice(n,0,e):this.childNodes.push(e),e.parentNode=this,e},En.prototype.setAttributeNS=function(e,t,n){var r=null,o=t,u=t.indexOf(":");(u>-1&&(r=t.substr(0,u),o=t.substr(u+1)),"INPUT"===this.tagName&&"type"===t)?this.type=n:(this._attributes[e]||(this._attributes[e]={}))[o]={value:n,prefix:r}},En.prototype.getAttributeNS=function(e,t){var n=this._attributes[e],r=n&&n[t]&&n[t].value;return"INPUT"===this.tagName&&"type"===t?this.type:"string"!=typeof r?null:r},En.prototype.removeAttributeNS=function(e,t){var n=this._attributes[e];n&&delete n[t]},En.prototype.hasAttributeNS=function(e,t){var n=this._attributes[e];return!!n&&t in n},En.prototype.setAttribute=function(e,t){return this.setAttributeNS(null,e,t)},En.prototype.getAttribute=function(e){return this.getAttributeNS(null,e)},En.prototype.removeAttribute=function(e){return this.removeAttributeNS(null,e)},En.prototype.hasAttribute=function(e){return this.hasAttributeNS(null,e)},En.prototype.removeEventListener=cn,En.prototype.addEventListener=ln,En.prototype.dispatchEvent=sn,En.prototype.focus=function(){},En.prototype.toString=function(){return pn(this)},En.prototype.getElementsByClassName=function(e){var t=e.split(" "),n=[];return nn(this,(function(e){if(1===e.nodeType){var r=(e.className||"").split(" ");t.every((function(e){return-1!==r.indexOf(e)}))&&n.push(e)}})),n},En.prototype.getElementsByTagName=function(e){e=e.toLowerCase();var t=[];return nn(this.childNodes,(function(n){1!==n.nodeType||"*"!==e&&n.tagName.toLowerCase()!==e||t.push(n)})),t},En.prototype.contains=function(e){return nn(this,(function(t){return e===t}))||!1};var An=bn;function bn(e){if(!(this instanceof bn))return new bn;this.childNodes=[],this.parentNode=null,this.ownerDocument=e||null}bn.prototype.type="DocumentFragment",bn.prototype.nodeType=11,bn.prototype.nodeName="#document-fragment",bn.prototype.appendChild=mn.prototype.appendChild,bn.prototype.replaceChild=mn.prototype.replaceChild,bn.prototype.removeChild=mn.prototype.removeChild,bn.prototype.toString=function(){return this.childNodes.map((function(e){return String(e)})).join("")};var Cn=wn;function wn(e){}wn.prototype.initEvent=function(e,t,n){this.type=e,this.bubbles=t,this.cancelable=n},wn.prototype.preventDefault=function(){};var Fn=On;function On(){if(!(this instanceof On))return new On;this.head=this.createElement("head"),this.body=this.createElement("body"),this.documentElement=this.createElement("html"),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body),this.childNodes=[this.documentElement],this.nodeType=9}var xn=On.prototype;xn.createTextNode=function(e){return new un(e,this)},xn.createElementNS=function(e,t){var n=null===e?null:String(e);return new mn(t,this,n)},xn.createElement=function(e){return new mn(e,this)},xn.createDocumentFragment=function(){return new An(this)},xn.createEvent=function(e){return new Cn(e)},xn.createComment=function(e){return new rn(e,this)},xn.getElementById=function(e){return e=String(e),nn(this.childNodes,(function(t){if(String(t.id)===e)return t}))||null},xn.getElementsByClassName=mn.prototype.getElementsByClassName,xn.getElementsByTagName=mn.prototype.getElementsByTagName,xn.contains=mn.prototype.contains,xn.removeEventListener=cn,xn.addEventListener=ln,xn.dispatchEvent=sn;var kn,Dn=new Fn,Bn=void 0!==r?r:"undefined"!=typeof window?window:{};"undefined"!=typeof document?kn=document:(kn=Bn["__GLOBAL_DOCUMENT_CACHE@4"])||(kn=Bn["__GLOBAL_DOCUMENT_CACHE@4"]=Dn);var Sn=kn,jn=function(e,t,n){for(var r in t){var o=t[r];void 0===o?Nn(e,r,o,n):xt(o)?(Nn(e,r,o,n),o.hook&&o.hook(e,r,n?n[r]:void 0)):Vt(o)?Pn(e,t,n,r,o):e[r]=o}};function Nn(e,t,n,r){if(r){var o=r[t];if(xt(o))o.unhook&&o.unhook(e,t,n);else if("attributes"===t)for(var u in o)e.removeAttribute(u);else if("style"===t)for(var i in o)e.style[i]="";else e[t]="string"==typeof o?"":null}}function Pn(e,t,n,r,o){var u=n?n[r]:void 0;if("attributes"!==r)if(u&&Vt(u)&&Ln(u)!==Ln(o))e[r]=o;else{Vt(e[r])||(e[r]={});var i="style"===r?"":void 0;for(var a in o){var s=o[a];e[r][a]=void 0===s?i:s}}else for(var l in o){var c=o[l];void 0===c?e.removeAttribute(l):e.setAttribute(l,c)}}function Ln(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}var Tn=function e(t,n){var r=n&&n.document||Sn,o=n?n.warn:null;if(t=zt(t).a,Ft(t))return t.init();if(Ht(t))return r.createTextNode(t.text);if(!wt(t))return o&&o("Item is not a valid virtual dom node",t),null;var u=null===t.namespace?r.createElement(t.tagName):r.createElementNS(t.namespace,t.tagName),i=t.properties;jn(u,i);for(var a=t.children,s=0;s<a.length;s++){var l=e(a[s],n);l&&u.appendChild(l)}return u};var Rn={},In=function(e,t,n,r){return n&&0!==n.length?(n.sort(Un),function e(t,n,r,o,u){if(o=o||{},t){Mn(r,u,u)&&(o[u]=t);var i=n.children;if(i)for(var a=t.childNodes,s=0;s<n.children.length;s++){u+=1;var l=i[s]||Rn,c=u+(l.count||0);Mn(r,u,c)&&e(a[s],l,r,o,u),u=c}}return o}(e,t,n,r,0)):{}};function Mn(e,t,n){if(0===e.length)return!1;for(var r,o,u=0,i=e.length-1;u<=i;){if(o=e[r=(i+u)/2>>0],u===i)return o>=t&&o<=n;if(o<t)u=r+1;else{if(!(o>n))return!0;i=r-1}}return!1}function Un(e,t){return e>t?1:-1}var _n=function(e,t){if(Ft(e)&&Ft(t))return"name"in e&&"name"in t?e.id===t.id:e.init===t.init;return!1};var Hn=function(e,t,n){var r=e.type,o=e.vNode,u=e.patch;switch(r){case Ut.REMOVE:return function(e,t){var n=e.parentNode;n&&n.removeChild(e);return zn(e,t),null}(t,o);case Ut.INSERT:return function(e,t,n){var r=n.render(t,n);e&&e.appendChild(r);return e}(t,u,n);case Ut.VTEXT:return function(e,t,n,r){var o;if(3===e.nodeType)e.replaceData(0,e.length,n.text),o=e;else{var u=e.parentNode;o=r.render(n,r),u&&o!==e&&u.replaceChild(o,e)}return o}(t,0,u,n);case Ut.WIDGET:return function(e,t,n,r){var o,u=_n(t,n);o=u?n.update(t,e)||e:r.render(n,r);var i=e.parentNode;i&&o!==e&&i.replaceChild(o,e);u||zn(e,t);return o}(t,o,u,n);case Ut.VNODE:return function(e,t,n,r){var o=e.parentNode,u=r.render(n,r);o&&u!==e&&o.replaceChild(u,e);return u}(t,0,u,n);case Ut.ORDER:return function(e,t){for(var n,r,o,u=e.childNodes,i={},a=0;a<t.removes.length;a++)r=t.removes[a],n=u[r.from],r.key&&(i[r.key]=n),e.removeChild(n);for(var s=u.length,l=0;l<t.inserts.length;l++)o=t.inserts[l],n=i[o.key],e.insertBefore(n,o.to>=s++?null:u[o.to])}(t,u),t;case Ut.PROPS:return jn(t,u,o.properties),t;case Ut.THUNK:return function(e,t){e&&t&&e!==t&&e.parentNode&&e.parentNode.replaceChild(t,e);return t}(t,n.patch(t,u,n));default:return t}};function zn(e,t){"function"==typeof t.destroy&&Ft(t)&&t.destroy(e)}function qn(e,t,n){var r=function(e){var t=[];for(var n in e)"a"!==n&&t.push(Number(n));return t}(t);if(0===r.length)return e;var o=In(e,t.a,r),u=e.ownerDocument;n.document||u===Sn||(n.document=u);for(var i=0;i<r.length;i++){var a=r[i];e=Vn(e,o[a],t[a],n)}return e}function Vn(e,t,n,r){if(!t)return e;var o;if(Mt(n))for(var u=0;u<n.length;u++)o=Hn(n[u],t,r),t===e&&(e=o);else o=Hn(n,t,r),t===e&&(e=o);return e}var Kn=function e(t,n,r){return(r=r||{}).patch=r.patch&&r.patch!==e?r.patch:qn,r.render=r.render||Tn,r.patch(t,n,r)},Xn=u((function(e,t){e.exports=function(){var e=o((function(e){return e})),t=u(o((function(e){var t=e.length;return new e.constructor(t)})),["BYTES_PER_ELEMENT","get","set","slice","subarray","buffer","length","byteOffset","byteLength"]);function n(e){return"[object "+e+"]"}var r={};function o(e){return function(t,n,r){n.push(t);var o=e(t);return r.push(o),o}}function u(e,t){return function(n,r,o){var u=this;return Object.getOwnPropertyNames(n).filter((function(e){return!t||-1===t.indexOf(e)})).reduce((function(e,t){var i=r.indexOf(n[t]);return e[t]=-1===i?u(n[t]):o[i],e}),e(n,r,o))}}return r[n("RegExp")]=o((function(e){return new RegExp(e)})),r[n("Date")]=o((function(e){return new Date(e.getTime())})),r[n("Function")]=u(o((function(e){return n=function(e){for(var t=[],n=1;n<=e;n++)t.push("arg"+n);return t}((t=e).length),r="return false || function ",r+=t.name+"(",r+=n.join(", ")+") {\n",r+="return fn.apply(this, arguments);\n",r+="};",Function("fn",r)(t);var t,n,r})),["caller","arguments"]),r[n("Object")]=u(o((function(e){return Object.create(Object.getPrototypeOf(e))}))),r[n("Array")]=u(o((function(e){return[]}))),["Null","Undefined","Number","String","Boolean"].map(n).forEach((function(t){r[t]=e})),["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].map(n).forEach((function(e){r[e]=t})),function(e){var t=[],n=[];return function e(o){var u=Object.prototype.toString.call(o);return r[u].call(e,o,t,n)}(e)}}()})),Wn=function(){function e(){at(this,e)}return st(e,[{key:"start",value:function(){this.started=(new Date).getTime()}},{key:"end",value:function(){return this.ended=(new Date).getTime(),this.ended-this.started}}]),e}(),Jn=/["'&<>]/,$n=function(e){var t,n=""+e,r=Jn.exec(n);if(!r)return n;var o="",u=0,i=0;for(u=r.index;u<n.length;u++){switch(n.charCodeAt(u)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}i!==u&&(o+=n.substring(i,u)),i=u+1,o+=t}return i!==u?o+n.substring(i,u):o};var Gn=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)Yn.call(n,r)&&(e[r]=n[r])}return e},Yn=Object.prototype.hasOwnProperty;var Zn=Qn;function Qn(e){if(!(this instanceof Qn))return new Qn(e);this.value=e}Qn.prototype.hook=function(e,t){e[t]!==this.value&&(e[t]=this.value)};var er=tr;function tr(e,t){if(!(this instanceof tr))return new tr(e,t);this.namespace=e,this.value=t}tr.prototype.hook=function(e,t,n){n&&"AttributeHook"===n.type&&n.value===this.value&&n.namespace===this.namespace||e.setAttributeNS(this.namespace,t,this.value)},tr.prototype.unhook=function(e,t,n){if(!n||"AttributeHook"!==n.type||n.namespace!==this.namespace){var r=t.indexOf(":"),o=r>-1?t.substr(r+1):t;e.removeAttributeNS(this.namespace,o)}},tr.prototype.type="AttributeHook";var nr,rr,or={tr:{regexp:/\u0130|\u0049|\u0049\u0307/g,map:{"İ":"i",I:"ı","İ":"i"}},az:{regexp:/[\u0130]/g,map:{"İ":"i",I:"ı","İ":"i"}},lt:{regexp:/[\u0049\u004A\u012E\u00CC\u00CD\u0128]/g,map:{I:"i̇",J:"j̇","Į":"į̇","Ì":"i̇̀","Í":"i̇́","Ĩ":"i̇̃"}}},ur=/[^\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]+/g,ir=/([\u0061-\u007A\u00B5\u00DF-\u00F6\u00F8-\u00FF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0561-\u0587\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7FA\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A])([\u0041-\u005A\u00C0-\u00D6\u00D8-\u00DE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA\uFF21-\uFF3A\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])/g,ar=/([\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])([^\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])/g,sr=function(e,t,n){if(null==e)return"";return n=n||" ",function(e,t){var n=or[t];return e=null==e?"":String(e),n&&(e=e.replace(n.regexp,(function(e){return n.map[e]}))),e.toLowerCase()}(e=String(e).replace(ir,"$1 $2").replace(ar,"$1 $2").replace(ur,(function(e,t,r){return 0===t||t===r.length-e.length?"":n})),t)},lr=function(e,t){return sr(e,t,"-")},cr={BOOLEAN:1,OVERLOADED_BOOLEAN:2},pr={attributeTypes:cr,properties:{accept:!0,acceptCharset:!0,accessKey:!0,action:!0,allowFullScreen:cr.BOOLEAN,allowTransparency:!0,alt:!0,async:cr.BOOLEAN,autocomplete:!0,autofocus:cr.BOOLEAN,autoplay:cr.BOOLEAN,cellPadding:!0,cellSpacing:!0,charset:!0,checked:cr.BOOLEAN,classID:!0,className:!0,cols:!0,colSpan:!0,content:!0,contentEditable:!0,contextMenu:!0,controls:cr.BOOLEAN,coords:!0,crossOrigin:!0,data:!0,dateTime:!0,defer:cr.BOOLEAN,dir:!0,disabled:cr.BOOLEAN,download:cr.OVERLOADED_BOOLEAN,draggable:!0,enctype:!0,form:!0,formAction:!0,formEncType:!0,formMethod:!0,formNoValidate:cr.BOOLEAN,formTarget:!0,frameBorder:!0,headers:!0,height:!0,hidden:cr.BOOLEAN,href:!0,hreflang:!0,htmlFor:!0,httpEquiv:!0,icon:!0,id:!0,label:!0,lang:!0,list:!0,loop:cr.BOOLEAN,manifest:!0,marginHeight:!0,marginWidth:!0,max:!0,maxLength:!0,media:!0,mediaGroup:!0,method:!0,min:!0,multiple:cr.BOOLEAN,muted:cr.BOOLEAN,name:!0,noValidate:cr.BOOLEAN,open:!0,pattern:!0,placeholder:!0,poster:!0,preload:!0,radiogroup:!0,readOnly:cr.BOOLEAN,rel:!0,required:cr.BOOLEAN,role:!0,rows:!0,rowSpan:!0,sandbox:!0,scope:!0,scrolling:!0,seamless:cr.BOOLEAN,selected:cr.BOOLEAN,shape:!0,size:!0,sizes:!0,span:!0,spellcheck:!0,src:!0,srcdoc:!0,srcset:!0,start:!0,step:!0,style:!0,tabIndex:!0,target:!0,title:!0,type:!0,useMap:!0,value:!0,width:!0,wmode:!0,autocapitalize:!0,autocorrect:!0,itemProp:!0,itemScope:cr.BOOLEAN,itemType:!0,property:!0},attributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"}},fr=pr.attributeTypes,dr=pr.properties,hr=pr.attributeNames,gr=(nr=function(e){return $n(e)+'="'},rr={},function(e){return rr.hasOwnProperty(e)?rr[e]:rr[e]=nr.call(this,e)}),vr=function(e,t,n){if(dr.hasOwnProperty(e)){if(function(e,t){var n=dr[e];return null==t||n===fr.BOOLEAN&&!t||n===fr.OVERLOADED_BOOLEAN&&!1===t}(e,t))return"";e=(hr[e]||e).toLowerCase();var r=dr[e];return r===fr.BOOLEAN||r===fr.OVERLOADED_BOOLEAN&&!0===t?$n(e):gr(e)+$n(t)+'"'}if(n)return null==t?"":gr(e)+$n(t)+'"';return null};var yr={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},mr=Er;function Er(e,t){return e?(Ot(e)&&(e=e.render()),Ft(e)&&e.render&&(e=e.render()),wt(e)?function(e){var t=e.properties,n="<"+e.tagName.toLowerCase();for(var r in t){var o=t[r];if(null!=o)if("attributes"!=r)if("dataset"!=r){if("style"==r){var u="";for(var i in o=Gn({},o))u+=lr(i)+": "+o[i]+"; ";o=u.trim()}if(o instanceof Zn||o instanceof er)n+=" "+vr(r,o.value,!0);else{var a=vr(r,o);a&&(n+=" "+a)}}else for(var s in o=Gn({},o))n+=" "+vr("data-"+lr(s),o[s],!0);else for(var l in o=Gn({},o))n+=" "+vr(l,o[l],!0)}return n+">"}(e)+function(e){var t=e.properties.innerHTML;if(null!=t)return t;var n="";if(e.children&&e.children.length)for(var r=0,o=e.children.length;r<o;r++){var u=e.children[r];n+=Er(u,e)}return n}(e)+function(e){var t=e.tagName.toLowerCase();return yr[t]?"":"</"+t+">"}(e):Ht(e)?!t||"script"!==t.tagName.toLowerCase()&&"style"!==t.tagName.toLowerCase()?$n(String(e.text)):String(e.text):""):""}var Ar,br={abbr:"abbr",accept:"accept","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",alt:"alt",async:"async",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charset",checked:"checked",cite:"cite",class:"className",cols:"cols",colspan:"colSpan",command:"command",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",coords:"coords",crossorigin:"crossOrigin",data:"data",datetime:"dateTime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",dropzone:"dropzone",enctype:"encType",for:"htmlFor",form:"form",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameBorder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang","http-equiv":"httpEquiv",icon:"icon",id:"id",inputmode:"inputMode",ismap:"isMap",itemid:"itemId",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",manifest:"manifest",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",ping:"ping",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radioGroup",readonly:"readOnly",rel:"rel",required:"required",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",sortable:"sortable",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srcset:"srcSet",start:"start",step:"step",style:"style",tabindex:"tabIndex",target:"target",title:"title",translate:"translate",type:"type",typemustmatch:"typeMustMatch",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},Cr="http://www.w3.org/1999/xlink",wr="http://www.w3.org/XML/1998/namespace",Fr={about:null,"accent-height":null,accumulate:null,additive:null,"alignment-baseline":null,alphabetic:null,amplitude:null,"arabic-form":null,ascent:null,attributeName:null,attributeType:null,azimuth:null,bandwidth:null,baseFrequency:null,baseProfile:null,"baseline-shift":null,bbox:null,begin:null,bias:null,by:null,calcMode:null,"cap-height":null,class:null,clip:null,"clip-path":null,"clip-rule":null,clipPathUnits:null,color:null,"color-interpolation":null,"color-interpolation-filters":null,"color-profile":null,"color-rendering":null,content:null,contentScriptType:null,contentStyleType:null,cursor:null,cx:null,cy:null,d:null,datatype:null,defaultAction:null,descent:null,diffuseConstant:null,direction:null,display:null,divisor:null,"dominant-baseline":null,dur:null,dx:null,dy:null,edgeMode:null,editable:null,elevation:null,"enable-background":null,end:null,"ev:event":"http://www.w3.org/2001/xml-events",event:null,exponent:null,externalResourcesRequired:null,fill:null,"fill-opacity":null,"fill-rule":null,filter:null,filterRes:null,filterUnits:null,"flood-color":null,"flood-opacity":null,focusHighlight:null,focusable:null,"font-family":null,"font-size":null,"font-size-adjust":null,"font-stretch":null,"font-style":null,"font-variant":null,"font-weight":null,format:null,from:null,fx:null,fy:null,g1:null,g2:null,"glyph-name":null,"glyph-orientation-horizontal":null,"glyph-orientation-vertical":null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:null,height:null,"horiz-adv-x":null,"horiz-origin-x":null,"horiz-origin-y":null,id:null,ideographic:null,"image-rendering":null,in:null,in2:null,initialVisibility:null,intercept:null,k:null,k1:null,k2:null,k3:null,k4:null,kernelMatrix:null,kernelUnitLength:null,kerning:null,keyPoints:null,keySplines:null,keyTimes:null,lang:null,lengthAdjust:null,"letter-spacing":null,"lighting-color":null,limitingConeAngle:null,local:null,"marker-end":null,"marker-mid":null,"marker-start":null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:null,mediaTime:null,method:null,min:null,mode:null,name:null,"nav-down":null,"nav-down-left":null,"nav-down-right":null,"nav-left":null,"nav-next":null,"nav-prev":null,"nav-right":null,"nav-up":null,"nav-up-left":null,"nav-up-right":null,numOctaves:null,observer:null,offset:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,"overline-position":null,"overline-thickness":null,"panose-1":null,path:null,pathLength:null,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,playbackOrder:null,"pointer-events":null,points:null,pointsAtX:null,pointsAtY:null,pointsAtZ:null,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:null,r:null,radius:null,refX:null,refY:null,rel:null,"rendering-intent":null,repeatCount:null,repeatDur:null,requiredExtensions:null,requiredFeatures:null,requiredFonts:null,requiredFormats:null,resource:null,restart:null,result:null,rev:null,role:null,rotate:null,rx:null,ry:null,scale:null,seed:null,"shape-rendering":null,slope:null,snapshotTime:null,spacing:null,specularConstant:null,specularExponent:null,spreadMethod:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,"stop-color":null,"stop-opacity":null,"strikethrough-position":null,"strikethrough-thickness":null,string:null,stroke:null,"stroke-dasharray":null,"stroke-dashoffset":null,"stroke-linecap":null,"stroke-linejoin":null,"stroke-miterlimit":null,"stroke-opacity":null,"stroke-width":null,surfaceScale:null,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:null,tableValues:null,target:null,targetX:null,targetY:null,"text-anchor":null,"text-decoration":null,"text-rendering":null,textLength:null,timelineBegin:null,title:null,to:null,transform:null,transformBehavior:null,type:null,typeof:null,u1:null,u2:null,"underline-position":null,"underline-thickness":null,unicode:null,"unicode-bidi":null,"unicode-range":null,"units-per-em":null,"v-alphabetic":null,"v-hanging":null,"v-ideographic":null,"v-mathematical":null,values:null,version:null,"vert-adv-y":null,"vert-origin-x":null,"vert-origin-y":null,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,"word-spacing":null,"writing-mode":null,x:null,"x-height":null,x1:null,x2:null,xChannelSelector:null,"xlink:actuate":Cr,"xlink:arcrole":Cr,"xlink:href":Cr,"xlink:role":Cr,"xlink:show":Cr,"xlink:title":Cr,"xlink:type":Cr,"xml:base":wr,"xml:id":wr,"xml:lang":wr,"xml:space":wr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},Or=function(e,t){if(!e)return xr(document.createTextNode(""));if("string"==typeof e){if(!("DOMParser"in window))throw new Error("DOMParser is not available, so parsing string to DOM node is not possible.");var n=(Ar=Ar||new DOMParser).parseFromString(e,"text/html");e=n.body.firstChild?n.getElementsByTagName("body")[0].firstChild:n.head.firstChild&&("TITLE"!==n.head.firstChild.tagName||n.title)?n.head.firstChild:n.firstChild&&"HTML"!==n.firstChild.tagName?n.firstChild:document.createTextNode("")}if("object"!=typeof e||!e||!e.nodeType)throw new Error("invalid dom node",e);return xr(e,t)};function xr(e,t){return 3===e.nodeType?function(e){return new jt(e.nodeValue)}(e):1===e.nodeType||9===e.nodeType?function(e,t){var n="http://www.w3.org/1999/xhtml"!==e.namespaceURI?e.namespaceURI:null,r=t&&e.getAttribute(t)?e.getAttribute(t):null;return new kt(e.tagName,function(e){var t,n,r={};if(!e.hasAttributes())return r;e.namespaceURI&&"http://www.w3.org/1999/xhtml"!==e.namespaceURI&&(t=e.namespaceURI);for(var o=0;o<e.attributes.length;o++)(n="style"==e.attributes[o].name?Br(e):t?Dr(e.attributes[o]):kr(e.attributes[o])).ns?r[n.name]={namespace:n.ns,value:n.value}:n.isAttr?(r.attributes||(r.attributes={}),r.attributes[n.name]=n.value):r[n.name]=n.value;return r}(e),function(e,t){for(var n=[],r=0;r<e.childNodes.length;r++)n.push(xr(e.childNodes[r],t));return n}(e,t),r,n)}(e,t):new jt("")}function kr(e){var t,n,r;return 0===(t=br[e.name]?br[e.name]:e.name).indexOf("data-")||0===t.indexOf("aria-")?(n=e.value,r=!0):n=e.value,{name:t,value:n,isAttr:r||!1}}function Dr(e){return{name:e.name,value:e.value,ns:Fr[e.name]||""}}function Br(e){for(var t=e.style,n={},r=0;r<t.length;++r){var o=t.item(r);n[o]=String(t[o]),n[o].indexOf("url")>-1&&(n[o]=n[o].replace(/\"/g,""))}return{name:"style",value:n}}var Sr=u((function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports}));o(Sr);var jr=u((function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,u=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(u.push(r.value),!t||u.length!==t);i=!0);}catch(e){a=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return u}},e.exports.__esModule=!0,e.exports.default=e.exports}));o(jr);var Nr=u((function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports}));o(Nr);var Pr=u((function(e){e.exports=function(e,t){if(e){if("string"==typeof e)return Nr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nr(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}));o(Pr);var Lr=u((function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}));o(Lr);var Tr=o(u((function(e){e.exports=function(e,t){return Sr(e)||jr(e,t)||Pr(e,t)||Lr()},e.exports.__esModule=!0,e.exports.default=e.exports})));function Rr(e,t,n){var r;return function(){var o=this,u=arguments,i=function(){r=null,n||e.apply(o,u)},a=n&&!r;clearTimeout(r),r=setTimeout(i,t),a&&e.apply(o,u)}}function Ir(e,t){return e.properties&&e.properties.attributes&&e.properties.attributes[t]}function Mr(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var u="string"!=typeof t?[].concat(t):t.split(".");u.length>1;){if(o())return{};var i=r(u.shift());!e[i]&&n&&(e[i]=new n),e=e[i]}return o()?{}:{obj:e,k:r(u.shift())}}function Ur(e,t,n){var r=Mr(e,t,Object);r.obj[r.k]=n}function _r(e,t){var n=Mr(e,t),r=n.obj,o=n.k;if(r)return r[o]}function Hr(){var e=location.pathname;if("/"===e)return"root";var t=e.split("/"),n="root";return t.forEach((function(e){e&&(n+="_".concat(e))})),n}var zr=function(e){if(e.namespace)e.ns.push(e.namespace),e.defaultNS=e.namespace;else if(e.namespaceFromPath){var t=Hr();e.ns.push(t),e.defaultNS=t}return e.ns.length||(e.ns=["translation"]),e.ignoreTags&&(e.ignoreTags=e.ignoreTags.map((function(e){return e.toUpperCase()}))),e.ignoreCleanIndentFor&&(e.ignoreCleanIndentFor=e.ignoreCleanIndentFor.map((function(e){return e.toUpperCase()}))),e.inlineTags&&(e.inlineTags=e.inlineTags.map((function(e){return e.toUpperCase()}))),e.ignoreInlineOn&&(e.ignoreInlineOn=e.ignoreInlineOn.map((function(e){return e.toUpperCase()}))),e.mergeTags&&(e.mergeTags=e.mergeTags.map((function(e){return e.toUpperCase()}))),e.translateAttributes=e.translateAttributes.reduce((function(e,t){var n={attr:t};if(t.indexOf("#")>-1){var r=t.split("#"),o=Tr(r,2),u=o[0],i=o[1];if(n.attr=u,i.indexOf(".")>-1){var a=i.split("."),s=Tr(a,2),l=s[0],c=s[1];n.ele=l.toUpperCase(),n.cond=c.toLowerCase().split("=")}else i.indexOf("=")>-1?n.cond=i.toLowerCase().split("="):n.ele=i.toUpperCase()}return e.push(n),e}),[]),e};function qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{retranslate:!1};return!(!t||!t.retranslate)||(!e.properties||!e.properties.attributes||""!==e.properties.attributes.localized)}function Xr(e){var t=!e.properties||!e.properties.attributes||""!==e.properties.attributes.translated;(t&&e.tagName&&Ae.options.ignoreTags.indexOf(e.tagName)>-1&&(t=!1),t&&Ae.options.ignoreClasses&&e.properties&&e.properties.className)&&e.properties.className.split(" ").forEach((function(e){t&&Ae.options.ignoreClasses.indexOf(e)>-1&&(t=!1)}));return t&&Ae.options.ignoreIds&&Ae.options.ignoreIds.indexOf(e.properties&&e.properties.id)>-1&&(t=!1),t}function Wr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.trim(),o=n||e.trim();return t.defaultValue||(t.defaultValue=e),r&&!Ae.options.ignoreWithoutKey||r&&Ae.options.ignoreWithoutKey&&n?Ae.t(o,t):e}var Jr=["src","href"],$r=new RegExp("%7B%7B(.+?)%7D%7D","g");function Gr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,u=arguments.length>5?arguments[5]:void 0;return t?(Ae.options.translateAttributes.forEach((function(i){if(!i.ele||e.tagName===i.ele){if(i.cond&&2===i.cond.length){var a=_r(t,i.cond[0])||_r(t.attributes,i.cond[0]);if(!a||a!==i.cond[1])return}var s=!1,l=_r(t,i.attr);if(l||(l=_r(t.attributes,i.attr))&&(s=!0),u.retranslate){var c=e.properties&&e.properties&&e.properties.attributes["".concat(i.attr,"-i18next-orgval")];c||(c=l),l=c}l&&(o&&(e.properties.attributes["".concat(i.attr,"-i18next-orgval")]=l),Ur(s?t.attributes:t,i.attr,Wr(l,Vr({},n),r?"".concat(r,".").concat(i.attr):"")))}})),Jr.forEach((function(e){var o=_r(t,e);if(o&&(o=o.replace(/\{\{/g,"%7B%7B").replace(/\}\}/g,"%7D%7D")),o&&o.indexOf("%7B")>-1){var u=[];o.split($r).reduce((function(t,o,u){if(0===o.length)return t;if(u&&u%2!=0){var i=Wr(o,Vr({},n),r?"".concat(r,".").concat(e):"");i&&0==i.indexOf("http")&&t[u-1]&&0===t[u-1].indexOf("http")&&t.splice(u-1,1),t.push(i)}else t.push(o);return t}),u),u.length&&Ur(t,e,u.join(""))}})),t):t}function Yr(e,t){var n=Ir(t,"i18next-options");if(n)try{n=JSON.parse(n)}catch(e){console.warn("failed parsing options on node",t)}return n&&n.inlineTags&&(n.inlineTags=n.inlineTags.map((function(e){return e.toUpperCase()}))),Vr(Vr({},e||{}),n||{})}function Zr(e,t){return Ae.options.cleanIndent?e.replace(/\n +/g,t):e}function Qr(e,t){if(!e.children||!e.children.length||Ae.options.ignoreInlineOn.indexOf(e.tagName)>-1)return!1;if(Ae.options.mergeTags.indexOf(e.tagName)>-1)return!0;var n=t.inlineTags||Ae.options.inlineTags,r=t.additionalInlineTags?n.concat(t.additionalInlineTags):n,o=!0,u=!1;return e.children.forEach((function(e){!e.text&&e.tagName&&r.indexOf(e.tagName.toUpperCase())<0&&(o=!1),e.tagName&&(u=!0)})),o&&u}function eo(e,t){var n=new Wn;n.start();var r=function e(t,n,r,o){var u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0,a=Xr(t),s=Kr(t,i),l=Kr(t);n=Yr(n,t);var c=0===u?o:"";u>0&&o&&!Ae.options.ignoreWithoutKey&&(c="".concat(o,".").concat(u));var p=Ir(t,Ae.options.keyAttr)||c,f=Ir(t,"merge");if("false"!==f&&(""===f||Qr(t,n))){if(a&&s){var d=new kt("I18NEXTIFYDUMMY",null,t.children),h=Zr(mr(d),"").replace("<i18nextifydummy>","").replace("</i18nextifydummy>","");if(i.retranslate){var g=t.properties&&t.properties.attributes&&t.properties.attributes["i18next-orgval"];g||(g=r&&r.properties&&r.properties.attributes&&r.properties.attributes["i18next-orgval-".concat(u)]),g||(g=h),h=g}var v="<i18nextifydummy>".concat(Wr(h,n,p),"</i18nextifydummy>"),y=Or((v||"").trim());t.children=y.children,l&&t.properties&&t.properties.attributes?t.properties.attributes["i18next-orgval"]=h:l&&r&&r.properties&&r.properties.attributes&&(r.properties.attributes["i18next-orgval-".concat(u)]=h),t.properties&&t.properties.attributes&&(t.properties.attributes.localized="")}return t}if(t.children&&t.children.forEach((function(r,o){(a&&s&&r.text||!r.text&&Xr(r))&&e(r,n,t,p,t.children.length>1?o+1:o,i)})),t.text&&!t.properties&&"Widget"===t.type)return t;if(a&&s){if(t.text){var m,E=t.text,A=t.text;if(i.retranslate){var b=t.properties&&t.properties.attributes&&t.properties.attributes["i18next-orgval"];b||(b=r&&r.properties&&r.properties.attributes&&r.properties.attributes["i18next-orgval-".concat(u)]),b||(b=t.text),E=b,A=b}var C=Ae.options.ignoreCleanIndentFor.indexOf(r.tagName)>-1;if(!C&&(E=Zr(E,"\n"),Ae.options.cleanWhitespace)){var w=/^\s*(.*[^\s])\s*$/g;m=w.exec(E)}if(!C&&m&&m.length>1&&Ae.options.cleanWhitespace){var F=Wr(m[1],n,p||"");t.text=E.replace(m[1],F)}else t.text=Wr(E,n,p||"");l&&t.properties&&t.properties.attributes?A&&(t.properties.attributes["i18next-orgval"]=A):l&&r&&r.properties&&r.properties.attributes&&A&&(r.properties.attributes["i18next-orgval-".concat(u)]=A)}t.properties&&(t.properties=Gr(t,t.properties,n,p,l,i)),t.properties&&t.properties.attributes&&(t.properties.attributes.localized="")}return t}(e,null,null,null,null,{retranslate:t});return Ae.services.logger.log("localization took: ".concat(n.end(),"ms")),r}function to(e,t){var n={};return n.render=function(n){var r=function(e){var t=new Wn;t.start();var n=Tt(e);return Ae.services.logger.log("virtualization took: ".concat(t.end(),"ms")),n}(e),o=eo(Xn(r),n),u=en(r,o);u[0]&&t.reset(),e=Kn(e,u)},n.debouncedRender=Rr(n.render,200),n}var no={};var ro=Rr((function(){Ae.services.logger.log("missing resources: \n"+JSON.stringify(no,null,2))}),2e3);function oo(e,t,n,r){"string"==typeof e&&(e=[e]),e||(e=[]),e.forEach((function(e){Ur(no,[e,t,n],r),ro()})),Ae.services.backendConnector&&Ae.services.backendConnector.saveMissing&&Ae.services.backendConnector.saveMissing(e,t,n,r)}function uo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uo(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ao(){return{autorun:!0,ele:document.body,keyAttr:"i18next-key",ignoreWithoutKey:!1,ignoreTags:["SCRIPT"],ignoreIds:[],ignoreClasses:[],translateAttributes:["placeholder","title","alt","value#input.type=button","value#input.type=submit"],mergeTags:[],inlineTags:[],ignoreInlineOn:[],cleanIndent:!0,ignoreCleanIndentFor:["PRE","CODE"],cleanWhitespace:!0,nsSeparator:"#||#",keySeparator:"#|#",debug:window.location.search&&window.location.search.indexOf("debug=true")>-1,saveMissing:window.location.search&&window.location.search.indexOf("saveMissing=true")>-1,namespace:!1,namespaceFromPath:!1,missingKeyHandler:oo,ns:[],onInitialTranslate:function(){}}}var so=!1,lo=!1;Ct((function(){so=!0,lo||fo()})),Ae.use(Ue),Ae.use(it);var co={};var po=[];function fo(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function n(n){for(var r=0;r<n.length;r++){var o=n[r];if(t.ignoreTags.indexOf(o.tagName)<0&&t.ignoreIds.indexOf(o.id)<0&&t.ignoreClasses.indexOf(o.className)<0&&!o.attributes.localized&&!o.attributes.translated){var u=to(o,e);po.push(u),u.render()}}}function r(e,n,o){var u=!0;setTimeout((function(){for(var n=0;n<e.length;n++){var i=e[n];if(t.ignoreTags.indexOf(i.tagName)<0&&t.ignoreIds.indexOf(i.id)<0&&t.ignoreClasses.indexOf(i.className)<0&&!i.attributes.localized&&!i.attributes.translated){u&&r(e,100,o),u=!1;break}}u&&o()}),n)}t=io(io(io({},ao()),co),t),(t=zr(t)).ele||(delete t.ele,co=t),lo=!0;var o=1;function u(){if(!(o-=1)){t.ele||(t.ele=document.body);var u=t.ele.children;e=new vt(t.ele),n(u),e.on("changed",(function(e){po.forEach((function(e){return e.debouncedRender()})),n(u)})),r(u,0,(function(){t.ele.style&&"none"===t.ele.style.display&&(t.ele.style.display="block"),t.onInitialTranslate()}))}}if(so||o++,!1===t.autorun&&o++,Ae.init(t,u),so||Ct(u),!1===t.autorun)return{start:u}}var ho={init:fo,i18next:Ae,changeNamespace:function(e){!e&&co.namespaceFromPath&&(e=Hr()),co.ns.push(e),co.defaultNS=e,Ae.loadNamespaces(co.ns,(function(){Ae.setDefaultNamespace(e)}))},forceRerender:function(){po.forEach((function(e){e.render(!0)}))}},go=[],vo=go.forEach,yo=go.slice;function mo(e){return vo.call(yo.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}function Eo(e,t,n){var r;return function(){var o=this,u=arguments,i=function(){r=null,n||e.apply(o,u)},a=n&&!r;clearTimeout(r),r=setTimeout(i,t),a&&e.apply(o,u)}}function Ao(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(!e)return{};var u=r(o.shift());!e[u]&&n&&(e[u]=new n),e=e[u]}return e?{obj:e,k:r(o.shift())}:{}}function bo(e,t,n){var r=Ao(e,t,Object);r.obj[r.k]=n}function Co(e,t){var n=Ao(e,t),r=n.obj,o=n.k;if(r)return r[o]}var wo,Fo=new RegExp("{{(.+?)}}","g");function Oo(e,t,n){var r,o,u;for(;r=Fo.exec(e);)"string"!=typeof(o=r[1].trim())&&(o=null==(u=o)?"":""+u),o||(o=""),o=o.replace(/\$/g,"$$$$"),e=e.replace(r[0],t[o]||o),Fo.lastIndex=0;return e}function xo(e,t){return t.reduce((function(t,n){if(t)return t;if(!e||!e[n]||"string"!=typeof e[n]||!e[n].toLowerCase()===n.toLowerCase()){var r='i18next-locize-backend :: got "'.concat(e[n],'" in options for ').concat(n," which is invalid.");return console.warn(r),r}return!1}),!1)}function ko(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}if("function"==typeof fetch&&("undefined"!=typeof global&&global.fetch?wo=global.fetch:"undefined"!=typeof window&&window.fetch&&(wo=window.fetch)),"undefined"!=typeof require&&("undefined"==typeof window||void 0===window.document)){var Do=wo||require("cross-fetch");Do.default&&(Do=Do.default),exports.default=Do,module.exports=exports.default}var Bo,So,jo,No=Object.freeze({__proto__:null});function Po(e){return(Po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"function"==typeof fetch&&("undefined"!=typeof global&&global.fetch?Bo=global.fetch:"undefined"!=typeof window&&window.fetch&&(Bo=window.fetch)),"function"!=typeof XMLHttpRequest&&"object"!==("undefined"==typeof XMLHttpRequest?"undefined":Po(XMLHttpRequest))||("undefined"!=typeof global&&global.XMLHttpRequest?So=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(So=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?jo=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(jo=window.ActiveXObject)),Bo||!No||So||jo||(Bo=No),"function"!=typeof Bo&&(Bo=void 0);var Lo=function(e,t,n,r){return"function"==typeof n&&(r=n,n=void 0),r=r||function(){},Bo?function(e,t,n,r){var o={};e.authorize&&e.apiKey&&(o.Authorization=e.apiKey),(n||e.setContentTypeJSON)&&(o["Content-Type"]="application/json"),Bo(t,{method:n?"POST":"GET",body:n?JSON.stringify(n):void 0,headers:o}).then((function(e){var t=e.headers&&"Error from cloudfront"===e.headers.get("x-cache");if(!e.ok)return r(e.statusText||"Error",{status:e.status,resourceNotExisting:t});e.text().then((function(n){r(null,{status:e.status,data:n,resourceNotExisting:t})})).catch(r)})).catch(r)}(e,t,n,r):"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":Po(XMLHttpRequest))||"function"==typeof ActiveXObject?function(e,t,n,r){try{var o;(o=So?new So:new jo("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.authorize&&e.apiKey&&o.setRequestHeader("Authorization",e.apiKey),(n||e.setContentTypeJSON)&&o.setRequestHeader("Content-Type","application/json"),o.onreadystatechange=function(){var e="Error from cloudfront"===o.getResponseHeader("x-cache");o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText,resourceNotExisting:e})},o.send(JSON.stringify(n))}catch(e){console&&console.log(e)}}(e,t,n,r):void 0};function To(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ro(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Io,Mo=function(){return{loadPath:"https://api.locize.app/{{projectId}}/{{version}}/{{lng}}/{{ns}}",privatePath:"https://api.locize.app/private/{{projectId}}/{{version}}/{{lng}}/{{ns}}",getLanguagesPath:"https://api.locize.app/languages/{{projectId}}",addPath:"https://api.locize.app/missing/{{projectId}}/{{version}}/{{lng}}/{{ns}}",updatePath:"https://api.locize.app/update/{{projectId}}/{{version}}/{{lng}}/{{ns}}",referenceLng:"en",crossDomain:!0,setContentTypeJSON:!1,version:"latest",private:!1,translatedPercentageThreshold:.9,failLoadingOnEmptyJSON:!1,allowedAddOrUpdateHosts:["localhost"],onSaved:!1,reloadInterval:"undefined"==typeof window&&36e5,checkForProjectTimeout:3e3,storageExpiration:36e5,writeDebounce:5e3}};try{Io="undefined"!=typeof window&&null!==window.localStorage;var Uo="notExistingLocizeProject";window.localStorage.setItem(Uo,"foo"),window.localStorage.removeItem(Uo)}catch(e){Io=!1}function _o(e){var t=function(){},n=function(){};return Io?(t=function(e){window.localStorage.setItem("notExistingLocizeProject_".concat(e),Date.now())},n=function(t){var n=window.localStorage.getItem("notExistingLocizeProject_".concat(t));return!!n&&(!(Date.now()-n>e)||(window.localStorage.removeItem("notExistingLocizeProject_".concat(t)),!1))}):"undefined"!=typeof document&&(t=function(t){var n=new Date;n.setTime(n.getTime()+e);var r="; expires=".concat(n.toGMTString()),o="notExistingLocizeProject_".concat(t);try{document.cookie="".concat(o,"=").concat(Date.now()).concat(r,";path=/")}catch(e){}},n=function(e){var t="notExistingLocizeProject_".concat(e),n="".concat(t,"=");try{for(var r=document.cookie.split(";"),o=0;o<r.length;o++){for(var u=r[o];" "===u.charAt(0);)u=u.substring(1,u.length);if(0===u.indexOf(n))return!0}}catch(e){}return!1}),{setProjectNotExisting:t,isProjectNotExisting:n}}var Ho=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;To(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",t&&t.projectId?this.init(null,t,r,n):this.init(t,n,r,o)}var t,n,r;return t=e,(n=[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;this.services=e,this.options=mo(n,this.options||{},Mo()),this.allOptions=r,this.somethingLoaded=!1,this.isProjectNotExisting=!1,this.storage=_o(this.options.storageExpiration),this.options.pull&&console.warn('The pull API was removed use "private: true" option instead: https://docs.locize.com/integration/api#fetch-private-namespace-resources');var u="undefined"!=typeof window&&window.location&&window.location.hostname;u?(this.isAddOrUpdateAllowed="function"==typeof this.options.allowedAddOrUpdateHosts?this.options.allowedAddOrUpdateHosts(u):this.options.allowedAddOrUpdateHosts.indexOf(u)>-1,e&&e.logger&&(r.saveMissing||r.updateMissing)&&(this.isAddOrUpdateAllowed?"localhost"!==u&&e.logger.warn('locize-backend: you are using the save or update missings feature from this host "'.concat(u,'".\nMake sure you will not use it in production!\nhttps://docs.locize.com/guides-tips-and-tricks/going-production')):e.logger.warn("function"==typeof this.options.allowedAddOrUpdateHosts?'locize-backend: will not save or update missings because allowedAddOrUpdateHosts returned false for the host "'.concat(u,'".'):'locize-backend: will not save or update missings because the host "'.concat(u,'" was not in the list of allowedAddOrUpdateHosts: ').concat(this.options.allowedAddOrUpdateHosts.join(", ")," (matches need to be exact).")))):this.isAddOrUpdateAllowed=!0,"function"==typeof o&&this.getOptions((function(e,r,u){if(e)return o(e);t.options.referenceLng=n.referenceLng||r.referenceLng||t.options.referenceLng,o(null,r,u)})),this.queuedWrites={pending:{}},this.debouncedProcess=Eo(this.process,this.options.writeDebounce),this.interval&&clearInterval(this.interval),this.options.reloadInterval&&this.options.projectId&&(this.interval=setInterval((function(){return t.reload()}),this.options.reloadInterval))}},{key:"reload",value:function(){var e=this,t=this.services||{logger:console},n=t.backendConnector,r=t.languageUtils,o=t.logger;if(n){var u=n.language;if(!u||"cimode"!==u.toLowerCase()){var i=[],a=function(e){r.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};a(u),this.allOptions.preload&&this.allOptions.preload.forEach((function(e){return a(e)})),i.forEach((function(t){e.allOptions.ns.forEach((function(e){n.read(t,e,"read",null,null,(function(r,u){r&&o.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!r&&u&&o.log("loaded namespace ".concat(e," for language ").concat(t),u),n.loaded("".concat(t,"|").concat(e),r,u)}))}))}))}}}},{key:"getLanguages",value:function(e){var t,n=this;e||(t=ko(),e=function(e,n){if(e)return t.reject(e);t.resolve(n)});var r=xo(this.options,["projectId"]);if(r)return e(new Error(r));var o=Oo(this.options.getLanguagesPath,{projectId:this.options.projectId});return!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting?e(new Error("locize project ".concat(this.options.projectId," does not exist!"))):(this.getLanguagesCalls=this.getLanguagesCalls||[],this.getLanguagesCalls.push(e),this.getLanguagesCalls.length>1?void 0:(this.loadUrl({},o,(function(e,t,r){if(!n.somethingLoaded&&r&&r.resourceNotExisting){n.isProjectNotExisting=!0,n.storage.setProjectNotExisting(n.options.projectId);var o=new Error("locize project ".concat(n.options.projectId," does not exist!")),u=n.getLanguagesCalls;return n.getLanguagesCalls=[],u.forEach((function(e){return e(o)}))}if(t){var i=Object.keys(t).reduce((function(e,n){return t[n].isReferenceLanguage&&(e=n),e}),"");i&&n.options.referenceLng!==i&&(n.options.referenceLng=i)}n.somethingLoaded=!0;var a=n.getLanguagesCalls;n.getLanguagesCalls=[],a.forEach((function(n){return n(e,t)}))})),t))}},{key:"getOptions",value:function(e){var t,n=this;return e||(t=ko(),e=function(e,n){if(e)return t.reject(e);t.resolve(n)}),this.getLanguages((function(t,r){if(t)return e(t);var o=Object.keys(r);if(!o.length)return e(new Error("was unable to load languages via API"));var u=o.reduce((function(e,t){var o=r[t];return o.translated[n.options.version]&&o.translated[n.options.version]>=n.options.translatedPercentageThreshold&&e.push(t),e}),[]),i=o.reduce((function(e,t){return t.indexOf("-")>-1||e}),!1);e(null,{fallbackLng:n.options.referenceLng,referenceLng:n.options.referenceLng,supportedLngs:u,load:i?"all":"languageOnly"},r)})),t}},{key:"checkIfProjectExists",value:function(e){var t=this,n=(this.services||{logger:console}).logger;this.somethingLoaded?e&&e(null):this.alreadyRequestedCheckIfProjectExists?setTimeout((function(){return t.checkIfProjectExists(e)}),this.options.checkForProjectTimeout):(this.alreadyRequestedCheckIfProjectExists=!0,this.getLanguages((function(t){t&&t.message&&t.message.indexOf("does not exist")>0&&n&&n.error(t.message),e&&e(t)})))}},{key:"read",value:function(e,t,n){var r,o=this,u=(this.services||{logger:console}).logger,i={};if(this.options.private){var a=xo(this.options,["projectId","version","apiKey"]);if(a)return n(new Error(a),!1);r=Oo(this.options.privatePath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),i={authorize:!0}}else{var s=xo(this.options,["projectId","version"]);if(s)return n(new Error(s),!1);r=Oo(this.options.loadPath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version})}if(!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting){var l=new Error("locize project ".concat(this.options.projectId," does not exist!"));return u&&u.error(l.message),void(n&&n(l))}this.loadUrl(i,r,(function(e,t,r){o.somethingLoaded||(r&&r.resourceNotExisting?setTimeout((function(){return o.checkIfProjectExists()}),o.options.checkForProjectTimeout):o.somethingLoaded=!0),n(e,t)}))}},{key:"loadUrl",value:function(e,t,n,r){var o=this;e=mo(e,this.options),"function"==typeof n&&(r=n,n=void 0),r=r||function(){},Lo(e,t,n,(function(e,n){var u,i,a=n&&n.resourceNotExisting;if(n&&(408===n.status||400===n.status))return r("failed loading "+t,!0,{resourceNotExisting:a});if(n&&(n.status>=500&&n.status<600||!n.status))return r("failed loading "+t,!0,{resourceNotExisting:a});if(n&&n.status>=400&&n.status<500)return r("failed loading "+t,!1,{resourceNotExisting:a});if(!n&&e&&e.message&&e.message.indexOf("Failed to fetch")>-1)return r("failed loading "+t,!0,{resourceNotExisting:a});if(e)return r(e,!1);try{u=JSON.parse(n.data)}catch(e){i="failed parsing "+t+" to json"}return i?r(i,!1):o.options.failLoadingOnEmptyJSON&&!Object.keys(u).length?r("loaded result empty for "+t,!1,{resourceNotExisting:a}):void r(null,u,{resourceNotExisting:a})}))}},{key:"create",value:function(e,t,n,r,o,u){var i=this;o||(o=function(){}),this.checkIfProjectExists((function(a){if(a)return o(a);var s=xo(i.options,["projectId","version","apiKey","referenceLng"]);return s?o(new Error(s)):i.isAddOrUpdateAllowed?("string"==typeof e&&(e=[e]),e.filter((function(e){return e===i.options.referenceLng})).length<1&&i.services&&i.services.logger&&i.services.logger.warn('locize-backend: will not save missings because the reference language "'.concat(i.options.referenceLng,'" was not in the list of to save languages: ').concat(e.join(", ")," (open your site in the reference language to save missings).")),void e.forEach((function(e){e===i.options.referenceLng&&i.queue.call(i,i.options.referenceLng,t,n,r,o,u)}))):o("host is not allowed to create key.")}))}},{key:"update",value:function(e,t,n,r,o,u){var i=this;o||(o=function(){}),this.checkIfProjectExists((function(a){if(a)return o(a);var s=xo(i.options,["projectId","version","apiKey","referenceLng"]);return s?o(new Error(s)):i.isAddOrUpdateAllowed?(u||(u={}),"string"==typeof e&&(e=[e]),u.isUpdate=!0,void e.forEach((function(e){e===i.options.referenceLng&&i.queue.call(i,i.options.referenceLng,t,n,r,o,u)}))):o("host is not allowed to update key.")}))}},{key:"writePage",value:function(e,t,n,r){var o=Oo(this.options.addPath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),u=Oo(this.options.updatePath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),i=!1,a=!1,s={},l={};n.forEach((function(e){var t=e.options&&e.options.tDescription?{value:e.fallbackValue||"",context:{text:e.options.tDescription}}:e.fallbackValue||"";e.options&&e.options.isUpdate?(a||(a=!0),l[e.key]=t):(i||(i=!0),s[e.key]=t)}));var c=0;i&&c++,a&&c++;var p=function(e){--c||r(e)};c||p(),i&&Lo(mo({authorize:!0},this.options),o,s,p),a&&Lo(mo({authorize:!0},this.options),u,l,p)}},{key:"write",value:function(e,t){var n=this;if(!Co(this.queuedWrites,["locks",e,t])){var r=Co(this.queuedWrites,[e,t]);bo(this.queuedWrites,[e,t],[]);var o=r.filter((function(e){return e.callback})).map((function(e){return e.callback}));r.length&&function(){bo(n.queuedWrites,["locks",e,t],!0);var u=function(){bo(n.queuedWrites,["locks",e,t],!1),o.forEach((function(e){return e()})),n.options.onSaved&&n.options.onSaved(e,t),n.debouncedProcess(e,t)},i=r.length/1e3,a=0,s=r.splice(0,1e3);for(n.writePage(e,t,s,(function(){++a>=i&&u()}));1e3===s.length;)(s=r.splice(0,1e3)).length&&n.writePage(e,t,s,(function(){++a>=i&&u()}))}()}}},{key:"process",value:function(){var e=this;Object.keys(this.queuedWrites).forEach((function(t){"locks"!==t&&Object.keys(e.queuedWrites[t]).forEach((function(n){e.queuedWrites[t][n].length&&e.write(t,n)}))}))}},{key:"queue",value:function(e,t,n,r,o,u){!function(e,t,n,r){var o=Ao(e,t,Object),u=o.obj,i=o.k;u[i]=u[i]||[],r&&(u[i]=u[i].concat(n)),r||u[i].push(n)}(this.queuedWrites,[e,t],{key:n,fallbackValue:r||"",callback:o,options:u}),this.debouncedProcess()}}])&&Ro(t.prototype,n),r&&Ro(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function zo(e){return(zo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qo(e){var t={top:0,left:0,right:0,bottom:0},n=e&&e.ownerDocument,r=n&&n.documentElement;if(!r)return t;"undefined"!==zo(e.getBoundingClientRect)&&(t=e.getBoundingClientRect());var o=function(e){return null!=(t=e)&&t===t.window?e:9===e.nodeType&&e.defaultView;var t}(n),u=t.top+o.pageYOffset-r.clientTop,i=t.left+o.pageXOffset-r.clientLeft;return{top:u,left:i,right:i+(t.right-t.left),bottom:u+(t.bottom-t.top)}}function Vo(e,t){return e&&e.getAttribute&&e.getAttribute(t)}function Ko(e){var t;return function e(n){var r=Vo(n,"i18next-options");if(r||(r=Vo(n,"data-i18next-options")),r||(r=Vo(n,"i18n-options")),r||(r=Vo(n,"data-i18n-options")),r){var o={};try{o=JSON.parse(r)}catch(e){}o.ns&&(t=o.ns)}t||(t=Vo(n,"i18next-ns")),t||(t=Vo(n,"data-i18next-ns")),t||(t=Vo(n,"i18n-ns")),t||(t=Vo(n,"data-i18n-ns")),!t&&n.parentElement&&e(n.parentElement)}(e),t}function Xo(e){return function(t){var n=function(e){if(e.srcElement&&1===e.srcElement.nodeType&&("BUTTON"===e.srcElement.nodeName||"INPUT"===e.srcElement.nodeName))return e.srcElement.getAttribute&&""===e.srcElement.getAttribute("ignorelocizeeditor")?null:e.srcElement;var t;if(e.originalEvent&&e.originalEvent.explicitOriginalTarget)t=e.originalEvent.explicitOriginalTarget;else{var n=e.srcElement;if(n.getAttribute&&""===n.getAttribute("ignorelocizeeditor"))return null;for(var r,o=e.pageX,u=e.pageY,i=0,a=0;a<n.childNodes.length;a++){var s=n.childNodes[a],l=qo(s);1===s.nodeType&&l.bottom<u&&(i=a+1),!r&&l.top+(s.clientHeight||0)>u&&(r=a)}i+1>n.childNodes.length&&(i=n.childNodes.length-1),r||(r=n.childNodes.length);for(var c=i;c<r;c++){var p=n.childNodes[c];if(qo(p).left>o)break;p&&8!==p.nodeType&&(t=p)}}return t}(t);if(!n)return{};t.preventDefault(),t.stopPropagation();var r=function(e){var t=e.textContent||e.text&&e.text.innerText||e.placeholder;if("string"==typeof t)return t.replace(/\n +/g,"").trim()}(n),o=function e(t){var n=Vo(t,"data-i18n");return n||(t.nodeType===window.Node.TEXT_NODE&&t.parentElement?e(t.parentElement):void 0)}(n),u=n.getBoundingClientRect?n:n.parentElement,i=u.getBoundingClientRect(),a=i.top,s=i.left,l=i.width,c=i.height,p=window.getComputedStyle(u,null),f=parseFloat(p.getPropertyValue("padding-top")),d=parseFloat(p.getPropertyValue("padding-bottom")),h=parseFloat(p.getPropertyValue("padding-right")),g=parseFloat(p.getPropertyValue("padding-left")),v=p.getPropertyValue("box-sizing");e({tagName:u.tagName,text:r,key:o,ns:Ko(n),box:{top:a,left:s,width:"border-box"===v?l:l-h-g,height:"border-box"===v?c:c-f-d},style:p.cssText})}}Ho.type="backend";var Wo,Jo,$o,Go,Yo,Zo,Qo=!0;try{Qo=self!==top}catch(e){}var eu=[];var tu={type:"3rdParty",init:function(e){Yo=function(t){t.updated.forEach((function(t){var n=t.lng,r=t.ns,o=t.key,u=t.data;e.addResource(n,r,o,u.value,{silent:!0}),e.emit("editorSaved")}))},Qo&&(e.options.missingKeyHandler=function(e,t,n,r,o,u){o||function(e,t,n,r){var o={message:"added",lng:e,ns:t,key:n,value:r};Wo?Wo.postMessage(o,Jo):eu.push(o)}(e,t,n,r)})}};"undefined"!=typeof window&&window.addEventListener("message",(function(e){if("isLocizeEnabled"===e.data.message)Wo||(Wo=e.source,Jo=e.origin,$o=Xo((function(e){Wo.postMessage({message:"clickedElement",payload:e},Jo)}))),Wo.postMessage({message:"locizeIsEnabled",enabled:!0},e.origin),eu.forEach((function(t){Wo.postMessage(t,e.origin)})),eu=[];else if("turnOn"===e.data.message){if(Zo)return Wo.postMessage({message:"forcedOff"},Jo);Go||window.document.body.addEventListener("click",$o,!0),Go=!0,Wo.postMessage({message:"turnedOn"},Jo)}else if("turnOff"===e.data.message){if(Zo)return Wo.postMessage({message:"forcedOff"},Jo);Go&&window.document.body.removeEventListener("click",$o,!0),Go=!1,Wo.postMessage({message:"turnedOff"},Jo)}else if("committed"===e.data.message){var t=e.data.payload;window.locizeSavedHandler&&window.locizeSavedHandler(t),Yo&&Yo(t)}}));var{i18next:nu}=ho,ru={saveMissingTo:"all"},ou={reloadOnSave:!0,bindSavedMissing:!0};nu.use(Ho).use(tu),nu.on("editorSaved",()=>{ho.forceRerender()});var uu=nu.init;return nu.init=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;e=n(n({},ou),e);var r=document.getElementById("locizify");if(r){var o={},u={},i=["fallbackLng","saveMissing","debug","autorun","ele","cleanIndent","cleanWhitespace","namespace","namespaceFromPath","load"],a=["ignoreTags","ignoreIds","ignoreClasses","translateAttributes","mergeTags","inlineTags","ignoreInlineOn","ignoreCleanIndentFor","ns"],s=["projectId","apiKey","referenceLng","version","allowedAddOrUpdateHost"];i.forEach(e=>{var t=r.getAttribute(e.toLowerCase());"true"===t&&(t=!0),"false"===t&&(t=!1),null!=t&&(o[e]=t)}),a.forEach(e=>{var t=r.getAttribute(e.toLowerCase());null!=t&&(o[e]=t.split(",").map(e=>e.trim()))}),s.forEach(e=>{var t=r.getAttribute(e.toLowerCase());"true"===t&&(t=!0),"false"===t&&(t=!1),null!=t&&(u[e]=t)}),u.allowedAddOrUpdateHost&&(u.allowedAddOrUpdateHosts=[u.allowedAddOrUpdateHost],delete u.allowedAddOrUpdateHost),(e=n(n(n({},ou),e),o)).backend=n(n({},e.backend),u)}function l(e,n){t(e,n)}if(!e.backend.autoPilot||"false"===e.backend.autoPilot)return uu.call(nu,n(n({},e),ru),l);var c=new Ho(e.backend);c.getOptions((t,r)=>{t&&"object"==typeof console&&"function"==typeof console.error&&console.error(t),uu.call(nu,n(n(n({},r),e),ru),l)})},ho.getLanguages=function(e){if(nu.services.backendConnector)nu.services.backendConnector.backend.getLanguages(e);else{nu.on("initialized",(function t(){nu.off("initialized",t),nu.services.backendConnector.backend.getLanguages(e)}))}},ho.getOptions=function(e){if(nu.services.backendConnector)nu.services.backendConnector.backend.getOptions(e);else{nu.on("initialized",(function t(){nu.off("initialized",t),nu.services.backendConnector.backend.getOptions(e)}))}},ho.editor={turnOn:function(){return Zo=!1,Go||window.document.body.addEventListener("click",$o,!0),Go=!0,Wo&&Wo.postMessage({message:"turnedOn"},Jo),Zo},turnOff:function(){return Zo=!0,Go&&window.document.body.removeEventListener("click",$o,!0),Go=!1,Wo&&Wo.postMessage({message:"turnedOff"},Jo),Wo&&Wo.postMessage({message:"forcedOff"},Jo),Zo}},ho}));
|
|
25
|
+
e.exports=t;var n=e.exports.properties=["accept","accessKey","action","alt","async","autoComplete","autoPlay","cellPadding","cellSpacing","checked","className","colSpan","content","contentEditable","controls","crossOrigin","data","defer","dir","download","draggable","encType","formNoValidate","href","hrefLang","htmlFor","httpEquiv","icon","id","label","lang","list","loop","max","mediaGroup","method","min","multiple","muted","name","noValidate","pattern","placeholder","poster","preload","radioGroup","readOnly","rel","required","rowSpan","sandbox","scope","scrollLeft","scrolling","scrollTop","selected","span","spellCheck","src","srcDoc","srcSet","start","step","style","tabIndex","target","title","type","value","autoCapitalize","autoCorrect","property","attributes"],r=e.exports.attrBlacklist={class:"className"}})),Rt=(Tt.properties,Tt.attrBlacklist,Array.isArray),It=Object.prototype.toString,Mt=Rt||function(e){return"[object Array]"===It.call(e)};_t.NONE=0,_t.VTEXT=1,_t.VNODE=2,_t.WIDGET=3,_t.PROPS=4,_t.ORDER=5,_t.INSERT=6,_t.REMOVE=7,_t.THUNK=8;var Ut=_t;function _t(e,t,n){this.type=Number(e),this.vNode=t,this.patch=n}_t.prototype.version="2",_t.prototype.type="VirtualPatch";var Ht=function(e){return e&&"VirtualText"===e.type&&"2"===e.version};var zt=function(e,t){var n=e,r=t;Ot(t)&&(r=qt(t,e));Ot(e)&&(n=qt(e,null));return{a:n,b:r}};function qt(e,t){var n=e.vnode;if(n||(n=e.vnode=e.render(t)),!(wt(n)||Ht(n)||Ft(n)))throw new Error("thunk did not return a valid node");return n}var Vt=function(e){return"object"==typeof e&&null!==e},Kt=function e(t,n){var r;for(var o in t){o in n||((r=r||{})[o]=void 0);var u=t[o],i=n[o];if(u!==i)if(Vt(u)&&Vt(i))if(Xt(i)!==Xt(u))(r=r||{})[o]=i;else if(xt(i))(r=r||{})[o]=i;else{var a=e(u,i);a&&((r=r||{})[o]=a)}else(r=r||{})[o]=i}for(var s in n)s in t||((r=r||{})[s]=n[s]);return r};function Xt(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}function Wt(e,t){var n={a:e};return Jt(e,t,n,0),n}function Jt(e,t,n,r){if(e!==t){var o=n[r],u=!1;if(Ot(e)||Ot(t))Gt(e,t,n,r);else if(null==t)Ft(e)||($t(e,n,r),o=n[r]),o=Qt(o,new Ut(Ut.REMOVE,e,t));else if(wt(t))if(wt(e))if(e.tagName===t.tagName&&e.namespace===t.namespace&&e.key===t.key){var i=Kt(e.properties,t.properties);i&&(o=Qt(o,new Ut(Ut.PROPS,e,i))),o=function(e,t,n,r,o){for(var u=e.children,i=function(e,t){var n=Zt(t),r=n.keys,o=n.free;if(o.length===t.length)return{children:t,moves:null};var u=Zt(e),i=u.keys;if(u.free.length===e.length)return{children:t,moves:null};for(var a=[],s=0,l=o.length,c=0,p=0;p<e.length;p++){var f,d=e[p];d.key?r.hasOwnProperty(d.key)?(f=r[d.key],a.push(t[f])):(f=p-c++,a.push(null)):s<l?(f=o[s++],a.push(t[f])):(f=p-c++,a.push(null))}for(var h=s>=o.length?t.length:o[s],g=0;g<t.length;g++){var v=t[g];v.key?i.hasOwnProperty(v.key)||a.push(v):g>=h&&a.push(v)}for(var y,m=a.slice(),E=0,A=[],b=[],C=0;C<t.length;){var w=t[C];for(y=m[E];null===y&&m.length;)A.push(Yt(m,E,null)),y=m[E];y&&y.key===w.key?(E++,C++):w.key?(y&&y.key&&r[y.key]!==C+1?(A.push(Yt(m,E,y.key)),(y=m[E])&&y.key===w.key?E++:b.push({key:w.key,to:C})):b.push({key:w.key,to:C}),C++):y&&y.key&&A.push(Yt(m,E,y.key))}for(;E<m.length;)y=m[E],A.push(Yt(m,E,y&&y.key));if(A.length===c&&!b.length)return{children:a,moves:null};return{children:a,moves:{removes:A,inserts:b}}}(u,t.children),a=i.children,s=u.length,l=a.length,c=s>l?s:l,p=0;p<c;p++){var f=u[p],d=a[p];o+=1,f?Jt(f,d,n,o):d&&(r=Qt(r,new Ut(Ut.INSERT,null,d))),wt(f)&&f.count&&(o+=f.count)}i.moves&&(r=Qt(r,new Ut(Ut.ORDER,e,i.moves)));return r}(e,t,n,o,r)}else o=Qt(o,new Ut(Ut.VNODE,e,t)),u=!0;else o=Qt(o,new Ut(Ut.VNODE,e,t)),u=!0;else Ht(t)?Ht(e)?e.text!==t.text&&(o=Qt(o,new Ut(Ut.VTEXT,e,t))):(o=Qt(o,new Ut(Ut.VTEXT,e,t)),u=!0):Ft(t)&&(Ft(e)||(u=!0),o=Qt(o,new Ut(Ut.WIDGET,e,t)));o&&(n[r]=o),u&&$t(e,n,r)}}function $t(e,t,n){!function e(t,n,r){if(wt(t)){if(t.hooks&&(n[r]=Qt(n[r],new Ut(Ut.PROPS,t,function(e){var t={};for(var n in e)t[n]=void 0;return t}(t.hooks)))),t.descendantHooks||t.hasThunks)for(var o=t.children,u=o.length,i=0;i<u;i++){var a=o[i];e(a,n,r+=1),wt(a)&&a.count&&(r+=a.count)}}else Ot(t)&&Gt(t,null,n,r)}(e,t,n),function e(t,n,r){if(Ft(t))"function"==typeof t.destroy&&(n[r]=Qt(n[r],new Ut(Ut.REMOVE,t,null)));else if(wt(t)&&(t.hasWidgets||t.hasThunks))for(var o=t.children,u=o.length,i=0;i<u;i++){var a=o[i];e(a,n,r+=1),wt(a)&&a.count&&(r+=a.count)}else Ot(t)&&Gt(t,null,n,r)}(e,t,n)}function Gt(e,t,n,r){var o=zt(e,t),u=Wt(o.a,o.b);(function(e){for(var t in e)if("a"!==t)return!0;return!1})(u)&&(n[r]=new Ut(Ut.THUNK,null,u))}function Yt(e,t,n){return e.splice(t,1),{from:t,key:n}}function Zt(e){for(var t={},n=[],r=e.length,o=0;o<r;o++){var u=e[o];u.key?t[u.key]=o:n.push(o)}return{keys:t,free:n}}function Qt(e,t){return e?(Mt(e)?e.push(t):e=[e,t],e):t}var en=Wt,tn=Array.prototype.slice,nn=function(e,t){"length"in e||(e=[e]);e=tn.call(e);for(;e.length;){var n=e.shift(),r=t(n);if(r)return r;n.childNodes&&n.childNodes.length&&(e=tn.call(n.childNodes).concat(e))}};var rn=on;function on(e,t){if(!(this instanceof on))return new on(e,t);this.data=e,this.nodeValue=e,this.length=e.length,this.ownerDocument=t||null}on.prototype.nodeType=8,on.prototype.nodeName="#comment",on.prototype.toString=function(){return"[object Comment]"};var un=an;function an(e,t){if(!(this instanceof an))return new an(e);this.data=e||"",this.length=this.data.length,this.ownerDocument=t||null}an.prototype.type="DOMTextNode",an.prototype.nodeType=3,an.prototype.nodeName="#text",an.prototype.toString=function(){return this.data},an.prototype.replaceData=function(e,t,n){var r=this.data,o=r.substring(0,e),u=r.substring(e+t,r.length);this.data=o+n+u,this.length=this.data.length};var sn=function(e){var t=this,n=e.type;e.target||(e.target=t);t.listeners||(t.listeners={});var r=t.listeners[n];if(r)return r.forEach((function(n){e.currentTarget=t,"function"==typeof n?n(e):n.handleEvent(e)}));t.parentNode&&t.parentNode.dispatchEvent(e)};var ln=function(e,t){this.listeners||(this.listeners={});this.listeners[e]||(this.listeners[e]=[]);-1===this.listeners[e].indexOf(t)&&this.listeners[e].push(t)};var cn=function(e,t){if(!this.listeners)return;if(!this.listeners[e])return;var n=this.listeners[e],r=n.indexOf(t);-1!==r&&n.splice(r,1)};var pn=dn,fn=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function dn(e){switch(e.nodeType){case 3:return vn(e.data);case 8:return"\x3c!--"+e.data+"--\x3e";default:return function(e){var t=[],n=e.tagName;"http://www.w3.org/1999/xhtml"===e.namespaceURI&&(n=n.toLowerCase());t.push("<"+n+function(e){var t=[];for(var n in e)hn(e,n)&&t.push({name:n,value:e[n]});for(var r in e._attributes)for(var o in e._attributes[r]){var u=e._attributes[r][o],i=(u.prefix?u.prefix+":":"")+o;t.push({name:i,value:u.value})}e.className&&t.push({name:"class",value:e.className});return t.length?gn(t):""}(e)+function(e){var t=e.dataset,n=[];for(var r in t)n.push({name:"data-"+r,value:t[r]});return n.length?gn(n):""}(e)),fn.indexOf(n)>-1?t.push(" />"):(t.push(">"),e.childNodes.length?t.push.apply(t,e.childNodes.map(dn)):e.textContent||e.innerText?t.push(vn(e.textContent||e.innerText)):e.innerHTML&&t.push(e.innerHTML),t.push("</"+n+">"));return t.join("")}(e)}}function hn(e,t){var n=typeof e[t];return"style"===t&&Object.keys(e.style).length>0||e.hasOwnProperty(t)&&("string"===n||"boolean"===n||"number"===n)&&"nodeName"!==t&&"className"!==t&&"tagName"!==t&&"textContent"!==t&&"innerText"!==t&&"namespaceURI"!==t&&"innerHTML"!==t}function gn(e){var t=[];return e.forEach((function(e){var n=e.name,r=e.value;"style"===n&&(r=function(e){if("string"==typeof e)return e;var t="";return Object.keys(e).forEach((function(n){var r=e[n];n=n.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})),t+=n+":"+r+";"})),t}(r)),t.push(n+'="'+(vn(r).replace(/"/g,""")+'"'))})),t.length?" "+t.join(" "):""}function vn(e){var t="";return"string"==typeof e?t=e:e&&(t=e.toString()),t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}var yn="http://www.w3.org/1999/xhtml",mn=En;function En(e,t,n){if(!(this instanceof En))return new En(e);var r=void 0===n?yn:n||null;this.tagName=r===yn?String(e).toUpperCase():e,this.nodeName=this.tagName,this.className="",this.dataset={},this.childNodes=[],this.parentNode=null,this.style={},this.ownerDocument=t||null,this.namespaceURI=r,this._attributes={},"INPUT"===this.tagName&&(this.type="text")}En.prototype.type="DOMElement",En.prototype.nodeType=1,En.prototype.appendChild=function(e){return e.parentNode&&e.parentNode.removeChild(e),this.childNodes.push(e),e.parentNode=this,e},En.prototype.replaceChild=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var n=this.childNodes.indexOf(t);return t.parentNode=null,this.childNodes[n]=e,e.parentNode=this,t},En.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);return this.childNodes.splice(t,1),e.parentNode=null,e},En.prototype.insertBefore=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var n=null==t?-1:this.childNodes.indexOf(t);return n>-1?this.childNodes.splice(n,0,e):this.childNodes.push(e),e.parentNode=this,e},En.prototype.setAttributeNS=function(e,t,n){var r=null,o=t,u=t.indexOf(":");(u>-1&&(r=t.substr(0,u),o=t.substr(u+1)),"INPUT"===this.tagName&&"type"===t)?this.type=n:(this._attributes[e]||(this._attributes[e]={}))[o]={value:n,prefix:r}},En.prototype.getAttributeNS=function(e,t){var n=this._attributes[e],r=n&&n[t]&&n[t].value;return"INPUT"===this.tagName&&"type"===t?this.type:"string"!=typeof r?null:r},En.prototype.removeAttributeNS=function(e,t){var n=this._attributes[e];n&&delete n[t]},En.prototype.hasAttributeNS=function(e,t){var n=this._attributes[e];return!!n&&t in n},En.prototype.setAttribute=function(e,t){return this.setAttributeNS(null,e,t)},En.prototype.getAttribute=function(e){return this.getAttributeNS(null,e)},En.prototype.removeAttribute=function(e){return this.removeAttributeNS(null,e)},En.prototype.hasAttribute=function(e){return this.hasAttributeNS(null,e)},En.prototype.removeEventListener=cn,En.prototype.addEventListener=ln,En.prototype.dispatchEvent=sn,En.prototype.focus=function(){},En.prototype.toString=function(){return pn(this)},En.prototype.getElementsByClassName=function(e){var t=e.split(" "),n=[];return nn(this,(function(e){if(1===e.nodeType){var r=(e.className||"").split(" ");t.every((function(e){return-1!==r.indexOf(e)}))&&n.push(e)}})),n},En.prototype.getElementsByTagName=function(e){e=e.toLowerCase();var t=[];return nn(this.childNodes,(function(n){1!==n.nodeType||"*"!==e&&n.tagName.toLowerCase()!==e||t.push(n)})),t},En.prototype.contains=function(e){return nn(this,(function(t){return e===t}))||!1};var An=bn;function bn(e){if(!(this instanceof bn))return new bn;this.childNodes=[],this.parentNode=null,this.ownerDocument=e||null}bn.prototype.type="DocumentFragment",bn.prototype.nodeType=11,bn.prototype.nodeName="#document-fragment",bn.prototype.appendChild=mn.prototype.appendChild,bn.prototype.replaceChild=mn.prototype.replaceChild,bn.prototype.removeChild=mn.prototype.removeChild,bn.prototype.toString=function(){return this.childNodes.map((function(e){return String(e)})).join("")};var Cn=wn;function wn(e){}wn.prototype.initEvent=function(e,t,n){this.type=e,this.bubbles=t,this.cancelable=n},wn.prototype.preventDefault=function(){};var Fn=On;function On(){if(!(this instanceof On))return new On;this.head=this.createElement("head"),this.body=this.createElement("body"),this.documentElement=this.createElement("html"),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body),this.childNodes=[this.documentElement],this.nodeType=9}var xn=On.prototype;xn.createTextNode=function(e){return new un(e,this)},xn.createElementNS=function(e,t){var n=null===e?null:String(e);return new mn(t,this,n)},xn.createElement=function(e){return new mn(e,this)},xn.createDocumentFragment=function(){return new An(this)},xn.createEvent=function(e){return new Cn(e)},xn.createComment=function(e){return new rn(e,this)},xn.getElementById=function(e){return e=String(e),nn(this.childNodes,(function(t){if(String(t.id)===e)return t}))||null},xn.getElementsByClassName=mn.prototype.getElementsByClassName,xn.getElementsByTagName=mn.prototype.getElementsByTagName,xn.contains=mn.prototype.contains,xn.removeEventListener=cn,xn.addEventListener=ln,xn.dispatchEvent=sn;var kn,Dn=new Fn,Bn=void 0!==r?r:"undefined"!=typeof window?window:{};"undefined"!=typeof document?kn=document:(kn=Bn["__GLOBAL_DOCUMENT_CACHE@4"])||(kn=Bn["__GLOBAL_DOCUMENT_CACHE@4"]=Dn);var Sn=kn,jn=function(e,t,n){for(var r in t){var o=t[r];void 0===o?Nn(e,r,o,n):xt(o)?(Nn(e,r,o,n),o.hook&&o.hook(e,r,n?n[r]:void 0)):Vt(o)?Pn(e,t,n,r,o):e[r]=o}};function Nn(e,t,n,r){if(r){var o=r[t];if(xt(o))o.unhook&&o.unhook(e,t,n);else if("attributes"===t)for(var u in o)e.removeAttribute(u);else if("style"===t)for(var i in o)e.style[i]="";else e[t]="string"==typeof o?"":null}}function Pn(e,t,n,r,o){var u=n?n[r]:void 0;if("attributes"!==r)if(u&&Vt(u)&&Ln(u)!==Ln(o))e[r]=o;else{Vt(e[r])||(e[r]={});var i="style"===r?"":void 0;for(var a in o){var s=o[a];e[r][a]=void 0===s?i:s}}else for(var l in o){var c=o[l];void 0===c?e.removeAttribute(l):e.setAttribute(l,c)}}function Ln(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}var Tn=function e(t,n){var r=n&&n.document||Sn,o=n?n.warn:null;if(t=zt(t).a,Ft(t))return t.init();if(Ht(t))return r.createTextNode(t.text);if(!wt(t))return o&&o("Item is not a valid virtual dom node",t),null;var u=null===t.namespace?r.createElement(t.tagName):r.createElementNS(t.namespace,t.tagName),i=t.properties;jn(u,i);for(var a=t.children,s=0;s<a.length;s++){var l=e(a[s],n);l&&u.appendChild(l)}return u};var Rn={},In=function(e,t,n,r){return n&&0!==n.length?(n.sort(Un),function e(t,n,r,o,u){if(o=o||{},t){Mn(r,u,u)&&(o[u]=t);var i=n.children;if(i)for(var a=t.childNodes,s=0;s<n.children.length;s++){u+=1;var l=i[s]||Rn,c=u+(l.count||0);Mn(r,u,c)&&e(a[s],l,r,o,u),u=c}}return o}(e,t,n,r,0)):{}};function Mn(e,t,n){if(0===e.length)return!1;for(var r,o,u=0,i=e.length-1;u<=i;){if(o=e[r=(i+u)/2>>0],u===i)return o>=t&&o<=n;if(o<t)u=r+1;else{if(!(o>n))return!0;i=r-1}}return!1}function Un(e,t){return e>t?1:-1}var _n=function(e,t){if(Ft(e)&&Ft(t))return"name"in e&&"name"in t?e.id===t.id:e.init===t.init;return!1};var Hn=function(e,t,n){var r=e.type,o=e.vNode,u=e.patch;switch(r){case Ut.REMOVE:return function(e,t){var n=e.parentNode;n&&n.removeChild(e);return zn(e,t),null}(t,o);case Ut.INSERT:return function(e,t,n){var r=n.render(t,n);e&&e.appendChild(r);return e}(t,u,n);case Ut.VTEXT:return function(e,t,n,r){var o;if(3===e.nodeType)e.replaceData(0,e.length,n.text),o=e;else{var u=e.parentNode;o=r.render(n,r),u&&o!==e&&u.replaceChild(o,e)}return o}(t,0,u,n);case Ut.WIDGET:return function(e,t,n,r){var o,u=_n(t,n);o=u?n.update(t,e)||e:r.render(n,r);var i=e.parentNode;i&&o!==e&&i.replaceChild(o,e);u||zn(e,t);return o}(t,o,u,n);case Ut.VNODE:return function(e,t,n,r){var o=e.parentNode,u=r.render(n,r);o&&u!==e&&o.replaceChild(u,e);return u}(t,0,u,n);case Ut.ORDER:return function(e,t){for(var n,r,o,u=e.childNodes,i={},a=0;a<t.removes.length;a++)r=t.removes[a],n=u[r.from],r.key&&(i[r.key]=n),e.removeChild(n);for(var s=u.length,l=0;l<t.inserts.length;l++)o=t.inserts[l],n=i[o.key],e.insertBefore(n,o.to>=s++?null:u[o.to])}(t,u),t;case Ut.PROPS:return jn(t,u,o.properties),t;case Ut.THUNK:return function(e,t){e&&t&&e!==t&&e.parentNode&&e.parentNode.replaceChild(t,e);return t}(t,n.patch(t,u,n));default:return t}};function zn(e,t){"function"==typeof t.destroy&&Ft(t)&&t.destroy(e)}function qn(e,t,n){var r=function(e){var t=[];for(var n in e)"a"!==n&&t.push(Number(n));return t}(t);if(0===r.length)return e;var o=In(e,t.a,r),u=e.ownerDocument;n.document||u===Sn||(n.document=u);for(var i=0;i<r.length;i++){var a=r[i];e=Vn(e,o[a],t[a],n)}return e}function Vn(e,t,n,r){if(!t)return e;var o;if(Mt(n))for(var u=0;u<n.length;u++)o=Hn(n[u],t,r),t===e&&(e=o);else o=Hn(n,t,r),t===e&&(e=o);return e}var Kn=function e(t,n,r){return(r=r||{}).patch=r.patch&&r.patch!==e?r.patch:qn,r.render=r.render||Tn,r.patch(t,n,r)},Xn=u((function(e,t){e.exports=function(){var e=o((function(e){return e})),t=u(o((function(e){var t=e.length;return new e.constructor(t)})),["BYTES_PER_ELEMENT","get","set","slice","subarray","buffer","length","byteOffset","byteLength"]);function n(e){return"[object "+e+"]"}var r={};function o(e){return function(t,n,r){n.push(t);var o=e(t);return r.push(o),o}}function u(e,t){return function(n,r,o){var u=this;return Object.getOwnPropertyNames(n).filter((function(e){return!t||-1===t.indexOf(e)})).reduce((function(e,t){var i=r.indexOf(n[t]);return e[t]=-1===i?u(n[t]):o[i],e}),e(n,r,o))}}return r[n("RegExp")]=o((function(e){return new RegExp(e)})),r[n("Date")]=o((function(e){return new Date(e.getTime())})),r[n("Function")]=u(o((function(e){return n=function(e){for(var t=[],n=1;n<=e;n++)t.push("arg"+n);return t}((t=e).length),r="return false || function ",r+=t.name+"(",r+=n.join(", ")+") {\n",r+="return fn.apply(this, arguments);\n",r+="};",Function("fn",r)(t);var t,n,r})),["caller","arguments"]),r[n("Object")]=u(o((function(e){return Object.create(Object.getPrototypeOf(e))}))),r[n("Array")]=u(o((function(e){return[]}))),["Null","Undefined","Number","String","Boolean"].map(n).forEach((function(t){r[t]=e})),["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].map(n).forEach((function(e){r[e]=t})),function(e){var t=[],n=[];return function e(o){var u=Object.prototype.toString.call(o);return r[u].call(e,o,t,n)}(e)}}()})),Wn=function(){function e(){at(this,e)}return st(e,[{key:"start",value:function(){this.started=(new Date).getTime()}},{key:"end",value:function(){return this.ended=(new Date).getTime(),this.ended-this.started}}]),e}(),Jn=/["'&<>]/,$n=function(e){var t,n=""+e,r=Jn.exec(n);if(!r)return n;var o="",u=0,i=0;for(u=r.index;u<n.length;u++){switch(n.charCodeAt(u)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}i!==u&&(o+=n.substring(i,u)),i=u+1,o+=t}return i!==u?o+n.substring(i,u):o};var Gn=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)Yn.call(n,r)&&(e[r]=n[r])}return e},Yn=Object.prototype.hasOwnProperty;var Zn=Qn;function Qn(e){if(!(this instanceof Qn))return new Qn(e);this.value=e}Qn.prototype.hook=function(e,t){e[t]!==this.value&&(e[t]=this.value)};var er=tr;function tr(e,t){if(!(this instanceof tr))return new tr(e,t);this.namespace=e,this.value=t}tr.prototype.hook=function(e,t,n){n&&"AttributeHook"===n.type&&n.value===this.value&&n.namespace===this.namespace||e.setAttributeNS(this.namespace,t,this.value)},tr.prototype.unhook=function(e,t,n){if(!n||"AttributeHook"!==n.type||n.namespace!==this.namespace){var r=t.indexOf(":"),o=r>-1?t.substr(r+1):t;e.removeAttributeNS(this.namespace,o)}},tr.prototype.type="AttributeHook";var nr,rr,or={tr:{regexp:/\u0130|\u0049|\u0049\u0307/g,map:{"İ":"i",I:"ı","İ":"i"}},az:{regexp:/[\u0130]/g,map:{"İ":"i",I:"ı","İ":"i"}},lt:{regexp:/[\u0049\u004A\u012E\u00CC\u00CD\u0128]/g,map:{I:"i̇",J:"j̇","Į":"į̇","Ì":"i̇̀","Í":"i̇́","Ĩ":"i̇̃"}}},ur=/[^\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]+/g,ir=/([\u0061-\u007A\u00B5\u00DF-\u00F6\u00F8-\u00FF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0561-\u0587\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7FA\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A])([\u0041-\u005A\u00C0-\u00D6\u00D8-\u00DE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA\uFF21-\uFF3A\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])/g,ar=/([\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])([^\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])/g,sr=function(e,t,n){if(null==e)return"";return n=n||" ",function(e,t){var n=or[t];return e=null==e?"":String(e),n&&(e=e.replace(n.regexp,(function(e){return n.map[e]}))),e.toLowerCase()}(e=String(e).replace(ir,"$1 $2").replace(ar,"$1 $2").replace(ur,(function(e,t,r){return 0===t||t===r.length-e.length?"":n})),t)},lr=function(e,t){return sr(e,t,"-")},cr={BOOLEAN:1,OVERLOADED_BOOLEAN:2},pr={attributeTypes:cr,properties:{accept:!0,acceptCharset:!0,accessKey:!0,action:!0,allowFullScreen:cr.BOOLEAN,allowTransparency:!0,alt:!0,async:cr.BOOLEAN,autocomplete:!0,autofocus:cr.BOOLEAN,autoplay:cr.BOOLEAN,cellPadding:!0,cellSpacing:!0,charset:!0,checked:cr.BOOLEAN,classID:!0,className:!0,cols:!0,colSpan:!0,content:!0,contentEditable:!0,contextMenu:!0,controls:cr.BOOLEAN,coords:!0,crossOrigin:!0,data:!0,dateTime:!0,defer:cr.BOOLEAN,dir:!0,disabled:cr.BOOLEAN,download:cr.OVERLOADED_BOOLEAN,draggable:!0,enctype:!0,form:!0,formAction:!0,formEncType:!0,formMethod:!0,formNoValidate:cr.BOOLEAN,formTarget:!0,frameBorder:!0,headers:!0,height:!0,hidden:cr.BOOLEAN,href:!0,hreflang:!0,htmlFor:!0,httpEquiv:!0,icon:!0,id:!0,label:!0,lang:!0,list:!0,loop:cr.BOOLEAN,manifest:!0,marginHeight:!0,marginWidth:!0,max:!0,maxLength:!0,media:!0,mediaGroup:!0,method:!0,min:!0,multiple:cr.BOOLEAN,muted:cr.BOOLEAN,name:!0,noValidate:cr.BOOLEAN,open:!0,pattern:!0,placeholder:!0,poster:!0,preload:!0,radiogroup:!0,readOnly:cr.BOOLEAN,rel:!0,required:cr.BOOLEAN,role:!0,rows:!0,rowSpan:!0,sandbox:!0,scope:!0,scrolling:!0,seamless:cr.BOOLEAN,selected:cr.BOOLEAN,shape:!0,size:!0,sizes:!0,span:!0,spellcheck:!0,src:!0,srcdoc:!0,srcset:!0,start:!0,step:!0,style:!0,tabIndex:!0,target:!0,title:!0,type:!0,useMap:!0,value:!0,width:!0,wmode:!0,autocapitalize:!0,autocorrect:!0,itemProp:!0,itemScope:cr.BOOLEAN,itemType:!0,property:!0},attributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"}},fr=pr.attributeTypes,dr=pr.properties,hr=pr.attributeNames,gr=(nr=function(e){return $n(e)+'="'},rr={},function(e){return rr.hasOwnProperty(e)?rr[e]:rr[e]=nr.call(this,e)}),vr=function(e,t,n){if(dr.hasOwnProperty(e)){if(function(e,t){var n=dr[e];return null==t||n===fr.BOOLEAN&&!t||n===fr.OVERLOADED_BOOLEAN&&!1===t}(e,t))return"";e=(hr[e]||e).toLowerCase();var r=dr[e];return r===fr.BOOLEAN||r===fr.OVERLOADED_BOOLEAN&&!0===t?$n(e):gr(e)+$n(t)+'"'}if(n)return null==t?"":gr(e)+$n(t)+'"';return null};var yr={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},mr=Er;function Er(e,t){return e?(Ot(e)&&(e=e.render()),Ft(e)&&e.render&&(e=e.render()),wt(e)?function(e){var t=e.properties,n="<"+e.tagName.toLowerCase();for(var r in t){var o=t[r];if(null!=o)if("attributes"!=r)if("dataset"!=r){if("style"==r){var u="";for(var i in o=Gn({},o))u+=lr(i)+": "+o[i]+"; ";o=u.trim()}if(o instanceof Zn||o instanceof er)n+=" "+vr(r,o.value,!0);else{var a=vr(r,o);a&&(n+=" "+a)}}else for(var s in o=Gn({},o))n+=" "+vr("data-"+lr(s),o[s],!0);else for(var l in o=Gn({},o))n+=" "+vr(l,o[l],!0)}return n+">"}(e)+function(e){var t=e.properties.innerHTML;if(null!=t)return t;var n="";if(e.children&&e.children.length)for(var r=0,o=e.children.length;r<o;r++){var u=e.children[r];n+=Er(u,e)}return n}(e)+function(e){var t=e.tagName.toLowerCase();return yr[t]?"":"</"+t+">"}(e):Ht(e)?!t||"script"!==t.tagName.toLowerCase()&&"style"!==t.tagName.toLowerCase()?$n(String(e.text)):String(e.text):""):""}var Ar,br={abbr:"abbr",accept:"accept","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",alt:"alt",async:"async",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charset",checked:"checked",cite:"cite",class:"className",cols:"cols",colspan:"colSpan",command:"command",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",coords:"coords",crossorigin:"crossOrigin",data:"data",datetime:"dateTime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",dropzone:"dropzone",enctype:"encType",for:"htmlFor",form:"form",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameBorder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang","http-equiv":"httpEquiv",icon:"icon",id:"id",inputmode:"inputMode",ismap:"isMap",itemid:"itemId",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",manifest:"manifest",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",ping:"ping",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radioGroup",readonly:"readOnly",rel:"rel",required:"required",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",sortable:"sortable",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srcset:"srcSet",start:"start",step:"step",style:"style",tabindex:"tabIndex",target:"target",title:"title",translate:"translate",type:"type",typemustmatch:"typeMustMatch",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},Cr="http://www.w3.org/1999/xlink",wr="http://www.w3.org/XML/1998/namespace",Fr={about:null,"accent-height":null,accumulate:null,additive:null,"alignment-baseline":null,alphabetic:null,amplitude:null,"arabic-form":null,ascent:null,attributeName:null,attributeType:null,azimuth:null,bandwidth:null,baseFrequency:null,baseProfile:null,"baseline-shift":null,bbox:null,begin:null,bias:null,by:null,calcMode:null,"cap-height":null,class:null,clip:null,"clip-path":null,"clip-rule":null,clipPathUnits:null,color:null,"color-interpolation":null,"color-interpolation-filters":null,"color-profile":null,"color-rendering":null,content:null,contentScriptType:null,contentStyleType:null,cursor:null,cx:null,cy:null,d:null,datatype:null,defaultAction:null,descent:null,diffuseConstant:null,direction:null,display:null,divisor:null,"dominant-baseline":null,dur:null,dx:null,dy:null,edgeMode:null,editable:null,elevation:null,"enable-background":null,end:null,"ev:event":"http://www.w3.org/2001/xml-events",event:null,exponent:null,externalResourcesRequired:null,fill:null,"fill-opacity":null,"fill-rule":null,filter:null,filterRes:null,filterUnits:null,"flood-color":null,"flood-opacity":null,focusHighlight:null,focusable:null,"font-family":null,"font-size":null,"font-size-adjust":null,"font-stretch":null,"font-style":null,"font-variant":null,"font-weight":null,format:null,from:null,fx:null,fy:null,g1:null,g2:null,"glyph-name":null,"glyph-orientation-horizontal":null,"glyph-orientation-vertical":null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:null,height:null,"horiz-adv-x":null,"horiz-origin-x":null,"horiz-origin-y":null,id:null,ideographic:null,"image-rendering":null,in:null,in2:null,initialVisibility:null,intercept:null,k:null,k1:null,k2:null,k3:null,k4:null,kernelMatrix:null,kernelUnitLength:null,kerning:null,keyPoints:null,keySplines:null,keyTimes:null,lang:null,lengthAdjust:null,"letter-spacing":null,"lighting-color":null,limitingConeAngle:null,local:null,"marker-end":null,"marker-mid":null,"marker-start":null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:null,mediaTime:null,method:null,min:null,mode:null,name:null,"nav-down":null,"nav-down-left":null,"nav-down-right":null,"nav-left":null,"nav-next":null,"nav-prev":null,"nav-right":null,"nav-up":null,"nav-up-left":null,"nav-up-right":null,numOctaves:null,observer:null,offset:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,"overline-position":null,"overline-thickness":null,"panose-1":null,path:null,pathLength:null,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,playbackOrder:null,"pointer-events":null,points:null,pointsAtX:null,pointsAtY:null,pointsAtZ:null,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:null,r:null,radius:null,refX:null,refY:null,rel:null,"rendering-intent":null,repeatCount:null,repeatDur:null,requiredExtensions:null,requiredFeatures:null,requiredFonts:null,requiredFormats:null,resource:null,restart:null,result:null,rev:null,role:null,rotate:null,rx:null,ry:null,scale:null,seed:null,"shape-rendering":null,slope:null,snapshotTime:null,spacing:null,specularConstant:null,specularExponent:null,spreadMethod:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,"stop-color":null,"stop-opacity":null,"strikethrough-position":null,"strikethrough-thickness":null,string:null,stroke:null,"stroke-dasharray":null,"stroke-dashoffset":null,"stroke-linecap":null,"stroke-linejoin":null,"stroke-miterlimit":null,"stroke-opacity":null,"stroke-width":null,surfaceScale:null,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:null,tableValues:null,target:null,targetX:null,targetY:null,"text-anchor":null,"text-decoration":null,"text-rendering":null,textLength:null,timelineBegin:null,title:null,to:null,transform:null,transformBehavior:null,type:null,typeof:null,u1:null,u2:null,"underline-position":null,"underline-thickness":null,unicode:null,"unicode-bidi":null,"unicode-range":null,"units-per-em":null,"v-alphabetic":null,"v-hanging":null,"v-ideographic":null,"v-mathematical":null,values:null,version:null,"vert-adv-y":null,"vert-origin-x":null,"vert-origin-y":null,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,"word-spacing":null,"writing-mode":null,x:null,"x-height":null,x1:null,x2:null,xChannelSelector:null,"xlink:actuate":Cr,"xlink:arcrole":Cr,"xlink:href":Cr,"xlink:role":Cr,"xlink:show":Cr,"xlink:title":Cr,"xlink:type":Cr,"xml:base":wr,"xml:id":wr,"xml:lang":wr,"xml:space":wr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},Or=function(e,t){if(!e)return xr(document.createTextNode(""));if("string"==typeof e){if(!("DOMParser"in window))throw new Error("DOMParser is not available, so parsing string to DOM node is not possible.");var n=(Ar=Ar||new DOMParser).parseFromString(e,"text/html");e=n.body.firstChild?n.getElementsByTagName("body")[0].firstChild:n.head.firstChild&&("TITLE"!==n.head.firstChild.tagName||n.title)?n.head.firstChild:n.firstChild&&"HTML"!==n.firstChild.tagName?n.firstChild:document.createTextNode("")}if("object"!=typeof e||!e||!e.nodeType)throw new Error("invalid dom node",e);return xr(e,t)};function xr(e,t){return 3===e.nodeType?function(e){return new jt(e.nodeValue)}(e):1===e.nodeType||9===e.nodeType?function(e,t){var n="http://www.w3.org/1999/xhtml"!==e.namespaceURI?e.namespaceURI:null,r=t&&e.getAttribute(t)?e.getAttribute(t):null;return new kt(e.tagName,function(e){var t,n,r={};if(!e.hasAttributes())return r;e.namespaceURI&&"http://www.w3.org/1999/xhtml"!==e.namespaceURI&&(t=e.namespaceURI);for(var o=0;o<e.attributes.length;o++)(n="style"==e.attributes[o].name?Br(e):t?Dr(e.attributes[o]):kr(e.attributes[o])).ns?r[n.name]={namespace:n.ns,value:n.value}:n.isAttr?(r.attributes||(r.attributes={}),r.attributes[n.name]=n.value):r[n.name]=n.value;return r}(e),function(e,t){for(var n=[],r=0;r<e.childNodes.length;r++)n.push(xr(e.childNodes[r],t));return n}(e,t),r,n)}(e,t):new jt("")}function kr(e){var t,n,r;return 0===(t=br[e.name]?br[e.name]:e.name).indexOf("data-")||0===t.indexOf("aria-")?(n=e.value,r=!0):n=e.value,{name:t,value:n,isAttr:r||!1}}function Dr(e){return{name:e.name,value:e.value,ns:Fr[e.name]||""}}function Br(e){for(var t=e.style,n={},r=0;r<t.length;++r){var o=t.item(r);n[o]=String(t[o]),n[o].indexOf("url")>-1&&(n[o]=n[o].replace(/\"/g,""))}return{name:"style",value:n}}var Sr=u((function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports}));o(Sr);var jr=u((function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,u=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(u.push(r.value),!t||u.length!==t);i=!0);}catch(e){a=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return u}},e.exports.__esModule=!0,e.exports.default=e.exports}));o(jr);var Nr=u((function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports}));o(Nr);var Pr=u((function(e){e.exports=function(e,t){if(e){if("string"==typeof e)return Nr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nr(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}));o(Pr);var Lr=u((function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}));o(Lr);var Tr=o(u((function(e){e.exports=function(e,t){return Sr(e)||jr(e,t)||Pr(e,t)||Lr()},e.exports.__esModule=!0,e.exports.default=e.exports})));function Rr(e,t,n){var r;return function(){var o=this,u=arguments,i=function(){r=null,n||e.apply(o,u)},a=n&&!r;clearTimeout(r),r=setTimeout(i,t),a&&e.apply(o,u)}}function Ir(e,t){return e.properties&&e.properties.attributes&&e.properties.attributes[t]}function Mr(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var u="string"!=typeof t?[].concat(t):t.split(".");u.length>1;){if(o())return{};var i=r(u.shift());!e[i]&&n&&(e[i]=new n),e=e[i]}return o()?{}:{obj:e,k:r(u.shift())}}function Ur(e,t,n){var r=Mr(e,t,Object);r.obj[r.k]=n}function _r(e,t){var n=Mr(e,t),r=n.obj,o=n.k;if(r)return r[o]}function Hr(){var e=location.pathname;if("/"===e)return"root";var t=e.split("/"),n="root";return t.forEach((function(e){e&&(n+="_".concat(e))})),n}var zr=function(e){if(e.namespace)e.ns.push(e.namespace),e.defaultNS=e.namespace;else if(e.namespaceFromPath){var t=Hr();e.ns.push(t),e.defaultNS=t}return e.ns.length||(e.ns=["translation"]),e.ignoreTags&&(e.ignoreTags=e.ignoreTags.map((function(e){return e.toUpperCase()}))),e.ignoreCleanIndentFor&&(e.ignoreCleanIndentFor=e.ignoreCleanIndentFor.map((function(e){return e.toUpperCase()}))),e.inlineTags&&(e.inlineTags=e.inlineTags.map((function(e){return e.toUpperCase()}))),e.ignoreInlineOn&&(e.ignoreInlineOn=e.ignoreInlineOn.map((function(e){return e.toUpperCase()}))),e.mergeTags&&(e.mergeTags=e.mergeTags.map((function(e){return e.toUpperCase()}))),e.translateAttributes=e.translateAttributes.reduce((function(e,t){var n={attr:t};if(t.indexOf("#")>-1){var r=t.split("#"),o=Tr(r,2),u=o[0],i=o[1];if(n.attr=u,i.indexOf(".")>-1){var a=i.split("."),s=Tr(a,2),l=s[0],c=s[1];n.ele=l.toUpperCase(),n.cond=c.toLowerCase().split("=")}else i.indexOf("=")>-1?n.cond=i.toLowerCase().split("="):n.ele=i.toUpperCase()}return e.push(n),e}),[]),e};function qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{retranslate:!1};return!(!t||!t.retranslate)||(!e.properties||!e.properties.attributes||""!==e.properties.attributes.localized)}function Xr(e){var t=!e.properties||!e.properties.attributes||""!==e.properties.attributes.translated;(t&&e.tagName&&Ae.options.ignoreTags.indexOf(e.tagName)>-1&&(t=!1),t&&Ae.options.ignoreClasses&&e.properties&&e.properties.className)&&e.properties.className.split(" ").forEach((function(e){t&&Ae.options.ignoreClasses.indexOf(e)>-1&&(t=!1)}));return t&&Ae.options.ignoreIds&&Ae.options.ignoreIds.indexOf(e.properties&&e.properties.id)>-1&&(t=!1),t}function Wr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.trim(),o=n||e.trim();return t.defaultValue||(t.defaultValue=e),r&&!Ae.options.ignoreWithoutKey||r&&Ae.options.ignoreWithoutKey&&n?Ae.t(o,t):e}var Jr=["src","href"],$r=new RegExp("%7B%7B(.+?)%7D%7D","g");function Gr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,u=arguments.length>5?arguments[5]:void 0;return t?(Ae.options.translateAttributes.forEach((function(i){if(!i.ele||e.tagName===i.ele){if(i.cond&&2===i.cond.length){var a=_r(t,i.cond[0])||_r(t.attributes,i.cond[0]);if(!a||a!==i.cond[1])return}var s=!1,l=_r(t,i.attr);if(l||(l=_r(t.attributes,i.attr))&&(s=!0),u.retranslate){var c=e.properties&&e.properties&&e.properties.attributes["".concat(i.attr,"-i18next-orgval")];c||(c=l),l=c}l&&(o&&(e.properties.attributes["".concat(i.attr,"-i18next-orgval")]=l),Ur(s?t.attributes:t,i.attr,Wr(l,Vr({},n),r?"".concat(r,".").concat(i.attr):"")))}})),Jr.forEach((function(e){var o=_r(t,e);if(o&&(o=o.replace(/\{\{/g,"%7B%7B").replace(/\}\}/g,"%7D%7D")),o&&o.indexOf("%7B")>-1){var u=[];o.split($r).reduce((function(t,o,u){if(0===o.length)return t;if(u&&u%2!=0){var i=Wr(o,Vr({},n),r?"".concat(r,".").concat(e):"");i&&0==i.indexOf("http")&&t[u-1]&&0===t[u-1].indexOf("http")&&t.splice(u-1,1),t.push(i)}else t.push(o);return t}),u),u.length&&Ur(t,e,u.join(""))}})),t):t}function Yr(e,t){var n=Ir(t,"i18next-options");if(n)try{n=JSON.parse(n)}catch(e){console.warn("failed parsing options on node",t)}return n&&n.inlineTags&&(n.inlineTags=n.inlineTags.map((function(e){return e.toUpperCase()}))),Vr(Vr({},e||{}),n||{})}function Zr(e,t){return Ae.options.cleanIndent?e.replace(/\n +/g,t):e}function Qr(e,t){if(!e.children||!e.children.length||Ae.options.ignoreInlineOn.indexOf(e.tagName)>-1)return!1;if(Ae.options.mergeTags.indexOf(e.tagName)>-1)return!0;var n=t.inlineTags||Ae.options.inlineTags,r=t.additionalInlineTags?n.concat(t.additionalInlineTags):n,o=!0,u=!1;return e.children.forEach((function(e){!e.text&&e.tagName&&r.indexOf(e.tagName.toUpperCase())<0&&(o=!1),e.tagName&&(u=!0)})),o&&u}function eo(e,t){var n=new Wn;n.start();var r=function e(t,n,r,o){var u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0,a=Xr(t),s=Kr(t,i),l=Kr(t);n=Yr(n,t);var c=0===u?o:"";u>0&&o&&!Ae.options.ignoreWithoutKey&&(c="".concat(o,".").concat(u));var p=Ir(t,Ae.options.keyAttr)||c,f=Ir(t,"merge");if("false"!==f&&(""===f||Qr(t,n))){if(a&&s){var d=new kt("I18NEXTIFYDUMMY",null,t.children),h=Zr(mr(d),"").replace("<i18nextifydummy>","").replace("</i18nextifydummy>","");if(i.retranslate){var g=t.properties&&t.properties.attributes&&t.properties.attributes["i18next-orgval"];g||(g=r&&r.properties&&r.properties.attributes&&r.properties.attributes["i18next-orgval-".concat(u)]),g||(g=h),h=g}var v="<i18nextifydummy>".concat(Wr(h,n,p),"</i18nextifydummy>"),y=Or((v||"").trim());t.children=y.children,l&&t.properties&&t.properties.attributes?t.properties.attributes["i18next-orgval"]=h:l&&r&&r.properties&&r.properties.attributes&&(r.properties.attributes["i18next-orgval-".concat(u)]=h),t.properties&&t.properties.attributes&&(t.properties.attributes.localized="")}return t}if(t.children&&t.children.forEach((function(r,o){(a&&s&&r.text||!r.text&&Xr(r))&&e(r,n,t,p,t.children.length>1?o+1:o,i)})),t.text&&!t.properties&&"Widget"===t.type)return t;if(a&&s){if(t.text){var m,E=t.text,A=t.text;if(i.retranslate){var b=t.properties&&t.properties.attributes&&t.properties.attributes["i18next-orgval"];b||(b=r&&r.properties&&r.properties.attributes&&r.properties.attributes["i18next-orgval-".concat(u)]),b||(b=t.text),E=b,A=b}var C=Ae.options.ignoreCleanIndentFor.indexOf(r.tagName)>-1;if(!C&&(E=Zr(E,"\n"),Ae.options.cleanWhitespace)){var w=/^\s*(.*[^\s])\s*$/g;m=w.exec(E)}if(!C&&m&&m.length>1&&Ae.options.cleanWhitespace){var F=Wr(m[1],n,p||"");t.text=E.replace(m[1],F)}else t.text=Wr(E,n,p||"");l&&t.properties&&t.properties.attributes?A&&(t.properties.attributes["i18next-orgval"]=A):l&&r&&r.properties&&r.properties.attributes&&A&&(r.properties.attributes["i18next-orgval-".concat(u)]=A)}t.properties&&(t.properties=Gr(t,t.properties,n,p,l,i)),t.properties&&t.properties.attributes&&(t.properties.attributes.localized="")}return t}(e,null,null,null,null,{retranslate:t});return Ae.services.logger.log("localization took: ".concat(n.end(),"ms")),r}function to(e,t){var n={};return n.render=function(n){var r=function(e){var t=new Wn;t.start();var n=Tt(e);return Ae.services.logger.log("virtualization took: ".concat(t.end(),"ms")),n}(e),o=eo(Xn(r),n),u=en(r,o);u[0]&&t.reset(),e=Kn(e,u)},n.debouncedRender=Rr(n.render,200),n}var no={};var ro=Rr((function(){Ae.services.logger.log("missing resources: \n"+JSON.stringify(no,null,2))}),2e3);function oo(e,t,n,r){"string"==typeof e&&(e=[e]),e||(e=[]),e.forEach((function(e){Ur(no,[e,t,n],r),ro()})),Ae.services.backendConnector&&Ae.services.backendConnector.saveMissing&&Ae.services.backendConnector.saveMissing(e,t,n,r)}function uo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uo(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ao(){return{autorun:!0,ele:document.body,keyAttr:"i18next-key",ignoreWithoutKey:!1,ignoreTags:["SCRIPT"],ignoreIds:[],ignoreClasses:[],translateAttributes:["placeholder","title","alt","value#input.type=button","value#input.type=submit"],mergeTags:[],inlineTags:[],ignoreInlineOn:[],cleanIndent:!0,ignoreCleanIndentFor:["PRE","CODE"],cleanWhitespace:!0,nsSeparator:"#||#",keySeparator:"#|#",debug:window.location.search&&window.location.search.indexOf("debug=true")>-1,saveMissing:window.location.search&&window.location.search.indexOf("saveMissing=true")>-1,namespace:!1,namespaceFromPath:!1,missingKeyHandler:oo,ns:[],onInitialTranslate:function(){}}}var so=!1,lo=!1;Ct((function(){so=!0,lo||fo()})),Ae.use(Ue),Ae.use(it);var co={};var po=[];function fo(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function n(n){for(var r=0;r<n.length;r++){var o=n[r];if(t.ignoreTags.indexOf(o.tagName)<0&&t.ignoreIds.indexOf(o.id)<0&&t.ignoreClasses.indexOf(o.className)<0&&!o.attributes.localized&&!o.attributes.translated){var u=to(o,e);po.push(u),u.render()}}}function r(e,n,o){var u=!0;setTimeout((function(){for(var n=0;n<e.length;n++){var i=e[n];if(t.ignoreTags.indexOf(i.tagName)<0&&t.ignoreIds.indexOf(i.id)<0&&t.ignoreClasses.indexOf(i.className)<0&&!i.attributes.localized&&!i.attributes.translated){u&&r(e,100,o),u=!1;break}}u&&o()}),n)}t=io(io(io({},ao()),co),t),(t=zr(t)).ele||(delete t.ele,co=t),lo=!0;var o=1;function u(){if(!(o-=1)){t.ele||(t.ele=document.body);var u=t.ele.children;e=new vt(t.ele),n(u),e.on("changed",(function(e){po.forEach((function(e){return e.debouncedRender()})),n(u)})),r(u,0,(function(){t.ele.style&&"none"===t.ele.style.display&&(t.ele.style.display="block"),t.onInitialTranslate()}))}}if(so||o++,!1===t.autorun&&o++,Ae.init(t,u),so||Ct(u),!1===t.autorun)return{start:u}}var ho={init:fo,i18next:Ae,changeNamespace:function(e){!e&&co.namespaceFromPath&&(e=Hr()),co.ns.push(e),co.defaultNS=e,Ae.loadNamespaces(co.ns,(function(){Ae.setDefaultNamespace(e)}))},forceRerender:function(){po.forEach((function(e){e.render(!0)}))}},go=[],vo=go.forEach,yo=go.slice;function mo(e){return vo.call(yo.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}function Eo(e,t,n){var r;return function(){var o=this,u=arguments,i=function(){r=null,n||e.apply(o,u)},a=n&&!r;clearTimeout(r),r=setTimeout(i,t),a&&e.apply(o,u)}}function Ao(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(!e)return{};var u=r(o.shift());!e[u]&&n&&(e[u]=new n),e=e[u]}return e?{obj:e,k:r(o.shift())}:{}}function bo(e,t,n){var r=Ao(e,t,Object);r.obj[r.k]=n}function Co(e,t){var n=Ao(e,t),r=n.obj,o=n.k;if(r)return r[o]}var wo,Fo=new RegExp("{{(.+?)}}","g");function Oo(e,t,n){var r,o,u;for(;r=Fo.exec(e);)"string"!=typeof(o=r[1].trim())&&(o=null==(u=o)?"":""+u),o||(o=""),o=o.replace(/\$/g,"$$$$"),e=e.replace(r[0],t[o]||o),Fo.lastIndex=0;return e}function xo(e,t){return t.reduce((function(t,n){if(t)return t;if(!e||!e[n]||"string"!=typeof e[n]||!e[n].toLowerCase()===n.toLowerCase()){var r='i18next-locize-backend :: got "'.concat(e[n],'" in options for ').concat(n," which is invalid.");return console.warn(r),r}return!1}),!1)}function ko(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}if("function"==typeof fetch&&("undefined"!=typeof global&&global.fetch?wo=global.fetch:"undefined"!=typeof window&&window.fetch&&(wo=window.fetch)),"undefined"!=typeof require&&("undefined"==typeof window||void 0===window.document)){var Do=wo||require("cross-fetch");Do.default&&(Do=Do.default),exports.default=Do,module.exports=exports.default}var Bo,So,jo,No=Object.freeze({__proto__:null});function Po(e){return(Po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"function"==typeof fetch&&("undefined"!=typeof global&&global.fetch?Bo=global.fetch:"undefined"!=typeof window&&window.fetch&&(Bo=window.fetch)),"function"!=typeof XMLHttpRequest&&"object"!==("undefined"==typeof XMLHttpRequest?"undefined":Po(XMLHttpRequest))||("undefined"!=typeof global&&global.XMLHttpRequest?So=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(So=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?jo=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(jo=window.ActiveXObject)),Bo||!No||So||jo||(Bo=No),"function"!=typeof Bo&&(Bo=void 0);var Lo=function(e,t,n,r){return"function"==typeof n&&(r=n,n=void 0),r=r||function(){},Bo?function(e,t,n,r){var o={};e.authorize&&e.apiKey&&(o.Authorization=e.apiKey),(n||e.setContentTypeJSON)&&(o["Content-Type"]="application/json"),Bo(t,{method:n?"POST":"GET",body:n?JSON.stringify(n):void 0,headers:o}).then((function(e){var t=e.headers&&"Error from cloudfront"===e.headers.get("x-cache");if(!e.ok)return r(e.statusText||"Error",{status:e.status,resourceNotExisting:t});e.text().then((function(n){r(null,{status:e.status,data:n,resourceNotExisting:t})})).catch(r)})).catch(r)}(e,t,n,r):"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":Po(XMLHttpRequest))||"function"==typeof ActiveXObject?function(e,t,n,r){try{var o;(o=So?new So:new jo("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.authorize&&e.apiKey&&o.setRequestHeader("Authorization",e.apiKey),(n||e.setContentTypeJSON)&&o.setRequestHeader("Content-Type","application/json"),o.onreadystatechange=function(){var e="Error from cloudfront"===o.getResponseHeader("x-cache");o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText,resourceNotExisting:e})},o.send(JSON.stringify(n))}catch(e){console&&console.log(e)}}(e,t,n,r):void 0};function To(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ro(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Io,Mo=function(){return{loadPath:"https://api.locize.app/{{projectId}}/{{version}}/{{lng}}/{{ns}}",privatePath:"https://api.locize.app/private/{{projectId}}/{{version}}/{{lng}}/{{ns}}",getLanguagesPath:"https://api.locize.app/languages/{{projectId}}",addPath:"https://api.locize.app/missing/{{projectId}}/{{version}}/{{lng}}/{{ns}}",updatePath:"https://api.locize.app/update/{{projectId}}/{{version}}/{{lng}}/{{ns}}",referenceLng:"en",crossDomain:!0,setContentTypeJSON:!1,version:"latest",private:!1,translatedPercentageThreshold:.9,failLoadingOnEmptyJSON:!1,allowedAddOrUpdateHosts:["localhost"],onSaved:!1,reloadInterval:"undefined"==typeof window&&36e5,checkForProjectTimeout:3e3,storageExpiration:36e5,writeDebounce:5e3}};try{Io="undefined"!=typeof window&&null!==window.localStorage;var Uo="notExistingLocizeProject";window.localStorage.setItem(Uo,"foo"),window.localStorage.removeItem(Uo)}catch(e){Io=!1}function _o(e){var t=function(){},n=function(){};return Io?(t=function(e){window.localStorage.setItem("notExistingLocizeProject_".concat(e),Date.now())},n=function(t){var n=window.localStorage.getItem("notExistingLocizeProject_".concat(t));return!!n&&(!(Date.now()-n>e)||(window.localStorage.removeItem("notExistingLocizeProject_".concat(t)),!1))}):"undefined"!=typeof document&&(t=function(t){var n=new Date;n.setTime(n.getTime()+e);var r="; expires=".concat(n.toGMTString()),o="notExistingLocizeProject_".concat(t);try{document.cookie="".concat(o,"=").concat(Date.now()).concat(r,";path=/")}catch(e){}},n=function(e){var t="notExistingLocizeProject_".concat(e),n="".concat(t,"=");try{for(var r=document.cookie.split(";"),o=0;o<r.length;o++){for(var u=r[o];" "===u.charAt(0);)u=u.substring(1,u.length);if(0===u.indexOf(n))return!0}}catch(e){}return!1}),{setProjectNotExisting:t,isProjectNotExisting:n}}var Ho=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;To(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",t&&t.projectId?this.init(null,t,r,n):this.init(t,n,r,o)}var t,n,r;return t=e,(n=[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;!n.referenceLng&&r.fallbackLng&&Array.isArray(r.fallbackLng)&&"dev"!==r.fallbackLng[0]&&(n.referenceLng=r.fallbackLng[0]),this.services=e,this.options=mo(n,this.options||{},Mo()),this.allOptions=r,this.somethingLoaded=!1,this.isProjectNotExisting=!1,this.storage=_o(this.options.storageExpiration),this.options.pull&&console.warn('The pull API was removed use "private: true" option instead: https://docs.locize.com/integration/api#fetch-private-namespace-resources');var u="undefined"!=typeof window&&window.location&&window.location.hostname;u?(this.isAddOrUpdateAllowed="function"==typeof this.options.allowedAddOrUpdateHosts?this.options.allowedAddOrUpdateHosts(u):this.options.allowedAddOrUpdateHosts.indexOf(u)>-1,e&&e.logger&&(r.saveMissing||r.updateMissing)&&(this.isAddOrUpdateAllowed?"localhost"!==u&&e.logger.warn('locize-backend: you are using the save or update missings feature from this host "'.concat(u,'".\nMake sure you will not use it in production!\nhttps://docs.locize.com/guides-tips-and-tricks/going-production')):e.logger.warn("function"==typeof this.options.allowedAddOrUpdateHosts?'locize-backend: will not save or update missings because allowedAddOrUpdateHosts returned false for the host "'.concat(u,'".'):'locize-backend: will not save or update missings because the host "'.concat(u,'" was not in the list of allowedAddOrUpdateHosts: ').concat(this.options.allowedAddOrUpdateHosts.join(", ")," (matches need to be exact).")))):this.isAddOrUpdateAllowed=!0,"function"==typeof o&&this.getOptions((function(e,r,u){if(e)return o(e);t.options.referenceLng=n.referenceLng||r.referenceLng||t.options.referenceLng,o(null,r,u)})),this.queuedWrites={pending:{}},this.debouncedProcess=Eo(this.process,this.options.writeDebounce),this.interval&&clearInterval(this.interval),this.options.reloadInterval&&this.options.projectId&&(this.interval=setInterval((function(){return t.reload()}),this.options.reloadInterval))}},{key:"reload",value:function(){var e=this,t=this.services||{logger:console},n=t.backendConnector,r=t.languageUtils,o=t.logger;if(n){var u=n.language;if(!u||"cimode"!==u.toLowerCase()){var i=[],a=function(e){r.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};a(u),this.allOptions.preload&&this.allOptions.preload.forEach((function(e){return a(e)})),i.forEach((function(t){e.allOptions.ns.forEach((function(e){n.read(t,e,"read",null,null,(function(r,u){r&&o.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!r&&u&&o.log("loaded namespace ".concat(e," for language ").concat(t),u),n.loaded("".concat(t,"|").concat(e),r,u)}))}))}))}}}},{key:"getLanguages",value:function(e){var t,n=this;e||(t=ko(),e=function(e,n){if(e)return t.reject(e);t.resolve(n)});var r=xo(this.options,["projectId"]);if(r)return e(new Error(r));var o=Oo(this.options.getLanguagesPath,{projectId:this.options.projectId});return!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting?e(new Error("locize project ".concat(this.options.projectId," does not exist!"))):(this.getLanguagesCalls=this.getLanguagesCalls||[],this.getLanguagesCalls.push(e),this.getLanguagesCalls.length>1?void 0:(this.loadUrl({},o,(function(e,t,r){if(!n.somethingLoaded&&r&&r.resourceNotExisting){n.isProjectNotExisting=!0,n.storage.setProjectNotExisting(n.options.projectId);var o=new Error("locize project ".concat(n.options.projectId," does not exist!")),u=n.getLanguagesCalls;return n.getLanguagesCalls=[],u.forEach((function(e){return e(o)}))}if(t){var i=Object.keys(t).reduce((function(e,n){return t[n].isReferenceLanguage&&(e=n),e}),"");i&&n.options.referenceLng!==i&&(n.options.referenceLng=i)}n.somethingLoaded=!0;var a=n.getLanguagesCalls;n.getLanguagesCalls=[],a.forEach((function(n){return n(e,t)}))})),t))}},{key:"getOptions",value:function(e){var t,n=this;return e||(t=ko(),e=function(e,n){if(e)return t.reject(e);t.resolve(n)}),this.getLanguages((function(t,r){if(t)return e(t);var o=Object.keys(r);if(!o.length)return e(new Error("was unable to load languages via API"));var u=o.reduce((function(e,t){var o=r[t];return o.translated[n.options.version]&&o.translated[n.options.version]>=n.options.translatedPercentageThreshold&&e.push(t),e}),[]),i=o.reduce((function(e,t){return t.indexOf("-")>-1||e}),!1);e(null,{fallbackLng:n.options.referenceLng,referenceLng:n.options.referenceLng,supportedLngs:u,load:i?"all":"languageOnly"},r)})),t}},{key:"checkIfProjectExists",value:function(e){var t=this,n=(this.services||{logger:console}).logger;this.somethingLoaded?e&&e(null):this.alreadyRequestedCheckIfProjectExists?setTimeout((function(){return t.checkIfProjectExists(e)}),this.options.checkForProjectTimeout):(this.alreadyRequestedCheckIfProjectExists=!0,this.getLanguages((function(t){t&&t.message&&t.message.indexOf("does not exist")>0&&n&&n.error(t.message),e&&e(t)})))}},{key:"read",value:function(e,t,n){var r,o=this,u=(this.services||{logger:console}).logger,i={};if(this.options.private){var a=xo(this.options,["projectId","version","apiKey"]);if(a)return n(new Error(a),!1);r=Oo(this.options.privatePath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),i={authorize:!0}}else{var s=xo(this.options,["projectId","version"]);if(s)return n(new Error(s),!1);r=Oo(this.options.loadPath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version})}if(!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting){var l=new Error("locize project ".concat(this.options.projectId," does not exist!"));return u&&u.error(l.message),void(n&&n(l))}this.loadUrl(i,r,(function(e,t,r){o.somethingLoaded||(r&&r.resourceNotExisting?setTimeout((function(){return o.checkIfProjectExists()}),o.options.checkForProjectTimeout):o.somethingLoaded=!0),n(e,t)}))}},{key:"loadUrl",value:function(e,t,n,r){var o=this;e=mo(e,this.options),"function"==typeof n&&(r=n,n=void 0),r=r||function(){},Lo(e,t,n,(function(e,n){var u,i,a=n&&n.resourceNotExisting;if(n&&(408===n.status||400===n.status))return r("failed loading "+t,!0,{resourceNotExisting:a});if(n&&(n.status>=500&&n.status<600||!n.status))return r("failed loading "+t,!0,{resourceNotExisting:a});if(n&&n.status>=400&&n.status<500)return r("failed loading "+t,!1,{resourceNotExisting:a});if(!n&&e&&e.message&&e.message.indexOf("Failed to fetch")>-1)return r("failed loading "+t,!0,{resourceNotExisting:a});if(e)return r(e,!1);try{u=JSON.parse(n.data)}catch(e){i="failed parsing "+t+" to json"}return i?r(i,!1):o.options.failLoadingOnEmptyJSON&&!Object.keys(u).length?r("loaded result empty for "+t,!1,{resourceNotExisting:a}):void r(null,u,{resourceNotExisting:a})}))}},{key:"create",value:function(e,t,n,r,o,u){var i=this;o||(o=function(){}),this.checkIfProjectExists((function(a){if(a)return o(a);var s=xo(i.options,["projectId","version","apiKey","referenceLng"]);return s?o(new Error(s)):i.isAddOrUpdateAllowed?("string"==typeof e&&(e=[e]),e.filter((function(e){return e===i.options.referenceLng})).length<1&&i.services&&i.services.logger&&i.services.logger.warn('locize-backend: will not save missings because the reference language "'.concat(i.options.referenceLng,'" was not in the list of to save languages: ').concat(e.join(", ")," (open your site in the reference language to save missings).")),void e.forEach((function(e){e===i.options.referenceLng&&i.queue.call(i,i.options.referenceLng,t,n,r,o,u)}))):o("host is not allowed to create key.")}))}},{key:"update",value:function(e,t,n,r,o,u){var i=this;o||(o=function(){}),this.checkIfProjectExists((function(a){if(a)return o(a);var s=xo(i.options,["projectId","version","apiKey","referenceLng"]);return s?o(new Error(s)):i.isAddOrUpdateAllowed?(u||(u={}),"string"==typeof e&&(e=[e]),u.isUpdate=!0,void e.forEach((function(e){e===i.options.referenceLng&&i.queue.call(i,i.options.referenceLng,t,n,r,o,u)}))):o("host is not allowed to update key.")}))}},{key:"writePage",value:function(e,t,n,r){var o=Oo(this.options.addPath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),u=Oo(this.options.updatePath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),i=!1,a=!1,s={},l={};n.forEach((function(e){var t=e.options&&e.options.tDescription?{value:e.fallbackValue||"",context:{text:e.options.tDescription}}:e.fallbackValue||"";e.options&&e.options.isUpdate?(a||(a=!0),l[e.key]=t):(i||(i=!0),s[e.key]=t)}));var c=0;i&&c++,a&&c++;var p=function(e){--c||r(e)};c||p(),i&&Lo(mo({authorize:!0},this.options),o,s,p),a&&Lo(mo({authorize:!0},this.options),u,l,p)}},{key:"write",value:function(e,t){var n=this;if(!Co(this.queuedWrites,["locks",e,t])){var r=Co(this.queuedWrites,[e,t]);bo(this.queuedWrites,[e,t],[]);var o=r.filter((function(e){return e.callback})).map((function(e){return e.callback}));r.length&&function(){bo(n.queuedWrites,["locks",e,t],!0);var u=function(){bo(n.queuedWrites,["locks",e,t],!1),o.forEach((function(e){return e()})),n.options.onSaved&&n.options.onSaved(e,t),n.debouncedProcess(e,t)},i=r.length/1e3,a=0,s=r.splice(0,1e3);for(n.writePage(e,t,s,(function(){++a>=i&&u()}));1e3===s.length;)(s=r.splice(0,1e3)).length&&n.writePage(e,t,s,(function(){++a>=i&&u()}))}()}}},{key:"process",value:function(){var e=this;Object.keys(this.queuedWrites).forEach((function(t){"locks"!==t&&Object.keys(e.queuedWrites[t]).forEach((function(n){e.queuedWrites[t][n].length&&e.write(t,n)}))}))}},{key:"queue",value:function(e,t,n,r,o,u){!function(e,t,n,r){var o=Ao(e,t,Object),u=o.obj,i=o.k;u[i]=u[i]||[],r&&(u[i]=u[i].concat(n)),r||u[i].push(n)}(this.queuedWrites,[e,t],{key:n,fallbackValue:r||"",callback:o,options:u}),this.debouncedProcess()}}])&&Ro(t.prototype,n),r&&Ro(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function zo(e){return(zo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qo(e){var t={top:0,left:0,right:0,bottom:0},n=e&&e.ownerDocument,r=n&&n.documentElement;if(!r)return t;"undefined"!==zo(e.getBoundingClientRect)&&(t=e.getBoundingClientRect());var o=function(e){return null!=(t=e)&&t===t.window?e:9===e.nodeType&&e.defaultView;var t}(n),u=t.top+o.pageYOffset-r.clientTop,i=t.left+o.pageXOffset-r.clientLeft;return{top:u,left:i,right:i+(t.right-t.left),bottom:u+(t.bottom-t.top)}}function Vo(e,t){return e&&e.getAttribute&&e.getAttribute(t)}function Ko(e){var t;return function e(n){var r=Vo(n,"i18next-options");if(r||(r=Vo(n,"data-i18next-options")),r||(r=Vo(n,"i18n-options")),r||(r=Vo(n,"data-i18n-options")),r){var o={};try{o=JSON.parse(r)}catch(e){}o.ns&&(t=o.ns)}t||(t=Vo(n,"i18next-ns")),t||(t=Vo(n,"data-i18next-ns")),t||(t=Vo(n,"i18n-ns")),t||(t=Vo(n,"data-i18n-ns")),!t&&n.parentElement&&e(n.parentElement)}(e),t}function Xo(e){return function(t){var n=function(e){if(e.srcElement&&1===e.srcElement.nodeType&&("BUTTON"===e.srcElement.nodeName||"INPUT"===e.srcElement.nodeName))return e.srcElement.getAttribute&&""===e.srcElement.getAttribute("ignorelocizeeditor")?null:e.srcElement;var t;if(e.originalEvent&&e.originalEvent.explicitOriginalTarget)t=e.originalEvent.explicitOriginalTarget;else{var n=e.srcElement;if(n.getAttribute&&""===n.getAttribute("ignorelocizeeditor"))return null;for(var r,o=e.pageX,u=e.pageY,i=0,a=0;a<n.childNodes.length;a++){var s=n.childNodes[a],l=qo(s);1===s.nodeType&&l.bottom<u&&(i=a+1),!r&&l.top+(s.clientHeight||0)>u&&(r=a)}i+1>n.childNodes.length&&(i=n.childNodes.length-1),r||(r=n.childNodes.length);for(var c=i;c<r;c++){var p=n.childNodes[c];if(qo(p).left>o)break;p&&8!==p.nodeType&&(t=p)}}return t}(t);if(!n)return{};t.preventDefault(),t.stopPropagation();var r=function(e){var t=e.textContent||e.text&&e.text.innerText||e.placeholder;if("string"==typeof t)return t.replace(/\n +/g,"").trim()}(n),o=function e(t){var n=Vo(t,"data-i18n");return n||(t.nodeType===window.Node.TEXT_NODE&&t.parentElement?e(t.parentElement):void 0)}(n),u=n.getBoundingClientRect?n:n.parentElement,i=u.getBoundingClientRect(),a=i.top,s=i.left,l=i.width,c=i.height,p=window.getComputedStyle(u,null),f=parseFloat(p.getPropertyValue("padding-top")),d=parseFloat(p.getPropertyValue("padding-bottom")),h=parseFloat(p.getPropertyValue("padding-right")),g=parseFloat(p.getPropertyValue("padding-left")),v=p.getPropertyValue("box-sizing");e({tagName:u.tagName,text:r,key:o,ns:Ko(n),box:{top:a,left:s,width:"border-box"===v?l:l-h-g,height:"border-box"===v?c:c-f-d},style:p.cssText})}}Ho.type="backend";var Wo,Jo,$o,Go,Yo,Zo,Qo=!0;try{Qo=self!==top}catch(e){}var eu=[];var tu={type:"3rdParty",init:function(e){Yo=function(t){t.updated.forEach((function(t){var n=t.lng,r=t.ns,o=t.key,u=t.data;e.addResource(n,r,o,u.value,{silent:!0}),e.emit("editorSaved")}))},Qo&&(e.options.missingKeyHandler=function(e,t,n,r,o,u){o||function(e,t,n,r){var o={message:"added",lng:e,ns:t,key:n,value:r};Wo?Wo.postMessage(o,Jo):eu.push(o)}(e,t,n,r)})}};"undefined"!=typeof window&&window.addEventListener("message",(function(e){if("isLocizeEnabled"===e.data.message)Wo||(Wo=e.source,Jo=e.origin,$o=Xo((function(e){Wo.postMessage({message:"clickedElement",payload:e},Jo)}))),Wo.postMessage({message:"locizeIsEnabled",enabled:!0},e.origin),eu.forEach((function(t){Wo.postMessage(t,e.origin)})),eu=[];else if("turnOn"===e.data.message){if(Zo)return Wo.postMessage({message:"forcedOff"},Jo);Go||window.document.body.addEventListener("click",$o,!0),Go=!0,Wo.postMessage({message:"turnedOn"},Jo)}else if("turnOff"===e.data.message){if(Zo)return Wo.postMessage({message:"forcedOff"},Jo);Go&&window.document.body.removeEventListener("click",$o,!0),Go=!1,Wo.postMessage({message:"turnedOff"},Jo)}else if("committed"===e.data.message){var t=e.data.payload;window.locizeSavedHandler&&window.locizeSavedHandler(t),Yo&&Yo(t)}}));var{i18next:nu}=ho,ru={saveMissingTo:"all"},ou={reloadOnSave:!0,bindSavedMissing:!0};nu.use(Ho).use(tu),nu.on("editorSaved",()=>{ho.forceRerender()});var uu=nu.init;return nu.init=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;e=n(n({},ou),e);var r=document.getElementById("locizify");if(r){var o={},u={},i=["fallbackLng","saveMissing","debug","autorun","ele","cleanIndent","cleanWhitespace","namespace","namespaceFromPath","load"],a=["ignoreTags","ignoreIds","ignoreClasses","translateAttributes","mergeTags","inlineTags","ignoreInlineOn","ignoreCleanIndentFor","ns"],s=["projectId","apiKey","referenceLng","version","allowedAddOrUpdateHost"];i.forEach(e=>{var t=r.getAttribute(e.toLowerCase());"true"===t&&(t=!0),"false"===t&&(t=!1),null!=t&&(o[e]=t)}),a.forEach(e=>{var t=r.getAttribute(e.toLowerCase());null!=t&&(o[e]=t.split(",").map(e=>e.trim()))}),s.forEach(e=>{var t=r.getAttribute(e.toLowerCase());"true"===t&&(t=!0),"false"===t&&(t=!1),null!=t&&(u[e]=t)}),u.allowedAddOrUpdateHost&&(u.allowedAddOrUpdateHosts=[u.allowedAddOrUpdateHost],delete u.allowedAddOrUpdateHost),(e=n(n(n({},ou),e),o)).backend=n(n({},e.backend),u)}function l(e,n){t(e,n)}if(!e.backend.autoPilot||"false"===e.backend.autoPilot)return uu.call(nu,n(n({},e),ru),l);var c=new Ho(e.backend);c.getOptions((t,r)=>{t&&"object"==typeof console&&"function"==typeof console.error&&console.error(t),uu.call(nu,n(n(n({},r),e),ru),l)})},ho.getLanguages=function(e){if(nu.services.backendConnector)nu.services.backendConnector.backend.getLanguages(e);else{nu.on("initialized",(function t(){nu.off("initialized",t),nu.services.backendConnector.backend.getLanguages(e)}))}},ho.getOptions=function(e){if(nu.services.backendConnector)nu.services.backendConnector.backend.getOptions(e);else{nu.on("initialized",(function t(){nu.off("initialized",t),nu.services.backendConnector.backend.getOptions(e)}))}},ho.editor={turnOn:function(){return Zo=!1,Go||window.document.body.addEventListener("click",$o,!0),Go=!0,Wo&&Wo.postMessage({message:"turnedOn"},Jo),Zo},turnOff:function(){return Zo=!0,Go&&window.document.body.removeEventListener("click",$o,!0),Go=!1,Wo&&Wo.postMessage({message:"turnedOff"},Jo),Wo&&Wo.postMessage({message:"forcedOff"},Jo),Zo}},ho}));
|
package/locizify.js
CHANGED
|
@@ -9101,6 +9101,11 @@
|
|
|
9101
9101
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
9102
9102
|
var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
9103
9103
|
var callback = arguments.length > 3 ? arguments[3] : undefined;
|
|
9104
|
+
|
|
9105
|
+
if (!options.referenceLng && allOptions.fallbackLng && Array.isArray(allOptions.fallbackLng) && allOptions.fallbackLng[0] !== 'dev') {
|
|
9106
|
+
options.referenceLng = allOptions.fallbackLng[0];
|
|
9107
|
+
}
|
|
9108
|
+
|
|
9104
9109
|
this.services = services;
|
|
9105
9110
|
this.options = defaults$2(options, this.options || {}, getDefaults$3());
|
|
9106
9111
|
this.allOptions = allOptions;
|
package/locizify.min.js
CHANGED
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
23
|
* THE SOFTWARE.
|
|
24
24
|
*/
|
|
25
|
-
e.exports=t;var n=e.exports.properties=["accept","accessKey","action","alt","async","autoComplete","autoPlay","cellPadding","cellSpacing","checked","className","colSpan","content","contentEditable","controls","crossOrigin","data","defer","dir","download","draggable","encType","formNoValidate","href","hrefLang","htmlFor","httpEquiv","icon","id","label","lang","list","loop","max","mediaGroup","method","min","multiple","muted","name","noValidate","pattern","placeholder","poster","preload","radioGroup","readOnly","rel","required","rowSpan","sandbox","scope","scrollLeft","scrolling","scrollTop","selected","span","spellCheck","src","srcDoc","srcSet","start","step","style","tabIndex","target","title","type","value","autoCapitalize","autoCorrect","property","attributes"],r=e.exports.attrBlacklist={class:"className"}})),Rt=(Tt.properties,Tt.attrBlacklist,Array.isArray),It=Object.prototype.toString,Mt=Rt||function(e){return"[object Array]"===It.call(e)};_t.NONE=0,_t.VTEXT=1,_t.VNODE=2,_t.WIDGET=3,_t.PROPS=4,_t.ORDER=5,_t.INSERT=6,_t.REMOVE=7,_t.THUNK=8;var Ut=_t;function _t(e,t,n){this.type=Number(e),this.vNode=t,this.patch=n}_t.prototype.version="2",_t.prototype.type="VirtualPatch";var Ht=function(e){return e&&"VirtualText"===e.type&&"2"===e.version};var zt=function(e,t){var n=e,r=t;Ot(t)&&(r=qt(t,e));Ot(e)&&(n=qt(e,null));return{a:n,b:r}};function qt(e,t){var n=e.vnode;if(n||(n=e.vnode=e.render(t)),!(wt(n)||Ht(n)||Ft(n)))throw new Error("thunk did not return a valid node");return n}var Vt=function(e){return"object"==typeof e&&null!==e},Kt=function e(t,n){var r;for(var o in t){o in n||((r=r||{})[o]=void 0);var u=t[o],i=n[o];if(u!==i)if(Vt(u)&&Vt(i))if(Xt(i)!==Xt(u))(r=r||{})[o]=i;else if(xt(i))(r=r||{})[o]=i;else{var a=e(u,i);a&&((r=r||{})[o]=a)}else(r=r||{})[o]=i}for(var s in n)s in t||((r=r||{})[s]=n[s]);return r};function Xt(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}function Wt(e,t){var n={a:e};return Jt(e,t,n,0),n}function Jt(e,t,n,r){if(e!==t){var o=n[r],u=!1;if(Ot(e)||Ot(t))Gt(e,t,n,r);else if(null==t)Ft(e)||($t(e,n,r),o=n[r]),o=Qt(o,new Ut(Ut.REMOVE,e,t));else if(wt(t))if(wt(e))if(e.tagName===t.tagName&&e.namespace===t.namespace&&e.key===t.key){var i=Kt(e.properties,t.properties);i&&(o=Qt(o,new Ut(Ut.PROPS,e,i))),o=function(e,t,n,r,o){for(var u=e.children,i=function(e,t){var n=Zt(t),r=n.keys,o=n.free;if(o.length===t.length)return{children:t,moves:null};var u=Zt(e),i=u.keys;if(u.free.length===e.length)return{children:t,moves:null};for(var a=[],s=0,l=o.length,c=0,p=0;p<e.length;p++){var f,d=e[p];d.key?r.hasOwnProperty(d.key)?(f=r[d.key],a.push(t[f])):(f=p-c++,a.push(null)):s<l?(f=o[s++],a.push(t[f])):(f=p-c++,a.push(null))}for(var h=s>=o.length?t.length:o[s],g=0;g<t.length;g++){var v=t[g];v.key?i.hasOwnProperty(v.key)||a.push(v):g>=h&&a.push(v)}for(var y,m=a.slice(),E=0,A=[],b=[],C=0;C<t.length;){var w=t[C];for(y=m[E];null===y&&m.length;)A.push(Yt(m,E,null)),y=m[E];y&&y.key===w.key?(E++,C++):w.key?(y&&y.key&&r[y.key]!==C+1?(A.push(Yt(m,E,y.key)),(y=m[E])&&y.key===w.key?E++:b.push({key:w.key,to:C})):b.push({key:w.key,to:C}),C++):y&&y.key&&A.push(Yt(m,E,y.key))}for(;E<m.length;)y=m[E],A.push(Yt(m,E,y&&y.key));if(A.length===c&&!b.length)return{children:a,moves:null};return{children:a,moves:{removes:A,inserts:b}}}(u,t.children),a=i.children,s=u.length,l=a.length,c=s>l?s:l,p=0;p<c;p++){var f=u[p],d=a[p];o+=1,f?Jt(f,d,n,o):d&&(r=Qt(r,new Ut(Ut.INSERT,null,d))),wt(f)&&f.count&&(o+=f.count)}i.moves&&(r=Qt(r,new Ut(Ut.ORDER,e,i.moves)));return r}(e,t,n,o,r)}else o=Qt(o,new Ut(Ut.VNODE,e,t)),u=!0;else o=Qt(o,new Ut(Ut.VNODE,e,t)),u=!0;else Ht(t)?Ht(e)?e.text!==t.text&&(o=Qt(o,new Ut(Ut.VTEXT,e,t))):(o=Qt(o,new Ut(Ut.VTEXT,e,t)),u=!0):Ft(t)&&(Ft(e)||(u=!0),o=Qt(o,new Ut(Ut.WIDGET,e,t)));o&&(n[r]=o),u&&$t(e,n,r)}}function $t(e,t,n){!function e(t,n,r){if(wt(t)){if(t.hooks&&(n[r]=Qt(n[r],new Ut(Ut.PROPS,t,function(e){var t={};for(var n in e)t[n]=void 0;return t}(t.hooks)))),t.descendantHooks||t.hasThunks)for(var o=t.children,u=o.length,i=0;i<u;i++){var a=o[i];e(a,n,r+=1),wt(a)&&a.count&&(r+=a.count)}}else Ot(t)&&Gt(t,null,n,r)}(e,t,n),function e(t,n,r){if(Ft(t))"function"==typeof t.destroy&&(n[r]=Qt(n[r],new Ut(Ut.REMOVE,t,null)));else if(wt(t)&&(t.hasWidgets||t.hasThunks))for(var o=t.children,u=o.length,i=0;i<u;i++){var a=o[i];e(a,n,r+=1),wt(a)&&a.count&&(r+=a.count)}else Ot(t)&&Gt(t,null,n,r)}(e,t,n)}function Gt(e,t,n,r){var o=zt(e,t),u=Wt(o.a,o.b);(function(e){for(var t in e)if("a"!==t)return!0;return!1})(u)&&(n[r]=new Ut(Ut.THUNK,null,u))}function Yt(e,t,n){return e.splice(t,1),{from:t,key:n}}function Zt(e){for(var t={},n=[],r=e.length,o=0;o<r;o++){var u=e[o];u.key?t[u.key]=o:n.push(o)}return{keys:t,free:n}}function Qt(e,t){return e?(Mt(e)?e.push(t):e=[e,t],e):t}var en=Wt,tn=Array.prototype.slice,nn=function(e,t){"length"in e||(e=[e]);e=tn.call(e);for(;e.length;){var n=e.shift(),r=t(n);if(r)return r;n.childNodes&&n.childNodes.length&&(e=tn.call(n.childNodes).concat(e))}};var rn=on;function on(e,t){if(!(this instanceof on))return new on(e,t);this.data=e,this.nodeValue=e,this.length=e.length,this.ownerDocument=t||null}on.prototype.nodeType=8,on.prototype.nodeName="#comment",on.prototype.toString=function(){return"[object Comment]"};var un=an;function an(e,t){if(!(this instanceof an))return new an(e);this.data=e||"",this.length=this.data.length,this.ownerDocument=t||null}an.prototype.type="DOMTextNode",an.prototype.nodeType=3,an.prototype.nodeName="#text",an.prototype.toString=function(){return this.data},an.prototype.replaceData=function(e,t,n){var r=this.data,o=r.substring(0,e),u=r.substring(e+t,r.length);this.data=o+n+u,this.length=this.data.length};var sn=function(e){var t=this,n=e.type;e.target||(e.target=t);t.listeners||(t.listeners={});var r=t.listeners[n];if(r)return r.forEach((function(n){e.currentTarget=t,"function"==typeof n?n(e):n.handleEvent(e)}));t.parentNode&&t.parentNode.dispatchEvent(e)};var ln=function(e,t){this.listeners||(this.listeners={});this.listeners[e]||(this.listeners[e]=[]);-1===this.listeners[e].indexOf(t)&&this.listeners[e].push(t)};var cn=function(e,t){if(!this.listeners)return;if(!this.listeners[e])return;var n=this.listeners[e],r=n.indexOf(t);-1!==r&&n.splice(r,1)};var pn=dn,fn=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function dn(e){switch(e.nodeType){case 3:return vn(e.data);case 8:return"\x3c!--"+e.data+"--\x3e";default:return function(e){var t=[],n=e.tagName;"http://www.w3.org/1999/xhtml"===e.namespaceURI&&(n=n.toLowerCase());t.push("<"+n+function(e){var t=[];for(var n in e)hn(e,n)&&t.push({name:n,value:e[n]});for(var r in e._attributes)for(var o in e._attributes[r]){var u=e._attributes[r][o],i=(u.prefix?u.prefix+":":"")+o;t.push({name:i,value:u.value})}e.className&&t.push({name:"class",value:e.className});return t.length?gn(t):""}(e)+function(e){var t=e.dataset,n=[];for(var r in t)n.push({name:"data-"+r,value:t[r]});return n.length?gn(n):""}(e)),fn.indexOf(n)>-1?t.push(" />"):(t.push(">"),e.childNodes.length?t.push.apply(t,e.childNodes.map(dn)):e.textContent||e.innerText?t.push(vn(e.textContent||e.innerText)):e.innerHTML&&t.push(e.innerHTML),t.push("</"+n+">"));return t.join("")}(e)}}function hn(e,t){var n=typeof e[t];return"style"===t&&Object.keys(e.style).length>0||e.hasOwnProperty(t)&&("string"===n||"boolean"===n||"number"===n)&&"nodeName"!==t&&"className"!==t&&"tagName"!==t&&"textContent"!==t&&"innerText"!==t&&"namespaceURI"!==t&&"innerHTML"!==t}function gn(e){var t=[];return e.forEach((function(e){var n=e.name,r=e.value;"style"===n&&(r=function(e){if("string"==typeof e)return e;var t="";return Object.keys(e).forEach((function(n){var r=e[n];n=n.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})),t+=n+":"+r+";"})),t}(r)),t.push(n+'="'+(vn(r).replace(/"/g,""")+'"'))})),t.length?" "+t.join(" "):""}function vn(e){var t="";return"string"==typeof e?t=e:e&&(t=e.toString()),t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}var yn="http://www.w3.org/1999/xhtml",mn=En;function En(e,t,n){if(!(this instanceof En))return new En(e);var r=void 0===n?yn:n||null;this.tagName=r===yn?String(e).toUpperCase():e,this.nodeName=this.tagName,this.className="",this.dataset={},this.childNodes=[],this.parentNode=null,this.style={},this.ownerDocument=t||null,this.namespaceURI=r,this._attributes={},"INPUT"===this.tagName&&(this.type="text")}En.prototype.type="DOMElement",En.prototype.nodeType=1,En.prototype.appendChild=function(e){return e.parentNode&&e.parentNode.removeChild(e),this.childNodes.push(e),e.parentNode=this,e},En.prototype.replaceChild=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var n=this.childNodes.indexOf(t);return t.parentNode=null,this.childNodes[n]=e,e.parentNode=this,t},En.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);return this.childNodes.splice(t,1),e.parentNode=null,e},En.prototype.insertBefore=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var n=null==t?-1:this.childNodes.indexOf(t);return n>-1?this.childNodes.splice(n,0,e):this.childNodes.push(e),e.parentNode=this,e},En.prototype.setAttributeNS=function(e,t,n){var r=null,o=t,u=t.indexOf(":");(u>-1&&(r=t.substr(0,u),o=t.substr(u+1)),"INPUT"===this.tagName&&"type"===t)?this.type=n:(this._attributes[e]||(this._attributes[e]={}))[o]={value:n,prefix:r}},En.prototype.getAttributeNS=function(e,t){var n=this._attributes[e],r=n&&n[t]&&n[t].value;return"INPUT"===this.tagName&&"type"===t?this.type:"string"!=typeof r?null:r},En.prototype.removeAttributeNS=function(e,t){var n=this._attributes[e];n&&delete n[t]},En.prototype.hasAttributeNS=function(e,t){var n=this._attributes[e];return!!n&&t in n},En.prototype.setAttribute=function(e,t){return this.setAttributeNS(null,e,t)},En.prototype.getAttribute=function(e){return this.getAttributeNS(null,e)},En.prototype.removeAttribute=function(e){return this.removeAttributeNS(null,e)},En.prototype.hasAttribute=function(e){return this.hasAttributeNS(null,e)},En.prototype.removeEventListener=cn,En.prototype.addEventListener=ln,En.prototype.dispatchEvent=sn,En.prototype.focus=function(){},En.prototype.toString=function(){return pn(this)},En.prototype.getElementsByClassName=function(e){var t=e.split(" "),n=[];return nn(this,(function(e){if(1===e.nodeType){var r=(e.className||"").split(" ");t.every((function(e){return-1!==r.indexOf(e)}))&&n.push(e)}})),n},En.prototype.getElementsByTagName=function(e){e=e.toLowerCase();var t=[];return nn(this.childNodes,(function(n){1!==n.nodeType||"*"!==e&&n.tagName.toLowerCase()!==e||t.push(n)})),t},En.prototype.contains=function(e){return nn(this,(function(t){return e===t}))||!1};var An=bn;function bn(e){if(!(this instanceof bn))return new bn;this.childNodes=[],this.parentNode=null,this.ownerDocument=e||null}bn.prototype.type="DocumentFragment",bn.prototype.nodeType=11,bn.prototype.nodeName="#document-fragment",bn.prototype.appendChild=mn.prototype.appendChild,bn.prototype.replaceChild=mn.prototype.replaceChild,bn.prototype.removeChild=mn.prototype.removeChild,bn.prototype.toString=function(){return this.childNodes.map((function(e){return String(e)})).join("")};var Cn=wn;function wn(e){}wn.prototype.initEvent=function(e,t,n){this.type=e,this.bubbles=t,this.cancelable=n},wn.prototype.preventDefault=function(){};var Fn=On;function On(){if(!(this instanceof On))return new On;this.head=this.createElement("head"),this.body=this.createElement("body"),this.documentElement=this.createElement("html"),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body),this.childNodes=[this.documentElement],this.nodeType=9}var xn=On.prototype;xn.createTextNode=function(e){return new un(e,this)},xn.createElementNS=function(e,t){var n=null===e?null:String(e);return new mn(t,this,n)},xn.createElement=function(e){return new mn(e,this)},xn.createDocumentFragment=function(){return new An(this)},xn.createEvent=function(e){return new Cn(e)},xn.createComment=function(e){return new rn(e,this)},xn.getElementById=function(e){return e=String(e),nn(this.childNodes,(function(t){if(String(t.id)===e)return t}))||null},xn.getElementsByClassName=mn.prototype.getElementsByClassName,xn.getElementsByTagName=mn.prototype.getElementsByTagName,xn.contains=mn.prototype.contains,xn.removeEventListener=cn,xn.addEventListener=ln,xn.dispatchEvent=sn;var kn,Dn=new Fn,Bn=void 0!==r?r:"undefined"!=typeof window?window:{};"undefined"!=typeof document?kn=document:(kn=Bn["__GLOBAL_DOCUMENT_CACHE@4"])||(kn=Bn["__GLOBAL_DOCUMENT_CACHE@4"]=Dn);var Sn=kn,jn=function(e,t,n){for(var r in t){var o=t[r];void 0===o?Nn(e,r,o,n):xt(o)?(Nn(e,r,o,n),o.hook&&o.hook(e,r,n?n[r]:void 0)):Vt(o)?Pn(e,t,n,r,o):e[r]=o}};function Nn(e,t,n,r){if(r){var o=r[t];if(xt(o))o.unhook&&o.unhook(e,t,n);else if("attributes"===t)for(var u in o)e.removeAttribute(u);else if("style"===t)for(var i in o)e.style[i]="";else e[t]="string"==typeof o?"":null}}function Pn(e,t,n,r,o){var u=n?n[r]:void 0;if("attributes"!==r)if(u&&Vt(u)&&Ln(u)!==Ln(o))e[r]=o;else{Vt(e[r])||(e[r]={});var i="style"===r?"":void 0;for(var a in o){var s=o[a];e[r][a]=void 0===s?i:s}}else for(var l in o){var c=o[l];void 0===c?e.removeAttribute(l):e.setAttribute(l,c)}}function Ln(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}var Tn=function e(t,n){var r=n&&n.document||Sn,o=n?n.warn:null;if(t=zt(t).a,Ft(t))return t.init();if(Ht(t))return r.createTextNode(t.text);if(!wt(t))return o&&o("Item is not a valid virtual dom node",t),null;var u=null===t.namespace?r.createElement(t.tagName):r.createElementNS(t.namespace,t.tagName),i=t.properties;jn(u,i);for(var a=t.children,s=0;s<a.length;s++){var l=e(a[s],n);l&&u.appendChild(l)}return u};var Rn={},In=function(e,t,n,r){return n&&0!==n.length?(n.sort(Un),function e(t,n,r,o,u){if(o=o||{},t){Mn(r,u,u)&&(o[u]=t);var i=n.children;if(i)for(var a=t.childNodes,s=0;s<n.children.length;s++){u+=1;var l=i[s]||Rn,c=u+(l.count||0);Mn(r,u,c)&&e(a[s],l,r,o,u),u=c}}return o}(e,t,n,r,0)):{}};function Mn(e,t,n){if(0===e.length)return!1;for(var r,o,u=0,i=e.length-1;u<=i;){if(o=e[r=(i+u)/2>>0],u===i)return o>=t&&o<=n;if(o<t)u=r+1;else{if(!(o>n))return!0;i=r-1}}return!1}function Un(e,t){return e>t?1:-1}var _n=function(e,t){if(Ft(e)&&Ft(t))return"name"in e&&"name"in t?e.id===t.id:e.init===t.init;return!1};var Hn=function(e,t,n){var r=e.type,o=e.vNode,u=e.patch;switch(r){case Ut.REMOVE:return function(e,t){var n=e.parentNode;n&&n.removeChild(e);return zn(e,t),null}(t,o);case Ut.INSERT:return function(e,t,n){var r=n.render(t,n);e&&e.appendChild(r);return e}(t,u,n);case Ut.VTEXT:return function(e,t,n,r){var o;if(3===e.nodeType)e.replaceData(0,e.length,n.text),o=e;else{var u=e.parentNode;o=r.render(n,r),u&&o!==e&&u.replaceChild(o,e)}return o}(t,0,u,n);case Ut.WIDGET:return function(e,t,n,r){var o,u=_n(t,n);o=u?n.update(t,e)||e:r.render(n,r);var i=e.parentNode;i&&o!==e&&i.replaceChild(o,e);u||zn(e,t);return o}(t,o,u,n);case Ut.VNODE:return function(e,t,n,r){var o=e.parentNode,u=r.render(n,r);o&&u!==e&&o.replaceChild(u,e);return u}(t,0,u,n);case Ut.ORDER:return function(e,t){for(var n,r,o,u=e.childNodes,i={},a=0;a<t.removes.length;a++)r=t.removes[a],n=u[r.from],r.key&&(i[r.key]=n),e.removeChild(n);for(var s=u.length,l=0;l<t.inserts.length;l++)o=t.inserts[l],n=i[o.key],e.insertBefore(n,o.to>=s++?null:u[o.to])}(t,u),t;case Ut.PROPS:return jn(t,u,o.properties),t;case Ut.THUNK:return function(e,t){e&&t&&e!==t&&e.parentNode&&e.parentNode.replaceChild(t,e);return t}(t,n.patch(t,u,n));default:return t}};function zn(e,t){"function"==typeof t.destroy&&Ft(t)&&t.destroy(e)}function qn(e,t,n){var r=function(e){var t=[];for(var n in e)"a"!==n&&t.push(Number(n));return t}(t);if(0===r.length)return e;var o=In(e,t.a,r),u=e.ownerDocument;n.document||u===Sn||(n.document=u);for(var i=0;i<r.length;i++){var a=r[i];e=Vn(e,o[a],t[a],n)}return e}function Vn(e,t,n,r){if(!t)return e;var o;if(Mt(n))for(var u=0;u<n.length;u++)o=Hn(n[u],t,r),t===e&&(e=o);else o=Hn(n,t,r),t===e&&(e=o);return e}var Kn=function e(t,n,r){return(r=r||{}).patch=r.patch&&r.patch!==e?r.patch:qn,r.render=r.render||Tn,r.patch(t,n,r)},Xn=u((function(e,t){e.exports=function(){var e=o((function(e){return e})),t=u(o((function(e){var t=e.length;return new e.constructor(t)})),["BYTES_PER_ELEMENT","get","set","slice","subarray","buffer","length","byteOffset","byteLength"]);function n(e){return"[object "+e+"]"}var r={};function o(e){return function(t,n,r){n.push(t);var o=e(t);return r.push(o),o}}function u(e,t){return function(n,r,o){var u=this;return Object.getOwnPropertyNames(n).filter((function(e){return!t||-1===t.indexOf(e)})).reduce((function(e,t){var i=r.indexOf(n[t]);return e[t]=-1===i?u(n[t]):o[i],e}),e(n,r,o))}}return r[n("RegExp")]=o((function(e){return new RegExp(e)})),r[n("Date")]=o((function(e){return new Date(e.getTime())})),r[n("Function")]=u(o((function(e){return n=function(e){for(var t=[],n=1;n<=e;n++)t.push("arg"+n);return t}((t=e).length),r="return false || function ",r+=t.name+"(",r+=n.join(", ")+") {\n",r+="return fn.apply(this, arguments);\n",r+="};",Function("fn",r)(t);var t,n,r})),["caller","arguments"]),r[n("Object")]=u(o((function(e){return Object.create(Object.getPrototypeOf(e))}))),r[n("Array")]=u(o((function(e){return[]}))),["Null","Undefined","Number","String","Boolean"].map(n).forEach((function(t){r[t]=e})),["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].map(n).forEach((function(e){r[e]=t})),function(e){var t=[],n=[];return function e(o){var u=Object.prototype.toString.call(o);return r[u].call(e,o,t,n)}(e)}}()})),Wn=function(){function e(){at(this,e)}return st(e,[{key:"start",value:function(){this.started=(new Date).getTime()}},{key:"end",value:function(){return this.ended=(new Date).getTime(),this.ended-this.started}}]),e}(),Jn=/["'&<>]/,$n=function(e){var t,n=""+e,r=Jn.exec(n);if(!r)return n;var o="",u=0,i=0;for(u=r.index;u<n.length;u++){switch(n.charCodeAt(u)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}i!==u&&(o+=n.substring(i,u)),i=u+1,o+=t}return i!==u?o+n.substring(i,u):o};var Gn=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)Yn.call(n,r)&&(e[r]=n[r])}return e},Yn=Object.prototype.hasOwnProperty;var Zn=Qn;function Qn(e){if(!(this instanceof Qn))return new Qn(e);this.value=e}Qn.prototype.hook=function(e,t){e[t]!==this.value&&(e[t]=this.value)};var er=tr;function tr(e,t){if(!(this instanceof tr))return new tr(e,t);this.namespace=e,this.value=t}tr.prototype.hook=function(e,t,n){n&&"AttributeHook"===n.type&&n.value===this.value&&n.namespace===this.namespace||e.setAttributeNS(this.namespace,t,this.value)},tr.prototype.unhook=function(e,t,n){if(!n||"AttributeHook"!==n.type||n.namespace!==this.namespace){var r=t.indexOf(":"),o=r>-1?t.substr(r+1):t;e.removeAttributeNS(this.namespace,o)}},tr.prototype.type="AttributeHook";var nr,rr,or={tr:{regexp:/\u0130|\u0049|\u0049\u0307/g,map:{"İ":"i",I:"ı","İ":"i"}},az:{regexp:/[\u0130]/g,map:{"İ":"i",I:"ı","İ":"i"}},lt:{regexp:/[\u0049\u004A\u012E\u00CC\u00CD\u0128]/g,map:{I:"i̇",J:"j̇","Į":"į̇","Ì":"i̇̀","Í":"i̇́","Ĩ":"i̇̃"}}},ur=/[^\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]+/g,ir=/([\u0061-\u007A\u00B5\u00DF-\u00F6\u00F8-\u00FF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0561-\u0587\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7FA\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A])([\u0041-\u005A\u00C0-\u00D6\u00D8-\u00DE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA\uFF21-\uFF3A\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])/g,ar=/([\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])([^\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])/g,sr=function(e,t,n){if(null==e)return"";return n=n||" ",function(e,t){var n=or[t];return e=null==e?"":String(e),n&&(e=e.replace(n.regexp,(function(e){return n.map[e]}))),e.toLowerCase()}(e=String(e).replace(ir,"$1 $2").replace(ar,"$1 $2").replace(ur,(function(e,t,r){return 0===t||t===r.length-e.length?"":n})),t)},lr=function(e,t){return sr(e,t,"-")},cr={BOOLEAN:1,OVERLOADED_BOOLEAN:2},pr={attributeTypes:cr,properties:{accept:!0,acceptCharset:!0,accessKey:!0,action:!0,allowFullScreen:cr.BOOLEAN,allowTransparency:!0,alt:!0,async:cr.BOOLEAN,autocomplete:!0,autofocus:cr.BOOLEAN,autoplay:cr.BOOLEAN,cellPadding:!0,cellSpacing:!0,charset:!0,checked:cr.BOOLEAN,classID:!0,className:!0,cols:!0,colSpan:!0,content:!0,contentEditable:!0,contextMenu:!0,controls:cr.BOOLEAN,coords:!0,crossOrigin:!0,data:!0,dateTime:!0,defer:cr.BOOLEAN,dir:!0,disabled:cr.BOOLEAN,download:cr.OVERLOADED_BOOLEAN,draggable:!0,enctype:!0,form:!0,formAction:!0,formEncType:!0,formMethod:!0,formNoValidate:cr.BOOLEAN,formTarget:!0,frameBorder:!0,headers:!0,height:!0,hidden:cr.BOOLEAN,href:!0,hreflang:!0,htmlFor:!0,httpEquiv:!0,icon:!0,id:!0,label:!0,lang:!0,list:!0,loop:cr.BOOLEAN,manifest:!0,marginHeight:!0,marginWidth:!0,max:!0,maxLength:!0,media:!0,mediaGroup:!0,method:!0,min:!0,multiple:cr.BOOLEAN,muted:cr.BOOLEAN,name:!0,noValidate:cr.BOOLEAN,open:!0,pattern:!0,placeholder:!0,poster:!0,preload:!0,radiogroup:!0,readOnly:cr.BOOLEAN,rel:!0,required:cr.BOOLEAN,role:!0,rows:!0,rowSpan:!0,sandbox:!0,scope:!0,scrolling:!0,seamless:cr.BOOLEAN,selected:cr.BOOLEAN,shape:!0,size:!0,sizes:!0,span:!0,spellcheck:!0,src:!0,srcdoc:!0,srcset:!0,start:!0,step:!0,style:!0,tabIndex:!0,target:!0,title:!0,type:!0,useMap:!0,value:!0,width:!0,wmode:!0,autocapitalize:!0,autocorrect:!0,itemProp:!0,itemScope:cr.BOOLEAN,itemType:!0,property:!0},attributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"}},fr=pr.attributeTypes,dr=pr.properties,hr=pr.attributeNames,gr=(nr=function(e){return $n(e)+'="'},rr={},function(e){return rr.hasOwnProperty(e)?rr[e]:rr[e]=nr.call(this,e)}),vr=function(e,t,n){if(dr.hasOwnProperty(e)){if(function(e,t){var n=dr[e];return null==t||n===fr.BOOLEAN&&!t||n===fr.OVERLOADED_BOOLEAN&&!1===t}(e,t))return"";e=(hr[e]||e).toLowerCase();var r=dr[e];return r===fr.BOOLEAN||r===fr.OVERLOADED_BOOLEAN&&!0===t?$n(e):gr(e)+$n(t)+'"'}if(n)return null==t?"":gr(e)+$n(t)+'"';return null};var yr={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},mr=Er;function Er(e,t){return e?(Ot(e)&&(e=e.render()),Ft(e)&&e.render&&(e=e.render()),wt(e)?function(e){var t=e.properties,n="<"+e.tagName.toLowerCase();for(var r in t){var o=t[r];if(null!=o)if("attributes"!=r)if("dataset"!=r){if("style"==r){var u="";for(var i in o=Gn({},o))u+=lr(i)+": "+o[i]+"; ";o=u.trim()}if(o instanceof Zn||o instanceof er)n+=" "+vr(r,o.value,!0);else{var a=vr(r,o);a&&(n+=" "+a)}}else for(var s in o=Gn({},o))n+=" "+vr("data-"+lr(s),o[s],!0);else for(var l in o=Gn({},o))n+=" "+vr(l,o[l],!0)}return n+">"}(e)+function(e){var t=e.properties.innerHTML;if(null!=t)return t;var n="";if(e.children&&e.children.length)for(var r=0,o=e.children.length;r<o;r++){var u=e.children[r];n+=Er(u,e)}return n}(e)+function(e){var t=e.tagName.toLowerCase();return yr[t]?"":"</"+t+">"}(e):Ht(e)?!t||"script"!==t.tagName.toLowerCase()&&"style"!==t.tagName.toLowerCase()?$n(String(e.text)):String(e.text):""):""}var Ar,br={abbr:"abbr",accept:"accept","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",alt:"alt",async:"async",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charset",checked:"checked",cite:"cite",class:"className",cols:"cols",colspan:"colSpan",command:"command",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",coords:"coords",crossorigin:"crossOrigin",data:"data",datetime:"dateTime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",dropzone:"dropzone",enctype:"encType",for:"htmlFor",form:"form",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameBorder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang","http-equiv":"httpEquiv",icon:"icon",id:"id",inputmode:"inputMode",ismap:"isMap",itemid:"itemId",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",manifest:"manifest",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",ping:"ping",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radioGroup",readonly:"readOnly",rel:"rel",required:"required",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",sortable:"sortable",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srcset:"srcSet",start:"start",step:"step",style:"style",tabindex:"tabIndex",target:"target",title:"title",translate:"translate",type:"type",typemustmatch:"typeMustMatch",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},Cr="http://www.w3.org/1999/xlink",wr="http://www.w3.org/XML/1998/namespace",Fr={about:null,"accent-height":null,accumulate:null,additive:null,"alignment-baseline":null,alphabetic:null,amplitude:null,"arabic-form":null,ascent:null,attributeName:null,attributeType:null,azimuth:null,bandwidth:null,baseFrequency:null,baseProfile:null,"baseline-shift":null,bbox:null,begin:null,bias:null,by:null,calcMode:null,"cap-height":null,class:null,clip:null,"clip-path":null,"clip-rule":null,clipPathUnits:null,color:null,"color-interpolation":null,"color-interpolation-filters":null,"color-profile":null,"color-rendering":null,content:null,contentScriptType:null,contentStyleType:null,cursor:null,cx:null,cy:null,d:null,datatype:null,defaultAction:null,descent:null,diffuseConstant:null,direction:null,display:null,divisor:null,"dominant-baseline":null,dur:null,dx:null,dy:null,edgeMode:null,editable:null,elevation:null,"enable-background":null,end:null,"ev:event":"http://www.w3.org/2001/xml-events",event:null,exponent:null,externalResourcesRequired:null,fill:null,"fill-opacity":null,"fill-rule":null,filter:null,filterRes:null,filterUnits:null,"flood-color":null,"flood-opacity":null,focusHighlight:null,focusable:null,"font-family":null,"font-size":null,"font-size-adjust":null,"font-stretch":null,"font-style":null,"font-variant":null,"font-weight":null,format:null,from:null,fx:null,fy:null,g1:null,g2:null,"glyph-name":null,"glyph-orientation-horizontal":null,"glyph-orientation-vertical":null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:null,height:null,"horiz-adv-x":null,"horiz-origin-x":null,"horiz-origin-y":null,id:null,ideographic:null,"image-rendering":null,in:null,in2:null,initialVisibility:null,intercept:null,k:null,k1:null,k2:null,k3:null,k4:null,kernelMatrix:null,kernelUnitLength:null,kerning:null,keyPoints:null,keySplines:null,keyTimes:null,lang:null,lengthAdjust:null,"letter-spacing":null,"lighting-color":null,limitingConeAngle:null,local:null,"marker-end":null,"marker-mid":null,"marker-start":null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:null,mediaTime:null,method:null,min:null,mode:null,name:null,"nav-down":null,"nav-down-left":null,"nav-down-right":null,"nav-left":null,"nav-next":null,"nav-prev":null,"nav-right":null,"nav-up":null,"nav-up-left":null,"nav-up-right":null,numOctaves:null,observer:null,offset:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,"overline-position":null,"overline-thickness":null,"panose-1":null,path:null,pathLength:null,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,playbackOrder:null,"pointer-events":null,points:null,pointsAtX:null,pointsAtY:null,pointsAtZ:null,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:null,r:null,radius:null,refX:null,refY:null,rel:null,"rendering-intent":null,repeatCount:null,repeatDur:null,requiredExtensions:null,requiredFeatures:null,requiredFonts:null,requiredFormats:null,resource:null,restart:null,result:null,rev:null,role:null,rotate:null,rx:null,ry:null,scale:null,seed:null,"shape-rendering":null,slope:null,snapshotTime:null,spacing:null,specularConstant:null,specularExponent:null,spreadMethod:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,"stop-color":null,"stop-opacity":null,"strikethrough-position":null,"strikethrough-thickness":null,string:null,stroke:null,"stroke-dasharray":null,"stroke-dashoffset":null,"stroke-linecap":null,"stroke-linejoin":null,"stroke-miterlimit":null,"stroke-opacity":null,"stroke-width":null,surfaceScale:null,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:null,tableValues:null,target:null,targetX:null,targetY:null,"text-anchor":null,"text-decoration":null,"text-rendering":null,textLength:null,timelineBegin:null,title:null,to:null,transform:null,transformBehavior:null,type:null,typeof:null,u1:null,u2:null,"underline-position":null,"underline-thickness":null,unicode:null,"unicode-bidi":null,"unicode-range":null,"units-per-em":null,"v-alphabetic":null,"v-hanging":null,"v-ideographic":null,"v-mathematical":null,values:null,version:null,"vert-adv-y":null,"vert-origin-x":null,"vert-origin-y":null,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,"word-spacing":null,"writing-mode":null,x:null,"x-height":null,x1:null,x2:null,xChannelSelector:null,"xlink:actuate":Cr,"xlink:arcrole":Cr,"xlink:href":Cr,"xlink:role":Cr,"xlink:show":Cr,"xlink:title":Cr,"xlink:type":Cr,"xml:base":wr,"xml:id":wr,"xml:lang":wr,"xml:space":wr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},Or=function(e,t){if(!e)return xr(document.createTextNode(""));if("string"==typeof e){if(!("DOMParser"in window))throw new Error("DOMParser is not available, so parsing string to DOM node is not possible.");var n=(Ar=Ar||new DOMParser).parseFromString(e,"text/html");e=n.body.firstChild?n.getElementsByTagName("body")[0].firstChild:n.head.firstChild&&("TITLE"!==n.head.firstChild.tagName||n.title)?n.head.firstChild:n.firstChild&&"HTML"!==n.firstChild.tagName?n.firstChild:document.createTextNode("")}if("object"!=typeof e||!e||!e.nodeType)throw new Error("invalid dom node",e);return xr(e,t)};function xr(e,t){return 3===e.nodeType?function(e){return new jt(e.nodeValue)}(e):1===e.nodeType||9===e.nodeType?function(e,t){var n="http://www.w3.org/1999/xhtml"!==e.namespaceURI?e.namespaceURI:null,r=t&&e.getAttribute(t)?e.getAttribute(t):null;return new kt(e.tagName,function(e){var t,n,r={};if(!e.hasAttributes())return r;e.namespaceURI&&"http://www.w3.org/1999/xhtml"!==e.namespaceURI&&(t=e.namespaceURI);for(var o=0;o<e.attributes.length;o++)(n="style"==e.attributes[o].name?Br(e):t?Dr(e.attributes[o]):kr(e.attributes[o])).ns?r[n.name]={namespace:n.ns,value:n.value}:n.isAttr?(r.attributes||(r.attributes={}),r.attributes[n.name]=n.value):r[n.name]=n.value;return r}(e),function(e,t){for(var n=[],r=0;r<e.childNodes.length;r++)n.push(xr(e.childNodes[r],t));return n}(e,t),r,n)}(e,t):new jt("")}function kr(e){var t,n,r;return 0===(t=br[e.name]?br[e.name]:e.name).indexOf("data-")||0===t.indexOf("aria-")?(n=e.value,r=!0):n=e.value,{name:t,value:n,isAttr:r||!1}}function Dr(e){return{name:e.name,value:e.value,ns:Fr[e.name]||""}}function Br(e){for(var t=e.style,n={},r=0;r<t.length;++r){var o=t.item(r);n[o]=String(t[o]),n[o].indexOf("url")>-1&&(n[o]=n[o].replace(/\"/g,""))}return{name:"style",value:n}}var Sr=u((function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports}));o(Sr);var jr=u((function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,u=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(u.push(r.value),!t||u.length!==t);i=!0);}catch(e){a=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return u}},e.exports.__esModule=!0,e.exports.default=e.exports}));o(jr);var Nr=u((function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports}));o(Nr);var Pr=u((function(e){e.exports=function(e,t){if(e){if("string"==typeof e)return Nr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nr(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}));o(Pr);var Lr=u((function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}));o(Lr);var Tr=o(u((function(e){e.exports=function(e,t){return Sr(e)||jr(e,t)||Pr(e,t)||Lr()},e.exports.__esModule=!0,e.exports.default=e.exports})));function Rr(e,t,n){var r;return function(){var o=this,u=arguments,i=function(){r=null,n||e.apply(o,u)},a=n&&!r;clearTimeout(r),r=setTimeout(i,t),a&&e.apply(o,u)}}function Ir(e,t){return e.properties&&e.properties.attributes&&e.properties.attributes[t]}function Mr(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var u="string"!=typeof t?[].concat(t):t.split(".");u.length>1;){if(o())return{};var i=r(u.shift());!e[i]&&n&&(e[i]=new n),e=e[i]}return o()?{}:{obj:e,k:r(u.shift())}}function Ur(e,t,n){var r=Mr(e,t,Object);r.obj[r.k]=n}function _r(e,t){var n=Mr(e,t),r=n.obj,o=n.k;if(r)return r[o]}function Hr(){var e=location.pathname;if("/"===e)return"root";var t=e.split("/"),n="root";return t.forEach((function(e){e&&(n+="_".concat(e))})),n}var zr=function(e){if(e.namespace)e.ns.push(e.namespace),e.defaultNS=e.namespace;else if(e.namespaceFromPath){var t=Hr();e.ns.push(t),e.defaultNS=t}return e.ns.length||(e.ns=["translation"]),e.ignoreTags&&(e.ignoreTags=e.ignoreTags.map((function(e){return e.toUpperCase()}))),e.ignoreCleanIndentFor&&(e.ignoreCleanIndentFor=e.ignoreCleanIndentFor.map((function(e){return e.toUpperCase()}))),e.inlineTags&&(e.inlineTags=e.inlineTags.map((function(e){return e.toUpperCase()}))),e.ignoreInlineOn&&(e.ignoreInlineOn=e.ignoreInlineOn.map((function(e){return e.toUpperCase()}))),e.mergeTags&&(e.mergeTags=e.mergeTags.map((function(e){return e.toUpperCase()}))),e.translateAttributes=e.translateAttributes.reduce((function(e,t){var n={attr:t};if(t.indexOf("#")>-1){var r=t.split("#"),o=Tr(r,2),u=o[0],i=o[1];if(n.attr=u,i.indexOf(".")>-1){var a=i.split("."),s=Tr(a,2),l=s[0],c=s[1];n.ele=l.toUpperCase(),n.cond=c.toLowerCase().split("=")}else i.indexOf("=")>-1?n.cond=i.toLowerCase().split("="):n.ele=i.toUpperCase()}return e.push(n),e}),[]),e};function qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{retranslate:!1};return!(!t||!t.retranslate)||(!e.properties||!e.properties.attributes||""!==e.properties.attributes.localized)}function Xr(e){var t=!e.properties||!e.properties.attributes||""!==e.properties.attributes.translated;(t&&e.tagName&&Ae.options.ignoreTags.indexOf(e.tagName)>-1&&(t=!1),t&&Ae.options.ignoreClasses&&e.properties&&e.properties.className)&&e.properties.className.split(" ").forEach((function(e){t&&Ae.options.ignoreClasses.indexOf(e)>-1&&(t=!1)}));return t&&Ae.options.ignoreIds&&Ae.options.ignoreIds.indexOf(e.properties&&e.properties.id)>-1&&(t=!1),t}function Wr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.trim(),o=n||e.trim();return t.defaultValue||(t.defaultValue=e),r&&!Ae.options.ignoreWithoutKey||r&&Ae.options.ignoreWithoutKey&&n?Ae.t(o,t):e}var Jr=["src","href"],$r=new RegExp("%7B%7B(.+?)%7D%7D","g");function Gr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,u=arguments.length>5?arguments[5]:void 0;return t?(Ae.options.translateAttributes.forEach((function(i){if(!i.ele||e.tagName===i.ele){if(i.cond&&2===i.cond.length){var a=_r(t,i.cond[0])||_r(t.attributes,i.cond[0]);if(!a||a!==i.cond[1])return}var s=!1,l=_r(t,i.attr);if(l||(l=_r(t.attributes,i.attr))&&(s=!0),u.retranslate){var c=e.properties&&e.properties&&e.properties.attributes["".concat(i.attr,"-i18next-orgval")];c||(c=l),l=c}l&&(o&&(e.properties.attributes["".concat(i.attr,"-i18next-orgval")]=l),Ur(s?t.attributes:t,i.attr,Wr(l,Vr({},n),r?"".concat(r,".").concat(i.attr):"")))}})),Jr.forEach((function(e){var o=_r(t,e);if(o&&(o=o.replace(/\{\{/g,"%7B%7B").replace(/\}\}/g,"%7D%7D")),o&&o.indexOf("%7B")>-1){var u=[];o.split($r).reduce((function(t,o,u){if(0===o.length)return t;if(u&&u%2!=0){var i=Wr(o,Vr({},n),r?"".concat(r,".").concat(e):"");i&&0==i.indexOf("http")&&t[u-1]&&0===t[u-1].indexOf("http")&&t.splice(u-1,1),t.push(i)}else t.push(o);return t}),u),u.length&&Ur(t,e,u.join(""))}})),t):t}function Yr(e,t){var n=Ir(t,"i18next-options");if(n)try{n=JSON.parse(n)}catch(e){console.warn("failed parsing options on node",t)}return n&&n.inlineTags&&(n.inlineTags=n.inlineTags.map((function(e){return e.toUpperCase()}))),Vr(Vr({},e||{}),n||{})}function Zr(e,t){return Ae.options.cleanIndent?e.replace(/\n +/g,t):e}function Qr(e,t){if(!e.children||!e.children.length||Ae.options.ignoreInlineOn.indexOf(e.tagName)>-1)return!1;if(Ae.options.mergeTags.indexOf(e.tagName)>-1)return!0;var n=t.inlineTags||Ae.options.inlineTags,r=t.additionalInlineTags?n.concat(t.additionalInlineTags):n,o=!0,u=!1;return e.children.forEach((function(e){!e.text&&e.tagName&&r.indexOf(e.tagName.toUpperCase())<0&&(o=!1),e.tagName&&(u=!0)})),o&&u}function eo(e,t){var n=new Wn;n.start();var r=function e(t,n,r,o){var u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0,a=Xr(t),s=Kr(t,i),l=Kr(t);n=Yr(n,t);var c=0===u?o:"";u>0&&o&&!Ae.options.ignoreWithoutKey&&(c="".concat(o,".").concat(u));var p=Ir(t,Ae.options.keyAttr)||c,f=Ir(t,"merge");if("false"!==f&&(""===f||Qr(t,n))){if(a&&s){var d=new kt("I18NEXTIFYDUMMY",null,t.children),h=Zr(mr(d),"").replace("<i18nextifydummy>","").replace("</i18nextifydummy>","");if(i.retranslate){var g=t.properties&&t.properties.attributes&&t.properties.attributes["i18next-orgval"];g||(g=r&&r.properties&&r.properties.attributes&&r.properties.attributes["i18next-orgval-".concat(u)]),g||(g=h),h=g}var v="<i18nextifydummy>".concat(Wr(h,n,p),"</i18nextifydummy>"),y=Or((v||"").trim());t.children=y.children,l&&t.properties&&t.properties.attributes?t.properties.attributes["i18next-orgval"]=h:l&&r&&r.properties&&r.properties.attributes&&(r.properties.attributes["i18next-orgval-".concat(u)]=h),t.properties&&t.properties.attributes&&(t.properties.attributes.localized="")}return t}if(t.children&&t.children.forEach((function(r,o){(a&&s&&r.text||!r.text&&Xr(r))&&e(r,n,t,p,t.children.length>1?o+1:o,i)})),t.text&&!t.properties&&"Widget"===t.type)return t;if(a&&s){if(t.text){var m,E=t.text,A=t.text;if(i.retranslate){var b=t.properties&&t.properties.attributes&&t.properties.attributes["i18next-orgval"];b||(b=r&&r.properties&&r.properties.attributes&&r.properties.attributes["i18next-orgval-".concat(u)]),b||(b=t.text),E=b,A=b}var C=Ae.options.ignoreCleanIndentFor.indexOf(r.tagName)>-1;if(!C&&(E=Zr(E,"\n"),Ae.options.cleanWhitespace)){var w=/^\s*(.*[^\s])\s*$/g;m=w.exec(E)}if(!C&&m&&m.length>1&&Ae.options.cleanWhitespace){var F=Wr(m[1],n,p||"");t.text=E.replace(m[1],F)}else t.text=Wr(E,n,p||"");l&&t.properties&&t.properties.attributes?A&&(t.properties.attributes["i18next-orgval"]=A):l&&r&&r.properties&&r.properties.attributes&&A&&(r.properties.attributes["i18next-orgval-".concat(u)]=A)}t.properties&&(t.properties=Gr(t,t.properties,n,p,l,i)),t.properties&&t.properties.attributes&&(t.properties.attributes.localized="")}return t}(e,null,null,null,null,{retranslate:t});return Ae.services.logger.log("localization took: ".concat(n.end(),"ms")),r}function to(e,t){var n={};return n.render=function(n){var r=function(e){var t=new Wn;t.start();var n=Tt(e);return Ae.services.logger.log("virtualization took: ".concat(t.end(),"ms")),n}(e),o=eo(Xn(r),n),u=en(r,o);u[0]&&t.reset(),e=Kn(e,u)},n.debouncedRender=Rr(n.render,200),n}var no={};var ro=Rr((function(){Ae.services.logger.log("missing resources: \n"+JSON.stringify(no,null,2))}),2e3);function oo(e,t,n,r){"string"==typeof e&&(e=[e]),e||(e=[]),e.forEach((function(e){Ur(no,[e,t,n],r),ro()})),Ae.services.backendConnector&&Ae.services.backendConnector.saveMissing&&Ae.services.backendConnector.saveMissing(e,t,n,r)}function uo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uo(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ao(){return{autorun:!0,ele:document.body,keyAttr:"i18next-key",ignoreWithoutKey:!1,ignoreTags:["SCRIPT"],ignoreIds:[],ignoreClasses:[],translateAttributes:["placeholder","title","alt","value#input.type=button","value#input.type=submit"],mergeTags:[],inlineTags:[],ignoreInlineOn:[],cleanIndent:!0,ignoreCleanIndentFor:["PRE","CODE"],cleanWhitespace:!0,nsSeparator:"#||#",keySeparator:"#|#",debug:window.location.search&&window.location.search.indexOf("debug=true")>-1,saveMissing:window.location.search&&window.location.search.indexOf("saveMissing=true")>-1,namespace:!1,namespaceFromPath:!1,missingKeyHandler:oo,ns:[],onInitialTranslate:function(){}}}var so=!1,lo=!1;Ct((function(){so=!0,lo||fo()})),Ae.use(Ue),Ae.use(it);var co={};var po=[];function fo(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function n(n){for(var r=0;r<n.length;r++){var o=n[r];if(t.ignoreTags.indexOf(o.tagName)<0&&t.ignoreIds.indexOf(o.id)<0&&t.ignoreClasses.indexOf(o.className)<0&&!o.attributes.localized&&!o.attributes.translated){var u=to(o,e);po.push(u),u.render()}}}function r(e,n,o){var u=!0;setTimeout((function(){for(var n=0;n<e.length;n++){var i=e[n];if(t.ignoreTags.indexOf(i.tagName)<0&&t.ignoreIds.indexOf(i.id)<0&&t.ignoreClasses.indexOf(i.className)<0&&!i.attributes.localized&&!i.attributes.translated){u&&r(e,100,o),u=!1;break}}u&&o()}),n)}t=io(io(io({},ao()),co),t),(t=zr(t)).ele||(delete t.ele,co=t),lo=!0;var o=1;function u(){if(!(o-=1)){t.ele||(t.ele=document.body);var u=t.ele.children;e=new vt(t.ele),n(u),e.on("changed",(function(e){po.forEach((function(e){return e.debouncedRender()})),n(u)})),r(u,0,(function(){t.ele.style&&"none"===t.ele.style.display&&(t.ele.style.display="block"),t.onInitialTranslate()}))}}if(so||o++,!1===t.autorun&&o++,Ae.init(t,u),so||Ct(u),!1===t.autorun)return{start:u}}var ho={init:fo,i18next:Ae,changeNamespace:function(e){!e&&co.namespaceFromPath&&(e=Hr()),co.ns.push(e),co.defaultNS=e,Ae.loadNamespaces(co.ns,(function(){Ae.setDefaultNamespace(e)}))},forceRerender:function(){po.forEach((function(e){e.render(!0)}))}},go=[],vo=go.forEach,yo=go.slice;function mo(e){return vo.call(yo.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}function Eo(e,t,n){var r;return function(){var o=this,u=arguments,i=function(){r=null,n||e.apply(o,u)},a=n&&!r;clearTimeout(r),r=setTimeout(i,t),a&&e.apply(o,u)}}function Ao(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(!e)return{};var u=r(o.shift());!e[u]&&n&&(e[u]=new n),e=e[u]}return e?{obj:e,k:r(o.shift())}:{}}function bo(e,t,n){var r=Ao(e,t,Object);r.obj[r.k]=n}function Co(e,t){var n=Ao(e,t),r=n.obj,o=n.k;if(r)return r[o]}var wo,Fo=new RegExp("{{(.+?)}}","g");function Oo(e,t,n){var r,o,u;for(;r=Fo.exec(e);)"string"!=typeof(o=r[1].trim())&&(o=null==(u=o)?"":""+u),o||(o=""),o=o.replace(/\$/g,"$$$$"),e=e.replace(r[0],t[o]||o),Fo.lastIndex=0;return e}function xo(e,t){return t.reduce((function(t,n){if(t)return t;if(!e||!e[n]||"string"!=typeof e[n]||!e[n].toLowerCase()===n.toLowerCase()){var r='i18next-locize-backend :: got "'.concat(e[n],'" in options for ').concat(n," which is invalid.");return console.warn(r),r}return!1}),!1)}function ko(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}if("function"==typeof fetch&&("undefined"!=typeof global&&global.fetch?wo=global.fetch:"undefined"!=typeof window&&window.fetch&&(wo=window.fetch)),"undefined"!=typeof require&&("undefined"==typeof window||void 0===window.document)){var Do=wo||require("cross-fetch");Do.default&&(Do=Do.default),exports.default=Do,module.exports=exports.default}var Bo,So,jo,No=Object.freeze({__proto__:null});function Po(e){return(Po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"function"==typeof fetch&&("undefined"!=typeof global&&global.fetch?Bo=global.fetch:"undefined"!=typeof window&&window.fetch&&(Bo=window.fetch)),"function"!=typeof XMLHttpRequest&&"object"!==("undefined"==typeof XMLHttpRequest?"undefined":Po(XMLHttpRequest))||("undefined"!=typeof global&&global.XMLHttpRequest?So=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(So=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?jo=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(jo=window.ActiveXObject)),Bo||!No||So||jo||(Bo=No),"function"!=typeof Bo&&(Bo=void 0);var Lo=function(e,t,n,r){return"function"==typeof n&&(r=n,n=void 0),r=r||function(){},Bo?function(e,t,n,r){var o={};e.authorize&&e.apiKey&&(o.Authorization=e.apiKey),(n||e.setContentTypeJSON)&&(o["Content-Type"]="application/json"),Bo(t,{method:n?"POST":"GET",body:n?JSON.stringify(n):void 0,headers:o}).then((function(e){var t=e.headers&&"Error from cloudfront"===e.headers.get("x-cache");if(!e.ok)return r(e.statusText||"Error",{status:e.status,resourceNotExisting:t});e.text().then((function(n){r(null,{status:e.status,data:n,resourceNotExisting:t})})).catch(r)})).catch(r)}(e,t,n,r):"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":Po(XMLHttpRequest))||"function"==typeof ActiveXObject?function(e,t,n,r){try{var o;(o=So?new So:new jo("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.authorize&&e.apiKey&&o.setRequestHeader("Authorization",e.apiKey),(n||e.setContentTypeJSON)&&o.setRequestHeader("Content-Type","application/json"),o.onreadystatechange=function(){var e="Error from cloudfront"===o.getResponseHeader("x-cache");o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText,resourceNotExisting:e})},o.send(JSON.stringify(n))}catch(e){console&&console.log(e)}}(e,t,n,r):void 0};function To(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ro(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Io,Mo=function(){return{loadPath:"https://api.locize.app/{{projectId}}/{{version}}/{{lng}}/{{ns}}",privatePath:"https://api.locize.app/private/{{projectId}}/{{version}}/{{lng}}/{{ns}}",getLanguagesPath:"https://api.locize.app/languages/{{projectId}}",addPath:"https://api.locize.app/missing/{{projectId}}/{{version}}/{{lng}}/{{ns}}",updatePath:"https://api.locize.app/update/{{projectId}}/{{version}}/{{lng}}/{{ns}}",referenceLng:"en",crossDomain:!0,setContentTypeJSON:!1,version:"latest",private:!1,translatedPercentageThreshold:.9,failLoadingOnEmptyJSON:!1,allowedAddOrUpdateHosts:["localhost"],onSaved:!1,reloadInterval:"undefined"==typeof window&&36e5,checkForProjectTimeout:3e3,storageExpiration:36e5,writeDebounce:5e3}};try{Io="undefined"!=typeof window&&null!==window.localStorage;var Uo="notExistingLocizeProject";window.localStorage.setItem(Uo,"foo"),window.localStorage.removeItem(Uo)}catch(e){Io=!1}function _o(e){var t=function(){},n=function(){};return Io?(t=function(e){window.localStorage.setItem("notExistingLocizeProject_".concat(e),Date.now())},n=function(t){var n=window.localStorage.getItem("notExistingLocizeProject_".concat(t));return!!n&&(!(Date.now()-n>e)||(window.localStorage.removeItem("notExistingLocizeProject_".concat(t)),!1))}):"undefined"!=typeof document&&(t=function(t){var n=new Date;n.setTime(n.getTime()+e);var r="; expires=".concat(n.toGMTString()),o="notExistingLocizeProject_".concat(t);try{document.cookie="".concat(o,"=").concat(Date.now()).concat(r,";path=/")}catch(e){}},n=function(e){var t="notExistingLocizeProject_".concat(e),n="".concat(t,"=");try{for(var r=document.cookie.split(";"),o=0;o<r.length;o++){for(var u=r[o];" "===u.charAt(0);)u=u.substring(1,u.length);if(0===u.indexOf(n))return!0}}catch(e){}return!1}),{setProjectNotExisting:t,isProjectNotExisting:n}}var Ho=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;To(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",t&&t.projectId?this.init(null,t,r,n):this.init(t,n,r,o)}var t,n,r;return t=e,(n=[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;this.services=e,this.options=mo(n,this.options||{},Mo()),this.allOptions=r,this.somethingLoaded=!1,this.isProjectNotExisting=!1,this.storage=_o(this.options.storageExpiration),this.options.pull&&console.warn('The pull API was removed use "private: true" option instead: https://docs.locize.com/integration/api#fetch-private-namespace-resources');var u="undefined"!=typeof window&&window.location&&window.location.hostname;u?(this.isAddOrUpdateAllowed="function"==typeof this.options.allowedAddOrUpdateHosts?this.options.allowedAddOrUpdateHosts(u):this.options.allowedAddOrUpdateHosts.indexOf(u)>-1,e&&e.logger&&(r.saveMissing||r.updateMissing)&&(this.isAddOrUpdateAllowed?"localhost"!==u&&e.logger.warn('locize-backend: you are using the save or update missings feature from this host "'.concat(u,'".\nMake sure you will not use it in production!\nhttps://docs.locize.com/guides-tips-and-tricks/going-production')):e.logger.warn("function"==typeof this.options.allowedAddOrUpdateHosts?'locize-backend: will not save or update missings because allowedAddOrUpdateHosts returned false for the host "'.concat(u,'".'):'locize-backend: will not save or update missings because the host "'.concat(u,'" was not in the list of allowedAddOrUpdateHosts: ').concat(this.options.allowedAddOrUpdateHosts.join(", ")," (matches need to be exact).")))):this.isAddOrUpdateAllowed=!0,"function"==typeof o&&this.getOptions((function(e,r,u){if(e)return o(e);t.options.referenceLng=n.referenceLng||r.referenceLng||t.options.referenceLng,o(null,r,u)})),this.queuedWrites={pending:{}},this.debouncedProcess=Eo(this.process,this.options.writeDebounce),this.interval&&clearInterval(this.interval),this.options.reloadInterval&&this.options.projectId&&(this.interval=setInterval((function(){return t.reload()}),this.options.reloadInterval))}},{key:"reload",value:function(){var e=this,t=this.services||{logger:console},n=t.backendConnector,r=t.languageUtils,o=t.logger;if(n){var u=n.language;if(!u||"cimode"!==u.toLowerCase()){var i=[],a=function(e){r.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};a(u),this.allOptions.preload&&this.allOptions.preload.forEach((function(e){return a(e)})),i.forEach((function(t){e.allOptions.ns.forEach((function(e){n.read(t,e,"read",null,null,(function(r,u){r&&o.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!r&&u&&o.log("loaded namespace ".concat(e," for language ").concat(t),u),n.loaded("".concat(t,"|").concat(e),r,u)}))}))}))}}}},{key:"getLanguages",value:function(e){var t,n=this;e||(t=ko(),e=function(e,n){if(e)return t.reject(e);t.resolve(n)});var r=xo(this.options,["projectId"]);if(r)return e(new Error(r));var o=Oo(this.options.getLanguagesPath,{projectId:this.options.projectId});return!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting?e(new Error("locize project ".concat(this.options.projectId," does not exist!"))):(this.getLanguagesCalls=this.getLanguagesCalls||[],this.getLanguagesCalls.push(e),this.getLanguagesCalls.length>1?void 0:(this.loadUrl({},o,(function(e,t,r){if(!n.somethingLoaded&&r&&r.resourceNotExisting){n.isProjectNotExisting=!0,n.storage.setProjectNotExisting(n.options.projectId);var o=new Error("locize project ".concat(n.options.projectId," does not exist!")),u=n.getLanguagesCalls;return n.getLanguagesCalls=[],u.forEach((function(e){return e(o)}))}if(t){var i=Object.keys(t).reduce((function(e,n){return t[n].isReferenceLanguage&&(e=n),e}),"");i&&n.options.referenceLng!==i&&(n.options.referenceLng=i)}n.somethingLoaded=!0;var a=n.getLanguagesCalls;n.getLanguagesCalls=[],a.forEach((function(n){return n(e,t)}))})),t))}},{key:"getOptions",value:function(e){var t,n=this;return e||(t=ko(),e=function(e,n){if(e)return t.reject(e);t.resolve(n)}),this.getLanguages((function(t,r){if(t)return e(t);var o=Object.keys(r);if(!o.length)return e(new Error("was unable to load languages via API"));var u=o.reduce((function(e,t){var o=r[t];return o.translated[n.options.version]&&o.translated[n.options.version]>=n.options.translatedPercentageThreshold&&e.push(t),e}),[]),i=o.reduce((function(e,t){return t.indexOf("-")>-1||e}),!1);e(null,{fallbackLng:n.options.referenceLng,referenceLng:n.options.referenceLng,supportedLngs:u,load:i?"all":"languageOnly"},r)})),t}},{key:"checkIfProjectExists",value:function(e){var t=this,n=(this.services||{logger:console}).logger;this.somethingLoaded?e&&e(null):this.alreadyRequestedCheckIfProjectExists?setTimeout((function(){return t.checkIfProjectExists(e)}),this.options.checkForProjectTimeout):(this.alreadyRequestedCheckIfProjectExists=!0,this.getLanguages((function(t){t&&t.message&&t.message.indexOf("does not exist")>0&&n&&n.error(t.message),e&&e(t)})))}},{key:"read",value:function(e,t,n){var r,o=this,u=(this.services||{logger:console}).logger,i={};if(this.options.private){var a=xo(this.options,["projectId","version","apiKey"]);if(a)return n(new Error(a),!1);r=Oo(this.options.privatePath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),i={authorize:!0}}else{var s=xo(this.options,["projectId","version"]);if(s)return n(new Error(s),!1);r=Oo(this.options.loadPath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version})}if(!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting){var l=new Error("locize project ".concat(this.options.projectId," does not exist!"));return u&&u.error(l.message),void(n&&n(l))}this.loadUrl(i,r,(function(e,t,r){o.somethingLoaded||(r&&r.resourceNotExisting?setTimeout((function(){return o.checkIfProjectExists()}),o.options.checkForProjectTimeout):o.somethingLoaded=!0),n(e,t)}))}},{key:"loadUrl",value:function(e,t,n,r){var o=this;e=mo(e,this.options),"function"==typeof n&&(r=n,n=void 0),r=r||function(){},Lo(e,t,n,(function(e,n){var u,i,a=n&&n.resourceNotExisting;if(n&&(408===n.status||400===n.status))return r("failed loading "+t,!0,{resourceNotExisting:a});if(n&&(n.status>=500&&n.status<600||!n.status))return r("failed loading "+t,!0,{resourceNotExisting:a});if(n&&n.status>=400&&n.status<500)return r("failed loading "+t,!1,{resourceNotExisting:a});if(!n&&e&&e.message&&e.message.indexOf("Failed to fetch")>-1)return r("failed loading "+t,!0,{resourceNotExisting:a});if(e)return r(e,!1);try{u=JSON.parse(n.data)}catch(e){i="failed parsing "+t+" to json"}return i?r(i,!1):o.options.failLoadingOnEmptyJSON&&!Object.keys(u).length?r("loaded result empty for "+t,!1,{resourceNotExisting:a}):void r(null,u,{resourceNotExisting:a})}))}},{key:"create",value:function(e,t,n,r,o,u){var i=this;o||(o=function(){}),this.checkIfProjectExists((function(a){if(a)return o(a);var s=xo(i.options,["projectId","version","apiKey","referenceLng"]);return s?o(new Error(s)):i.isAddOrUpdateAllowed?("string"==typeof e&&(e=[e]),e.filter((function(e){return e===i.options.referenceLng})).length<1&&i.services&&i.services.logger&&i.services.logger.warn('locize-backend: will not save missings because the reference language "'.concat(i.options.referenceLng,'" was not in the list of to save languages: ').concat(e.join(", ")," (open your site in the reference language to save missings).")),void e.forEach((function(e){e===i.options.referenceLng&&i.queue.call(i,i.options.referenceLng,t,n,r,o,u)}))):o("host is not allowed to create key.")}))}},{key:"update",value:function(e,t,n,r,o,u){var i=this;o||(o=function(){}),this.checkIfProjectExists((function(a){if(a)return o(a);var s=xo(i.options,["projectId","version","apiKey","referenceLng"]);return s?o(new Error(s)):i.isAddOrUpdateAllowed?(u||(u={}),"string"==typeof e&&(e=[e]),u.isUpdate=!0,void e.forEach((function(e){e===i.options.referenceLng&&i.queue.call(i,i.options.referenceLng,t,n,r,o,u)}))):o("host is not allowed to update key.")}))}},{key:"writePage",value:function(e,t,n,r){var o=Oo(this.options.addPath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),u=Oo(this.options.updatePath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),i=!1,a=!1,s={},l={};n.forEach((function(e){var t=e.options&&e.options.tDescription?{value:e.fallbackValue||"",context:{text:e.options.tDescription}}:e.fallbackValue||"";e.options&&e.options.isUpdate?(a||(a=!0),l[e.key]=t):(i||(i=!0),s[e.key]=t)}));var c=0;i&&c++,a&&c++;var p=function(e){--c||r(e)};c||p(),i&&Lo(mo({authorize:!0},this.options),o,s,p),a&&Lo(mo({authorize:!0},this.options),u,l,p)}},{key:"write",value:function(e,t){var n=this;if(!Co(this.queuedWrites,["locks",e,t])){var r=Co(this.queuedWrites,[e,t]);bo(this.queuedWrites,[e,t],[]);var o=r.filter((function(e){return e.callback})).map((function(e){return e.callback}));r.length&&function(){bo(n.queuedWrites,["locks",e,t],!0);var u=function(){bo(n.queuedWrites,["locks",e,t],!1),o.forEach((function(e){return e()})),n.options.onSaved&&n.options.onSaved(e,t),n.debouncedProcess(e,t)},i=r.length/1e3,a=0,s=r.splice(0,1e3);for(n.writePage(e,t,s,(function(){++a>=i&&u()}));1e3===s.length;)(s=r.splice(0,1e3)).length&&n.writePage(e,t,s,(function(){++a>=i&&u()}))}()}}},{key:"process",value:function(){var e=this;Object.keys(this.queuedWrites).forEach((function(t){"locks"!==t&&Object.keys(e.queuedWrites[t]).forEach((function(n){e.queuedWrites[t][n].length&&e.write(t,n)}))}))}},{key:"queue",value:function(e,t,n,r,o,u){!function(e,t,n,r){var o=Ao(e,t,Object),u=o.obj,i=o.k;u[i]=u[i]||[],r&&(u[i]=u[i].concat(n)),r||u[i].push(n)}(this.queuedWrites,[e,t],{key:n,fallbackValue:r||"",callback:o,options:u}),this.debouncedProcess()}}])&&Ro(t.prototype,n),r&&Ro(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function zo(e){return(zo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qo(e){var t={top:0,left:0,right:0,bottom:0},n=e&&e.ownerDocument,r=n&&n.documentElement;if(!r)return t;"undefined"!==zo(e.getBoundingClientRect)&&(t=e.getBoundingClientRect());var o=function(e){return null!=(t=e)&&t===t.window?e:9===e.nodeType&&e.defaultView;var t}(n),u=t.top+o.pageYOffset-r.clientTop,i=t.left+o.pageXOffset-r.clientLeft;return{top:u,left:i,right:i+(t.right-t.left),bottom:u+(t.bottom-t.top)}}function Vo(e,t){return e&&e.getAttribute&&e.getAttribute(t)}function Ko(e){var t;return function e(n){var r=Vo(n,"i18next-options");if(r||(r=Vo(n,"data-i18next-options")),r||(r=Vo(n,"i18n-options")),r||(r=Vo(n,"data-i18n-options")),r){var o={};try{o=JSON.parse(r)}catch(e){}o.ns&&(t=o.ns)}t||(t=Vo(n,"i18next-ns")),t||(t=Vo(n,"data-i18next-ns")),t||(t=Vo(n,"i18n-ns")),t||(t=Vo(n,"data-i18n-ns")),!t&&n.parentElement&&e(n.parentElement)}(e),t}function Xo(e){return function(t){var n=function(e){if(e.srcElement&&1===e.srcElement.nodeType&&("BUTTON"===e.srcElement.nodeName||"INPUT"===e.srcElement.nodeName))return e.srcElement.getAttribute&&""===e.srcElement.getAttribute("ignorelocizeeditor")?null:e.srcElement;var t;if(e.originalEvent&&e.originalEvent.explicitOriginalTarget)t=e.originalEvent.explicitOriginalTarget;else{var n=e.srcElement;if(n.getAttribute&&""===n.getAttribute("ignorelocizeeditor"))return null;for(var r,o=e.pageX,u=e.pageY,i=0,a=0;a<n.childNodes.length;a++){var s=n.childNodes[a],l=qo(s);1===s.nodeType&&l.bottom<u&&(i=a+1),!r&&l.top+(s.clientHeight||0)>u&&(r=a)}i+1>n.childNodes.length&&(i=n.childNodes.length-1),r||(r=n.childNodes.length);for(var c=i;c<r;c++){var p=n.childNodes[c];if(qo(p).left>o)break;p&&8!==p.nodeType&&(t=p)}}return t}(t);if(!n)return{};t.preventDefault(),t.stopPropagation();var r=function(e){var t=e.textContent||e.text&&e.text.innerText||e.placeholder;if("string"==typeof t)return t.replace(/\n +/g,"").trim()}(n),o=function e(t){var n=Vo(t,"data-i18n");return n||(t.nodeType===window.Node.TEXT_NODE&&t.parentElement?e(t.parentElement):void 0)}(n),u=n.getBoundingClientRect?n:n.parentElement,i=u.getBoundingClientRect(),a=i.top,s=i.left,l=i.width,c=i.height,p=window.getComputedStyle(u,null),f=parseFloat(p.getPropertyValue("padding-top")),d=parseFloat(p.getPropertyValue("padding-bottom")),h=parseFloat(p.getPropertyValue("padding-right")),g=parseFloat(p.getPropertyValue("padding-left")),v=p.getPropertyValue("box-sizing");e({tagName:u.tagName,text:r,key:o,ns:Ko(n),box:{top:a,left:s,width:"border-box"===v?l:l-h-g,height:"border-box"===v?c:c-f-d},style:p.cssText})}}Ho.type="backend";var Wo,Jo,$o,Go,Yo,Zo,Qo=!0;try{Qo=self!==top}catch(e){}var eu=[];var tu={type:"3rdParty",init:function(e){Yo=function(t){t.updated.forEach((function(t){var n=t.lng,r=t.ns,o=t.key,u=t.data;e.addResource(n,r,o,u.value,{silent:!0}),e.emit("editorSaved")}))},Qo&&(e.options.missingKeyHandler=function(e,t,n,r,o,u){o||function(e,t,n,r){var o={message:"added",lng:e,ns:t,key:n,value:r};Wo?Wo.postMessage(o,Jo):eu.push(o)}(e,t,n,r)})}};"undefined"!=typeof window&&window.addEventListener("message",(function(e){if("isLocizeEnabled"===e.data.message)Wo||(Wo=e.source,Jo=e.origin,$o=Xo((function(e){Wo.postMessage({message:"clickedElement",payload:e},Jo)}))),Wo.postMessage({message:"locizeIsEnabled",enabled:!0},e.origin),eu.forEach((function(t){Wo.postMessage(t,e.origin)})),eu=[];else if("turnOn"===e.data.message){if(Zo)return Wo.postMessage({message:"forcedOff"},Jo);Go||window.document.body.addEventListener("click",$o,!0),Go=!0,Wo.postMessage({message:"turnedOn"},Jo)}else if("turnOff"===e.data.message){if(Zo)return Wo.postMessage({message:"forcedOff"},Jo);Go&&window.document.body.removeEventListener("click",$o,!0),Go=!1,Wo.postMessage({message:"turnedOff"},Jo)}else if("committed"===e.data.message){var t=e.data.payload;window.locizeSavedHandler&&window.locizeSavedHandler(t),Yo&&Yo(t)}}));var{i18next:nu}=ho,ru={saveMissingTo:"all"},ou={reloadOnSave:!0,bindSavedMissing:!0};nu.use(Ho).use(tu),nu.on("editorSaved",()=>{ho.forceRerender()});var uu=nu.init;return nu.init=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;e=n(n({},ou),e);var r=document.getElementById("locizify");if(r){var o={},u={},i=["fallbackLng","saveMissing","debug","autorun","ele","cleanIndent","cleanWhitespace","namespace","namespaceFromPath","load"],a=["ignoreTags","ignoreIds","ignoreClasses","translateAttributes","mergeTags","inlineTags","ignoreInlineOn","ignoreCleanIndentFor","ns"],s=["projectId","apiKey","referenceLng","version","allowedAddOrUpdateHost"];i.forEach(e=>{var t=r.getAttribute(e.toLowerCase());"true"===t&&(t=!0),"false"===t&&(t=!1),null!=t&&(o[e]=t)}),a.forEach(e=>{var t=r.getAttribute(e.toLowerCase());null!=t&&(o[e]=t.split(",").map(e=>e.trim()))}),s.forEach(e=>{var t=r.getAttribute(e.toLowerCase());"true"===t&&(t=!0),"false"===t&&(t=!1),null!=t&&(u[e]=t)}),u.allowedAddOrUpdateHost&&(u.allowedAddOrUpdateHosts=[u.allowedAddOrUpdateHost],delete u.allowedAddOrUpdateHost),(e=n(n(n({},ou),e),o)).backend=n(n({},e.backend),u)}function l(e,n){t(e,n)}if(!e.backend.autoPilot||"false"===e.backend.autoPilot)return uu.call(nu,n(n({},e),ru),l);var c=new Ho(e.backend);c.getOptions((t,r)=>{t&&"object"==typeof console&&"function"==typeof console.error&&console.error(t),uu.call(nu,n(n(n({},r),e),ru),l)})},ho.getLanguages=function(e){if(nu.services.backendConnector)nu.services.backendConnector.backend.getLanguages(e);else{nu.on("initialized",(function t(){nu.off("initialized",t),nu.services.backendConnector.backend.getLanguages(e)}))}},ho.getOptions=function(e){if(nu.services.backendConnector)nu.services.backendConnector.backend.getOptions(e);else{nu.on("initialized",(function t(){nu.off("initialized",t),nu.services.backendConnector.backend.getOptions(e)}))}},ho.editor={turnOn:function(){return Zo=!1,Go||window.document.body.addEventListener("click",$o,!0),Go=!0,Wo&&Wo.postMessage({message:"turnedOn"},Jo),Zo},turnOff:function(){return Zo=!0,Go&&window.document.body.removeEventListener("click",$o,!0),Go=!1,Wo&&Wo.postMessage({message:"turnedOff"},Jo),Wo&&Wo.postMessage({message:"forcedOff"},Jo),Zo}},ho}));
|
|
25
|
+
e.exports=t;var n=e.exports.properties=["accept","accessKey","action","alt","async","autoComplete","autoPlay","cellPadding","cellSpacing","checked","className","colSpan","content","contentEditable","controls","crossOrigin","data","defer","dir","download","draggable","encType","formNoValidate","href","hrefLang","htmlFor","httpEquiv","icon","id","label","lang","list","loop","max","mediaGroup","method","min","multiple","muted","name","noValidate","pattern","placeholder","poster","preload","radioGroup","readOnly","rel","required","rowSpan","sandbox","scope","scrollLeft","scrolling","scrollTop","selected","span","spellCheck","src","srcDoc","srcSet","start","step","style","tabIndex","target","title","type","value","autoCapitalize","autoCorrect","property","attributes"],r=e.exports.attrBlacklist={class:"className"}})),Rt=(Tt.properties,Tt.attrBlacklist,Array.isArray),It=Object.prototype.toString,Mt=Rt||function(e){return"[object Array]"===It.call(e)};_t.NONE=0,_t.VTEXT=1,_t.VNODE=2,_t.WIDGET=3,_t.PROPS=4,_t.ORDER=5,_t.INSERT=6,_t.REMOVE=7,_t.THUNK=8;var Ut=_t;function _t(e,t,n){this.type=Number(e),this.vNode=t,this.patch=n}_t.prototype.version="2",_t.prototype.type="VirtualPatch";var Ht=function(e){return e&&"VirtualText"===e.type&&"2"===e.version};var zt=function(e,t){var n=e,r=t;Ot(t)&&(r=qt(t,e));Ot(e)&&(n=qt(e,null));return{a:n,b:r}};function qt(e,t){var n=e.vnode;if(n||(n=e.vnode=e.render(t)),!(wt(n)||Ht(n)||Ft(n)))throw new Error("thunk did not return a valid node");return n}var Vt=function(e){return"object"==typeof e&&null!==e},Kt=function e(t,n){var r;for(var o in t){o in n||((r=r||{})[o]=void 0);var u=t[o],i=n[o];if(u!==i)if(Vt(u)&&Vt(i))if(Xt(i)!==Xt(u))(r=r||{})[o]=i;else if(xt(i))(r=r||{})[o]=i;else{var a=e(u,i);a&&((r=r||{})[o]=a)}else(r=r||{})[o]=i}for(var s in n)s in t||((r=r||{})[s]=n[s]);return r};function Xt(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}function Wt(e,t){var n={a:e};return Jt(e,t,n,0),n}function Jt(e,t,n,r){if(e!==t){var o=n[r],u=!1;if(Ot(e)||Ot(t))Gt(e,t,n,r);else if(null==t)Ft(e)||($t(e,n,r),o=n[r]),o=Qt(o,new Ut(Ut.REMOVE,e,t));else if(wt(t))if(wt(e))if(e.tagName===t.tagName&&e.namespace===t.namespace&&e.key===t.key){var i=Kt(e.properties,t.properties);i&&(o=Qt(o,new Ut(Ut.PROPS,e,i))),o=function(e,t,n,r,o){for(var u=e.children,i=function(e,t){var n=Zt(t),r=n.keys,o=n.free;if(o.length===t.length)return{children:t,moves:null};var u=Zt(e),i=u.keys;if(u.free.length===e.length)return{children:t,moves:null};for(var a=[],s=0,l=o.length,c=0,p=0;p<e.length;p++){var f,d=e[p];d.key?r.hasOwnProperty(d.key)?(f=r[d.key],a.push(t[f])):(f=p-c++,a.push(null)):s<l?(f=o[s++],a.push(t[f])):(f=p-c++,a.push(null))}for(var h=s>=o.length?t.length:o[s],g=0;g<t.length;g++){var v=t[g];v.key?i.hasOwnProperty(v.key)||a.push(v):g>=h&&a.push(v)}for(var y,m=a.slice(),E=0,A=[],b=[],C=0;C<t.length;){var w=t[C];for(y=m[E];null===y&&m.length;)A.push(Yt(m,E,null)),y=m[E];y&&y.key===w.key?(E++,C++):w.key?(y&&y.key&&r[y.key]!==C+1?(A.push(Yt(m,E,y.key)),(y=m[E])&&y.key===w.key?E++:b.push({key:w.key,to:C})):b.push({key:w.key,to:C}),C++):y&&y.key&&A.push(Yt(m,E,y.key))}for(;E<m.length;)y=m[E],A.push(Yt(m,E,y&&y.key));if(A.length===c&&!b.length)return{children:a,moves:null};return{children:a,moves:{removes:A,inserts:b}}}(u,t.children),a=i.children,s=u.length,l=a.length,c=s>l?s:l,p=0;p<c;p++){var f=u[p],d=a[p];o+=1,f?Jt(f,d,n,o):d&&(r=Qt(r,new Ut(Ut.INSERT,null,d))),wt(f)&&f.count&&(o+=f.count)}i.moves&&(r=Qt(r,new Ut(Ut.ORDER,e,i.moves)));return r}(e,t,n,o,r)}else o=Qt(o,new Ut(Ut.VNODE,e,t)),u=!0;else o=Qt(o,new Ut(Ut.VNODE,e,t)),u=!0;else Ht(t)?Ht(e)?e.text!==t.text&&(o=Qt(o,new Ut(Ut.VTEXT,e,t))):(o=Qt(o,new Ut(Ut.VTEXT,e,t)),u=!0):Ft(t)&&(Ft(e)||(u=!0),o=Qt(o,new Ut(Ut.WIDGET,e,t)));o&&(n[r]=o),u&&$t(e,n,r)}}function $t(e,t,n){!function e(t,n,r){if(wt(t)){if(t.hooks&&(n[r]=Qt(n[r],new Ut(Ut.PROPS,t,function(e){var t={};for(var n in e)t[n]=void 0;return t}(t.hooks)))),t.descendantHooks||t.hasThunks)for(var o=t.children,u=o.length,i=0;i<u;i++){var a=o[i];e(a,n,r+=1),wt(a)&&a.count&&(r+=a.count)}}else Ot(t)&&Gt(t,null,n,r)}(e,t,n),function e(t,n,r){if(Ft(t))"function"==typeof t.destroy&&(n[r]=Qt(n[r],new Ut(Ut.REMOVE,t,null)));else if(wt(t)&&(t.hasWidgets||t.hasThunks))for(var o=t.children,u=o.length,i=0;i<u;i++){var a=o[i];e(a,n,r+=1),wt(a)&&a.count&&(r+=a.count)}else Ot(t)&&Gt(t,null,n,r)}(e,t,n)}function Gt(e,t,n,r){var o=zt(e,t),u=Wt(o.a,o.b);(function(e){for(var t in e)if("a"!==t)return!0;return!1})(u)&&(n[r]=new Ut(Ut.THUNK,null,u))}function Yt(e,t,n){return e.splice(t,1),{from:t,key:n}}function Zt(e){for(var t={},n=[],r=e.length,o=0;o<r;o++){var u=e[o];u.key?t[u.key]=o:n.push(o)}return{keys:t,free:n}}function Qt(e,t){return e?(Mt(e)?e.push(t):e=[e,t],e):t}var en=Wt,tn=Array.prototype.slice,nn=function(e,t){"length"in e||(e=[e]);e=tn.call(e);for(;e.length;){var n=e.shift(),r=t(n);if(r)return r;n.childNodes&&n.childNodes.length&&(e=tn.call(n.childNodes).concat(e))}};var rn=on;function on(e,t){if(!(this instanceof on))return new on(e,t);this.data=e,this.nodeValue=e,this.length=e.length,this.ownerDocument=t||null}on.prototype.nodeType=8,on.prototype.nodeName="#comment",on.prototype.toString=function(){return"[object Comment]"};var un=an;function an(e,t){if(!(this instanceof an))return new an(e);this.data=e||"",this.length=this.data.length,this.ownerDocument=t||null}an.prototype.type="DOMTextNode",an.prototype.nodeType=3,an.prototype.nodeName="#text",an.prototype.toString=function(){return this.data},an.prototype.replaceData=function(e,t,n){var r=this.data,o=r.substring(0,e),u=r.substring(e+t,r.length);this.data=o+n+u,this.length=this.data.length};var sn=function(e){var t=this,n=e.type;e.target||(e.target=t);t.listeners||(t.listeners={});var r=t.listeners[n];if(r)return r.forEach((function(n){e.currentTarget=t,"function"==typeof n?n(e):n.handleEvent(e)}));t.parentNode&&t.parentNode.dispatchEvent(e)};var ln=function(e,t){this.listeners||(this.listeners={});this.listeners[e]||(this.listeners[e]=[]);-1===this.listeners[e].indexOf(t)&&this.listeners[e].push(t)};var cn=function(e,t){if(!this.listeners)return;if(!this.listeners[e])return;var n=this.listeners[e],r=n.indexOf(t);-1!==r&&n.splice(r,1)};var pn=dn,fn=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function dn(e){switch(e.nodeType){case 3:return vn(e.data);case 8:return"\x3c!--"+e.data+"--\x3e";default:return function(e){var t=[],n=e.tagName;"http://www.w3.org/1999/xhtml"===e.namespaceURI&&(n=n.toLowerCase());t.push("<"+n+function(e){var t=[];for(var n in e)hn(e,n)&&t.push({name:n,value:e[n]});for(var r in e._attributes)for(var o in e._attributes[r]){var u=e._attributes[r][o],i=(u.prefix?u.prefix+":":"")+o;t.push({name:i,value:u.value})}e.className&&t.push({name:"class",value:e.className});return t.length?gn(t):""}(e)+function(e){var t=e.dataset,n=[];for(var r in t)n.push({name:"data-"+r,value:t[r]});return n.length?gn(n):""}(e)),fn.indexOf(n)>-1?t.push(" />"):(t.push(">"),e.childNodes.length?t.push.apply(t,e.childNodes.map(dn)):e.textContent||e.innerText?t.push(vn(e.textContent||e.innerText)):e.innerHTML&&t.push(e.innerHTML),t.push("</"+n+">"));return t.join("")}(e)}}function hn(e,t){var n=typeof e[t];return"style"===t&&Object.keys(e.style).length>0||e.hasOwnProperty(t)&&("string"===n||"boolean"===n||"number"===n)&&"nodeName"!==t&&"className"!==t&&"tagName"!==t&&"textContent"!==t&&"innerText"!==t&&"namespaceURI"!==t&&"innerHTML"!==t}function gn(e){var t=[];return e.forEach((function(e){var n=e.name,r=e.value;"style"===n&&(r=function(e){if("string"==typeof e)return e;var t="";return Object.keys(e).forEach((function(n){var r=e[n];n=n.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})),t+=n+":"+r+";"})),t}(r)),t.push(n+'="'+(vn(r).replace(/"/g,""")+'"'))})),t.length?" "+t.join(" "):""}function vn(e){var t="";return"string"==typeof e?t=e:e&&(t=e.toString()),t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}var yn="http://www.w3.org/1999/xhtml",mn=En;function En(e,t,n){if(!(this instanceof En))return new En(e);var r=void 0===n?yn:n||null;this.tagName=r===yn?String(e).toUpperCase():e,this.nodeName=this.tagName,this.className="",this.dataset={},this.childNodes=[],this.parentNode=null,this.style={},this.ownerDocument=t||null,this.namespaceURI=r,this._attributes={},"INPUT"===this.tagName&&(this.type="text")}En.prototype.type="DOMElement",En.prototype.nodeType=1,En.prototype.appendChild=function(e){return e.parentNode&&e.parentNode.removeChild(e),this.childNodes.push(e),e.parentNode=this,e},En.prototype.replaceChild=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var n=this.childNodes.indexOf(t);return t.parentNode=null,this.childNodes[n]=e,e.parentNode=this,t},En.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);return this.childNodes.splice(t,1),e.parentNode=null,e},En.prototype.insertBefore=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var n=null==t?-1:this.childNodes.indexOf(t);return n>-1?this.childNodes.splice(n,0,e):this.childNodes.push(e),e.parentNode=this,e},En.prototype.setAttributeNS=function(e,t,n){var r=null,o=t,u=t.indexOf(":");(u>-1&&(r=t.substr(0,u),o=t.substr(u+1)),"INPUT"===this.tagName&&"type"===t)?this.type=n:(this._attributes[e]||(this._attributes[e]={}))[o]={value:n,prefix:r}},En.prototype.getAttributeNS=function(e,t){var n=this._attributes[e],r=n&&n[t]&&n[t].value;return"INPUT"===this.tagName&&"type"===t?this.type:"string"!=typeof r?null:r},En.prototype.removeAttributeNS=function(e,t){var n=this._attributes[e];n&&delete n[t]},En.prototype.hasAttributeNS=function(e,t){var n=this._attributes[e];return!!n&&t in n},En.prototype.setAttribute=function(e,t){return this.setAttributeNS(null,e,t)},En.prototype.getAttribute=function(e){return this.getAttributeNS(null,e)},En.prototype.removeAttribute=function(e){return this.removeAttributeNS(null,e)},En.prototype.hasAttribute=function(e){return this.hasAttributeNS(null,e)},En.prototype.removeEventListener=cn,En.prototype.addEventListener=ln,En.prototype.dispatchEvent=sn,En.prototype.focus=function(){},En.prototype.toString=function(){return pn(this)},En.prototype.getElementsByClassName=function(e){var t=e.split(" "),n=[];return nn(this,(function(e){if(1===e.nodeType){var r=(e.className||"").split(" ");t.every((function(e){return-1!==r.indexOf(e)}))&&n.push(e)}})),n},En.prototype.getElementsByTagName=function(e){e=e.toLowerCase();var t=[];return nn(this.childNodes,(function(n){1!==n.nodeType||"*"!==e&&n.tagName.toLowerCase()!==e||t.push(n)})),t},En.prototype.contains=function(e){return nn(this,(function(t){return e===t}))||!1};var An=bn;function bn(e){if(!(this instanceof bn))return new bn;this.childNodes=[],this.parentNode=null,this.ownerDocument=e||null}bn.prototype.type="DocumentFragment",bn.prototype.nodeType=11,bn.prototype.nodeName="#document-fragment",bn.prototype.appendChild=mn.prototype.appendChild,bn.prototype.replaceChild=mn.prototype.replaceChild,bn.prototype.removeChild=mn.prototype.removeChild,bn.prototype.toString=function(){return this.childNodes.map((function(e){return String(e)})).join("")};var Cn=wn;function wn(e){}wn.prototype.initEvent=function(e,t,n){this.type=e,this.bubbles=t,this.cancelable=n},wn.prototype.preventDefault=function(){};var Fn=On;function On(){if(!(this instanceof On))return new On;this.head=this.createElement("head"),this.body=this.createElement("body"),this.documentElement=this.createElement("html"),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body),this.childNodes=[this.documentElement],this.nodeType=9}var xn=On.prototype;xn.createTextNode=function(e){return new un(e,this)},xn.createElementNS=function(e,t){var n=null===e?null:String(e);return new mn(t,this,n)},xn.createElement=function(e){return new mn(e,this)},xn.createDocumentFragment=function(){return new An(this)},xn.createEvent=function(e){return new Cn(e)},xn.createComment=function(e){return new rn(e,this)},xn.getElementById=function(e){return e=String(e),nn(this.childNodes,(function(t){if(String(t.id)===e)return t}))||null},xn.getElementsByClassName=mn.prototype.getElementsByClassName,xn.getElementsByTagName=mn.prototype.getElementsByTagName,xn.contains=mn.prototype.contains,xn.removeEventListener=cn,xn.addEventListener=ln,xn.dispatchEvent=sn;var kn,Dn=new Fn,Bn=void 0!==r?r:"undefined"!=typeof window?window:{};"undefined"!=typeof document?kn=document:(kn=Bn["__GLOBAL_DOCUMENT_CACHE@4"])||(kn=Bn["__GLOBAL_DOCUMENT_CACHE@4"]=Dn);var Sn=kn,jn=function(e,t,n){for(var r in t){var o=t[r];void 0===o?Nn(e,r,o,n):xt(o)?(Nn(e,r,o,n),o.hook&&o.hook(e,r,n?n[r]:void 0)):Vt(o)?Pn(e,t,n,r,o):e[r]=o}};function Nn(e,t,n,r){if(r){var o=r[t];if(xt(o))o.unhook&&o.unhook(e,t,n);else if("attributes"===t)for(var u in o)e.removeAttribute(u);else if("style"===t)for(var i in o)e.style[i]="";else e[t]="string"==typeof o?"":null}}function Pn(e,t,n,r,o){var u=n?n[r]:void 0;if("attributes"!==r)if(u&&Vt(u)&&Ln(u)!==Ln(o))e[r]=o;else{Vt(e[r])||(e[r]={});var i="style"===r?"":void 0;for(var a in o){var s=o[a];e[r][a]=void 0===s?i:s}}else for(var l in o){var c=o[l];void 0===c?e.removeAttribute(l):e.setAttribute(l,c)}}function Ln(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}var Tn=function e(t,n){var r=n&&n.document||Sn,o=n?n.warn:null;if(t=zt(t).a,Ft(t))return t.init();if(Ht(t))return r.createTextNode(t.text);if(!wt(t))return o&&o("Item is not a valid virtual dom node",t),null;var u=null===t.namespace?r.createElement(t.tagName):r.createElementNS(t.namespace,t.tagName),i=t.properties;jn(u,i);for(var a=t.children,s=0;s<a.length;s++){var l=e(a[s],n);l&&u.appendChild(l)}return u};var Rn={},In=function(e,t,n,r){return n&&0!==n.length?(n.sort(Un),function e(t,n,r,o,u){if(o=o||{},t){Mn(r,u,u)&&(o[u]=t);var i=n.children;if(i)for(var a=t.childNodes,s=0;s<n.children.length;s++){u+=1;var l=i[s]||Rn,c=u+(l.count||0);Mn(r,u,c)&&e(a[s],l,r,o,u),u=c}}return o}(e,t,n,r,0)):{}};function Mn(e,t,n){if(0===e.length)return!1;for(var r,o,u=0,i=e.length-1;u<=i;){if(o=e[r=(i+u)/2>>0],u===i)return o>=t&&o<=n;if(o<t)u=r+1;else{if(!(o>n))return!0;i=r-1}}return!1}function Un(e,t){return e>t?1:-1}var _n=function(e,t){if(Ft(e)&&Ft(t))return"name"in e&&"name"in t?e.id===t.id:e.init===t.init;return!1};var Hn=function(e,t,n){var r=e.type,o=e.vNode,u=e.patch;switch(r){case Ut.REMOVE:return function(e,t){var n=e.parentNode;n&&n.removeChild(e);return zn(e,t),null}(t,o);case Ut.INSERT:return function(e,t,n){var r=n.render(t,n);e&&e.appendChild(r);return e}(t,u,n);case Ut.VTEXT:return function(e,t,n,r){var o;if(3===e.nodeType)e.replaceData(0,e.length,n.text),o=e;else{var u=e.parentNode;o=r.render(n,r),u&&o!==e&&u.replaceChild(o,e)}return o}(t,0,u,n);case Ut.WIDGET:return function(e,t,n,r){var o,u=_n(t,n);o=u?n.update(t,e)||e:r.render(n,r);var i=e.parentNode;i&&o!==e&&i.replaceChild(o,e);u||zn(e,t);return o}(t,o,u,n);case Ut.VNODE:return function(e,t,n,r){var o=e.parentNode,u=r.render(n,r);o&&u!==e&&o.replaceChild(u,e);return u}(t,0,u,n);case Ut.ORDER:return function(e,t){for(var n,r,o,u=e.childNodes,i={},a=0;a<t.removes.length;a++)r=t.removes[a],n=u[r.from],r.key&&(i[r.key]=n),e.removeChild(n);for(var s=u.length,l=0;l<t.inserts.length;l++)o=t.inserts[l],n=i[o.key],e.insertBefore(n,o.to>=s++?null:u[o.to])}(t,u),t;case Ut.PROPS:return jn(t,u,o.properties),t;case Ut.THUNK:return function(e,t){e&&t&&e!==t&&e.parentNode&&e.parentNode.replaceChild(t,e);return t}(t,n.patch(t,u,n));default:return t}};function zn(e,t){"function"==typeof t.destroy&&Ft(t)&&t.destroy(e)}function qn(e,t,n){var r=function(e){var t=[];for(var n in e)"a"!==n&&t.push(Number(n));return t}(t);if(0===r.length)return e;var o=In(e,t.a,r),u=e.ownerDocument;n.document||u===Sn||(n.document=u);for(var i=0;i<r.length;i++){var a=r[i];e=Vn(e,o[a],t[a],n)}return e}function Vn(e,t,n,r){if(!t)return e;var o;if(Mt(n))for(var u=0;u<n.length;u++)o=Hn(n[u],t,r),t===e&&(e=o);else o=Hn(n,t,r),t===e&&(e=o);return e}var Kn=function e(t,n,r){return(r=r||{}).patch=r.patch&&r.patch!==e?r.patch:qn,r.render=r.render||Tn,r.patch(t,n,r)},Xn=u((function(e,t){e.exports=function(){var e=o((function(e){return e})),t=u(o((function(e){var t=e.length;return new e.constructor(t)})),["BYTES_PER_ELEMENT","get","set","slice","subarray","buffer","length","byteOffset","byteLength"]);function n(e){return"[object "+e+"]"}var r={};function o(e){return function(t,n,r){n.push(t);var o=e(t);return r.push(o),o}}function u(e,t){return function(n,r,o){var u=this;return Object.getOwnPropertyNames(n).filter((function(e){return!t||-1===t.indexOf(e)})).reduce((function(e,t){var i=r.indexOf(n[t]);return e[t]=-1===i?u(n[t]):o[i],e}),e(n,r,o))}}return r[n("RegExp")]=o((function(e){return new RegExp(e)})),r[n("Date")]=o((function(e){return new Date(e.getTime())})),r[n("Function")]=u(o((function(e){return n=function(e){for(var t=[],n=1;n<=e;n++)t.push("arg"+n);return t}((t=e).length),r="return false || function ",r+=t.name+"(",r+=n.join(", ")+") {\n",r+="return fn.apply(this, arguments);\n",r+="};",Function("fn",r)(t);var t,n,r})),["caller","arguments"]),r[n("Object")]=u(o((function(e){return Object.create(Object.getPrototypeOf(e))}))),r[n("Array")]=u(o((function(e){return[]}))),["Null","Undefined","Number","String","Boolean"].map(n).forEach((function(t){r[t]=e})),["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].map(n).forEach((function(e){r[e]=t})),function(e){var t=[],n=[];return function e(o){var u=Object.prototype.toString.call(o);return r[u].call(e,o,t,n)}(e)}}()})),Wn=function(){function e(){at(this,e)}return st(e,[{key:"start",value:function(){this.started=(new Date).getTime()}},{key:"end",value:function(){return this.ended=(new Date).getTime(),this.ended-this.started}}]),e}(),Jn=/["'&<>]/,$n=function(e){var t,n=""+e,r=Jn.exec(n);if(!r)return n;var o="",u=0,i=0;for(u=r.index;u<n.length;u++){switch(n.charCodeAt(u)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}i!==u&&(o+=n.substring(i,u)),i=u+1,o+=t}return i!==u?o+n.substring(i,u):o};var Gn=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)Yn.call(n,r)&&(e[r]=n[r])}return e},Yn=Object.prototype.hasOwnProperty;var Zn=Qn;function Qn(e){if(!(this instanceof Qn))return new Qn(e);this.value=e}Qn.prototype.hook=function(e,t){e[t]!==this.value&&(e[t]=this.value)};var er=tr;function tr(e,t){if(!(this instanceof tr))return new tr(e,t);this.namespace=e,this.value=t}tr.prototype.hook=function(e,t,n){n&&"AttributeHook"===n.type&&n.value===this.value&&n.namespace===this.namespace||e.setAttributeNS(this.namespace,t,this.value)},tr.prototype.unhook=function(e,t,n){if(!n||"AttributeHook"!==n.type||n.namespace!==this.namespace){var r=t.indexOf(":"),o=r>-1?t.substr(r+1):t;e.removeAttributeNS(this.namespace,o)}},tr.prototype.type="AttributeHook";var nr,rr,or={tr:{regexp:/\u0130|\u0049|\u0049\u0307/g,map:{"İ":"i",I:"ı","İ":"i"}},az:{regexp:/[\u0130]/g,map:{"İ":"i",I:"ı","İ":"i"}},lt:{regexp:/[\u0049\u004A\u012E\u00CC\u00CD\u0128]/g,map:{I:"i̇",J:"j̇","Į":"į̇","Ì":"i̇̀","Í":"i̇́","Ĩ":"i̇̃"}}},ur=/[^\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]+/g,ir=/([\u0061-\u007A\u00B5\u00DF-\u00F6\u00F8-\u00FF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0561-\u0587\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7FA\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A])([\u0041-\u005A\u00C0-\u00D6\u00D8-\u00DE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA\uFF21-\uFF3A\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])/g,ar=/([\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])([^\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])/g,sr=function(e,t,n){if(null==e)return"";return n=n||" ",function(e,t){var n=or[t];return e=null==e?"":String(e),n&&(e=e.replace(n.regexp,(function(e){return n.map[e]}))),e.toLowerCase()}(e=String(e).replace(ir,"$1 $2").replace(ar,"$1 $2").replace(ur,(function(e,t,r){return 0===t||t===r.length-e.length?"":n})),t)},lr=function(e,t){return sr(e,t,"-")},cr={BOOLEAN:1,OVERLOADED_BOOLEAN:2},pr={attributeTypes:cr,properties:{accept:!0,acceptCharset:!0,accessKey:!0,action:!0,allowFullScreen:cr.BOOLEAN,allowTransparency:!0,alt:!0,async:cr.BOOLEAN,autocomplete:!0,autofocus:cr.BOOLEAN,autoplay:cr.BOOLEAN,cellPadding:!0,cellSpacing:!0,charset:!0,checked:cr.BOOLEAN,classID:!0,className:!0,cols:!0,colSpan:!0,content:!0,contentEditable:!0,contextMenu:!0,controls:cr.BOOLEAN,coords:!0,crossOrigin:!0,data:!0,dateTime:!0,defer:cr.BOOLEAN,dir:!0,disabled:cr.BOOLEAN,download:cr.OVERLOADED_BOOLEAN,draggable:!0,enctype:!0,form:!0,formAction:!0,formEncType:!0,formMethod:!0,formNoValidate:cr.BOOLEAN,formTarget:!0,frameBorder:!0,headers:!0,height:!0,hidden:cr.BOOLEAN,href:!0,hreflang:!0,htmlFor:!0,httpEquiv:!0,icon:!0,id:!0,label:!0,lang:!0,list:!0,loop:cr.BOOLEAN,manifest:!0,marginHeight:!0,marginWidth:!0,max:!0,maxLength:!0,media:!0,mediaGroup:!0,method:!0,min:!0,multiple:cr.BOOLEAN,muted:cr.BOOLEAN,name:!0,noValidate:cr.BOOLEAN,open:!0,pattern:!0,placeholder:!0,poster:!0,preload:!0,radiogroup:!0,readOnly:cr.BOOLEAN,rel:!0,required:cr.BOOLEAN,role:!0,rows:!0,rowSpan:!0,sandbox:!0,scope:!0,scrolling:!0,seamless:cr.BOOLEAN,selected:cr.BOOLEAN,shape:!0,size:!0,sizes:!0,span:!0,spellcheck:!0,src:!0,srcdoc:!0,srcset:!0,start:!0,step:!0,style:!0,tabIndex:!0,target:!0,title:!0,type:!0,useMap:!0,value:!0,width:!0,wmode:!0,autocapitalize:!0,autocorrect:!0,itemProp:!0,itemScope:cr.BOOLEAN,itemType:!0,property:!0},attributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"}},fr=pr.attributeTypes,dr=pr.properties,hr=pr.attributeNames,gr=(nr=function(e){return $n(e)+'="'},rr={},function(e){return rr.hasOwnProperty(e)?rr[e]:rr[e]=nr.call(this,e)}),vr=function(e,t,n){if(dr.hasOwnProperty(e)){if(function(e,t){var n=dr[e];return null==t||n===fr.BOOLEAN&&!t||n===fr.OVERLOADED_BOOLEAN&&!1===t}(e,t))return"";e=(hr[e]||e).toLowerCase();var r=dr[e];return r===fr.BOOLEAN||r===fr.OVERLOADED_BOOLEAN&&!0===t?$n(e):gr(e)+$n(t)+'"'}if(n)return null==t?"":gr(e)+$n(t)+'"';return null};var yr={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},mr=Er;function Er(e,t){return e?(Ot(e)&&(e=e.render()),Ft(e)&&e.render&&(e=e.render()),wt(e)?function(e){var t=e.properties,n="<"+e.tagName.toLowerCase();for(var r in t){var o=t[r];if(null!=o)if("attributes"!=r)if("dataset"!=r){if("style"==r){var u="";for(var i in o=Gn({},o))u+=lr(i)+": "+o[i]+"; ";o=u.trim()}if(o instanceof Zn||o instanceof er)n+=" "+vr(r,o.value,!0);else{var a=vr(r,o);a&&(n+=" "+a)}}else for(var s in o=Gn({},o))n+=" "+vr("data-"+lr(s),o[s],!0);else for(var l in o=Gn({},o))n+=" "+vr(l,o[l],!0)}return n+">"}(e)+function(e){var t=e.properties.innerHTML;if(null!=t)return t;var n="";if(e.children&&e.children.length)for(var r=0,o=e.children.length;r<o;r++){var u=e.children[r];n+=Er(u,e)}return n}(e)+function(e){var t=e.tagName.toLowerCase();return yr[t]?"":"</"+t+">"}(e):Ht(e)?!t||"script"!==t.tagName.toLowerCase()&&"style"!==t.tagName.toLowerCase()?$n(String(e.text)):String(e.text):""):""}var Ar,br={abbr:"abbr",accept:"accept","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",alt:"alt",async:"async",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charset",checked:"checked",cite:"cite",class:"className",cols:"cols",colspan:"colSpan",command:"command",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",coords:"coords",crossorigin:"crossOrigin",data:"data",datetime:"dateTime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",dropzone:"dropzone",enctype:"encType",for:"htmlFor",form:"form",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameBorder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang","http-equiv":"httpEquiv",icon:"icon",id:"id",inputmode:"inputMode",ismap:"isMap",itemid:"itemId",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",manifest:"manifest",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",ping:"ping",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radioGroup",readonly:"readOnly",rel:"rel",required:"required",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",sortable:"sortable",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srcset:"srcSet",start:"start",step:"step",style:"style",tabindex:"tabIndex",target:"target",title:"title",translate:"translate",type:"type",typemustmatch:"typeMustMatch",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"},Cr="http://www.w3.org/1999/xlink",wr="http://www.w3.org/XML/1998/namespace",Fr={about:null,"accent-height":null,accumulate:null,additive:null,"alignment-baseline":null,alphabetic:null,amplitude:null,"arabic-form":null,ascent:null,attributeName:null,attributeType:null,azimuth:null,bandwidth:null,baseFrequency:null,baseProfile:null,"baseline-shift":null,bbox:null,begin:null,bias:null,by:null,calcMode:null,"cap-height":null,class:null,clip:null,"clip-path":null,"clip-rule":null,clipPathUnits:null,color:null,"color-interpolation":null,"color-interpolation-filters":null,"color-profile":null,"color-rendering":null,content:null,contentScriptType:null,contentStyleType:null,cursor:null,cx:null,cy:null,d:null,datatype:null,defaultAction:null,descent:null,diffuseConstant:null,direction:null,display:null,divisor:null,"dominant-baseline":null,dur:null,dx:null,dy:null,edgeMode:null,editable:null,elevation:null,"enable-background":null,end:null,"ev:event":"http://www.w3.org/2001/xml-events",event:null,exponent:null,externalResourcesRequired:null,fill:null,"fill-opacity":null,"fill-rule":null,filter:null,filterRes:null,filterUnits:null,"flood-color":null,"flood-opacity":null,focusHighlight:null,focusable:null,"font-family":null,"font-size":null,"font-size-adjust":null,"font-stretch":null,"font-style":null,"font-variant":null,"font-weight":null,format:null,from:null,fx:null,fy:null,g1:null,g2:null,"glyph-name":null,"glyph-orientation-horizontal":null,"glyph-orientation-vertical":null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:null,height:null,"horiz-adv-x":null,"horiz-origin-x":null,"horiz-origin-y":null,id:null,ideographic:null,"image-rendering":null,in:null,in2:null,initialVisibility:null,intercept:null,k:null,k1:null,k2:null,k3:null,k4:null,kernelMatrix:null,kernelUnitLength:null,kerning:null,keyPoints:null,keySplines:null,keyTimes:null,lang:null,lengthAdjust:null,"letter-spacing":null,"lighting-color":null,limitingConeAngle:null,local:null,"marker-end":null,"marker-mid":null,"marker-start":null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:null,mediaTime:null,method:null,min:null,mode:null,name:null,"nav-down":null,"nav-down-left":null,"nav-down-right":null,"nav-left":null,"nav-next":null,"nav-prev":null,"nav-right":null,"nav-up":null,"nav-up-left":null,"nav-up-right":null,numOctaves:null,observer:null,offset:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,"overline-position":null,"overline-thickness":null,"panose-1":null,path:null,pathLength:null,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,playbackOrder:null,"pointer-events":null,points:null,pointsAtX:null,pointsAtY:null,pointsAtZ:null,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:null,r:null,radius:null,refX:null,refY:null,rel:null,"rendering-intent":null,repeatCount:null,repeatDur:null,requiredExtensions:null,requiredFeatures:null,requiredFonts:null,requiredFormats:null,resource:null,restart:null,result:null,rev:null,role:null,rotate:null,rx:null,ry:null,scale:null,seed:null,"shape-rendering":null,slope:null,snapshotTime:null,spacing:null,specularConstant:null,specularExponent:null,spreadMethod:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,"stop-color":null,"stop-opacity":null,"strikethrough-position":null,"strikethrough-thickness":null,string:null,stroke:null,"stroke-dasharray":null,"stroke-dashoffset":null,"stroke-linecap":null,"stroke-linejoin":null,"stroke-miterlimit":null,"stroke-opacity":null,"stroke-width":null,surfaceScale:null,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:null,tableValues:null,target:null,targetX:null,targetY:null,"text-anchor":null,"text-decoration":null,"text-rendering":null,textLength:null,timelineBegin:null,title:null,to:null,transform:null,transformBehavior:null,type:null,typeof:null,u1:null,u2:null,"underline-position":null,"underline-thickness":null,unicode:null,"unicode-bidi":null,"unicode-range":null,"units-per-em":null,"v-alphabetic":null,"v-hanging":null,"v-ideographic":null,"v-mathematical":null,values:null,version:null,"vert-adv-y":null,"vert-origin-x":null,"vert-origin-y":null,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,"word-spacing":null,"writing-mode":null,x:null,"x-height":null,x1:null,x2:null,xChannelSelector:null,"xlink:actuate":Cr,"xlink:arcrole":Cr,"xlink:href":Cr,"xlink:role":Cr,"xlink:show":Cr,"xlink:title":Cr,"xlink:type":Cr,"xml:base":wr,"xml:id":wr,"xml:lang":wr,"xml:space":wr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},Or=function(e,t){if(!e)return xr(document.createTextNode(""));if("string"==typeof e){if(!("DOMParser"in window))throw new Error("DOMParser is not available, so parsing string to DOM node is not possible.");var n=(Ar=Ar||new DOMParser).parseFromString(e,"text/html");e=n.body.firstChild?n.getElementsByTagName("body")[0].firstChild:n.head.firstChild&&("TITLE"!==n.head.firstChild.tagName||n.title)?n.head.firstChild:n.firstChild&&"HTML"!==n.firstChild.tagName?n.firstChild:document.createTextNode("")}if("object"!=typeof e||!e||!e.nodeType)throw new Error("invalid dom node",e);return xr(e,t)};function xr(e,t){return 3===e.nodeType?function(e){return new jt(e.nodeValue)}(e):1===e.nodeType||9===e.nodeType?function(e,t){var n="http://www.w3.org/1999/xhtml"!==e.namespaceURI?e.namespaceURI:null,r=t&&e.getAttribute(t)?e.getAttribute(t):null;return new kt(e.tagName,function(e){var t,n,r={};if(!e.hasAttributes())return r;e.namespaceURI&&"http://www.w3.org/1999/xhtml"!==e.namespaceURI&&(t=e.namespaceURI);for(var o=0;o<e.attributes.length;o++)(n="style"==e.attributes[o].name?Br(e):t?Dr(e.attributes[o]):kr(e.attributes[o])).ns?r[n.name]={namespace:n.ns,value:n.value}:n.isAttr?(r.attributes||(r.attributes={}),r.attributes[n.name]=n.value):r[n.name]=n.value;return r}(e),function(e,t){for(var n=[],r=0;r<e.childNodes.length;r++)n.push(xr(e.childNodes[r],t));return n}(e,t),r,n)}(e,t):new jt("")}function kr(e){var t,n,r;return 0===(t=br[e.name]?br[e.name]:e.name).indexOf("data-")||0===t.indexOf("aria-")?(n=e.value,r=!0):n=e.value,{name:t,value:n,isAttr:r||!1}}function Dr(e){return{name:e.name,value:e.value,ns:Fr[e.name]||""}}function Br(e){for(var t=e.style,n={},r=0;r<t.length;++r){var o=t.item(r);n[o]=String(t[o]),n[o].indexOf("url")>-1&&(n[o]=n[o].replace(/\"/g,""))}return{name:"style",value:n}}var Sr=u((function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports}));o(Sr);var jr=u((function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,u=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(u.push(r.value),!t||u.length!==t);i=!0);}catch(e){a=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return u}},e.exports.__esModule=!0,e.exports.default=e.exports}));o(jr);var Nr=u((function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports}));o(Nr);var Pr=u((function(e){e.exports=function(e,t){if(e){if("string"==typeof e)return Nr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nr(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}));o(Pr);var Lr=u((function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}));o(Lr);var Tr=o(u((function(e){e.exports=function(e,t){return Sr(e)||jr(e,t)||Pr(e,t)||Lr()},e.exports.__esModule=!0,e.exports.default=e.exports})));function Rr(e,t,n){var r;return function(){var o=this,u=arguments,i=function(){r=null,n||e.apply(o,u)},a=n&&!r;clearTimeout(r),r=setTimeout(i,t),a&&e.apply(o,u)}}function Ir(e,t){return e.properties&&e.properties.attributes&&e.properties.attributes[t]}function Mr(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var u="string"!=typeof t?[].concat(t):t.split(".");u.length>1;){if(o())return{};var i=r(u.shift());!e[i]&&n&&(e[i]=new n),e=e[i]}return o()?{}:{obj:e,k:r(u.shift())}}function Ur(e,t,n){var r=Mr(e,t,Object);r.obj[r.k]=n}function _r(e,t){var n=Mr(e,t),r=n.obj,o=n.k;if(r)return r[o]}function Hr(){var e=location.pathname;if("/"===e)return"root";var t=e.split("/"),n="root";return t.forEach((function(e){e&&(n+="_".concat(e))})),n}var zr=function(e){if(e.namespace)e.ns.push(e.namespace),e.defaultNS=e.namespace;else if(e.namespaceFromPath){var t=Hr();e.ns.push(t),e.defaultNS=t}return e.ns.length||(e.ns=["translation"]),e.ignoreTags&&(e.ignoreTags=e.ignoreTags.map((function(e){return e.toUpperCase()}))),e.ignoreCleanIndentFor&&(e.ignoreCleanIndentFor=e.ignoreCleanIndentFor.map((function(e){return e.toUpperCase()}))),e.inlineTags&&(e.inlineTags=e.inlineTags.map((function(e){return e.toUpperCase()}))),e.ignoreInlineOn&&(e.ignoreInlineOn=e.ignoreInlineOn.map((function(e){return e.toUpperCase()}))),e.mergeTags&&(e.mergeTags=e.mergeTags.map((function(e){return e.toUpperCase()}))),e.translateAttributes=e.translateAttributes.reduce((function(e,t){var n={attr:t};if(t.indexOf("#")>-1){var r=t.split("#"),o=Tr(r,2),u=o[0],i=o[1];if(n.attr=u,i.indexOf(".")>-1){var a=i.split("."),s=Tr(a,2),l=s[0],c=s[1];n.ele=l.toUpperCase(),n.cond=c.toLowerCase().split("=")}else i.indexOf("=")>-1?n.cond=i.toLowerCase().split("="):n.ele=i.toUpperCase()}return e.push(n),e}),[]),e};function qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{retranslate:!1};return!(!t||!t.retranslate)||(!e.properties||!e.properties.attributes||""!==e.properties.attributes.localized)}function Xr(e){var t=!e.properties||!e.properties.attributes||""!==e.properties.attributes.translated;(t&&e.tagName&&Ae.options.ignoreTags.indexOf(e.tagName)>-1&&(t=!1),t&&Ae.options.ignoreClasses&&e.properties&&e.properties.className)&&e.properties.className.split(" ").forEach((function(e){t&&Ae.options.ignoreClasses.indexOf(e)>-1&&(t=!1)}));return t&&Ae.options.ignoreIds&&Ae.options.ignoreIds.indexOf(e.properties&&e.properties.id)>-1&&(t=!1),t}function Wr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.trim(),o=n||e.trim();return t.defaultValue||(t.defaultValue=e),r&&!Ae.options.ignoreWithoutKey||r&&Ae.options.ignoreWithoutKey&&n?Ae.t(o,t):e}var Jr=["src","href"],$r=new RegExp("%7B%7B(.+?)%7D%7D","g");function Gr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,u=arguments.length>5?arguments[5]:void 0;return t?(Ae.options.translateAttributes.forEach((function(i){if(!i.ele||e.tagName===i.ele){if(i.cond&&2===i.cond.length){var a=_r(t,i.cond[0])||_r(t.attributes,i.cond[0]);if(!a||a!==i.cond[1])return}var s=!1,l=_r(t,i.attr);if(l||(l=_r(t.attributes,i.attr))&&(s=!0),u.retranslate){var c=e.properties&&e.properties&&e.properties.attributes["".concat(i.attr,"-i18next-orgval")];c||(c=l),l=c}l&&(o&&(e.properties.attributes["".concat(i.attr,"-i18next-orgval")]=l),Ur(s?t.attributes:t,i.attr,Wr(l,Vr({},n),r?"".concat(r,".").concat(i.attr):"")))}})),Jr.forEach((function(e){var o=_r(t,e);if(o&&(o=o.replace(/\{\{/g,"%7B%7B").replace(/\}\}/g,"%7D%7D")),o&&o.indexOf("%7B")>-1){var u=[];o.split($r).reduce((function(t,o,u){if(0===o.length)return t;if(u&&u%2!=0){var i=Wr(o,Vr({},n),r?"".concat(r,".").concat(e):"");i&&0==i.indexOf("http")&&t[u-1]&&0===t[u-1].indexOf("http")&&t.splice(u-1,1),t.push(i)}else t.push(o);return t}),u),u.length&&Ur(t,e,u.join(""))}})),t):t}function Yr(e,t){var n=Ir(t,"i18next-options");if(n)try{n=JSON.parse(n)}catch(e){console.warn("failed parsing options on node",t)}return n&&n.inlineTags&&(n.inlineTags=n.inlineTags.map((function(e){return e.toUpperCase()}))),Vr(Vr({},e||{}),n||{})}function Zr(e,t){return Ae.options.cleanIndent?e.replace(/\n +/g,t):e}function Qr(e,t){if(!e.children||!e.children.length||Ae.options.ignoreInlineOn.indexOf(e.tagName)>-1)return!1;if(Ae.options.mergeTags.indexOf(e.tagName)>-1)return!0;var n=t.inlineTags||Ae.options.inlineTags,r=t.additionalInlineTags?n.concat(t.additionalInlineTags):n,o=!0,u=!1;return e.children.forEach((function(e){!e.text&&e.tagName&&r.indexOf(e.tagName.toUpperCase())<0&&(o=!1),e.tagName&&(u=!0)})),o&&u}function eo(e,t){var n=new Wn;n.start();var r=function e(t,n,r,o){var u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0,a=Xr(t),s=Kr(t,i),l=Kr(t);n=Yr(n,t);var c=0===u?o:"";u>0&&o&&!Ae.options.ignoreWithoutKey&&(c="".concat(o,".").concat(u));var p=Ir(t,Ae.options.keyAttr)||c,f=Ir(t,"merge");if("false"!==f&&(""===f||Qr(t,n))){if(a&&s){var d=new kt("I18NEXTIFYDUMMY",null,t.children),h=Zr(mr(d),"").replace("<i18nextifydummy>","").replace("</i18nextifydummy>","");if(i.retranslate){var g=t.properties&&t.properties.attributes&&t.properties.attributes["i18next-orgval"];g||(g=r&&r.properties&&r.properties.attributes&&r.properties.attributes["i18next-orgval-".concat(u)]),g||(g=h),h=g}var v="<i18nextifydummy>".concat(Wr(h,n,p),"</i18nextifydummy>"),y=Or((v||"").trim());t.children=y.children,l&&t.properties&&t.properties.attributes?t.properties.attributes["i18next-orgval"]=h:l&&r&&r.properties&&r.properties.attributes&&(r.properties.attributes["i18next-orgval-".concat(u)]=h),t.properties&&t.properties.attributes&&(t.properties.attributes.localized="")}return t}if(t.children&&t.children.forEach((function(r,o){(a&&s&&r.text||!r.text&&Xr(r))&&e(r,n,t,p,t.children.length>1?o+1:o,i)})),t.text&&!t.properties&&"Widget"===t.type)return t;if(a&&s){if(t.text){var m,E=t.text,A=t.text;if(i.retranslate){var b=t.properties&&t.properties.attributes&&t.properties.attributes["i18next-orgval"];b||(b=r&&r.properties&&r.properties.attributes&&r.properties.attributes["i18next-orgval-".concat(u)]),b||(b=t.text),E=b,A=b}var C=Ae.options.ignoreCleanIndentFor.indexOf(r.tagName)>-1;if(!C&&(E=Zr(E,"\n"),Ae.options.cleanWhitespace)){var w=/^\s*(.*[^\s])\s*$/g;m=w.exec(E)}if(!C&&m&&m.length>1&&Ae.options.cleanWhitespace){var F=Wr(m[1],n,p||"");t.text=E.replace(m[1],F)}else t.text=Wr(E,n,p||"");l&&t.properties&&t.properties.attributes?A&&(t.properties.attributes["i18next-orgval"]=A):l&&r&&r.properties&&r.properties.attributes&&A&&(r.properties.attributes["i18next-orgval-".concat(u)]=A)}t.properties&&(t.properties=Gr(t,t.properties,n,p,l,i)),t.properties&&t.properties.attributes&&(t.properties.attributes.localized="")}return t}(e,null,null,null,null,{retranslate:t});return Ae.services.logger.log("localization took: ".concat(n.end(),"ms")),r}function to(e,t){var n={};return n.render=function(n){var r=function(e){var t=new Wn;t.start();var n=Tt(e);return Ae.services.logger.log("virtualization took: ".concat(t.end(),"ms")),n}(e),o=eo(Xn(r),n),u=en(r,o);u[0]&&t.reset(),e=Kn(e,u)},n.debouncedRender=Rr(n.render,200),n}var no={};var ro=Rr((function(){Ae.services.logger.log("missing resources: \n"+JSON.stringify(no,null,2))}),2e3);function oo(e,t,n,r){"string"==typeof e&&(e=[e]),e||(e=[]),e.forEach((function(e){Ur(no,[e,t,n],r),ro()})),Ae.services.backendConnector&&Ae.services.backendConnector.saveMissing&&Ae.services.backendConnector.saveMissing(e,t,n,r)}function uo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uo(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ao(){return{autorun:!0,ele:document.body,keyAttr:"i18next-key",ignoreWithoutKey:!1,ignoreTags:["SCRIPT"],ignoreIds:[],ignoreClasses:[],translateAttributes:["placeholder","title","alt","value#input.type=button","value#input.type=submit"],mergeTags:[],inlineTags:[],ignoreInlineOn:[],cleanIndent:!0,ignoreCleanIndentFor:["PRE","CODE"],cleanWhitespace:!0,nsSeparator:"#||#",keySeparator:"#|#",debug:window.location.search&&window.location.search.indexOf("debug=true")>-1,saveMissing:window.location.search&&window.location.search.indexOf("saveMissing=true")>-1,namespace:!1,namespaceFromPath:!1,missingKeyHandler:oo,ns:[],onInitialTranslate:function(){}}}var so=!1,lo=!1;Ct((function(){so=!0,lo||fo()})),Ae.use(Ue),Ae.use(it);var co={};var po=[];function fo(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function n(n){for(var r=0;r<n.length;r++){var o=n[r];if(t.ignoreTags.indexOf(o.tagName)<0&&t.ignoreIds.indexOf(o.id)<0&&t.ignoreClasses.indexOf(o.className)<0&&!o.attributes.localized&&!o.attributes.translated){var u=to(o,e);po.push(u),u.render()}}}function r(e,n,o){var u=!0;setTimeout((function(){for(var n=0;n<e.length;n++){var i=e[n];if(t.ignoreTags.indexOf(i.tagName)<0&&t.ignoreIds.indexOf(i.id)<0&&t.ignoreClasses.indexOf(i.className)<0&&!i.attributes.localized&&!i.attributes.translated){u&&r(e,100,o),u=!1;break}}u&&o()}),n)}t=io(io(io({},ao()),co),t),(t=zr(t)).ele||(delete t.ele,co=t),lo=!0;var o=1;function u(){if(!(o-=1)){t.ele||(t.ele=document.body);var u=t.ele.children;e=new vt(t.ele),n(u),e.on("changed",(function(e){po.forEach((function(e){return e.debouncedRender()})),n(u)})),r(u,0,(function(){t.ele.style&&"none"===t.ele.style.display&&(t.ele.style.display="block"),t.onInitialTranslate()}))}}if(so||o++,!1===t.autorun&&o++,Ae.init(t,u),so||Ct(u),!1===t.autorun)return{start:u}}var ho={init:fo,i18next:Ae,changeNamespace:function(e){!e&&co.namespaceFromPath&&(e=Hr()),co.ns.push(e),co.defaultNS=e,Ae.loadNamespaces(co.ns,(function(){Ae.setDefaultNamespace(e)}))},forceRerender:function(){po.forEach((function(e){e.render(!0)}))}},go=[],vo=go.forEach,yo=go.slice;function mo(e){return vo.call(yo.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}function Eo(e,t,n){var r;return function(){var o=this,u=arguments,i=function(){r=null,n||e.apply(o,u)},a=n&&!r;clearTimeout(r),r=setTimeout(i,t),a&&e.apply(o,u)}}function Ao(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(!e)return{};var u=r(o.shift());!e[u]&&n&&(e[u]=new n),e=e[u]}return e?{obj:e,k:r(o.shift())}:{}}function bo(e,t,n){var r=Ao(e,t,Object);r.obj[r.k]=n}function Co(e,t){var n=Ao(e,t),r=n.obj,o=n.k;if(r)return r[o]}var wo,Fo=new RegExp("{{(.+?)}}","g");function Oo(e,t,n){var r,o,u;for(;r=Fo.exec(e);)"string"!=typeof(o=r[1].trim())&&(o=null==(u=o)?"":""+u),o||(o=""),o=o.replace(/\$/g,"$$$$"),e=e.replace(r[0],t[o]||o),Fo.lastIndex=0;return e}function xo(e,t){return t.reduce((function(t,n){if(t)return t;if(!e||!e[n]||"string"!=typeof e[n]||!e[n].toLowerCase()===n.toLowerCase()){var r='i18next-locize-backend :: got "'.concat(e[n],'" in options for ').concat(n," which is invalid.");return console.warn(r),r}return!1}),!1)}function ko(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}if("function"==typeof fetch&&("undefined"!=typeof global&&global.fetch?wo=global.fetch:"undefined"!=typeof window&&window.fetch&&(wo=window.fetch)),"undefined"!=typeof require&&("undefined"==typeof window||void 0===window.document)){var Do=wo||require("cross-fetch");Do.default&&(Do=Do.default),exports.default=Do,module.exports=exports.default}var Bo,So,jo,No=Object.freeze({__proto__:null});function Po(e){return(Po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"function"==typeof fetch&&("undefined"!=typeof global&&global.fetch?Bo=global.fetch:"undefined"!=typeof window&&window.fetch&&(Bo=window.fetch)),"function"!=typeof XMLHttpRequest&&"object"!==("undefined"==typeof XMLHttpRequest?"undefined":Po(XMLHttpRequest))||("undefined"!=typeof global&&global.XMLHttpRequest?So=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(So=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?jo=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(jo=window.ActiveXObject)),Bo||!No||So||jo||(Bo=No),"function"!=typeof Bo&&(Bo=void 0);var Lo=function(e,t,n,r){return"function"==typeof n&&(r=n,n=void 0),r=r||function(){},Bo?function(e,t,n,r){var o={};e.authorize&&e.apiKey&&(o.Authorization=e.apiKey),(n||e.setContentTypeJSON)&&(o["Content-Type"]="application/json"),Bo(t,{method:n?"POST":"GET",body:n?JSON.stringify(n):void 0,headers:o}).then((function(e){var t=e.headers&&"Error from cloudfront"===e.headers.get("x-cache");if(!e.ok)return r(e.statusText||"Error",{status:e.status,resourceNotExisting:t});e.text().then((function(n){r(null,{status:e.status,data:n,resourceNotExisting:t})})).catch(r)})).catch(r)}(e,t,n,r):"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":Po(XMLHttpRequest))||"function"==typeof ActiveXObject?function(e,t,n,r){try{var o;(o=So?new So:new jo("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.authorize&&e.apiKey&&o.setRequestHeader("Authorization",e.apiKey),(n||e.setContentTypeJSON)&&o.setRequestHeader("Content-Type","application/json"),o.onreadystatechange=function(){var e="Error from cloudfront"===o.getResponseHeader("x-cache");o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText,resourceNotExisting:e})},o.send(JSON.stringify(n))}catch(e){console&&console.log(e)}}(e,t,n,r):void 0};function To(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ro(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Io,Mo=function(){return{loadPath:"https://api.locize.app/{{projectId}}/{{version}}/{{lng}}/{{ns}}",privatePath:"https://api.locize.app/private/{{projectId}}/{{version}}/{{lng}}/{{ns}}",getLanguagesPath:"https://api.locize.app/languages/{{projectId}}",addPath:"https://api.locize.app/missing/{{projectId}}/{{version}}/{{lng}}/{{ns}}",updatePath:"https://api.locize.app/update/{{projectId}}/{{version}}/{{lng}}/{{ns}}",referenceLng:"en",crossDomain:!0,setContentTypeJSON:!1,version:"latest",private:!1,translatedPercentageThreshold:.9,failLoadingOnEmptyJSON:!1,allowedAddOrUpdateHosts:["localhost"],onSaved:!1,reloadInterval:"undefined"==typeof window&&36e5,checkForProjectTimeout:3e3,storageExpiration:36e5,writeDebounce:5e3}};try{Io="undefined"!=typeof window&&null!==window.localStorage;var Uo="notExistingLocizeProject";window.localStorage.setItem(Uo,"foo"),window.localStorage.removeItem(Uo)}catch(e){Io=!1}function _o(e){var t=function(){},n=function(){};return Io?(t=function(e){window.localStorage.setItem("notExistingLocizeProject_".concat(e),Date.now())},n=function(t){var n=window.localStorage.getItem("notExistingLocizeProject_".concat(t));return!!n&&(!(Date.now()-n>e)||(window.localStorage.removeItem("notExistingLocizeProject_".concat(t)),!1))}):"undefined"!=typeof document&&(t=function(t){var n=new Date;n.setTime(n.getTime()+e);var r="; expires=".concat(n.toGMTString()),o="notExistingLocizeProject_".concat(t);try{document.cookie="".concat(o,"=").concat(Date.now()).concat(r,";path=/")}catch(e){}},n=function(e){var t="notExistingLocizeProject_".concat(e),n="".concat(t,"=");try{for(var r=document.cookie.split(";"),o=0;o<r.length;o++){for(var u=r[o];" "===u.charAt(0);)u=u.substring(1,u.length);if(0===u.indexOf(n))return!0}}catch(e){}return!1}),{setProjectNotExisting:t,isProjectNotExisting:n}}var Ho=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;To(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",t&&t.projectId?this.init(null,t,r,n):this.init(t,n,r,o)}var t,n,r;return t=e,(n=[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;!n.referenceLng&&r.fallbackLng&&Array.isArray(r.fallbackLng)&&"dev"!==r.fallbackLng[0]&&(n.referenceLng=r.fallbackLng[0]),this.services=e,this.options=mo(n,this.options||{},Mo()),this.allOptions=r,this.somethingLoaded=!1,this.isProjectNotExisting=!1,this.storage=_o(this.options.storageExpiration),this.options.pull&&console.warn('The pull API was removed use "private: true" option instead: https://docs.locize.com/integration/api#fetch-private-namespace-resources');var u="undefined"!=typeof window&&window.location&&window.location.hostname;u?(this.isAddOrUpdateAllowed="function"==typeof this.options.allowedAddOrUpdateHosts?this.options.allowedAddOrUpdateHosts(u):this.options.allowedAddOrUpdateHosts.indexOf(u)>-1,e&&e.logger&&(r.saveMissing||r.updateMissing)&&(this.isAddOrUpdateAllowed?"localhost"!==u&&e.logger.warn('locize-backend: you are using the save or update missings feature from this host "'.concat(u,'".\nMake sure you will not use it in production!\nhttps://docs.locize.com/guides-tips-and-tricks/going-production')):e.logger.warn("function"==typeof this.options.allowedAddOrUpdateHosts?'locize-backend: will not save or update missings because allowedAddOrUpdateHosts returned false for the host "'.concat(u,'".'):'locize-backend: will not save or update missings because the host "'.concat(u,'" was not in the list of allowedAddOrUpdateHosts: ').concat(this.options.allowedAddOrUpdateHosts.join(", ")," (matches need to be exact).")))):this.isAddOrUpdateAllowed=!0,"function"==typeof o&&this.getOptions((function(e,r,u){if(e)return o(e);t.options.referenceLng=n.referenceLng||r.referenceLng||t.options.referenceLng,o(null,r,u)})),this.queuedWrites={pending:{}},this.debouncedProcess=Eo(this.process,this.options.writeDebounce),this.interval&&clearInterval(this.interval),this.options.reloadInterval&&this.options.projectId&&(this.interval=setInterval((function(){return t.reload()}),this.options.reloadInterval))}},{key:"reload",value:function(){var e=this,t=this.services||{logger:console},n=t.backendConnector,r=t.languageUtils,o=t.logger;if(n){var u=n.language;if(!u||"cimode"!==u.toLowerCase()){var i=[],a=function(e){r.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};a(u),this.allOptions.preload&&this.allOptions.preload.forEach((function(e){return a(e)})),i.forEach((function(t){e.allOptions.ns.forEach((function(e){n.read(t,e,"read",null,null,(function(r,u){r&&o.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!r&&u&&o.log("loaded namespace ".concat(e," for language ").concat(t),u),n.loaded("".concat(t,"|").concat(e),r,u)}))}))}))}}}},{key:"getLanguages",value:function(e){var t,n=this;e||(t=ko(),e=function(e,n){if(e)return t.reject(e);t.resolve(n)});var r=xo(this.options,["projectId"]);if(r)return e(new Error(r));var o=Oo(this.options.getLanguagesPath,{projectId:this.options.projectId});return!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting?e(new Error("locize project ".concat(this.options.projectId," does not exist!"))):(this.getLanguagesCalls=this.getLanguagesCalls||[],this.getLanguagesCalls.push(e),this.getLanguagesCalls.length>1?void 0:(this.loadUrl({},o,(function(e,t,r){if(!n.somethingLoaded&&r&&r.resourceNotExisting){n.isProjectNotExisting=!0,n.storage.setProjectNotExisting(n.options.projectId);var o=new Error("locize project ".concat(n.options.projectId," does not exist!")),u=n.getLanguagesCalls;return n.getLanguagesCalls=[],u.forEach((function(e){return e(o)}))}if(t){var i=Object.keys(t).reduce((function(e,n){return t[n].isReferenceLanguage&&(e=n),e}),"");i&&n.options.referenceLng!==i&&(n.options.referenceLng=i)}n.somethingLoaded=!0;var a=n.getLanguagesCalls;n.getLanguagesCalls=[],a.forEach((function(n){return n(e,t)}))})),t))}},{key:"getOptions",value:function(e){var t,n=this;return e||(t=ko(),e=function(e,n){if(e)return t.reject(e);t.resolve(n)}),this.getLanguages((function(t,r){if(t)return e(t);var o=Object.keys(r);if(!o.length)return e(new Error("was unable to load languages via API"));var u=o.reduce((function(e,t){var o=r[t];return o.translated[n.options.version]&&o.translated[n.options.version]>=n.options.translatedPercentageThreshold&&e.push(t),e}),[]),i=o.reduce((function(e,t){return t.indexOf("-")>-1||e}),!1);e(null,{fallbackLng:n.options.referenceLng,referenceLng:n.options.referenceLng,supportedLngs:u,load:i?"all":"languageOnly"},r)})),t}},{key:"checkIfProjectExists",value:function(e){var t=this,n=(this.services||{logger:console}).logger;this.somethingLoaded?e&&e(null):this.alreadyRequestedCheckIfProjectExists?setTimeout((function(){return t.checkIfProjectExists(e)}),this.options.checkForProjectTimeout):(this.alreadyRequestedCheckIfProjectExists=!0,this.getLanguages((function(t){t&&t.message&&t.message.indexOf("does not exist")>0&&n&&n.error(t.message),e&&e(t)})))}},{key:"read",value:function(e,t,n){var r,o=this,u=(this.services||{logger:console}).logger,i={};if(this.options.private){var a=xo(this.options,["projectId","version","apiKey"]);if(a)return n(new Error(a),!1);r=Oo(this.options.privatePath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),i={authorize:!0}}else{var s=xo(this.options,["projectId","version"]);if(s)return n(new Error(s),!1);r=Oo(this.options.loadPath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version})}if(!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting){var l=new Error("locize project ".concat(this.options.projectId," does not exist!"));return u&&u.error(l.message),void(n&&n(l))}this.loadUrl(i,r,(function(e,t,r){o.somethingLoaded||(r&&r.resourceNotExisting?setTimeout((function(){return o.checkIfProjectExists()}),o.options.checkForProjectTimeout):o.somethingLoaded=!0),n(e,t)}))}},{key:"loadUrl",value:function(e,t,n,r){var o=this;e=mo(e,this.options),"function"==typeof n&&(r=n,n=void 0),r=r||function(){},Lo(e,t,n,(function(e,n){var u,i,a=n&&n.resourceNotExisting;if(n&&(408===n.status||400===n.status))return r("failed loading "+t,!0,{resourceNotExisting:a});if(n&&(n.status>=500&&n.status<600||!n.status))return r("failed loading "+t,!0,{resourceNotExisting:a});if(n&&n.status>=400&&n.status<500)return r("failed loading "+t,!1,{resourceNotExisting:a});if(!n&&e&&e.message&&e.message.indexOf("Failed to fetch")>-1)return r("failed loading "+t,!0,{resourceNotExisting:a});if(e)return r(e,!1);try{u=JSON.parse(n.data)}catch(e){i="failed parsing "+t+" to json"}return i?r(i,!1):o.options.failLoadingOnEmptyJSON&&!Object.keys(u).length?r("loaded result empty for "+t,!1,{resourceNotExisting:a}):void r(null,u,{resourceNotExisting:a})}))}},{key:"create",value:function(e,t,n,r,o,u){var i=this;o||(o=function(){}),this.checkIfProjectExists((function(a){if(a)return o(a);var s=xo(i.options,["projectId","version","apiKey","referenceLng"]);return s?o(new Error(s)):i.isAddOrUpdateAllowed?("string"==typeof e&&(e=[e]),e.filter((function(e){return e===i.options.referenceLng})).length<1&&i.services&&i.services.logger&&i.services.logger.warn('locize-backend: will not save missings because the reference language "'.concat(i.options.referenceLng,'" was not in the list of to save languages: ').concat(e.join(", ")," (open your site in the reference language to save missings).")),void e.forEach((function(e){e===i.options.referenceLng&&i.queue.call(i,i.options.referenceLng,t,n,r,o,u)}))):o("host is not allowed to create key.")}))}},{key:"update",value:function(e,t,n,r,o,u){var i=this;o||(o=function(){}),this.checkIfProjectExists((function(a){if(a)return o(a);var s=xo(i.options,["projectId","version","apiKey","referenceLng"]);return s?o(new Error(s)):i.isAddOrUpdateAllowed?(u||(u={}),"string"==typeof e&&(e=[e]),u.isUpdate=!0,void e.forEach((function(e){e===i.options.referenceLng&&i.queue.call(i,i.options.referenceLng,t,n,r,o,u)}))):o("host is not allowed to update key.")}))}},{key:"writePage",value:function(e,t,n,r){var o=Oo(this.options.addPath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),u=Oo(this.options.updatePath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),i=!1,a=!1,s={},l={};n.forEach((function(e){var t=e.options&&e.options.tDescription?{value:e.fallbackValue||"",context:{text:e.options.tDescription}}:e.fallbackValue||"";e.options&&e.options.isUpdate?(a||(a=!0),l[e.key]=t):(i||(i=!0),s[e.key]=t)}));var c=0;i&&c++,a&&c++;var p=function(e){--c||r(e)};c||p(),i&&Lo(mo({authorize:!0},this.options),o,s,p),a&&Lo(mo({authorize:!0},this.options),u,l,p)}},{key:"write",value:function(e,t){var n=this;if(!Co(this.queuedWrites,["locks",e,t])){var r=Co(this.queuedWrites,[e,t]);bo(this.queuedWrites,[e,t],[]);var o=r.filter((function(e){return e.callback})).map((function(e){return e.callback}));r.length&&function(){bo(n.queuedWrites,["locks",e,t],!0);var u=function(){bo(n.queuedWrites,["locks",e,t],!1),o.forEach((function(e){return e()})),n.options.onSaved&&n.options.onSaved(e,t),n.debouncedProcess(e,t)},i=r.length/1e3,a=0,s=r.splice(0,1e3);for(n.writePage(e,t,s,(function(){++a>=i&&u()}));1e3===s.length;)(s=r.splice(0,1e3)).length&&n.writePage(e,t,s,(function(){++a>=i&&u()}))}()}}},{key:"process",value:function(){var e=this;Object.keys(this.queuedWrites).forEach((function(t){"locks"!==t&&Object.keys(e.queuedWrites[t]).forEach((function(n){e.queuedWrites[t][n].length&&e.write(t,n)}))}))}},{key:"queue",value:function(e,t,n,r,o,u){!function(e,t,n,r){var o=Ao(e,t,Object),u=o.obj,i=o.k;u[i]=u[i]||[],r&&(u[i]=u[i].concat(n)),r||u[i].push(n)}(this.queuedWrites,[e,t],{key:n,fallbackValue:r||"",callback:o,options:u}),this.debouncedProcess()}}])&&Ro(t.prototype,n),r&&Ro(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function zo(e){return(zo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qo(e){var t={top:0,left:0,right:0,bottom:0},n=e&&e.ownerDocument,r=n&&n.documentElement;if(!r)return t;"undefined"!==zo(e.getBoundingClientRect)&&(t=e.getBoundingClientRect());var o=function(e){return null!=(t=e)&&t===t.window?e:9===e.nodeType&&e.defaultView;var t}(n),u=t.top+o.pageYOffset-r.clientTop,i=t.left+o.pageXOffset-r.clientLeft;return{top:u,left:i,right:i+(t.right-t.left),bottom:u+(t.bottom-t.top)}}function Vo(e,t){return e&&e.getAttribute&&e.getAttribute(t)}function Ko(e){var t;return function e(n){var r=Vo(n,"i18next-options");if(r||(r=Vo(n,"data-i18next-options")),r||(r=Vo(n,"i18n-options")),r||(r=Vo(n,"data-i18n-options")),r){var o={};try{o=JSON.parse(r)}catch(e){}o.ns&&(t=o.ns)}t||(t=Vo(n,"i18next-ns")),t||(t=Vo(n,"data-i18next-ns")),t||(t=Vo(n,"i18n-ns")),t||(t=Vo(n,"data-i18n-ns")),!t&&n.parentElement&&e(n.parentElement)}(e),t}function Xo(e){return function(t){var n=function(e){if(e.srcElement&&1===e.srcElement.nodeType&&("BUTTON"===e.srcElement.nodeName||"INPUT"===e.srcElement.nodeName))return e.srcElement.getAttribute&&""===e.srcElement.getAttribute("ignorelocizeeditor")?null:e.srcElement;var t;if(e.originalEvent&&e.originalEvent.explicitOriginalTarget)t=e.originalEvent.explicitOriginalTarget;else{var n=e.srcElement;if(n.getAttribute&&""===n.getAttribute("ignorelocizeeditor"))return null;for(var r,o=e.pageX,u=e.pageY,i=0,a=0;a<n.childNodes.length;a++){var s=n.childNodes[a],l=qo(s);1===s.nodeType&&l.bottom<u&&(i=a+1),!r&&l.top+(s.clientHeight||0)>u&&(r=a)}i+1>n.childNodes.length&&(i=n.childNodes.length-1),r||(r=n.childNodes.length);for(var c=i;c<r;c++){var p=n.childNodes[c];if(qo(p).left>o)break;p&&8!==p.nodeType&&(t=p)}}return t}(t);if(!n)return{};t.preventDefault(),t.stopPropagation();var r=function(e){var t=e.textContent||e.text&&e.text.innerText||e.placeholder;if("string"==typeof t)return t.replace(/\n +/g,"").trim()}(n),o=function e(t){var n=Vo(t,"data-i18n");return n||(t.nodeType===window.Node.TEXT_NODE&&t.parentElement?e(t.parentElement):void 0)}(n),u=n.getBoundingClientRect?n:n.parentElement,i=u.getBoundingClientRect(),a=i.top,s=i.left,l=i.width,c=i.height,p=window.getComputedStyle(u,null),f=parseFloat(p.getPropertyValue("padding-top")),d=parseFloat(p.getPropertyValue("padding-bottom")),h=parseFloat(p.getPropertyValue("padding-right")),g=parseFloat(p.getPropertyValue("padding-left")),v=p.getPropertyValue("box-sizing");e({tagName:u.tagName,text:r,key:o,ns:Ko(n),box:{top:a,left:s,width:"border-box"===v?l:l-h-g,height:"border-box"===v?c:c-f-d},style:p.cssText})}}Ho.type="backend";var Wo,Jo,$o,Go,Yo,Zo,Qo=!0;try{Qo=self!==top}catch(e){}var eu=[];var tu={type:"3rdParty",init:function(e){Yo=function(t){t.updated.forEach((function(t){var n=t.lng,r=t.ns,o=t.key,u=t.data;e.addResource(n,r,o,u.value,{silent:!0}),e.emit("editorSaved")}))},Qo&&(e.options.missingKeyHandler=function(e,t,n,r,o,u){o||function(e,t,n,r){var o={message:"added",lng:e,ns:t,key:n,value:r};Wo?Wo.postMessage(o,Jo):eu.push(o)}(e,t,n,r)})}};"undefined"!=typeof window&&window.addEventListener("message",(function(e){if("isLocizeEnabled"===e.data.message)Wo||(Wo=e.source,Jo=e.origin,$o=Xo((function(e){Wo.postMessage({message:"clickedElement",payload:e},Jo)}))),Wo.postMessage({message:"locizeIsEnabled",enabled:!0},e.origin),eu.forEach((function(t){Wo.postMessage(t,e.origin)})),eu=[];else if("turnOn"===e.data.message){if(Zo)return Wo.postMessage({message:"forcedOff"},Jo);Go||window.document.body.addEventListener("click",$o,!0),Go=!0,Wo.postMessage({message:"turnedOn"},Jo)}else if("turnOff"===e.data.message){if(Zo)return Wo.postMessage({message:"forcedOff"},Jo);Go&&window.document.body.removeEventListener("click",$o,!0),Go=!1,Wo.postMessage({message:"turnedOff"},Jo)}else if("committed"===e.data.message){var t=e.data.payload;window.locizeSavedHandler&&window.locizeSavedHandler(t),Yo&&Yo(t)}}));var{i18next:nu}=ho,ru={saveMissingTo:"all"},ou={reloadOnSave:!0,bindSavedMissing:!0};nu.use(Ho).use(tu),nu.on("editorSaved",()=>{ho.forceRerender()});var uu=nu.init;return nu.init=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;e=n(n({},ou),e);var r=document.getElementById("locizify");if(r){var o={},u={},i=["fallbackLng","saveMissing","debug","autorun","ele","cleanIndent","cleanWhitespace","namespace","namespaceFromPath","load"],a=["ignoreTags","ignoreIds","ignoreClasses","translateAttributes","mergeTags","inlineTags","ignoreInlineOn","ignoreCleanIndentFor","ns"],s=["projectId","apiKey","referenceLng","version","allowedAddOrUpdateHost"];i.forEach(e=>{var t=r.getAttribute(e.toLowerCase());"true"===t&&(t=!0),"false"===t&&(t=!1),null!=t&&(o[e]=t)}),a.forEach(e=>{var t=r.getAttribute(e.toLowerCase());null!=t&&(o[e]=t.split(",").map(e=>e.trim()))}),s.forEach(e=>{var t=r.getAttribute(e.toLowerCase());"true"===t&&(t=!0),"false"===t&&(t=!1),null!=t&&(u[e]=t)}),u.allowedAddOrUpdateHost&&(u.allowedAddOrUpdateHosts=[u.allowedAddOrUpdateHost],delete u.allowedAddOrUpdateHost),(e=n(n(n({},ou),e),o)).backend=n(n({},e.backend),u)}function l(e,n){t(e,n)}if(!e.backend.autoPilot||"false"===e.backend.autoPilot)return uu.call(nu,n(n({},e),ru),l);var c=new Ho(e.backend);c.getOptions((t,r)=>{t&&"object"==typeof console&&"function"==typeof console.error&&console.error(t),uu.call(nu,n(n(n({},r),e),ru),l)})},ho.getLanguages=function(e){if(nu.services.backendConnector)nu.services.backendConnector.backend.getLanguages(e);else{nu.on("initialized",(function t(){nu.off("initialized",t),nu.services.backendConnector.backend.getLanguages(e)}))}},ho.getOptions=function(e){if(nu.services.backendConnector)nu.services.backendConnector.backend.getOptions(e);else{nu.on("initialized",(function t(){nu.off("initialized",t),nu.services.backendConnector.backend.getOptions(e)}))}},ho.editor={turnOn:function(){return Zo=!1,Go||window.document.body.addEventListener("click",$o,!0),Go=!0,Wo&&Wo.postMessage({message:"turnedOn"},Jo),Zo},turnOff:function(){return Zo=!0,Go&&window.document.body.removeEventListener("click",$o,!0),Go=!1,Wo&&Wo.postMessage({message:"turnedOff"},Jo),Wo&&Wo.postMessage({message:"forcedOff"},Jo),Zo}},ho}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "locizify",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.3",
|
|
4
4
|
"description": "main script for using locize service in frontend",
|
|
5
5
|
"main": "dist/commonjs/index.js",
|
|
6
6
|
"jsnext:main": "dist/es/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"url": "git://github.com/locize/locizify.git"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"i18next-locize-backend": "5.1.
|
|
23
|
+
"i18next-locize-backend": "5.1.2",
|
|
24
24
|
"i18nextify": "3.1.2",
|
|
25
25
|
"locize": "2.3.0"
|
|
26
26
|
},
|