vue-document-editor
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -0,1 +1,6 @@ | ||
## v1.1.1 | ||
- Bugfix [Issue 2](https://github.com/motla/vue-document-editor/issues/2): Enter key to create new line doesn't seem to work on the demo site | ||
- Bugfix: restoring a new document when user wipes out the entire document | ||
## v1.1.0 | ||
@@ -2,0 +7,0 @@ |
@@ -1,2 +0,2 @@ | ||
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue-document-editor"]=e():t["vue-document-editor"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="fb15")}({"00ee":function(t,e,r){var n=r("b622"),o=n("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},"0366":function(t,e,r){var n=r("1c0b");t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},"057f":function(t,e,r){var n=r("fc6a"),o=r("241c").f,i={}.toString,c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return o(t)}catch(e){return c.slice()}};t.exports.f=function(t){return c&&"[object Window]"==i.call(t)?a(t):o(n(t))}},"06cf":function(t,e,r){var n=r("83ab"),o=r("d1e7"),i=r("5c6c"),c=r("fc6a"),a=r("c04e"),u=r("5135"),f=r("0cfb"),s=Object.getOwnPropertyDescriptor;e.f=n?s:function(t,e){if(t=c(t),e=a(e,!0),f)try{return s(t,e)}catch(r){}if(u(t,e))return i(!o.f.call(t,e),t[e])}},"0c49":function(t,e,r){},"0cfb":function(t,e,r){var n=r("83ab"),o=r("d039"),i=r("cc12");t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"13d5":function(t,e,r){"use strict";var n=r("23e7"),o=r("d58f").left,i=r("a640"),c=r("ae40"),a=i("reduce"),u=c("reduce",{1:0});n({target:"Array",proto:!0,forced:!a||!u},{reduce:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(t,e,r){var n=r("c6b6"),o=r("9263");t.exports=function(t,e){var r=t.exec;if("function"===typeof r){var i=r.call(t,e);if("object"!==typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==n(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},"159b":function(t,e,r){var n=r("da84"),o=r("fdbc"),i=r("17c2"),c=r("9112");for(var a in o){var u=n[a],f=u&&u.prototype;if(f&&f.forEach!==i)try{c(f,"forEach",i)}catch(s){f.forEach=i}}},"17c2":function(t,e,r){"use strict";var n=r("b727").forEach,o=r("a640"),i=r("ae40"),c=o("forEach"),a=i("forEach");t.exports=c&&a?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},"1be4":function(t,e,r){var n=r("d066");t.exports=n("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(t,e,r){var n=r("b622"),o=n("iterator"),i=!1;try{var c=0,a={next:function(){return{done:!!c++}},return:function(){i=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(u){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var n={};n[o]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(u){}return r}},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1dde":function(t,e,r){var n=r("d039"),o=r("b622"),i=r("2d00"),c=o("species");t.exports=function(t){return i>=51||!n((function(){var e=[],r=e.constructor={};return r[c]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"23cb":function(t,e,r){var n=r("a691"),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},"23e7":function(t,e,r){var n=r("da84"),o=r("06cf").f,i=r("9112"),c=r("6eeb"),a=r("ce4e"),u=r("e893"),f=r("94ca");t.exports=function(t,e){var r,s,l,p,d,h,v=t.target,g=t.global,y=t.stat;if(s=g?n:y?n[v]||a(v,{}):(n[v]||{}).prototype,s)for(l in e){if(d=e[l],t.noTargetGet?(h=o(s,l),p=h&&h.value):p=s[l],r=f(g?l:v+(y?".":"#")+l,t.forced),!r&&void 0!==p){if(typeof d===typeof p)continue;u(d,p)}(t.sham||p&&p.sham)&&i(d,"sham",!0),c(s,l,d,t)}}},"241c":function(t,e,r){var n=r("ca84"),o=r("7839"),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},"25f0":function(t,e,r){"use strict";var n=r("6eeb"),o=r("825a"),i=r("d039"),c=r("ad6d"),a="toString",u=RegExp.prototype,f=u[a],s=i((function(){return"/a/b"!=f.call({source:"a",flags:"b"})})),l=f.name!=a;(s||l)&&n(RegExp.prototype,a,(function(){var t=o(this),e=String(t.source),r=t.flags,n=String(void 0===r&&t instanceof RegExp&&!("flags"in u)?c.call(t):r);return"/"+e+"/"+n}),{unsafe:!0})},"2d00":function(t,e,r){var n,o,i=r("da84"),c=r("342f"),a=i.process,u=a&&a.versions,f=u&&u.v8;f?(n=f.split("."),o=n[0]+n[1]):c&&(n=c.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=c.match(/Chrome\/(\d+)/),n&&(o=n[1]))),t.exports=o&&+o},"342f":function(t,e,r){var n=r("d066");t.exports=n("navigator","userAgent")||""},"35a1":function(t,e,r){var n=r("f5df"),o=r("3f8c"),i=r("b622"),c=i("iterator");t.exports=function(t){if(void 0!=t)return t[c]||t["@@iterator"]||o[n(t)]}},"37e8":function(t,e,r){var n=r("83ab"),o=r("9bf2"),i=r("825a"),c=r("df75");t.exports=n?Object.defineProperties:function(t,e){i(t);var r,n=c(e),a=n.length,u=0;while(a>u)o.f(t,r=n[u++],e[r]);return t}},"3bbe":function(t,e,r){var n=r("861d");t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3ca3":function(t,e,r){"use strict";var n=r("6547").charAt,o=r("69f3"),i=r("7dd0"),c="String Iterator",a=o.set,u=o.getterFor(c);i(String,"String",(function(t){a(this,{type:c,string:String(t),index:0})}),(function(){var t,e=u(this),r=e.string,o=e.index;return o>=r.length?{value:void 0,done:!0}:(t=n(r,o),e.index+=t.length,{value:t,done:!1})}))},"3f8c":function(t,e){t.exports={}},4160:function(t,e,r){"use strict";var n=r("23e7"),o=r("17c2");n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},"428f":function(t,e,r){var n=r("da84");t.exports=n},"44ad":function(t,e,r){var n=r("d039"),o=r("c6b6"),i="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},"44d2":function(t,e,r){var n=r("b622"),o=r("7c73"),i=r("9bf2"),c=n("unscopables"),a=Array.prototype;void 0==a[c]&&i.f(a,c,{configurable:!0,value:o(null)}),t.exports=function(t){a[c][t]=!0}},"466d":function(t,e,r){"use strict";var n=r("d784"),o=r("825a"),i=r("50c4"),c=r("1d80"),a=r("8aa5"),u=r("14c3");n("match",1,(function(t,e,r){return[function(e){var r=c(this),n=void 0==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var c=o(t),f=String(this);if(!c.global)return u(c,f);var s=c.unicode;c.lastIndex=0;var l,p=[],d=0;while(null!==(l=u(c,f))){var h=String(l[0]);p[d]=h,""===h&&(c.lastIndex=a(f,i(c.lastIndex),s)),d++}return 0===d?null:p}]}))},4930:function(t,e,r){var n=r("d039");t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},"4d64":function(t,e,r){var n=r("fc6a"),o=r("50c4"),i=r("23cb"),c=function(t){return function(e,r,c){var a,u=n(e),f=o(u.length),s=i(c,f);if(t&&r!=r){while(f>s)if(a=u[s++],a!=a)return!0}else for(;f>s;s++)if((t||s in u)&&u[s]===r)return t||s||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},"4de4":function(t,e,r){"use strict";var n=r("23e7"),o=r("b727").filter,i=r("1dde"),c=r("ae40"),a=i("filter"),u=c("filter");n({target:"Array",proto:!0,forced:!a||!u},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(t,e,r){"use strict";var n=r("0366"),o=r("7b0b"),i=r("9bdd"),c=r("e95a"),a=r("50c4"),u=r("8418"),f=r("35a1");t.exports=function(t){var e,r,s,l,p,d,h=o(t),v="function"==typeof this?this:Array,g=arguments.length,y=g>1?arguments[1]:void 0,m=void 0!==y,b=f(h),x=0;if(m&&(y=n(y,g>2?arguments[2]:void 0,2)),void 0==b||v==Array&&c(b))for(e=a(h.length),r=new v(e);e>x;x++)d=m?y(h[x],x):h[x],u(r,x,d);else for(l=b.call(h),p=l.next,r=new v;!(s=p.call(l)).done;x++)d=m?i(l,y,[s.value,x],!0):s.value,u(r,x,d);return r.length=x,r}},"50c4":function(t,e,r){var n=r("a691"),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},5135:function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},5692:function(t,e,r){var n=r("c430"),o=r("c6cd");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,r){var n=r("d066"),o=r("241c"),i=r("7418"),c=r("825a");t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(c(t)),r=i.f;return r?e.concat(r(t)):e}},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,r){var n=r("1d80"),o=r("5899"),i="["+o+"]",c=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$"),u=function(t){return function(e){var r=String(n(e));return 1&t&&(r=r.replace(c,"")),2&t&&(r=r.replace(a,"")),r}};t.exports={start:u(1),end:u(2),trim:u(3)}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5cc0":function(t,e,r){"use strict";var n=r("0c49"),o=r.n(n);o.a},6547:function(t,e,r){var n=r("a691"),o=r("1d80"),i=function(t){return function(e,r){var i,c,a=String(o(e)),u=n(r),f=a.length;return u<0||u>=f?t?"":void 0:(i=a.charCodeAt(u),i<55296||i>56319||u+1===f||(c=a.charCodeAt(u+1))<56320||c>57343?t?a.charAt(u):i:t?a.slice(u,u+2):c-56320+(i-55296<<10)+65536)}};t.exports={codeAt:i(!1),charAt:i(!0)}},"65f0":function(t,e,r){var n=r("861d"),o=r("e8b5"),i=r("b622"),c=i("species");t.exports=function(t,e){var r;return o(t)&&(r=t.constructor,"function"!=typeof r||r!==Array&&!o(r.prototype)?n(r)&&(r=r[c],null===r&&(r=void 0)):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},"69f3":function(t,e,r){var n,o,i,c=r("7f9a"),a=r("da84"),u=r("861d"),f=r("9112"),s=r("5135"),l=r("f772"),p=r("d012"),d=a.WeakMap,h=function(t){return i(t)?o(t):n(t,{})},v=function(t){return function(e){var r;if(!u(e)||(r=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}};if(c){var g=new d,y=g.get,m=g.has,b=g.set;n=function(t,e){return b.call(g,t,e),e},o=function(t){return y.call(g,t)||{}},i=function(t){return m.call(g,t)}}else{var x=l("state");p[x]=!0,n=function(t,e){return f(t,x,e),e},o=function(t){return s(t,x)?t[x]:{}},i=function(t){return s(t,x)}}t.exports={set:n,get:o,has:i,enforce:h,getterFor:v}},"6eeb":function(t,e,r){var n=r("da84"),o=r("9112"),i=r("5135"),c=r("ce4e"),a=r("8925"),u=r("69f3"),f=u.get,s=u.enforce,l=String(String).split("String");(t.exports=function(t,e,r,a){var u=!!a&&!!a.unsafe,f=!!a&&!!a.enumerable,p=!!a&&!!a.noTargetGet;"function"==typeof r&&("string"!=typeof e||i(r,"name")||o(r,"name",e),s(r).source=l.join("string"==typeof e?e:"")),t!==n?(u?!p&&t[e]&&(f=!0):delete t[e],f?t[e]=r:o(t,e,r)):f?t[e]=r:c(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||a(this)}))},7156:function(t,e,r){var n=r("861d"),o=r("d2bb");t.exports=function(t,e,r){var i,c;return o&&"function"==typeof(i=e.constructor)&&i!==r&&n(c=i.prototype)&&c!==r.prototype&&o(t,c),t}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},"746f":function(t,e,r){var n=r("428f"),o=r("5135"),i=r("e538"),c=r("9bf2").f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});o(e,t)||c(e,t,{value:i.f(t)})}},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,r){var n=r("1d80");t.exports=function(t){return Object(n(t))}},"7c73":function(t,e,r){var n,o=r("825a"),i=r("37e8"),c=r("7839"),a=r("d012"),u=r("1be4"),f=r("cc12"),s=r("f772"),l=">",p="<",d="prototype",h="script",v=s("IE_PROTO"),g=function(){},y=function(t){return p+h+l+t+p+"/"+h+l},m=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},b=function(){var t,e=f("iframe"),r="java"+h+":";return e.style.display="none",u.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(y("document.F=Object")),t.close(),t.F},x=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(e){}x=n?m(n):b();var t=c.length;while(t--)delete x[d][c[t]];return x()};a[v]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(g[d]=o(t),r=new g,g[d]=null,r[v]=t):r=x(),void 0===e?r:i(r,e)}},"7dd0":function(t,e,r){"use strict";var n=r("23e7"),o=r("9ed3"),i=r("e163"),c=r("d2bb"),a=r("d44e"),u=r("9112"),f=r("6eeb"),s=r("b622"),l=r("c430"),p=r("3f8c"),d=r("ae93"),h=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,g=s("iterator"),y="keys",m="values",b="entries",x=function(){return this};t.exports=function(t,e,r,s,d,_,w){o(r,e,s);var S,E,O,j=function(t){if(t===d&&N)return N;if(!v&&t in A)return A[t];switch(t){case y:return function(){return new r(this,t)};case m:return function(){return new r(this,t)};case b:return function(){return new r(this,t)}}return function(){return new r(this)}},L=e+" Iterator",T=!1,A=t.prototype,P=A[g]||A["@@iterator"]||d&&A[d],N=!v&&P||j(d),R="Array"==e&&A.entries||P;if(R&&(S=i(R.call(new t)),h!==Object.prototype&&S.next&&(l||i(S)===h||(c?c(S,h):"function"!=typeof S[g]&&u(S,g,x)),a(S,L,!0,!0),l&&(p[L]=x))),d==m&&P&&P.name!==m&&(T=!0,N=function(){return P.call(this)}),l&&!w||A[g]===N||u(A,g,N),p[e]=N,d)if(E={values:j(m),keys:_?N:j(y),entries:j(b)},w)for(O in E)(v||T||!(O in A))&&f(A,O,E[O]);else n({target:e,proto:!0,forced:v||T},E);return E}},"7f9a":function(t,e,r){var n=r("da84"),o=r("8925"),i=n.WeakMap;t.exports="function"===typeof i&&/native code/.test(o(i))},"825a":function(t,e,r){var n=r("861d");t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,r){var n=r("d039");t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,r){"use strict";var n=r("c04e"),o=r("9bf2"),i=r("5c6c");t.exports=function(t,e,r){var c=n(e);c in t?o.f(t,c,i(0,r)):t[c]=r}},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8875:function(t,e,r){var n,o,i;(function(r,c){o=[],n=c,i="function"===typeof n?n.apply(e,o):n,void 0===i||(t.exports=i)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(d){var r,n,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,c=/@([^@]*):(\d+):(\d+)\s*$/gi,a=i.exec(d.stack)||c.exec(d.stack),u=a&&a[1]||!1,f=a&&a[2]||!1,s=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");u===s&&(r=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(f-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=r.replace(n,"$1").trim());for(var p=0;p<l.length;p++){if("interactive"===l[p].readyState)return l[p];if(l[p].src===u)return l[p];if(u===s&&l[p].innerHTML&&l[p].innerHTML.trim()===o)return l[p]}return null}}return t}))},8925:function(t,e,r){var n=r("c6cd"),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return o.call(t)}),t.exports=n.inspectSource},"8aa5":function(t,e,r){"use strict";var n=r("6547").charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},"90e3":function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+n).toString(36)}},9112:function(t,e,r){var n=r("83ab"),o=r("9bf2"),i=r("5c6c");t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},9263:function(t,e,r){"use strict";var n=r("ad6d"),o=r("9f7f"),i=RegExp.prototype.exec,c=String.prototype.replace,a=i,u=function(){var t=/a/,e=/b*/g;return i.call(t,"a"),i.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),f=o.UNSUPPORTED_Y||o.BROKEN_CARET,s=void 0!==/()??/.exec("")[1],l=u||s||f;l&&(a=function(t){var e,r,o,a,l=this,p=f&&l.sticky,d=n.call(l),h=l.source,v=0,g=t;return p&&(d=d.replace("y",""),-1===d.indexOf("g")&&(d+="g"),g=String(t).slice(l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==t[l.lastIndex-1])&&(h="(?: "+h+")",g=" "+g,v++),r=new RegExp("^(?:"+h+")",d)),s&&(r=new RegExp("^"+h+"$(?!\\s)",d)),u&&(e=l.lastIndex),o=i.call(p?r:l,g),p?o?(o.input=o.input.slice(v),o[0]=o[0].slice(v),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:u&&o&&(l.lastIndex=l.global?o.index+o[0].length:e),s&&o&&o.length>1&&c.call(o[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o}),t.exports=a},"94ca":function(t,e,r){var n=r("d039"),o=/#|\.prototype\./,i=function(t,e){var r=a[c(t)];return r==f||r!=u&&("function"==typeof e?n(e):!!e)},c=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},a=i.data={},u=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},"96cf":function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),c=new T(n||[]);return i._invoke=E(t,r,c),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}t.wrap=u;var s="suspendedStart",l="suspendedYield",p="executing",d="completed",h={};function v(){}function g(){}function y(){}var m={};m[i]=function(){return this};var b=Object.getPrototypeOf,x=b&&b(b(A([])));x&&x!==r&&n.call(x,i)&&(m=x);var _=y.prototype=v.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function S(t,e){function r(o,i,c,a){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"===typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,c,a)}),(function(t){r("throw",t,c,a)})):e.resolve(l).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,a)}))}a(u.arg)}var o;function i(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}this._invoke=i}function E(t,e,r){var n=s;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return P()}r.method=o,r.arg=i;while(1){var c=r.delegate;if(c){var a=O(c,r);if(a){if(a===h)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===s)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=f(t,e,r);if("normal"===u.type){if(n=r.done?d:l,u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=d,r.method="throw",r.arg=u.arg)}}}function O(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator["return"]&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=f(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,h;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function A(t){if(t){var r=t[i];if(r)return r.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function r(){while(++o<t.length)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return c.next=c}}return{next:P}}function P(){return{value:e,done:!0}}return g.prototype=_.constructor=y,y.constructor=g,y[a]=g.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},w(S.prototype),S.prototype[c]=function(){return this},t.AsyncIterator=S,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var c=new S(u(e,r,n,o),i);return t.isGeneratorFunction(r)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},w(_),_[a]="Generator",_[i]=function(){return this},_.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){while(e.length){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=A,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return a.type="throw",a.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var u=n.call(c,"catchLoc"),f=n.call(c,"finallyLoc");if(u&&f){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(u){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}(t.exports);try{regeneratorRuntime=n}catch(o){Function("r","regeneratorRuntime = r")(n)}},"9bdd":function(t,e,r){var n=r("825a");t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(c){var i=t["return"];throw void 0!==i&&n(i.call(t)),c}}},"9bf2":function(t,e,r){var n=r("83ab"),o=r("0cfb"),i=r("825a"),c=r("c04e"),a=Object.defineProperty;e.f=n?a:function(t,e,r){if(i(t),e=c(e,!0),i(r),o)try{return a(t,e,r)}catch(n){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},"9ed3":function(t,e,r){"use strict";var n=r("ae93").IteratorPrototype,o=r("7c73"),i=r("5c6c"),c=r("d44e"),a=r("3f8c"),u=function(){return this};t.exports=function(t,e,r){var f=e+" Iterator";return t.prototype=o(n,{next:i(1,r)}),c(t,f,!1,!0),a[f]=u,t}},"9f7f":function(t,e,r){"use strict";var n=r("d039");function o(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=n((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=n((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},a15b:function(t,e,r){"use strict";var n=r("23e7"),o=r("44ad"),i=r("fc6a"),c=r("a640"),a=[].join,u=o!=Object,f=c("join",",");n({target:"Array",proto:!0,forced:u||!f},{join:function(t){return a.call(i(this),void 0===t?",":t)}})},a434:function(t,e,r){"use strict";var n=r("23e7"),o=r("23cb"),i=r("a691"),c=r("50c4"),a=r("7b0b"),u=r("65f0"),f=r("8418"),s=r("1dde"),l=r("ae40"),p=s("splice"),d=l("splice",{ACCESSORS:!0,0:0,1:2}),h=Math.max,v=Math.min,g=9007199254740991,y="Maximum allowed length exceeded";n({target:"Array",proto:!0,forced:!p||!d},{splice:function(t,e){var r,n,s,l,p,d,m=a(this),b=c(m.length),x=o(t,b),_=arguments.length;if(0===_?r=n=0:1===_?(r=0,n=b-x):(r=_-2,n=v(h(i(e),0),b-x)),b+r-n>g)throw TypeError(y);for(s=u(m,n),l=0;l<n;l++)p=x+l,p in m&&f(s,l,m[p]);if(s.length=n,r<n){for(l=x;l<b-n;l++)p=l+n,d=l+r,p in m?m[d]=m[p]:delete m[d];for(l=b;l>b-n+r;l--)delete m[l-1]}else if(r>n)for(l=b-n;l>x;l--)p=l+n-1,d=l+r-1,p in m?m[d]=m[p]:delete m[d];for(l=0;l<r;l++)m[l+x]=arguments[l+2];return m.length=b-n+r,s}})},a4d3:function(t,e,r){"use strict";var n=r("23e7"),o=r("da84"),i=r("d066"),c=r("c430"),a=r("83ab"),u=r("4930"),f=r("fdbf"),s=r("d039"),l=r("5135"),p=r("e8b5"),d=r("861d"),h=r("825a"),v=r("7b0b"),g=r("fc6a"),y=r("c04e"),m=r("5c6c"),b=r("7c73"),x=r("df75"),_=r("241c"),w=r("057f"),S=r("7418"),E=r("06cf"),O=r("9bf2"),j=r("d1e7"),L=r("9112"),T=r("6eeb"),A=r("5692"),P=r("f772"),N=r("d012"),R=r("90e3"),I=r("b622"),k=r("e538"),C=r("746f"),M=r("d44e"),$=r("69f3"),F=r("b727").forEach,D=P("hidden"),H="Symbol",G="prototype",z=I("toPrimitive"),U=$.set,V=$.getterFor(H),B=Object[G],Y=o.Symbol,X=i("JSON","stringify"),W=E.f,K=O.f,q=w.f,J=j.f,Q=A("symbols"),Z=A("op-symbols"),tt=A("string-to-symbol-registry"),et=A("symbol-to-string-registry"),rt=A("wks"),nt=o.QObject,ot=!nt||!nt[G]||!nt[G].findChild,it=a&&s((function(){return 7!=b(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=W(B,e);n&&delete B[e],K(t,e,r),n&&t!==B&&K(B,e,n)}:K,ct=function(t,e){var r=Q[t]=b(Y[G]);return U(r,{type:H,tag:t,description:e}),a||(r.description=e),r},at=f?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Y},ut=function(t,e,r){t===B&&ut(Z,e,r),h(t);var n=y(e,!0);return h(r),l(Q,n)?(r.enumerable?(l(t,D)&&t[D][n]&&(t[D][n]=!1),r=b(r,{enumerable:m(0,!1)})):(l(t,D)||K(t,D,m(1,{})),t[D][n]=!0),it(t,n,r)):K(t,n,r)},ft=function(t,e){h(t);var r=g(e),n=x(r).concat(ht(r));return F(n,(function(e){a&&!lt.call(r,e)||ut(t,e,r[e])})),t},st=function(t,e){return void 0===e?b(t):ft(b(t),e)},lt=function(t){var e=y(t,!0),r=J.call(this,e);return!(this===B&&l(Q,e)&&!l(Z,e))&&(!(r||!l(this,e)||!l(Q,e)||l(this,D)&&this[D][e])||r)},pt=function(t,e){var r=g(t),n=y(e,!0);if(r!==B||!l(Q,n)||l(Z,n)){var o=W(r,n);return!o||!l(Q,n)||l(r,D)&&r[D][n]||(o.enumerable=!0),o}},dt=function(t){var e=q(g(t)),r=[];return F(e,(function(t){l(Q,t)||l(N,t)||r.push(t)})),r},ht=function(t){var e=t===B,r=q(e?Z:g(t)),n=[];return F(r,(function(t){!l(Q,t)||e&&!l(B,t)||n.push(Q[t])})),n};if(u||(Y=function(){if(this instanceof Y)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=R(t),r=function(t){this===B&&r.call(Z,t),l(this,D)&&l(this[D],e)&&(this[D][e]=!1),it(this,e,m(1,t))};return a&&ot&&it(B,e,{configurable:!0,set:r}),ct(e,t)},T(Y[G],"toString",(function(){return V(this).tag})),T(Y,"withoutSetter",(function(t){return ct(R(t),t)})),j.f=lt,O.f=ut,E.f=pt,_.f=w.f=dt,S.f=ht,k.f=function(t){return ct(I(t),t)},a&&(K(Y[G],"description",{configurable:!0,get:function(){return V(this).description}}),c||T(B,"propertyIsEnumerable",lt,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:Y}),F(x(rt),(function(t){C(t)})),n({target:H,stat:!0,forced:!u},{for:function(t){var e=String(t);if(l(tt,e))return tt[e];var r=Y(e);return tt[e]=r,et[r]=e,r},keyFor:function(t){if(!at(t))throw TypeError(t+" is not a symbol");if(l(et,t))return et[t]},useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!a},{create:st,defineProperty:ut,defineProperties:ft,getOwnPropertyDescriptor:pt}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:dt,getOwnPropertySymbols:ht}),n({target:"Object",stat:!0,forced:s((function(){S.f(1)}))},{getOwnPropertySymbols:function(t){return S.f(v(t))}}),X){var vt=!u||s((function(){var t=Y();return"[null]"!=X([t])||"{}"!=X({a:t})||"{}"!=X(Object(t))}));n({target:"JSON",stat:!0,forced:vt},{stringify:function(t,e,r){var n,o=[t],i=1;while(arguments.length>i)o.push(arguments[i++]);if(n=e,(d(e)||void 0!==t)&&!at(t))return p(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!at(e))return e}),o[1]=e,X.apply(null,o)}})}Y[G][z]||L(Y[G],z,Y[G].valueOf),M(Y,H),N[D]=!0},a630:function(t,e,r){var n=r("23e7"),o=r("4df4"),i=r("1c7e"),c=!i((function(t){Array.from(t)}));n({target:"Array",stat:!0,forced:c},{from:o})},a640:function(t,e,r){"use strict";var n=r("d039");t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},a691:function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},a9e3:function(t,e,r){"use strict";var n=r("83ab"),o=r("da84"),i=r("94ca"),c=r("6eeb"),a=r("5135"),u=r("c6b6"),f=r("7156"),s=r("c04e"),l=r("d039"),p=r("7c73"),d=r("241c").f,h=r("06cf").f,v=r("9bf2").f,g=r("58a8").trim,y="Number",m=o[y],b=m.prototype,x=u(p(b))==y,_=function(t){var e,r,n,o,i,c,a,u,f=s(t,!1);if("string"==typeof f&&f.length>2)if(f=g(f),e=f.charCodeAt(0),43===e||45===e){if(r=f.charCodeAt(2),88===r||120===r)return NaN}else if(48===e){switch(f.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+f}for(i=f.slice(2),c=i.length,a=0;a<c;a++)if(u=i.charCodeAt(a),u<48||u>o)return NaN;return parseInt(i,n)}return+f};if(i(y,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var w,S=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof S&&(x?l((function(){b.valueOf.call(r)})):u(r)!=y)?f(new m(_(e)),r,S):_(e)},E=n?d(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),O=0;E.length>O;O++)a(m,w=E[O])&&!a(S,w)&&v(S,w,h(m,w));S.prototype=b,b.constructor=S,c(o,y,S)}},ac1f:function(t,e,r){"use strict";var n=r("23e7"),o=r("9263");n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},ad6d:function(t,e,r){"use strict";var n=r("825a");t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},ae40:function(t,e,r){var n=r("83ab"),o=r("d039"),i=r("5135"),c=Object.defineProperty,a={},u=function(t){throw t};t.exports=function(t,e){if(i(a,t))return a[t];e||(e={});var r=[][t],f=!!i(e,"ACCESSORS")&&e.ACCESSORS,s=i(e,0)?e[0]:u,l=i(e,1)?e[1]:void 0;return a[t]=!!r&&!o((function(){if(f&&!n)return!0;var t={length:-1};f?c(t,1,{enumerable:!0,get:u}):t[1]=1,r.call(t,s,l)}))}},ae93:function(t,e,r){"use strict";var n,o,i,c=r("e163"),a=r("9112"),u=r("5135"),f=r("b622"),s=r("c430"),l=f("iterator"),p=!1,d=function(){return this};[].keys&&(i=[].keys(),"next"in i?(o=c(c(i)),o!==Object.prototype&&(n=o)):p=!0),void 0==n&&(n={}),s||u(n,l)||a(n,l,d),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},b041:function(t,e,r){"use strict";var n=r("00ee"),o=r("f5df");t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},b0c0:function(t,e,r){var n=r("83ab"),o=r("9bf2").f,i=Function.prototype,c=i.toString,a=/^\s*function ([^ (]*)/,u="name";n&&!(u in i)&&o(i,u,{configurable:!0,get:function(){try{return c.call(this).match(a)[1]}catch(t){return""}}})},b622:function(t,e,r){var n=r("da84"),o=r("5692"),i=r("5135"),c=r("90e3"),a=r("4930"),u=r("fdbf"),f=o("wks"),s=n.Symbol,l=u?s:s&&s.withoutSetter||c;t.exports=function(t){return i(f,t)||(a&&i(s,t)?f[t]=s[t]:f[t]=l("Symbol."+t)),f[t]}},b64b:function(t,e,r){var n=r("23e7"),o=r("7b0b"),i=r("df75"),c=r("d039"),a=c((function(){i(1)}));n({target:"Object",stat:!0,forced:a},{keys:function(t){return i(o(t))}})},b727:function(t,e,r){var n=r("0366"),o=r("44ad"),i=r("7b0b"),c=r("50c4"),a=r("65f0"),u=[].push,f=function(t){var e=1==t,r=2==t,f=3==t,s=4==t,l=6==t,p=5==t||l;return function(d,h,v,g){for(var y,m,b=i(d),x=o(b),_=n(h,v,3),w=c(x.length),S=0,E=g||a,O=e?E(d,w):r?E(d,0):void 0;w>S;S++)if((p||S in x)&&(y=x[S],m=_(y,S,b),t))if(e)O[S]=m;else if(m)switch(t){case 3:return!0;case 5:return y;case 6:return S;case 2:u.call(O,y)}else if(s)return!1;return l?-1:f||s?s:O}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6)}},c04e:function(t,e,r){var n=r("861d");t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},c430:function(t,e){t.exports=!1},c6b6:function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},c6cd:function(t,e,r){var n=r("da84"),o=r("ce4e"),i="__core-js_shared__",c=n[i]||o(i,{});t.exports=c},c8ba:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}t.exports=r},ca84:function(t,e,r){var n=r("5135"),o=r("fc6a"),i=r("4d64").indexOf,c=r("d012");t.exports=function(t,e){var r,a=o(t),u=0,f=[];for(r in a)!n(c,r)&&n(a,r)&&f.push(r);while(e.length>u)n(a,r=e[u++])&&(~i(f,r)||f.push(r));return f}},cc12:function(t,e,r){var n=r("da84"),o=r("861d"),i=n.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},ce4e:function(t,e,r){var n=r("da84"),o=r("9112");t.exports=function(t,e){try{o(n,t,e)}catch(r){n[t]=e}return e}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,r){var n=r("428f"),o=r("da84"),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(n[t])||i(o[t]):n[t]&&n[t][e]||o[t]&&o[t][e]}},d1e7:function(t,e,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:n},d28b:function(t,e,r){var n=r("746f");n("iterator")},d2bb:function(t,e,r){var n=r("825a"),o=r("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(r,[]),e=r instanceof Array}catch(i){}return function(r,i){return n(r),o(i),e?t.call(r,i):r.__proto__=i,r}}():void 0)},d3b7:function(t,e,r){var n=r("00ee"),o=r("6eeb"),i=r("b041");n||o(Object.prototype,"toString",i,{unsafe:!0})},d44e:function(t,e,r){var n=r("9bf2").f,o=r("5135"),i=r("b622"),c=i("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,c)&&n(t,c,{configurable:!0,value:e})}},d58f:function(t,e,r){var n=r("1c0b"),o=r("7b0b"),i=r("44ad"),c=r("50c4"),a=function(t){return function(e,r,a,u){n(r);var f=o(e),s=i(f),l=c(f.length),p=t?l-1:0,d=t?-1:1;if(a<2)while(1){if(p in s){u=s[p],p+=d;break}if(p+=d,t?p<0:l<=p)throw TypeError("Reduce of empty array with no initial value")}for(;t?p>=0:l>p;p+=d)p in s&&(u=r(u,s[p],p,f));return u}};t.exports={left:a(!1),right:a(!0)}},d784:function(t,e,r){"use strict";r("ac1f");var n=r("6eeb"),o=r("d039"),i=r("b622"),c=r("9263"),a=r("9112"),u=i("species"),f=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),s=function(){return"$0"==="a".replace(/./,"$0")}(),l=i("replace"),p=function(){return!!/./[l]&&""===/./[l]("a","$0")}(),d=!o((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));t.exports=function(t,e,r,l){var h=i(t),v=!o((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),g=v&&!o((function(){var e=!1,r=/a/;return"split"===t&&(r={},r.constructor={},r.constructor[u]=function(){return r},r.flags="",r[h]=/./[h]),r.exec=function(){return e=!0,null},r[h](""),!e}));if(!v||!g||"replace"===t&&(!f||!s||p)||"split"===t&&!d){var y=/./[h],m=r(h,""[t],(function(t,e,r,n,o){return e.exec===c?v&&!o?{done:!0,value:y.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:s,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=m[0],x=m[1];n(String.prototype,t,b),n(RegExp.prototype,h,2==e?function(t,e){return x.call(t,this,e)}:function(t){return x.call(t,this)})}l&&a(RegExp.prototype[h],"sham",!0)}},d81d:function(t,e,r){"use strict";var n=r("23e7"),o=r("b727").map,i=r("1dde"),c=r("ae40"),a=i("map"),u=c("map");n({target:"Array",proto:!0,forced:!a||!u},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},da84:function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")()}).call(this,r("c8ba"))},dbb4:function(t,e,r){var n=r("23e7"),o=r("83ab"),i=r("56ef"),c=r("fc6a"),a=r("06cf"),u=r("8418");n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){var e,r,n=c(t),o=a.f,f=i(n),s={},l=0;while(f.length>l)r=o(n,e=f[l++]),void 0!==r&&u(s,e,r);return s}})},ddb0:function(t,e,r){var n=r("da84"),o=r("fdbc"),i=r("e260"),c=r("9112"),a=r("b622"),u=a("iterator"),f=a("toStringTag"),s=i.values;for(var l in o){var p=n[l],d=p&&p.prototype;if(d){if(d[u]!==s)try{c(d,u,s)}catch(v){d[u]=s}if(d[f]||c(d,f,l),o[l])for(var h in i)if(d[h]!==i[h])try{c(d,h,i[h])}catch(v){d[h]=i[h]}}}},df75:function(t,e,r){var n=r("ca84"),o=r("7839");t.exports=Object.keys||function(t){return n(t,o)}},e01a:function(t,e,r){"use strict";var n=r("23e7"),o=r("83ab"),i=r("da84"),c=r("5135"),a=r("861d"),u=r("9bf2").f,f=r("e893"),s=i.Symbol;if(o&&"function"==typeof s&&(!("description"in s.prototype)||void 0!==s().description)){var l={},p=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof p?new s(t):void 0===t?s():s(t);return""===t&&(l[e]=!0),e};f(p,s);var d=p.prototype=s.prototype;d.constructor=p;var h=d.toString,v="Symbol(test)"==String(s("test")),g=/^Symbol\((.*)\)[^)]+$/;u(d,"description",{configurable:!0,get:function(){var t=a(this)?this.valueOf():this,e=h.call(t);if(c(l,t))return"";var r=v?e.slice(7,-1):e.replace(g,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:p})}},e163:function(t,e,r){var n=r("5135"),o=r("7b0b"),i=r("f772"),c=r("e177"),a=i("IE_PROTO"),u=Object.prototype;t.exports=c?Object.getPrototypeOf:function(t){return t=o(t),n(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},e177:function(t,e,r){var n=r("d039");t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e260:function(t,e,r){"use strict";var n=r("fc6a"),o=r("44d2"),i=r("3f8c"),c=r("69f3"),a=r("7dd0"),u="Array Iterator",f=c.set,s=c.getterFor(u);t.exports=a(Array,"Array",(function(t,e){f(this,{type:u,target:n(t),index:0,kind:e})}),(function(){var t=s(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},e439:function(t,e,r){var n=r("23e7"),o=r("d039"),i=r("fc6a"),c=r("06cf").f,a=r("83ab"),u=o((function(){c(1)})),f=!a||u;n({target:"Object",stat:!0,forced:f,sham:!a},{getOwnPropertyDescriptor:function(t,e){return c(i(t),e)}})},e538:function(t,e,r){var n=r("b622");e.f=n},e893:function(t,e,r){var n=r("5135"),o=r("56ef"),i=r("06cf"),c=r("9bf2");t.exports=function(t,e){for(var r=o(e),a=c.f,u=i.f,f=0;f<r.length;f++){var s=r[f];n(t,s)||a(t,s,u(e,s))}}},e8b5:function(t,e,r){var n=r("c6b6");t.exports=Array.isArray||function(t){return"Array"==n(t)}},e95a:function(t,e,r){var n=r("b622"),o=r("3f8c"),i=n("iterator"),c=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||c[i]===t)}},f5df:function(t,e,r){var n=r("00ee"),o=r("c6b6"),i=r("b622"),c=i("toStringTag"),a="Arguments"==o(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(r){}};t.exports=n?o:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=u(e=Object(t),c))?r:a?o(e):"Object"==(n=o(e))&&"function"==typeof e.callee?"Arguments":n}},f772:function(t,e,r){var n=r("5692"),o=r("90e3"),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},fb15:function(t,e,r){"use strict";if(r.r(e),"undefined"!==typeof window){var n=window.document.currentScript,o=r("8875");n=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var c=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{ref:"editor",staticClass:"editor"},[r("div",{ref:"content",staticClass:"content",style:t.page_style(-1),attrs:{contenteditable:t.editable},on:{input:t.input,keyup:t.process_current_text_style}},[r("div",{ref:"dummy_page",staticClass:"page",style:t.page_style(0)}),t._l(t.pages,(function(e,n){return r("div",{key:e.uuid,ref:e.uuid,refInFor:!0,staticClass:"page",style:t.page_style(n,!!e.template),attrs:{"data-content-idx":e.content_idx,contenteditable:!e.template}},[e.template?r(e.template,t._b({tag:"component"},"component",e.props,!1,!0)):t._e()],1)}))],2)])},a=[];r("4de4"),r("a15b"),r("d81d"),r("13d5"),r("a434"),r("a9e3"),r("d3b7"),r("3ca3"),r("ddb0");function u(t){if(Array.isArray(t))return t}r("a4d3"),r("e01a"),r("d28b");function f(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=t[Symbol.iterator]();!(n=(c=a.next()).done);n=!0)if(r.push(c.value),e&&r.length===e)break}catch(u){o=!0,i=u}finally{try{n||null==a["return"]||a["return"]()}finally{if(o)throw i}}return r}}r("a630"),r("fb6a"),r("b0c0"),r("25f0");function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function l(t,e){if(t){if("string"===typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(t,e){return u(t)||f(t,e)||l(t,e)||p()}r("4160"),r("e439"),r("dbb4"),r("b64b"),r("159b");function h(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function y(t,e){var r;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=l(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,a=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return c=t.done,t},e:function(t){a=!0,i=t},f:function(){try{c||null==r["return"]||r["return"]()}finally{if(a)throw i}}}}r("96cf");function m(t,e,r,n,o,i,c){try{var a=t[i](c),u=a.value}catch(f){return void r(f)}a.done?e(u):Promise.resolve(u).then(n,o)}function b(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function c(t){m(i,n,o,c,a,"next",t)}function a(t){m(i,n,o,c,a,"throw",t)}c(void 0)}))}}r("ac1f"),r("466d");function x(t,e){if(!t||!e)return!1;for(var r=t.childNodes,n=0;n<r.length;n++)if(r[n].s_tag==e)return r[n];return!1}function _(t,e,r,n){while(t.childNodes.length&&!r()){n=n||1!=t.childNodes.length;var o=t.lastChild;if(o.nodeType==Node.TEXT_NODE){var i=o.textContent.match(/(\s|\S+)/g),c=document.createTextNode("");e.prepend(c);for(var a=i?i.length:0,u=0;u<a;u++){if(u==a-1&&!n)return;if(o.textContent=i.slice(0,a-u-1).join(""),c.textContent=i.slice(a-u-1,a).join(""),r())return}}else if(!o.childNodes.length||o.tagName.match(/h\d/i)){if(!n)return void console.log("Move-forward: first child reached with no stop condition. Aborting");e.prepend(o)}else{var f=x(e,o.s_tag);if(!f){if(!o.s_tag){var s=Math.random().toString(36).slice(2,8);o.s_tag=s}f=o.cloneNode(!1),f.s_tag=o.s_tag,e.prepend(f)}_(o,f,r,n),f.normalize()}if(t.contains(o))if(0==o.childNodes.length||""==o.innerHTML)t.removeChild(o);else if(!r())throw console.log("sub_child:",o,"that is in child:",t),Error("Document editor is trying to remove a non-empty sub-child. This is a bug and should not happen. Please report a repeatable set of actions that leaded to this error to https://github.com/motla/vue-document-editor/issues/new")}}function w(t,e,r){while(!r()){var n=e.firstChild,o=function t(e,r){var n=x(e,r.s_tag);n&&r.childNodes.length?t(n,r.firstChild):(e.append(r),e.normalize())};o(t,n)}}var S={props:{content:{type:Array,required:!0},display:{type:String,default:"auto"},page_format_mm:{type:Array,default:function(){return[210,297]}},page_margins:{type:String,default:"10mm 15mm"},zoom:{type:Number,default:1},editable:{type:Boolean,default:!0}},data:function(){return{pages:[],pages_height:0,editor_width:0,prevent_next_content_update_from_parent:!1,current_text_style:!1}},mounted:function(){this.update_editor_width(),this.update_css_media_style(),this.reset_content(),window.addEventListener("resize",this.update_editor_width),window.addEventListener("click",this.process_current_text_style),window.addEventListener("beforeprint",this.before_print),window.addEventListener("afterprint",this.after_print)},beforeDestroy:function(){window.removeEventListener("resize",this.update_editor_width),window.removeEventListener("click",this.process_current_text_style),window.removeEventListener("beforeprint",this.before_print),window.removeEventListener("afterprint",this.after_print)},computed:{new_page_uuid:function(){return this.pages.reduce((function(t,e){return Math.max(t,e.uuid+1)}),0)},css_media_style:function(){var t=document.createElement("style");return document.head.appendChild(t),t}},methods:{reset_content:function(){var t=this;return b(regeneratorRuntime.mark((function e(){var r,n,o,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$nextTick();case 2:return t.$refs.dummy_page.style.display="block",t.pages_height=t.$refs.dummy_page.clientHeight+1,t.$refs.dummy_page.style.display="none",t.pages=t.content.length?t.content.map((function(t,e){return{uuid:e,content_idx:e,template:t.template,props:t.props}})):[{uuid:0,content_idx:0}],e.next=8,t.$nextTick();case 8:r=y(t.pages);try{for(r.s();!(n=r.n()).done;)o=n.value,i=t.$refs[o.uuid][0],t.content[o.content_idx]?"string"==typeof t.content[o.content_idx]&&(i.innerHTML="<div>"+t.content[o.content_idx]+"</div>"):i.innerHTML=""}catch(c){r.e(c)}finally{r.f()}return e.next=12,t.fit_content_over_pages();case 12:t.$refs.content.blur();case 13:case"end":return e.stop()}}),e)})))()},fit_content_over_pages:function(){var t=this;return b(regeneratorRuntime.mark((function e(){var r,n,o,i,c,a,u,f,s,l,p,d,h,v,g;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.pages_height){e.next=2;break}return e.abrupt("return");case 2:for(r=t.pages.length-1;r>=0;r--)n=t.pages[r],o=t.$refs[n.uuid][0],document.body.contains(o)||t.pages.splice(r,1);i=window.getSelection(),c=document.createElement("null"),a=document.createElement("null"),i.rangeCount&&(u=i.getRangeAt(0),u.insertNode(c),u.collapse(!1),u.insertNode(a)),f=!1,s=regeneratorRuntime.mark((function e(r){var n,o,i,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.pages[r],o=t.$refs[n.uuid][0],i=t.pages[r+1],c=i?t.$refs[i.uuid][0]:null,n.template||!(f||o.innerHTML!=n.prev_innerHTML||c&&!i.template&&c.innerHTML!=i.prev_innerHTML)){e.next=15;break}if(f=!0,o.clientHeight<=t.pages_height&&i&&i.content_idx==n.content_idx&&(w(o,c,(function(){return!c.childNodes.length||o.clientHeight>t.pages_height})),c.childNodes.length||t.pages.splice(r+1,1)),!(o.clientHeight>t.pages_height)){e.next=15;break}if(i&&i.content_idx==n.content_idx){e.next=14;break}return i={uuid:t.new_page_uuid,content_idx:n.content_idx},t.pages.splice(r+1,0,i),e.next=13,t.$nextTick();case 13:c=t.$refs[i.uuid][0];case 14:_(o,c,(function(){return o.clientHeight<=t.pages_height}));case 15:case"end":return e.stop()}}),e)})),l=0;case 10:if(!(l<t.pages.length)){e.next=15;break}return e.delegateYield(s(l),"t0",12);case 12:l++,e.next=10;break;case 15:document.body.contains(c)&&(p=document.createRange(),p.setStart(c,0),document.body.contains(a)&&p.setEnd(a,0),i.removeAllRanges(),i.addRange(p)),c.parentElement&&c.parentElement.removeChild(c),a.parentElement&&a.parentElement.removeChild(a),d=y(t.pages);try{for(d.s();!(h=d.n()).done;)v=h.value,g=t.$refs[v.uuid][0],g.normalize(),v.prev_innerHTML=g.innerHTML}catch(m){d.e(m)}finally{d.f()}case 20:case"end":return e.stop()}}),e)})))()},input:function(t){var e=this;return b(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(t&&t.inputType){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,e.fit_content_over_pages();case 4:e.emit_new_content(),"insertText"!=t.inputType&&e.process_current_text_style();case 6:case"end":return r.stop()}}),r)})))()},emit_new_content:function(){var t=this,e=this.content.map((function(e,r){return"string"==typeof e?t.pages.filter((function(t){return t.content_idx==r})).map((function(e){return t.$refs[e.uuid][0].innerHTML})).join(""):{template:e.template,props:g({},e.props)}}));this.prevent_next_content_update_from_parent=!0,this.$emit("update:content",e)},process_current_text_style:function(){var t=!1,e=window.getSelection();if(e.focusNode){var r=e.focusNode.tagName?e.focusNode:e.focusNode.parentElement;if(r&&r.isContentEditable){t=window.getComputedStyle(r),t.textDecorationStack=[],t.headerLevel=0,t.isList=!1;var n=r;while(n){var o=window.getComputedStyle(n);if(t.textDecorationStack.push(o.textDecoration),"list-item"==o.display&&(t.isList=!0),!t.headerLevel)for(var i=1;i<=6;i++)if(n.tagName.toUpperCase()=="H"+i){t.headerLevel=i;break}n=n.parentElement}}}this.current_text_style=t},page_style:function(t,e){var r,n,o,i,c,a,u,f=.2645833333333,s=this.page_format_mm[0]/f,l=10,p=(l+this.page_format_mm[0])*this.zoom/f,d=20,h=this.editor_width-2*d,v=1;if("horizontal"==this.display)h>this.pages.length*p?(v=Math.floor(h/p),i=h/(2*v)*(1+2*t)-s/2):(v=this.pages.length,i=p*t+s/2*(this.zoom-1)),c=0,a=this.zoom*(this.page_format_mm[0]*v+(v-1)*l),u=this.page_format_mm[1]*this.zoom;else{v=Math.floor(h/p),(v<1||"vertical"==this.display)&&(v=1),r=t%v,n=h/(2*v)*(1+2*r)-s/2,o=Math.max(0,(s*this.zoom-h)/2),i=n+o,c=(this.page_format_mm[1]+l)*this.zoom*Math.floor(t/v);var g=Math.ceil(this.pages.length/v);a=this.zoom*(this.page_format_mm[0]*v+(v-1)*l),u=this.zoom*(this.page_format_mm[1]*g+(g-1)*l)}if(t>=0){var y={left:"calc("+i+"px + "+d+"px)",top:"calc("+c+"mm + "+d+"px)",width:this.page_format_mm[0]+"mm",padding:this.page_margins,transform:"scale("+this.zoom+")"};return y[e?"height":"minHeight"]=this.page_format_mm[1]+"mm",y}return{width:"calc("+a+"mm + "+2*d+"px)",height:"calc("+u+"mm + "+2*d+"px)"}},update_editor_width:function(){this.$refs.editor.classList.add("hide_children"),this.editor_width=this.$refs.editor.clientWidth,this.$refs.editor.classList.remove("hide_children")},update_css_media_style:function(){this.css_media_style.innerHTML="@media print { @page { size: "+this.page_format_mm[0]+"mm "+this.page_format_mm[1]+"mm; margin: 0 !important; } }"},before_print:function(){this._page_body=document.body;var t,e=document.createElement("body"),r=y(this.pages.entries());try{for(r.s();!(t=r.n()).done;){var n=d(t.value,2),o=n[0],i=n[1],c=this.$refs[i.uuid][0],a=c.cloneNode(!0);e.append(a),a.style="",a.style.padding=this.page_margins,a.style.breakBefore=o?"page":"auto"}}catch(u){r.e(u)}finally{r.f()}document.body=e},after_print:function(){document.body=this._page_body,this.update_editor_width()}},watch:{page_format_mm:{handler:function(){var t=this;return b(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.update_css_media_style(),e.next=3,t.reset_content();case 3:case"end":return e.stop()}}),e)})))()}},page_margins:{handler:function(){var t=this;return b(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.reset_content();case 2:case"end":return e.stop()}}),e)})))()}},content:{handler:function(){var t=this;return b(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.prevent_next_content_update_from_parent){e.next=4;break}t.prevent_next_content_update_from_parent=!1,e.next=6;break;case 4:return e.next=6,t.reset_content();case 6:case"end":return e.stop()}}),e)})))()}}}},E=S;r("5cc0");function O(t,e,r,n,o,i,c,a){var u,f="function"===typeof t?t.options:t;if(e&&(f.render=e,f.staticRenderFns=r,f._compiled=!0),n&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),c?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(c)},f._ssrRegister=u):o&&(u=a?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(f.functional){f._injectStyles=u;var s=f.render;f.render=function(t,e){return u.call(e),s(t,e)}}else{var l=f.beforeCreate;f.beforeCreate=l?[].concat(l,u):[u]}return{exports:t,options:f}}var j=O(E,c,a,!1,null,"e0fe9952",null),L=j.exports;e["default"]=L},fb6a:function(t,e,r){"use strict";var n=r("23e7"),o=r("861d"),i=r("e8b5"),c=r("23cb"),a=r("50c4"),u=r("fc6a"),f=r("8418"),s=r("b622"),l=r("1dde"),p=r("ae40"),d=l("slice"),h=p("slice",{ACCESSORS:!0,0:0,1:2}),v=s("species"),g=[].slice,y=Math.max;n({target:"Array",proto:!0,forced:!d||!h},{slice:function(t,e){var r,n,s,l=u(this),p=a(l.length),d=c(t,p),h=c(void 0===e?p:e,p);if(i(l)&&(r=l.constructor,"function"!=typeof r||r!==Array&&!i(r.prototype)?o(r)&&(r=r[v],null===r&&(r=void 0)):r=void 0,r===Array||void 0===r))return g.call(l,d,h);for(n=new(void 0===r?Array:r)(y(h-d,0)),s=0;d<h;d++,s++)d in l&&f(n,s,l[d]);return n.length=s,n}})},fc6a:function(t,e,r){var n=r("44ad"),o=r("1d80");t.exports=function(t){return n(o(t))}},fdbc:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(t,e,r){var n=r("4930");t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})["default"]})); | ||
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue-document-editor"]=e():t["vue-document-editor"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="fb15")}({"00ee":function(t,e,r){var n=r("b622"),o=n("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},"0366":function(t,e,r){var n=r("1c0b");t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},"057f":function(t,e,r){var n=r("fc6a"),o=r("241c").f,i={}.toString,c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return o(t)}catch(e){return c.slice()}};t.exports.f=function(t){return c&&"[object Window]"==i.call(t)?a(t):o(n(t))}},"06cf":function(t,e,r){var n=r("83ab"),o=r("d1e7"),i=r("5c6c"),c=r("fc6a"),a=r("c04e"),u=r("5135"),f=r("0cfb"),s=Object.getOwnPropertyDescriptor;e.f=n?s:function(t,e){if(t=c(t),e=a(e,!0),f)try{return s(t,e)}catch(r){}if(u(t,e))return i(!o.f.call(t,e),t[e])}},"0cfb":function(t,e,r){var n=r("83ab"),o=r("d039"),i=r("cc12");t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"13d5":function(t,e,r){"use strict";var n=r("23e7"),o=r("d58f").left,i=r("a640"),c=r("ae40"),a=i("reduce"),u=c("reduce",{1:0});n({target:"Array",proto:!0,forced:!a||!u},{reduce:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(t,e,r){var n=r("c6b6"),o=r("9263");t.exports=function(t,e){var r=t.exec;if("function"===typeof r){var i=r.call(t,e);if("object"!==typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==n(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},"159b":function(t,e,r){var n=r("da84"),o=r("fdbc"),i=r("17c2"),c=r("9112");for(var a in o){var u=n[a],f=u&&u.prototype;if(f&&f.forEach!==i)try{c(f,"forEach",i)}catch(s){f.forEach=i}}},"17c2":function(t,e,r){"use strict";var n=r("b727").forEach,o=r("a640"),i=r("ae40"),c=o("forEach"),a=i("forEach");t.exports=c&&a?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},"1be4":function(t,e,r){var n=r("d066");t.exports=n("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(t,e,r){var n=r("b622"),o=n("iterator"),i=!1;try{var c=0,a={next:function(){return{done:!!c++}},return:function(){i=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(u){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var n={};n[o]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(u){}return r}},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1dde":function(t,e,r){var n=r("d039"),o=r("b622"),i=r("2d00"),c=o("species");t.exports=function(t){return i>=51||!n((function(){var e=[],r=e.constructor={};return r[c]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"23cb":function(t,e,r){var n=r("a691"),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},"23e7":function(t,e,r){var n=r("da84"),o=r("06cf").f,i=r("9112"),c=r("6eeb"),a=r("ce4e"),u=r("e893"),f=r("94ca");t.exports=function(t,e){var r,s,l,p,d,h,v=t.target,g=t.global,y=t.stat;if(s=g?n:y?n[v]||a(v,{}):(n[v]||{}).prototype,s)for(l in e){if(d=e[l],t.noTargetGet?(h=o(s,l),p=h&&h.value):p=s[l],r=f(g?l:v+(y?".":"#")+l,t.forced),!r&&void 0!==p){if(typeof d===typeof p)continue;u(d,p)}(t.sham||p&&p.sham)&&i(d,"sham",!0),c(s,l,d,t)}}},"241c":function(t,e,r){var n=r("ca84"),o=r("7839"),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},"25f0":function(t,e,r){"use strict";var n=r("6eeb"),o=r("825a"),i=r("d039"),c=r("ad6d"),a="toString",u=RegExp.prototype,f=u[a],s=i((function(){return"/a/b"!=f.call({source:"a",flags:"b"})})),l=f.name!=a;(s||l)&&n(RegExp.prototype,a,(function(){var t=o(this),e=String(t.source),r=t.flags,n=String(void 0===r&&t instanceof RegExp&&!("flags"in u)?c.call(t):r);return"/"+e+"/"+n}),{unsafe:!0})},"2d00":function(t,e,r){var n,o,i=r("da84"),c=r("342f"),a=i.process,u=a&&a.versions,f=u&&u.v8;f?(n=f.split("."),o=n[0]+n[1]):c&&(n=c.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=c.match(/Chrome\/(\d+)/),n&&(o=n[1]))),t.exports=o&&+o},"342f":function(t,e,r){var n=r("d066");t.exports=n("navigator","userAgent")||""},"35a1":function(t,e,r){var n=r("f5df"),o=r("3f8c"),i=r("b622"),c=i("iterator");t.exports=function(t){if(void 0!=t)return t[c]||t["@@iterator"]||o[n(t)]}},"37e8":function(t,e,r){var n=r("83ab"),o=r("9bf2"),i=r("825a"),c=r("df75");t.exports=n?Object.defineProperties:function(t,e){i(t);var r,n=c(e),a=n.length,u=0;while(a>u)o.f(t,r=n[u++],e[r]);return t}},"3bbe":function(t,e,r){var n=r("861d");t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3ca3":function(t,e,r){"use strict";var n=r("6547").charAt,o=r("69f3"),i=r("7dd0"),c="String Iterator",a=o.set,u=o.getterFor(c);i(String,"String",(function(t){a(this,{type:c,string:String(t),index:0})}),(function(){var t,e=u(this),r=e.string,o=e.index;return o>=r.length?{value:void 0,done:!0}:(t=n(r,o),e.index+=t.length,{value:t,done:!1})}))},"3f8c":function(t,e){t.exports={}},4160:function(t,e,r){"use strict";var n=r("23e7"),o=r("17c2");n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},"428f":function(t,e,r){var n=r("da84");t.exports=n},"44ad":function(t,e,r){var n=r("d039"),o=r("c6b6"),i="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},"44d2":function(t,e,r){var n=r("b622"),o=r("7c73"),i=r("9bf2"),c=n("unscopables"),a=Array.prototype;void 0==a[c]&&i.f(a,c,{configurable:!0,value:o(null)}),t.exports=function(t){a[c][t]=!0}},"466d":function(t,e,r){"use strict";var n=r("d784"),o=r("825a"),i=r("50c4"),c=r("1d80"),a=r("8aa5"),u=r("14c3");n("match",1,(function(t,e,r){return[function(e){var r=c(this),n=void 0==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var c=o(t),f=String(this);if(!c.global)return u(c,f);var s=c.unicode;c.lastIndex=0;var l,p=[],d=0;while(null!==(l=u(c,f))){var h=String(l[0]);p[d]=h,""===h&&(c.lastIndex=a(f,i(c.lastIndex),s)),d++}return 0===d?null:p}]}))},4930:function(t,e,r){var n=r("d039");t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},"4d64":function(t,e,r){var n=r("fc6a"),o=r("50c4"),i=r("23cb"),c=function(t){return function(e,r,c){var a,u=n(e),f=o(u.length),s=i(c,f);if(t&&r!=r){while(f>s)if(a=u[s++],a!=a)return!0}else for(;f>s;s++)if((t||s in u)&&u[s]===r)return t||s||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},"4de4":function(t,e,r){"use strict";var n=r("23e7"),o=r("b727").filter,i=r("1dde"),c=r("ae40"),a=i("filter"),u=c("filter");n({target:"Array",proto:!0,forced:!a||!u},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(t,e,r){"use strict";var n=r("0366"),o=r("7b0b"),i=r("9bdd"),c=r("e95a"),a=r("50c4"),u=r("8418"),f=r("35a1");t.exports=function(t){var e,r,s,l,p,d,h=o(t),v="function"==typeof this?this:Array,g=arguments.length,y=g>1?arguments[1]:void 0,m=void 0!==y,b=f(h),x=0;if(m&&(y=n(y,g>2?arguments[2]:void 0,2)),void 0==b||v==Array&&c(b))for(e=a(h.length),r=new v(e);e>x;x++)d=m?y(h[x],x):h[x],u(r,x,d);else for(l=b.call(h),p=l.next,r=new v;!(s=p.call(l)).done;x++)d=m?i(l,y,[s.value,x],!0):s.value,u(r,x,d);return r.length=x,r}},"50c4":function(t,e,r){var n=r("a691"),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},5135:function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},5692:function(t,e,r){var n=r("c430"),o=r("c6cd");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,r){var n=r("d066"),o=r("241c"),i=r("7418"),c=r("825a");t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(c(t)),r=i.f;return r?e.concat(r(t)):e}},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,r){var n=r("1d80"),o=r("5899"),i="["+o+"]",c=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$"),u=function(t){return function(e){var r=String(n(e));return 1&t&&(r=r.replace(c,"")),2&t&&(r=r.replace(a,"")),r}};t.exports={start:u(1),end:u(2),trim:u(3)}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6547:function(t,e,r){var n=r("a691"),o=r("1d80"),i=function(t){return function(e,r){var i,c,a=String(o(e)),u=n(r),f=a.length;return u<0||u>=f?t?"":void 0:(i=a.charCodeAt(u),i<55296||i>56319||u+1===f||(c=a.charCodeAt(u+1))<56320||c>57343?t?a.charAt(u):i:t?a.slice(u,u+2):c-56320+(i-55296<<10)+65536)}};t.exports={codeAt:i(!1),charAt:i(!0)}},"65f0":function(t,e,r){var n=r("861d"),o=r("e8b5"),i=r("b622"),c=i("species");t.exports=function(t,e){var r;return o(t)&&(r=t.constructor,"function"!=typeof r||r!==Array&&!o(r.prototype)?n(r)&&(r=r[c],null===r&&(r=void 0)):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},"69f3":function(t,e,r){var n,o,i,c=r("7f9a"),a=r("da84"),u=r("861d"),f=r("9112"),s=r("5135"),l=r("f772"),p=r("d012"),d=a.WeakMap,h=function(t){return i(t)?o(t):n(t,{})},v=function(t){return function(e){var r;if(!u(e)||(r=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}};if(c){var g=new d,y=g.get,m=g.has,b=g.set;n=function(t,e){return b.call(g,t,e),e},o=function(t){return y.call(g,t)||{}},i=function(t){return m.call(g,t)}}else{var x=l("state");p[x]=!0,n=function(t,e){return f(t,x,e),e},o=function(t){return s(t,x)?t[x]:{}},i=function(t){return s(t,x)}}t.exports={set:n,get:o,has:i,enforce:h,getterFor:v}},"6eeb":function(t,e,r){var n=r("da84"),o=r("9112"),i=r("5135"),c=r("ce4e"),a=r("8925"),u=r("69f3"),f=u.get,s=u.enforce,l=String(String).split("String");(t.exports=function(t,e,r,a){var u=!!a&&!!a.unsafe,f=!!a&&!!a.enumerable,p=!!a&&!!a.noTargetGet;"function"==typeof r&&("string"!=typeof e||i(r,"name")||o(r,"name",e),s(r).source=l.join("string"==typeof e?e:"")),t!==n?(u?!p&&t[e]&&(f=!0):delete t[e],f?t[e]=r:o(t,e,r)):f?t[e]=r:c(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||a(this)}))},7156:function(t,e,r){var n=r("861d"),o=r("d2bb");t.exports=function(t,e,r){var i,c;return o&&"function"==typeof(i=e.constructor)&&i!==r&&n(c=i.prototype)&&c!==r.prototype&&o(t,c),t}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},"746f":function(t,e,r){var n=r("428f"),o=r("5135"),i=r("e538"),c=r("9bf2").f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});o(e,t)||c(e,t,{value:i.f(t)})}},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,r){var n=r("1d80");t.exports=function(t){return Object(n(t))}},"7c73":function(t,e,r){var n,o=r("825a"),i=r("37e8"),c=r("7839"),a=r("d012"),u=r("1be4"),f=r("cc12"),s=r("f772"),l=">",p="<",d="prototype",h="script",v=s("IE_PROTO"),g=function(){},y=function(t){return p+h+l+t+p+"/"+h+l},m=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},b=function(){var t,e=f("iframe"),r="java"+h+":";return e.style.display="none",u.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(y("document.F=Object")),t.close(),t.F},x=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(e){}x=n?m(n):b();var t=c.length;while(t--)delete x[d][c[t]];return x()};a[v]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(g[d]=o(t),r=new g,g[d]=null,r[v]=t):r=x(),void 0===e?r:i(r,e)}},"7dd0":function(t,e,r){"use strict";var n=r("23e7"),o=r("9ed3"),i=r("e163"),c=r("d2bb"),a=r("d44e"),u=r("9112"),f=r("6eeb"),s=r("b622"),l=r("c430"),p=r("3f8c"),d=r("ae93"),h=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,g=s("iterator"),y="keys",m="values",b="entries",x=function(){return this};t.exports=function(t,e,r,s,d,_,w){o(r,e,s);var S,E,O,j=function(t){if(t===d&&N)return N;if(!v&&t in A)return A[t];switch(t){case y:return function(){return new r(this,t)};case m:return function(){return new r(this,t)};case b:return function(){return new r(this,t)}}return function(){return new r(this)}},L=e+" Iterator",T=!1,A=t.prototype,P=A[g]||A["@@iterator"]||d&&A[d],N=!v&&P||j(d),R="Array"==e&&A.entries||P;if(R&&(S=i(R.call(new t)),h!==Object.prototype&&S.next&&(l||i(S)===h||(c?c(S,h):"function"!=typeof S[g]&&u(S,g,x)),a(S,L,!0,!0),l&&(p[L]=x))),d==m&&P&&P.name!==m&&(T=!0,N=function(){return P.call(this)}),l&&!w||A[g]===N||u(A,g,N),p[e]=N,d)if(E={values:j(m),keys:_?N:j(y),entries:j(b)},w)for(O in E)(v||T||!(O in A))&&f(A,O,E[O]);else n({target:e,proto:!0,forced:v||T},E);return E}},"7f9a":function(t,e,r){var n=r("da84"),o=r("8925"),i=n.WeakMap;t.exports="function"===typeof i&&/native code/.test(o(i))},"825a":function(t,e,r){var n=r("861d");t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,r){var n=r("d039");t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,r){"use strict";var n=r("c04e"),o=r("9bf2"),i=r("5c6c");t.exports=function(t,e,r){var c=n(e);c in t?o.f(t,c,i(0,r)):t[c]=r}},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8875:function(t,e,r){var n,o,i;(function(r,c){o=[],n=c,i="function"===typeof n?n.apply(e,o):n,void 0===i||(t.exports=i)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(d){var r,n,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,c=/@([^@]*):(\d+):(\d+)\s*$/gi,a=i.exec(d.stack)||c.exec(d.stack),u=a&&a[1]||!1,f=a&&a[2]||!1,s=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");u===s&&(r=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(f-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=r.replace(n,"$1").trim());for(var p=0;p<l.length;p++){if("interactive"===l[p].readyState)return l[p];if(l[p].src===u)return l[p];if(u===s&&l[p].innerHTML&&l[p].innerHTML.trim()===o)return l[p]}return null}}return t}))},8925:function(t,e,r){var n=r("c6cd"),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return o.call(t)}),t.exports=n.inspectSource},"8aa5":function(t,e,r){"use strict";var n=r("6547").charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},"90e3":function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+n).toString(36)}},9112:function(t,e,r){var n=r("83ab"),o=r("9bf2"),i=r("5c6c");t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},9263:function(t,e,r){"use strict";var n=r("ad6d"),o=r("9f7f"),i=RegExp.prototype.exec,c=String.prototype.replace,a=i,u=function(){var t=/a/,e=/b*/g;return i.call(t,"a"),i.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),f=o.UNSUPPORTED_Y||o.BROKEN_CARET,s=void 0!==/()??/.exec("")[1],l=u||s||f;l&&(a=function(t){var e,r,o,a,l=this,p=f&&l.sticky,d=n.call(l),h=l.source,v=0,g=t;return p&&(d=d.replace("y",""),-1===d.indexOf("g")&&(d+="g"),g=String(t).slice(l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==t[l.lastIndex-1])&&(h="(?: "+h+")",g=" "+g,v++),r=new RegExp("^(?:"+h+")",d)),s&&(r=new RegExp("^"+h+"$(?!\\s)",d)),u&&(e=l.lastIndex),o=i.call(p?r:l,g),p?o?(o.input=o.input.slice(v),o[0]=o[0].slice(v),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:u&&o&&(l.lastIndex=l.global?o.index+o[0].length:e),s&&o&&o.length>1&&c.call(o[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o}),t.exports=a},"94ca":function(t,e,r){var n=r("d039"),o=/#|\.prototype\./,i=function(t,e){var r=a[c(t)];return r==f||r!=u&&("function"==typeof e?n(e):!!e)},c=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},a=i.data={},u=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},"96cf":function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),c=new T(n||[]);return i._invoke=E(t,r,c),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}t.wrap=u;var s="suspendedStart",l="suspendedYield",p="executing",d="completed",h={};function v(){}function g(){}function y(){}var m={};m[i]=function(){return this};var b=Object.getPrototypeOf,x=b&&b(b(A([])));x&&x!==r&&n.call(x,i)&&(m=x);var _=y.prototype=v.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function S(t,e){function r(o,i,c,a){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"===typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,c,a)}),(function(t){r("throw",t,c,a)})):e.resolve(l).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,a)}))}a(u.arg)}var o;function i(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}this._invoke=i}function E(t,e,r){var n=s;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return P()}r.method=o,r.arg=i;while(1){var c=r.delegate;if(c){var a=O(c,r);if(a){if(a===h)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===s)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=f(t,e,r);if("normal"===u.type){if(n=r.done?d:l,u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=d,r.method="throw",r.arg=u.arg)}}}function O(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator["return"]&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=f(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,h;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function A(t){if(t){var r=t[i];if(r)return r.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function r(){while(++o<t.length)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return c.next=c}}return{next:P}}function P(){return{value:e,done:!0}}return g.prototype=_.constructor=y,y.constructor=g,y[a]=g.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},w(S.prototype),S.prototype[c]=function(){return this},t.AsyncIterator=S,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var c=new S(u(e,r,n,o),i);return t.isGeneratorFunction(r)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},w(_),_[a]="Generator",_[i]=function(){return this},_.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){while(e.length){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=A,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return a.type="throw",a.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var u=n.call(c,"catchLoc"),f=n.call(c,"finallyLoc");if(u&&f){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(u){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}(t.exports);try{regeneratorRuntime=n}catch(o){Function("r","regeneratorRuntime = r")(n)}},"9bdd":function(t,e,r){var n=r("825a");t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(c){var i=t["return"];throw void 0!==i&&n(i.call(t)),c}}},"9bf2":function(t,e,r){var n=r("83ab"),o=r("0cfb"),i=r("825a"),c=r("c04e"),a=Object.defineProperty;e.f=n?a:function(t,e,r){if(i(t),e=c(e,!0),i(r),o)try{return a(t,e,r)}catch(n){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},"9ed3":function(t,e,r){"use strict";var n=r("ae93").IteratorPrototype,o=r("7c73"),i=r("5c6c"),c=r("d44e"),a=r("3f8c"),u=function(){return this};t.exports=function(t,e,r){var f=e+" Iterator";return t.prototype=o(n,{next:i(1,r)}),c(t,f,!1,!0),a[f]=u,t}},"9f7f":function(t,e,r){"use strict";var n=r("d039");function o(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=n((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=n((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},a15b:function(t,e,r){"use strict";var n=r("23e7"),o=r("44ad"),i=r("fc6a"),c=r("a640"),a=[].join,u=o!=Object,f=c("join",",");n({target:"Array",proto:!0,forced:u||!f},{join:function(t){return a.call(i(this),void 0===t?",":t)}})},a434:function(t,e,r){"use strict";var n=r("23e7"),o=r("23cb"),i=r("a691"),c=r("50c4"),a=r("7b0b"),u=r("65f0"),f=r("8418"),s=r("1dde"),l=r("ae40"),p=s("splice"),d=l("splice",{ACCESSORS:!0,0:0,1:2}),h=Math.max,v=Math.min,g=9007199254740991,y="Maximum allowed length exceeded";n({target:"Array",proto:!0,forced:!p||!d},{splice:function(t,e){var r,n,s,l,p,d,m=a(this),b=c(m.length),x=o(t,b),_=arguments.length;if(0===_?r=n=0:1===_?(r=0,n=b-x):(r=_-2,n=v(h(i(e),0),b-x)),b+r-n>g)throw TypeError(y);for(s=u(m,n),l=0;l<n;l++)p=x+l,p in m&&f(s,l,m[p]);if(s.length=n,r<n){for(l=x;l<b-n;l++)p=l+n,d=l+r,p in m?m[d]=m[p]:delete m[d];for(l=b;l>b-n+r;l--)delete m[l-1]}else if(r>n)for(l=b-n;l>x;l--)p=l+n-1,d=l+r-1,p in m?m[d]=m[p]:delete m[d];for(l=0;l<r;l++)m[l+x]=arguments[l+2];return m.length=b-n+r,s}})},a4d3:function(t,e,r){"use strict";var n=r("23e7"),o=r("da84"),i=r("d066"),c=r("c430"),a=r("83ab"),u=r("4930"),f=r("fdbf"),s=r("d039"),l=r("5135"),p=r("e8b5"),d=r("861d"),h=r("825a"),v=r("7b0b"),g=r("fc6a"),y=r("c04e"),m=r("5c6c"),b=r("7c73"),x=r("df75"),_=r("241c"),w=r("057f"),S=r("7418"),E=r("06cf"),O=r("9bf2"),j=r("d1e7"),L=r("9112"),T=r("6eeb"),A=r("5692"),P=r("f772"),N=r("d012"),R=r("90e3"),I=r("b622"),k=r("e538"),C=r("746f"),M=r("d44e"),$=r("69f3"),F=r("b727").forEach,D=P("hidden"),H="Symbol",G="prototype",z=I("toPrimitive"),U=$.set,V=$.getterFor(H),B=Object[G],Y=o.Symbol,X=i("JSON","stringify"),W=E.f,K=O.f,q=w.f,J=j.f,Q=A("symbols"),Z=A("op-symbols"),tt=A("string-to-symbol-registry"),et=A("symbol-to-string-registry"),rt=A("wks"),nt=o.QObject,ot=!nt||!nt[G]||!nt[G].findChild,it=a&&s((function(){return 7!=b(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=W(B,e);n&&delete B[e],K(t,e,r),n&&t!==B&&K(B,e,n)}:K,ct=function(t,e){var r=Q[t]=b(Y[G]);return U(r,{type:H,tag:t,description:e}),a||(r.description=e),r},at=f?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Y},ut=function(t,e,r){t===B&&ut(Z,e,r),h(t);var n=y(e,!0);return h(r),l(Q,n)?(r.enumerable?(l(t,D)&&t[D][n]&&(t[D][n]=!1),r=b(r,{enumerable:m(0,!1)})):(l(t,D)||K(t,D,m(1,{})),t[D][n]=!0),it(t,n,r)):K(t,n,r)},ft=function(t,e){h(t);var r=g(e),n=x(r).concat(ht(r));return F(n,(function(e){a&&!lt.call(r,e)||ut(t,e,r[e])})),t},st=function(t,e){return void 0===e?b(t):ft(b(t),e)},lt=function(t){var e=y(t,!0),r=J.call(this,e);return!(this===B&&l(Q,e)&&!l(Z,e))&&(!(r||!l(this,e)||!l(Q,e)||l(this,D)&&this[D][e])||r)},pt=function(t,e){var r=g(t),n=y(e,!0);if(r!==B||!l(Q,n)||l(Z,n)){var o=W(r,n);return!o||!l(Q,n)||l(r,D)&&r[D][n]||(o.enumerable=!0),o}},dt=function(t){var e=q(g(t)),r=[];return F(e,(function(t){l(Q,t)||l(N,t)||r.push(t)})),r},ht=function(t){var e=t===B,r=q(e?Z:g(t)),n=[];return F(r,(function(t){!l(Q,t)||e&&!l(B,t)||n.push(Q[t])})),n};if(u||(Y=function(){if(this instanceof Y)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=R(t),r=function(t){this===B&&r.call(Z,t),l(this,D)&&l(this[D],e)&&(this[D][e]=!1),it(this,e,m(1,t))};return a&&ot&&it(B,e,{configurable:!0,set:r}),ct(e,t)},T(Y[G],"toString",(function(){return V(this).tag})),T(Y,"withoutSetter",(function(t){return ct(R(t),t)})),j.f=lt,O.f=ut,E.f=pt,_.f=w.f=dt,S.f=ht,k.f=function(t){return ct(I(t),t)},a&&(K(Y[G],"description",{configurable:!0,get:function(){return V(this).description}}),c||T(B,"propertyIsEnumerable",lt,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:Y}),F(x(rt),(function(t){C(t)})),n({target:H,stat:!0,forced:!u},{for:function(t){var e=String(t);if(l(tt,e))return tt[e];var r=Y(e);return tt[e]=r,et[r]=e,r},keyFor:function(t){if(!at(t))throw TypeError(t+" is not a symbol");if(l(et,t))return et[t]},useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!a},{create:st,defineProperty:ut,defineProperties:ft,getOwnPropertyDescriptor:pt}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:dt,getOwnPropertySymbols:ht}),n({target:"Object",stat:!0,forced:s((function(){S.f(1)}))},{getOwnPropertySymbols:function(t){return S.f(v(t))}}),X){var vt=!u||s((function(){var t=Y();return"[null]"!=X([t])||"{}"!=X({a:t})||"{}"!=X(Object(t))}));n({target:"JSON",stat:!0,forced:vt},{stringify:function(t,e,r){var n,o=[t],i=1;while(arguments.length>i)o.push(arguments[i++]);if(n=e,(d(e)||void 0!==t)&&!at(t))return p(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!at(e))return e}),o[1]=e,X.apply(null,o)}})}Y[G][z]||L(Y[G],z,Y[G].valueOf),M(Y,H),N[D]=!0},a630:function(t,e,r){var n=r("23e7"),o=r("4df4"),i=r("1c7e"),c=!i((function(t){Array.from(t)}));n({target:"Array",stat:!0,forced:c},{from:o})},a640:function(t,e,r){"use strict";var n=r("d039");t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},a691:function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},a9e3:function(t,e,r){"use strict";var n=r("83ab"),o=r("da84"),i=r("94ca"),c=r("6eeb"),a=r("5135"),u=r("c6b6"),f=r("7156"),s=r("c04e"),l=r("d039"),p=r("7c73"),d=r("241c").f,h=r("06cf").f,v=r("9bf2").f,g=r("58a8").trim,y="Number",m=o[y],b=m.prototype,x=u(p(b))==y,_=function(t){var e,r,n,o,i,c,a,u,f=s(t,!1);if("string"==typeof f&&f.length>2)if(f=g(f),e=f.charCodeAt(0),43===e||45===e){if(r=f.charCodeAt(2),88===r||120===r)return NaN}else if(48===e){switch(f.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+f}for(i=f.slice(2),c=i.length,a=0;a<c;a++)if(u=i.charCodeAt(a),u<48||u>o)return NaN;return parseInt(i,n)}return+f};if(i(y,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var w,S=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof S&&(x?l((function(){b.valueOf.call(r)})):u(r)!=y)?f(new m(_(e)),r,S):_(e)},E=n?d(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),O=0;E.length>O;O++)a(m,w=E[O])&&!a(S,w)&&v(S,w,h(m,w));S.prototype=b,b.constructor=S,c(o,y,S)}},ac1f:function(t,e,r){"use strict";var n=r("23e7"),o=r("9263");n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},ad6d:function(t,e,r){"use strict";var n=r("825a");t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},ae40:function(t,e,r){var n=r("83ab"),o=r("d039"),i=r("5135"),c=Object.defineProperty,a={},u=function(t){throw t};t.exports=function(t,e){if(i(a,t))return a[t];e||(e={});var r=[][t],f=!!i(e,"ACCESSORS")&&e.ACCESSORS,s=i(e,0)?e[0]:u,l=i(e,1)?e[1]:void 0;return a[t]=!!r&&!o((function(){if(f&&!n)return!0;var t={length:-1};f?c(t,1,{enumerable:!0,get:u}):t[1]=1,r.call(t,s,l)}))}},ae93:function(t,e,r){"use strict";var n,o,i,c=r("e163"),a=r("9112"),u=r("5135"),f=r("b622"),s=r("c430"),l=f("iterator"),p=!1,d=function(){return this};[].keys&&(i=[].keys(),"next"in i?(o=c(c(i)),o!==Object.prototype&&(n=o)):p=!0),void 0==n&&(n={}),s||u(n,l)||a(n,l,d),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},b041:function(t,e,r){"use strict";var n=r("00ee"),o=r("f5df");t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},b0c0:function(t,e,r){var n=r("83ab"),o=r("9bf2").f,i=Function.prototype,c=i.toString,a=/^\s*function ([^ (]*)/,u="name";n&&!(u in i)&&o(i,u,{configurable:!0,get:function(){try{return c.call(this).match(a)[1]}catch(t){return""}}})},b622:function(t,e,r){var n=r("da84"),o=r("5692"),i=r("5135"),c=r("90e3"),a=r("4930"),u=r("fdbf"),f=o("wks"),s=n.Symbol,l=u?s:s&&s.withoutSetter||c;t.exports=function(t){return i(f,t)||(a&&i(s,t)?f[t]=s[t]:f[t]=l("Symbol."+t)),f[t]}},b64b:function(t,e,r){var n=r("23e7"),o=r("7b0b"),i=r("df75"),c=r("d039"),a=c((function(){i(1)}));n({target:"Object",stat:!0,forced:a},{keys:function(t){return i(o(t))}})},b727:function(t,e,r){var n=r("0366"),o=r("44ad"),i=r("7b0b"),c=r("50c4"),a=r("65f0"),u=[].push,f=function(t){var e=1==t,r=2==t,f=3==t,s=4==t,l=6==t,p=5==t||l;return function(d,h,v,g){for(var y,m,b=i(d),x=o(b),_=n(h,v,3),w=c(x.length),S=0,E=g||a,O=e?E(d,w):r?E(d,0):void 0;w>S;S++)if((p||S in x)&&(y=x[S],m=_(y,S,b),t))if(e)O[S]=m;else if(m)switch(t){case 3:return!0;case 5:return y;case 6:return S;case 2:u.call(O,y)}else if(s)return!1;return l?-1:f||s?s:O}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6)}},bd7d:function(t,e,r){"use strict";var n=r("cd84"),o=r.n(n);o.a},c04e:function(t,e,r){var n=r("861d");t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},c430:function(t,e){t.exports=!1},c6b6:function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},c6cd:function(t,e,r){var n=r("da84"),o=r("ce4e"),i="__core-js_shared__",c=n[i]||o(i,{});t.exports=c},c8ba:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}t.exports=r},ca84:function(t,e,r){var n=r("5135"),o=r("fc6a"),i=r("4d64").indexOf,c=r("d012");t.exports=function(t,e){var r,a=o(t),u=0,f=[];for(r in a)!n(c,r)&&n(a,r)&&f.push(r);while(e.length>u)n(a,r=e[u++])&&(~i(f,r)||f.push(r));return f}},cc12:function(t,e,r){var n=r("da84"),o=r("861d"),i=n.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},cd84:function(t,e,r){},ce4e:function(t,e,r){var n=r("da84"),o=r("9112");t.exports=function(t,e){try{o(n,t,e)}catch(r){n[t]=e}return e}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,r){var n=r("428f"),o=r("da84"),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(n[t])||i(o[t]):n[t]&&n[t][e]||o[t]&&o[t][e]}},d1e7:function(t,e,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:n},d28b:function(t,e,r){var n=r("746f");n("iterator")},d2bb:function(t,e,r){var n=r("825a"),o=r("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(r,[]),e=r instanceof Array}catch(i){}return function(r,i){return n(r),o(i),e?t.call(r,i):r.__proto__=i,r}}():void 0)},d3b7:function(t,e,r){var n=r("00ee"),o=r("6eeb"),i=r("b041");n||o(Object.prototype,"toString",i,{unsafe:!0})},d44e:function(t,e,r){var n=r("9bf2").f,o=r("5135"),i=r("b622"),c=i("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,c)&&n(t,c,{configurable:!0,value:e})}},d58f:function(t,e,r){var n=r("1c0b"),o=r("7b0b"),i=r("44ad"),c=r("50c4"),a=function(t){return function(e,r,a,u){n(r);var f=o(e),s=i(f),l=c(f.length),p=t?l-1:0,d=t?-1:1;if(a<2)while(1){if(p in s){u=s[p],p+=d;break}if(p+=d,t?p<0:l<=p)throw TypeError("Reduce of empty array with no initial value")}for(;t?p>=0:l>p;p+=d)p in s&&(u=r(u,s[p],p,f));return u}};t.exports={left:a(!1),right:a(!0)}},d784:function(t,e,r){"use strict";r("ac1f");var n=r("6eeb"),o=r("d039"),i=r("b622"),c=r("9263"),a=r("9112"),u=i("species"),f=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),s=function(){return"$0"==="a".replace(/./,"$0")}(),l=i("replace"),p=function(){return!!/./[l]&&""===/./[l]("a","$0")}(),d=!o((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));t.exports=function(t,e,r,l){var h=i(t),v=!o((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),g=v&&!o((function(){var e=!1,r=/a/;return"split"===t&&(r={},r.constructor={},r.constructor[u]=function(){return r},r.flags="",r[h]=/./[h]),r.exec=function(){return e=!0,null},r[h](""),!e}));if(!v||!g||"replace"===t&&(!f||!s||p)||"split"===t&&!d){var y=/./[h],m=r(h,""[t],(function(t,e,r,n,o){return e.exec===c?v&&!o?{done:!0,value:y.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:s,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=m[0],x=m[1];n(String.prototype,t,b),n(RegExp.prototype,h,2==e?function(t,e){return x.call(t,this,e)}:function(t){return x.call(t,this)})}l&&a(RegExp.prototype[h],"sham",!0)}},d81d:function(t,e,r){"use strict";var n=r("23e7"),o=r("b727").map,i=r("1dde"),c=r("ae40"),a=i("map"),u=c("map");n({target:"Array",proto:!0,forced:!a||!u},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},da84:function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")()}).call(this,r("c8ba"))},dbb4:function(t,e,r){var n=r("23e7"),o=r("83ab"),i=r("56ef"),c=r("fc6a"),a=r("06cf"),u=r("8418");n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){var e,r,n=c(t),o=a.f,f=i(n),s={},l=0;while(f.length>l)r=o(n,e=f[l++]),void 0!==r&&u(s,e,r);return s}})},ddb0:function(t,e,r){var n=r("da84"),o=r("fdbc"),i=r("e260"),c=r("9112"),a=r("b622"),u=a("iterator"),f=a("toStringTag"),s=i.values;for(var l in o){var p=n[l],d=p&&p.prototype;if(d){if(d[u]!==s)try{c(d,u,s)}catch(v){d[u]=s}if(d[f]||c(d,f,l),o[l])for(var h in i)if(d[h]!==i[h])try{c(d,h,i[h])}catch(v){d[h]=i[h]}}}},df75:function(t,e,r){var n=r("ca84"),o=r("7839");t.exports=Object.keys||function(t){return n(t,o)}},e01a:function(t,e,r){"use strict";var n=r("23e7"),o=r("83ab"),i=r("da84"),c=r("5135"),a=r("861d"),u=r("9bf2").f,f=r("e893"),s=i.Symbol;if(o&&"function"==typeof s&&(!("description"in s.prototype)||void 0!==s().description)){var l={},p=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof p?new s(t):void 0===t?s():s(t);return""===t&&(l[e]=!0),e};f(p,s);var d=p.prototype=s.prototype;d.constructor=p;var h=d.toString,v="Symbol(test)"==String(s("test")),g=/^Symbol\((.*)\)[^)]+$/;u(d,"description",{configurable:!0,get:function(){var t=a(this)?this.valueOf():this,e=h.call(t);if(c(l,t))return"";var r=v?e.slice(7,-1):e.replace(g,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:p})}},e163:function(t,e,r){var n=r("5135"),o=r("7b0b"),i=r("f772"),c=r("e177"),a=i("IE_PROTO"),u=Object.prototype;t.exports=c?Object.getPrototypeOf:function(t){return t=o(t),n(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},e177:function(t,e,r){var n=r("d039");t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e260:function(t,e,r){"use strict";var n=r("fc6a"),o=r("44d2"),i=r("3f8c"),c=r("69f3"),a=r("7dd0"),u="Array Iterator",f=c.set,s=c.getterFor(u);t.exports=a(Array,"Array",(function(t,e){f(this,{type:u,target:n(t),index:0,kind:e})}),(function(){var t=s(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},e439:function(t,e,r){var n=r("23e7"),o=r("d039"),i=r("fc6a"),c=r("06cf").f,a=r("83ab"),u=o((function(){c(1)})),f=!a||u;n({target:"Object",stat:!0,forced:f,sham:!a},{getOwnPropertyDescriptor:function(t,e){return c(i(t),e)}})},e538:function(t,e,r){var n=r("b622");e.f=n},e893:function(t,e,r){var n=r("5135"),o=r("56ef"),i=r("06cf"),c=r("9bf2");t.exports=function(t,e){for(var r=o(e),a=c.f,u=i.f,f=0;f<r.length;f++){var s=r[f];n(t,s)||a(t,s,u(e,s))}}},e8b5:function(t,e,r){var n=r("c6b6");t.exports=Array.isArray||function(t){return"Array"==n(t)}},e95a:function(t,e,r){var n=r("b622"),o=r("3f8c"),i=n("iterator"),c=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||c[i]===t)}},f5df:function(t,e,r){var n=r("00ee"),o=r("c6b6"),i=r("b622"),c=i("toStringTag"),a="Arguments"==o(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(r){}};t.exports=n?o:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=u(e=Object(t),c))?r:a?o(e):"Object"==(n=o(e))&&"function"==typeof e.callee?"Arguments":n}},f772:function(t,e,r){var n=r("5692"),o=r("90e3"),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},fb15:function(t,e,r){"use strict";if(r.r(e),"undefined"!==typeof window){var n=window.document.currentScript,o=r("8875");n=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var c=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{ref:"editor",staticClass:"editor"},[r("div",{ref:"content",staticClass:"content",style:t.page_style(-1),attrs:{contenteditable:t.editable},on:{input:t.input,keyup:t.process_current_text_style}},t._l(t.pages,(function(e,n){return r("div",{key:e.uuid,ref:e.uuid,refInFor:!0,staticClass:"page",style:t.page_style(n,!!e.template),attrs:{"data-content-idx":e.content_idx,contenteditable:!e.template}},[e.template?r(e.template,t._b({tag:"component"},"component",e.props,!1,!0)):t._e()],1)})),0)])},a=[];r("4de4"),r("a15b"),r("d81d"),r("13d5"),r("a434"),r("a9e3"),r("d3b7"),r("3ca3"),r("ddb0");function u(t){if(Array.isArray(t))return t}r("a4d3"),r("e01a"),r("d28b");function f(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=t[Symbol.iterator]();!(n=(c=a.next()).done);n=!0)if(r.push(c.value),e&&r.length===e)break}catch(u){o=!0,i=u}finally{try{n||null==a["return"]||a["return"]()}finally{if(o)throw i}}return r}}r("a630"),r("fb6a"),r("b0c0"),r("25f0");function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function l(t,e){if(t){if("string"===typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(t,e){return u(t)||f(t,e)||l(t,e)||p()}r("4160"),r("e439"),r("dbb4"),r("b64b"),r("159b");function h(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function y(t,e){var r;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=l(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,a=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return c=t.done,t},e:function(t){a=!0,i=t},f:function(){try{c||null==r["return"]||r["return"]()}finally{if(a)throw i}}}}r("96cf");function m(t,e,r,n,o,i,c){try{var a=t[i](c),u=a.value}catch(f){return void r(f)}a.done?e(u):Promise.resolve(u).then(n,o)}function b(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function c(t){m(i,n,o,c,a,"next",t)}function a(t){m(i,n,o,c,a,"throw",t)}c(void 0)}))}}r("ac1f"),r("466d");function x(t,e){if(!t||!e)return!1;for(var r=t.childNodes,n=0;n<r.length;n++)if(r[n].s_tag==e)return r[n];return!1}function _(t,e,r,n){while(t.childNodes.length&&!r()){n=n||1!=t.childNodes.length;var o=t.lastChild;if(o.nodeType==Node.TEXT_NODE){var i=o.textContent.match(/(\s|\S+)/g),c=document.createTextNode("");e.prepend(c);for(var a=i?i.length:0,u=0;u<a;u++){if(u==a-1&&!n)return;if(o.textContent=i.slice(0,a-u-1).join(""),c.textContent=i.slice(a-u-1,a).join(""),r())return}}else if(!o.childNodes.length||o.tagName.match(/h\d/i)){if(!n)return void console.log("Move-forward: first child reached with no stop condition. Aborting");e.prepend(o)}else{var f=x(e,o.s_tag);if(!f){if(!o.s_tag){var s=Math.random().toString(36).slice(2,8);o.s_tag=s}f=o.cloneNode(!1),f.s_tag=o.s_tag,e.prepend(f)}_(o,f,r,n),f.normalize()}if(t.contains(o))if(0==o.childNodes.length||""==o.innerHTML)t.removeChild(o);else if(!r())throw console.log("sub_child:",o,"that is in child:",t),Error("Document editor is trying to remove a non-empty sub-child. This is a bug and should not happen. Please report a repeatable set of actions that leaded to this error to https://github.com/motla/vue-document-editor/issues/new")}}function w(t,e,r){while(!r()){var n=e.firstChild,o=function t(e,r){var n=x(e,r.s_tag);n&&r.childNodes.length?t(n,r.firstChild):(e.append(r),e.normalize())};o(t,n)}}var S={props:{content:{type:Array,required:!0},display:{type:String,default:"auto"},page_format_mm:{type:Array,default:function(){return[210,297]}},page_margins:{type:String,default:"10mm 15mm"},zoom:{type:Number,default:1},editable:{type:Boolean,default:!0}},data:function(){return{pages:[],pages_height:0,editor_width:0,prevent_next_content_update_from_parent:!1,current_text_style:!1}},mounted:function(){this.update_editor_width(),this.update_css_media_style(),this.reset_content(),window.addEventListener("resize",this.update_editor_width),window.addEventListener("click",this.process_current_text_style),window.addEventListener("beforeprint",this.before_print),window.addEventListener("afterprint",this.after_print)},beforeDestroy:function(){window.removeEventListener("resize",this.update_editor_width),window.removeEventListener("click",this.process_current_text_style),window.removeEventListener("beforeprint",this.before_print),window.removeEventListener("afterprint",this.after_print)},computed:{new_page_uuid:function(){return this.pages.reduce((function(t,e){return Math.max(t,e.uuid+1)}),0)},css_media_style:function(){var t=document.createElement("style");return document.head.appendChild(t),t}},methods:{reset_content:function(){var t=this;return b(regeneratorRuntime.mark((function e(){var r,n,o,i,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.pages=t.content.length?t.content.map((function(t,e){return{uuid:e,content_idx:e,template:t.template,props:t.props}})):[{uuid:0,content_idx:0}],e.next=3,t.$nextTick();case 3:r=t.$refs[t.pages[0].uuid][0],t.$refs.content.contains(r)||t.$refs.content.appendChild(r),t.pages_height=r.clientHeight+1,n=y(t.pages);try{for(n.s();!(o=n.n()).done;)i=o.value,c=t.$refs[i.uuid][0],t.content[i.content_idx]?"string"==typeof t.content[i.content_idx]&&(c.innerHTML="<div>"+t.content[i.content_idx]+"</div>"):c.innerHTML="<div><br></div>",t.$refs.content.contains(c)||t.$refs.content.appendChild(c)}catch(a){n.e(a)}finally{n.f()}return e.next=10,t.fit_content_over_pages();case 10:t.$refs.content.blur();case 11:case"end":return e.stop()}}),e)})))()},fit_content_over_pages:function(){var t=this;return b(regeneratorRuntime.mark((function e(){var r,n,o,i,c,a,u,f,s,l,p,d,h,v,g;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.pages_height){e.next=2;break}return e.abrupt("return");case 2:for(r=t.pages.length-1;r>=0;r--)n=t.pages[r],o=t.$refs[n.uuid][0],document.body.contains(o)||t.pages.splice(r,1);if(t.pages.length){e.next=6;break}return t.reset_content(),e.abrupt("return");case 6:i=window.getSelection(),c=document.createElement("null"),a=document.createElement("null"),i.rangeCount&&(u=i.getRangeAt(0),u.insertNode(c),u.collapse(!1),u.insertNode(a)),f=!1,s=regeneratorRuntime.mark((function e(r){var n,o,i,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.pages[r],o=t.$refs[n.uuid][0],i=t.pages[r+1],c=i?t.$refs[i.uuid][0]:null,n.template||!(f||o.innerHTML!=n.prev_innerHTML||c&&!i.template&&c.innerHTML!=i.prev_innerHTML)){e.next=15;break}if(f=!0,o.clientHeight<=t.pages_height&&i&&i.content_idx==n.content_idx&&(w(o,c,(function(){return!c.childNodes.length||o.clientHeight>t.pages_height})),c.childNodes.length||t.pages.splice(r+1,1)),!(o.clientHeight>t.pages_height)){e.next=15;break}if(i&&i.content_idx==n.content_idx){e.next=14;break}return i={uuid:t.new_page_uuid,content_idx:n.content_idx},t.pages.splice(r+1,0,i),e.next=13,t.$nextTick();case 13:c=t.$refs[i.uuid][0];case 14:_(o,c,(function(){return o.clientHeight<=t.pages_height}));case 15:case"end":return e.stop()}}),e)})),l=0;case 13:if(!(l<t.pages.length)){e.next=18;break}return e.delegateYield(s(l),"t0",15);case 15:l++,e.next=13;break;case 18:document.body.contains(c)&&(p=document.createRange(),p.setStart(c,0),document.body.contains(a)&&p.setEnd(a,0),i.removeAllRanges(),i.addRange(p)),c.parentElement&&c.parentElement.removeChild(c),a.parentElement&&a.parentElement.removeChild(a),d=y(t.pages);try{for(d.s();!(h=d.n()).done;)v=h.value,g=t.$refs[v.uuid][0],g.normalize(),v.prev_innerHTML=g.innerHTML}catch(m){d.e(m)}finally{d.f()}case 23:case"end":return e.stop()}}),e)})))()},input:function(t){var e=this;return b(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(t&&t.inputType){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,e.fit_content_over_pages();case 4:e.emit_new_content(),"insertText"!=t.inputType&&e.process_current_text_style();case 6:case"end":return r.stop()}}),r)})))()},emit_new_content:function(){var t=this,e=this.content.map((function(e,r){return"string"==typeof e?t.pages.filter((function(t){return t.content_idx==r})).map((function(e){return t.$refs[e.uuid][0].innerHTML})).join(""):{template:e.template,props:g({},e.props)}}));this.prevent_next_content_update_from_parent=!0,this.$emit("update:content",e)},process_current_text_style:function(){var t=!1,e=window.getSelection();if(e.focusNode){var r=e.focusNode.tagName?e.focusNode:e.focusNode.parentElement;if(r&&r.isContentEditable){t=window.getComputedStyle(r),t.textDecorationStack=[],t.headerLevel=0,t.isList=!1;var n=r;while(n){var o=window.getComputedStyle(n);if(t.textDecorationStack.push(o.textDecoration),"list-item"==o.display&&(t.isList=!0),!t.headerLevel)for(var i=1;i<=6;i++)if(n.tagName.toUpperCase()=="H"+i){t.headerLevel=i;break}n=n.parentElement}}}this.current_text_style=t},page_style:function(t,e){var r,n,o,i,c,a,u,f=.2645833333333,s=this.page_format_mm[0]/f,l=10,p=(l+this.page_format_mm[0])*this.zoom/f,d=20,h=this.editor_width-2*d,v=1;if("horizontal"==this.display)h>this.pages.length*p?(v=Math.floor(h/p),i=h/(2*v)*(1+2*t)-s/2):(v=this.pages.length,i=p*t+s/2*(this.zoom-1)),c=0,a=this.zoom*(this.page_format_mm[0]*v+(v-1)*l),u=this.page_format_mm[1]*this.zoom;else{v=Math.floor(h/p),(v<1||"vertical"==this.display)&&(v=1),r=t%v,n=h/(2*v)*(1+2*r)-s/2,o=Math.max(0,(s*this.zoom-h)/2),i=n+o,c=(this.page_format_mm[1]+l)*this.zoom*Math.floor(t/v);var g=Math.ceil(this.pages.length/v);a=this.zoom*(this.page_format_mm[0]*v+(v-1)*l),u=this.zoom*(this.page_format_mm[1]*g+(g-1)*l)}if(t>=0){var y={left:"calc("+i+"px + "+d+"px)",top:"calc("+c+"mm + "+d+"px)",width:this.page_format_mm[0]+"mm",padding:this.page_margins,transform:"scale("+this.zoom+")"};return y[e?"height":"minHeight"]=this.page_format_mm[1]+"mm",y}return{width:"calc("+a+"mm + "+2*d+"px)",height:"calc("+u+"mm + "+2*d+"px)"}},update_editor_width:function(){this.$refs.editor.classList.add("hide_children"),this.editor_width=this.$refs.editor.clientWidth,this.$refs.editor.classList.remove("hide_children")},update_css_media_style:function(){this.css_media_style.innerHTML="@media print { @page { size: "+this.page_format_mm[0]+"mm "+this.page_format_mm[1]+"mm; margin: 0 !important; } }"},before_print:function(){this._page_body=document.body;var t,e=document.createElement("body"),r=y(this.pages.entries());try{for(r.s();!(t=r.n()).done;){var n=d(t.value,2),o=n[0],i=n[1],c=this.$refs[i.uuid][0],a=c.cloneNode(!0);e.append(a),a.style="",a.style.padding=this.page_margins,a.style.breakBefore=o?"page":"auto"}}catch(u){r.e(u)}finally{r.f()}document.body=e},after_print:function(){document.body=this._page_body,this.update_editor_width()}},watch:{page_format_mm:{handler:function(){var t=this;return b(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.update_css_media_style(),e.next=3,t.reset_content();case 3:case"end":return e.stop()}}),e)})))()}},page_margins:{handler:function(){var t=this;return b(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.reset_content();case 2:case"end":return e.stop()}}),e)})))()}},content:{handler:function(){var t=this;return b(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.prevent_next_content_update_from_parent){e.next=4;break}t.prevent_next_content_update_from_parent=!1,e.next=6;break;case 4:return e.next=6,t.reset_content();case 6:case"end":return e.stop()}}),e)})))()}}}},E=S;r("bd7d");function O(t,e,r,n,o,i,c,a){var u,f="function"===typeof t?t.options:t;if(e&&(f.render=e,f.staticRenderFns=r,f._compiled=!0),n&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),c?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(c)},f._ssrRegister=u):o&&(u=a?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(f.functional){f._injectStyles=u;var s=f.render;f.render=function(t,e){return u.call(e),s(t,e)}}else{var l=f.beforeCreate;f.beforeCreate=l?[].concat(l,u):[u]}return{exports:t,options:f}}var j=O(E,c,a,!1,null,"3172388e",null),L=j.exports;e["default"]=L},fb6a:function(t,e,r){"use strict";var n=r("23e7"),o=r("861d"),i=r("e8b5"),c=r("23cb"),a=r("50c4"),u=r("fc6a"),f=r("8418"),s=r("b622"),l=r("1dde"),p=r("ae40"),d=l("slice"),h=p("slice",{ACCESSORS:!0,0:0,1:2}),v=s("species"),g=[].slice,y=Math.max;n({target:"Array",proto:!0,forced:!d||!h},{slice:function(t,e){var r,n,s,l=u(this),p=a(l.length),d=c(t,p),h=c(void 0===e?p:e,p);if(i(l)&&(r=l.constructor,"function"!=typeof r||r!==Array&&!i(r.prototype)?o(r)&&(r=r[v],null===r&&(r=void 0)):r=void 0,r===Array||void 0===r))return g.call(l,d,h);for(n=new(void 0===r?Array:r)(y(h-d,0)),s=0;d<h;d++,s++)d in l&&f(n,s,l[d]);return n.length=s,n}})},fc6a:function(t,e,r){var n=r("44ad"),o=r("1d80");t.exports=function(t){return n(o(t))}},fdbc:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(t,e,r){var n=r("4930");t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})["default"]})); | ||
//# sourceMappingURL=vue-document-editor.umd.min.js.map |
{ | ||
"name": "vue-document-editor", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Paper-sized WYSIWYG document editor for Vue apps", | ||
@@ -52,5 +52,2 @@ "author": { | ||
}, | ||
"peerDependencies": { | ||
"sass-loader": ">=8.0.2" | ||
}, | ||
"eslintConfig": { | ||
@@ -57,0 +54,0 @@ "root": true, |
@@ -53,3 +53,3 @@ | ||
// if it is a node with no content (e.g. <img>), or a header title (e.g. <h1>) we simply move it | ||
else if (!sub_child.childNodes.length || sub_child.tagName.match(/h\d/i)) { | ||
else if(!sub_child.childNodes.length || sub_child.tagName.match(/h\d/i)) { | ||
// just prevent moving the last child of the page | ||
@@ -56,0 +56,0 @@ if(!not_first_child){ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2993417
0
10762