// Input 0
/*

 @licstart
 The JavaScript code in this page is free software: you can redistribute it
 and/or modify it under the terms of the GNU Affero General Public License
 (GNU AGPL) as published by the Free Software Foundation, either version 3 of
 the License, or (at your option) any later version.  The code is distributed
 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU AGPL for more details.

 As additional permission under GNU AGPL version 3 section 7, you
 may distribute non-source (e.g., minimized or compacted) forms of
 that code without the copy of the GNU GPL normally required by
 section 4, provided you include this license notice and a URL
 through which recipients can access the Corresponding Source.

 As a special exception to the AGPL, any HTML file which merely makes function
 calls to this code, and for that purpose includes it by reference shall be
 deemed a separate work for copyright law purposes. In addition, the copyright
 holders of this code give you permission to combine this code with free
 software libraries that are released under the GNU LGPL. You may copy and
 distribute such a system following the terms of the GNU AGPL for this code
 and the LGPL for the libraries. If you modify this code, you may extend this
 exception to your version of the code, but you are not obligated to do so.
 If you do not wish to do so, delete this exception statement from your
 version.

 This license applies to this entire compilation.
 @licend
 @source: http://www.webodf.org/
 @source: http://gitorious.org/odfkit/webodf/
*/
var core={},gui={},xmldom={},odf={};
// Input 1
function Runtime(){}Runtime.ByteArray=function(){};Runtime.ByteArray.prototype.slice=function(){};Runtime.prototype.byteArrayFromArray=function(){};Runtime.prototype.byteArrayFromString=function(){};Runtime.prototype.byteArrayToString=function(){};Runtime.prototype.concatByteArrays=function(){};Runtime.prototype.read=function(){};Runtime.prototype.readFile=function(){};Runtime.prototype.readFileSync=function(){};Runtime.prototype.loadXML=function(){};Runtime.prototype.writeFile=function(){};
Runtime.prototype.isFile=function(){};Runtime.prototype.getFileSize=function(){};Runtime.prototype.deleteFile=function(){};Runtime.prototype.log=function(){};Runtime.prototype.setTimeout=function(){};Runtime.prototype.libraryPaths=function(){};Runtime.prototype.type=function(){};Runtime.prototype.getDOMImplementation=function(){};Runtime.prototype.getWindow=function(){};var IS_COMPILED_CODE=!0;
Runtime.byteArrayToString=function(i,n){function f(b){var a="",h,g=b.length,c,d,e;for(h=0;h<g;h+=1)c=b[h],c<128?a+=String.fromCharCode(c):(h+=1,d=b[h],c<224?a+=String.fromCharCode((c&31)<<6|d&63):(h+=1,e=b[h],a+=String.fromCharCode((c&15)<<12|(d&63)<<6|e&63)));return a}if(n==="utf8")return f(i);else n!=="binary"&&this.log("Unsupported encoding: "+n);return function(b){var a="",h,g=b.length;for(h=0;h<g;h+=1)a+=String.fromCharCode(b[h]&255);return a}(i)};
Runtime.getFunctionName=function(i){return i.name===void 0?(i=/function\s+(\w+)/.exec(i))&&i[1]:i.name};
function BrowserRuntime(i){function n(a,g){var c,d,e;g?e=a:g=a;if(i){d=i.ownerDocument;if(e)c=d.createElement("span"),c.className=e,c.appendChild(d.createTextNode(e)),i.appendChild(c),i.appendChild(d.createTextNode(" "));c=d.createElement("span");c.appendChild(d.createTextNode(g));i.appendChild(c);i.appendChild(d.createElement("br"))}else console&&console.log(g)}var f=this,b={},a=window.ArrayBuffer&&window.Uint8Array;this.ByteArray=a?function(a){Uint8Array.prototype.slice=function(a,c){if(c===void 0)a===
void 0&&(a=0),c=this.length;var h=this.subarray(a,c),e,k;c-=a;e=new Uint8Array(new ArrayBuffer(c));for(k=0;k<c;k+=1)e[k]=h[k];return e};return new Uint8Array(new ArrayBuffer(a))}:function(a){var g=[];g.length=a;return g};this.concatByteArrays=a?function(a,g){var c,d=a.length,e=g.length,k=new this.ByteArray(d+e);for(c=0;c<d;c+=1)k[c]=a[c];for(c=0;c<e;c+=1)k[c+d]=g[c];return k}:function(a,g){return a.concat(g)};this.byteArrayFromArray=function(a){return a.slice()};this.byteArrayFromString=function(a,
g){if(g==="utf8"){var c=a.length,d,e,k,b=0;for(e=0;e<c;e+=1)k=a.charCodeAt(e),b+=1+(k>128)+(k>2048);d=new f.ByteArray(b);for(e=b=0;e<c;e+=1)k=a.charCodeAt(e),k<128?(d[b]=k,b+=1):k<2048?(d[b]=192|k>>>6,d[b+1]=128|k&63,b+=2):(d[b]=224|k>>>12&15,d[b+1]=128|k>>>6&63,d[b+2]=128|k&63,b+=3);return d}else g!=="binary"&&f.log("unknown encoding: "+g);c=a.length;d=new f.ByteArray(c);for(e=0;e<c;e+=1)d[e]=a.charCodeAt(e)&255;return d};this.byteArrayToString=Runtime.byteArrayToString;this.readFile=function(a,
g,c){if(b.hasOwnProperty(a))c(null,b[a]);else{var d=new XMLHttpRequest;d.open("GET",a,!0);d.onreadystatechange=function(){var e;d.readyState===4&&(d.status===0&&!d.responseText?c("File "+a+" is empty."):d.status===200||d.status===0?(e=g==="binary"?typeof VBArray!=="undefined"?(new VBArray(d.responseBody)).toArray():f.byteArrayFromString(d.responseText,"binary"):d.responseText,b[a]=e,c(null,e)):c(d.responseText||d.statusText))};d.overrideMimeType&&(g!=="binary"?d.overrideMimeType("text/plain; charset="+
g):d.overrideMimeType("text/plain; charset=x-user-defined"));try{d.send(null)}catch(e){c(e.message)}}};this.read=function(a,g,c,d){if(b.hasOwnProperty(a))d(null,b[a].slice(g,g+c));else{var e=new XMLHttpRequest;e.open("GET",a,!0);e.onreadystatechange=function(){var k;e.readyState===4&&(e.status===0&&!e.responseText?d("File "+a+" is empty."):e.status===200||e.status===0?(k=typeof VBArray!=="undefined"?(new VBArray(e.responseBody)).toArray():f.byteArrayFromString(e.responseText,"binary"),b[a]=k,d(null,
k.slice(g,g+c))):d(e.responseText||e.statusText))};e.overrideMimeType&&e.overrideMimeType("text/plain; charset=x-user-defined");try{e.send(null)}catch(k){d(k.message)}}};this.readFileSync=function(a,g){var c=new XMLHttpRequest,d;c.open("GET",a,!1);c.overrideMimeType&&(g!=="binary"?c.overrideMimeType("text/plain; charset="+g):c.overrideMimeType("text/plain; charset=x-user-defined"));try{if(c.send(null),c.status===200||c.status===0)d=c.responseText}catch(e){}return d};this.writeFile=function(a,g,c){b[a]=
g;var d=new XMLHttpRequest;d.open("PUT",a,!0);d.onreadystatechange=function(){d.readyState===4&&(d.status===0&&!d.responseText?c("File "+a+" is empty."):d.status>=200&&d.status<300||d.status===0?c(null):c("Status "+String(d.status)+": "+d.responseText||d.statusText))};g=g.buffer&&!d.sendAsBinary?g.buffer:f.byteArrayToString(g,"binary");try{d.sendAsBinary?d.sendAsBinary(g):d.send(g)}catch(e){f.log("HUH? "+e+" "+g),c(e.message)}};this.deleteFile=function(a,g){var c=new XMLHttpRequest;c.open("DELETE",
a,!0);c.onreadystatechange=function(){c.readyState===4&&(c.status<200&&c.status>=300?g(c.responseText):g(null))};c.send(null)};this.loadXML=function(a,g){var c=new XMLHttpRequest;c.open("GET",a,!0);c.overrideMimeType("text/xml");c.onreadystatechange=function(){c.readyState===4&&(c.status===0&&!c.responseText?g("File "+a+" is empty."):c.status===200||c.status===0?g(null,c.responseXML):g(c.responseText))};try{c.send(null)}catch(d){g(d.message)}};this.isFile=function(a,g){this.getFileSize(a,function(a){g(a!==
-1)})};this.getFileSize=function(a,g){var c=new XMLHttpRequest;c.open("HEAD",a,!0);c.onreadystatechange=function(){if(c.readyState===4){var a=c.getResponseHeader("Content-Length");a?g(parseInt(a,10)):g(-1)}};c.send(null)};this.log=n;this.setTimeout=function(a,g){setTimeout(a,g)};this.libraryPaths=function(){return["../lib",".","lib"]};this.setCurrentDirectory=function(){};this.type=function(){return"BrowserRuntime"};this.getDOMImplementation=function(){return window.document.implementation};this.exit=
function(a){n("Calling exit with code "+String(a)+", but exit() is not implemented.")};this.getWindow=function(){return window}}
function NodeJSRuntime(){var i=require("fs"),n="";this.ByteArray=function(f){return new Buffer(f)};this.byteArrayFromArray=function(f){var b=new Buffer(f.length),a,h=f.length;for(a=0;a<h;a+=1)b[a]=f[a];return b};this.concatByteArrays=function(f,b){var a=new Buffer(f.length+b.length);f.copy(a,0,0);b.copy(a,f.length,0);return a};this.byteArrayFromString=function(f,b){return new Buffer(f,b)};this.byteArrayToString=function(f,b){return f.toString(b)};this.readFile=function(f,b,a){b!=="binary"?i.readFile(f,
b,a):i.readFile(f,null,a)};this.writeFile=function(f,b,a){i.writeFile(f,b,"binary",function(b){a(b||null)})};this.deleteFile=i.unlink;this.read=function(f,b,a,h){n&&(f=n+"/"+f);i.open(f,"r+",666,function(g,c){if(g)h(g);else{var d=new Buffer(a);i.read(c,d,0,a,b,function(a){i.close(c);h(a,d)})}})};this.readFileSync=function(f,b){return!b?"":i.readFileSync(f,b)};this.loadXML=function(){throw"Not implemented.";};this.isFile=function(f,b){n&&(f=n+"/"+f);i.stat(f,function(a,h){b(!a&&h.isFile())})};this.getFileSize=
function(f,b){n&&(f=n+"/"+f);i.stat(f,function(a,h){a?b(-1):b(h.size)})};this.log=function(f){process.stderr.write(f+"\n")};this.setTimeout=function(f,b){setTimeout(f,b)};this.libraryPaths=function(){return[__dirname]};this.setCurrentDirectory=function(f){n=f};this.currentDirectory=function(){return n};this.type=function(){return"NodeJSRuntime"};this.getDOMImplementation=function(){return null};this.exit=process.exit;this.getWindow=function(){return null}}
function RhinoRuntime(){var i=Packages.javax.xml.parsers.DocumentBuilderFactory.newInstance(),n,f,b="";i.setValidating(!1);i.setNamespaceAware(!0);i.setExpandEntityReferences(!1);i.setSchema(null);f=Packages.org.xml.sax.EntityResolver({resolveEntity:function(a,b){return function(a){a=new Packages.java.io.FileReader(a);return new Packages.org.xml.sax.InputSource(a)}(b)}});n=i.newDocumentBuilder();n.setEntityResolver(f);this.ByteArray=function(a){return[a]};this.byteArrayFromArray=function(a){return a};
this.byteArrayFromString=function(a){var b=[],g,c=a.length;for(g=0;g<c;g+=1)b[g]=a.charCodeAt(g)&255;return b};this.byteArrayToString=Runtime.byteArrayToString;this.concatByteArrays=function(a,b){return a.concat(b)};this.loadXML=function(a,b){var g=new Packages.java.io.File(a),c;try{c=n.parse(g)}catch(d){print(d);b(d);return}b(null,c)};this.readFile=function(a,b,g){var c=new Packages.java.io.File(a),d=b==="binary"?"latin1":b;c.isFile()?(a=readFile(a,d),b==="binary"&&(a=this.byteArrayFromString(a,
"binary")),g(null,a)):g(a+" is not a file.")};this.writeFile=function(a,b,g){var a=new Packages.java.io.FileOutputStream(a),c,d=b.length;for(c=0;c<d;c+=1)a.write(b[c]);a.close();g(null)};this.deleteFile=function(a,b){(new Packages.java.io.File(a))["delete"]()?b(null):b("Could not delete "+a)};this.read=function(a,f,g,c){b&&(a=b+"/"+a);var d;d=a;var e="binary";(new Packages.java.io.File(d)).isFile()?(e==="binary"&&(e="latin1"),d=readFile(d,e)):d=null;d?c(null,this.byteArrayFromString(d.substring(f,
f+g),"binary")):c("Cannot read "+a)};this.readFileSync=function(a,b){return!b?"":readFile(a,b)};this.isFile=function(a,f){b&&(a=b+"/"+a);var g=new Packages.java.io.File(a);f(g.isFile())};this.getFileSize=function(a,f){b&&(a=b+"/"+a);var g=new Packages.java.io.File(a);f(g.length())};this.log=print;this.setTimeout=function(a){a()};this.libraryPaths=function(){return["lib"]};this.setCurrentDirectory=function(a){b=a};this.currentDirectory=function(){return b};this.type=function(){return"RhinoRuntime"};
this.getDOMImplementation=function(){return n.getDOMImplementation()};this.exit=quit;this.getWindow=function(){return null}}var runtime=function(){return typeof window!=="undefined"?new BrowserRuntime(window.document.getElementById("logoutput")):typeof require!=="undefined"?new NodeJSRuntime:new RhinoRuntime}();
(function(){function i(f){var b=f[0],a;a=eval("if (typeof "+b+" === 'undefined') {eval('"+b+" = {};');}"+b);for(b=1;b<f.length-1;b+=1)a.hasOwnProperty(f[b])||(a=a[f[b]]={});return a}var n={};runtime.loadClass=function(f){if(!IS_COMPILED_CODE&&!n.hasOwnProperty(f)){var b=f.split("."),a;try{if(a=eval(f)){n[f]=!0;return}}catch(h){}a=function(a){var c,d,e,f;d=a.replace(".","/")+".js";e=runtime.libraryPaths();runtime.currentDirectory&&e.push(runtime.currentDirectory());for(f=0;f<e.length;f+=1)try{if((c=
runtime.readFileSync(e[f]+"/"+d,"utf8"))&&c.length)break}catch(h){}if(c===void 0)throw"Cannot load class "+a;i(b);try{c=eval(a+" = eval(code);")}catch(o){throw runtime.log("Error loading "+a+" "+o),o;}return c}(f);if(!a||Runtime.getFunctionName(a)!==b[b.length-1])throw runtime.log("Loaded code is not for "+b[b.length-1]),"Loaded code is not for "+b[b.length-1];n[f]=!0}}})();
(function(i){function n(f){if(f.length){var b=f[0];runtime.readFile(b,"utf8",function(a,h){function g(){var a;(a=eval(h))&&runtime.exit(a)}var c="";runtime.libraryPaths();b.indexOf("/")!==-1&&(c=b.substring(0,b.indexOf("/")));runtime.setCurrentDirectory(c);a?(runtime.log(a),runtime.exit(1)):g.apply(null,f)})}}i=Array.prototype.slice.call(i);runtime.type()==="NodeJSRuntime"?n(process.argv.slice(2)):runtime.type()==="RhinoRuntime"?n(i):n(i.slice(1))})(typeof arguments!=="undefined"&&arguments);
// Input 2
core.Base64=function(){function i(a){var c=[],e,d=a.length;for(e=0;e<d;e+=1)c[e]=a.charCodeAt(e)&255;return c}function n(a){var c,e="",d,b=a.length-2;for(d=0;d<b;d+=3)c=a[d]<<16|a[d+1]<<8|a[d+2],e+=u[c>>>18],e+=u[c>>>12&63],e+=u[c>>>6&63],e+=u[c&63];d===b+1?(c=a[d]<<4,e+=u[c>>>6],e+=u[c&63],e+="=="):d===b&&(c=a[d]<<10|a[d+1]<<2,e+=u[c>>>12],e+=u[c>>>6&63],e+=u[c&63],e+="=");return e}function f(a){var a=a.replace(/[^A-Za-z0-9+\/]+/g,""),c=[],e=a.length%4,d,b=a.length,m;for(d=0;d<b;d+=4)m=(q[a.charAt(d)]||
0)<<18|(q[a.charAt(d+1)]||0)<<12|(q[a.charAt(d+2)]||0)<<6|(q[a.charAt(d+3)]||0),c.push(m>>16,m>>8&255,m&255);c.length-=[0,0,2,1][e];return c}function b(a){var c=[],e,d=a.length,b;for(e=0;e<d;e+=1)b=a[e],b<128?c.push(b):b<2048?c.push(192|b>>>6,128|b&63):c.push(224|b>>>12&15,128|b>>>6&63,128|b&63);return c}function a(a){var c=[],e,d=a.length,b,m,g;for(e=0;e<d;e+=1)b=a[e],b<128?c.push(b):(e+=1,m=a[e],b<224?c.push((b&31)<<6|m&63):(e+=1,g=a[e],c.push((b&15)<<12|(m&63)<<6|g&63)));return c}function h(a){return n(i(a))}
function g(a){return String.fromCharCode.apply(String,f(a))}function c(c){return a(i(c))}function d(c){return String.fromCharCode.apply(String,a(c))}function e(a,c,e){for(var d="",b,m,g;c<e;c+=1)b=a.charCodeAt(c)&255,b<128?d+=String.fromCharCode(b):(c+=1,m=a.charCodeAt(c)&255,b<224?d+=String.fromCharCode((b&31)<<6|m&63):(c+=1,g=a.charCodeAt(c)&255,d+=String.fromCharCode((b&15)<<12|(m&63)<<6|g&63)));return d}function k(a,c){function d(){var s=g+b;if(s>a.length)s=a.length;m+=e(a,g,s);g=s;s=g===a.length;
c(m,s)&&!s&&runtime.setTimeout(d,0)}var b=1E5,m="",g=0;a.length<b?c(e(a,0,a.length),!0):(typeof a!=="string"&&(a=a.slice()),d())}function p(a){return b(i(a))}function o(a){return String.fromCharCode.apply(String,b(a))}function j(a){return String.fromCharCode.apply(String,b(i(a)))}var u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(){var a=[],c,e="A".charCodeAt(0),d="a".charCodeAt(0),b="0".charCodeAt(0);for(c=0;c<26;c+=1)a.push(e+c);for(c=0;c<26;c+=1)a.push(d+c);for(c=
0;c<10;c+=1)a.push(b+c);a.push("+".charCodeAt(0));a.push("/".charCodeAt(0));return a})();var q=function(a){var c={},e,d;for(e=0,d=a.length;e<d;e+=1)c[a.charAt(e)]=e;return c}(u),m,t,x,B;(x=runtime.getWindow()&&runtime.getWindow().btoa)?m=function(a){return x(j(a))}:(x=h,m=function(a){return n(p(a))});(B=runtime.getWindow()&&runtime.getWindow().atob)?t=function(a){a=B(a);return e(a,0,a.length)}:(B=g,t=function(a){return d(f(a))});return function(){this.convertByteArrayToBase64=this.convertUTF8ArrayToBase64=
n;this.convertBase64ToByteArray=this.convertBase64ToUTF8Array=f;this.convertUTF16ArrayToByteArray=this.convertUTF16ArrayToUTF8Array=b;this.convertByteArrayToUTF16Array=this.convertUTF8ArrayToUTF16Array=a;this.convertUTF8StringToBase64=h;this.convertBase64ToUTF8String=g;this.convertUTF8StringToUTF16Array=c;this.convertByteArrayToUTF16String=this.convertUTF8ArrayToUTF16String=d;this.convertUTF8StringToUTF16String=k;this.convertUTF16StringToByteArray=this.convertUTF16StringToUTF8Array=p;this.convertUTF16ArrayToUTF8String=
o;this.convertUTF16StringToUTF8String=j;this.convertUTF16StringToBase64=m;this.convertBase64ToUTF16String=t;this.fromBase64=g;this.toBase64=h;this.atob=B;this.btoa=x;this.utob=j;this.btou=k;this.encode=m;this.encodeURI=function(a){return m(a).replace(/[+\/]/g,function(a){return a==="+"?"-":"_"}).replace(/\\=+$/,"")};this.decode=function(a){return t(a.replace(/[\-_]/g,function(a){return a==="-"?"+":"/"}))}}}();
// Input 3
core.RawDeflate=function(){function i(){this.dl=this.fc=0}function n(){this.extra_bits=this.static_tree=this.dyn_tree=null;this.max_code=this.max_length=this.elems=this.extra_base=0}function f(a,c,e,d){this.good_length=a;this.max_lazy=c;this.nice_length=e;this.max_chain=d}function b(){this.next=null;this.len=0;this.ptr=Array(a);this.off=0}var a=8192,h,g,c,d,e=null,k,p,o,j,u,q,m,t,x,B,r,C,A,E,w,J,s,y,v,l,I,F,R,X,P,S,G,L,H,D,z,N,M,K,T,Y,Q,$,W,oa,da,ea,U,fa,pa,aa,ga,Z,ha,ia,qa,ra=[0,0,0,0,0,0,0,0,1,
1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],ba=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Ha=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],va=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ja;ja=[new f(0,0,0,0),new f(4,4,8,4),new f(4,5,16,8),new f(4,6,32,32),new f(4,4,16,16),new f(8,16,32,32),new f(8,16,128,128),new f(8,32,128,256),new f(32,128,258,1024),new f(32,258,258,4096)];var ka=function(d){e[p+k++]=d;if(p+k==a&&k!=0){var m;h!=null?(d=h,h=h.next):d=new b;d.next=null;d.len=
d.off=0;g==null?g=c=d:c=c.next=d;d.len=k-p;for(m=0;m<d.len;m++)d.ptr[m]=e[p+m];k=p=0}},la=function(c){c&=65535;p+k<a-2?(e[p+k++]=c&255,e[p+k++]=c>>>8):(ka(c&255),ka(c>>>8))},ma=function(){r=(r<<5^j[s+3-1]&255)&8191;C=m[32768+r];m[s&32767]=C;m[32768+r]=s},V=function(a,c){O(c[a].fc,c[a].dl)},wa=function(a,c,e){return a[c].fc<a[e].fc||a[c].fc==a[e].fc&&Q[c]<=Q[e]},xa=function(a,c,e){var d;for(d=0;d<e&&qa<ia.length;d++)a[c+d]=ia.charCodeAt(qa++)&255;return d},ya=function(a){var c=I,e=s,d,b=J,g=s>32506?
s-32506:0,f=s+258,l=j[e+b-1],k=j[e+b];J>=X&&(c>>=2);do if(d=a,!(j[d+b]!=k||j[d+b-1]!=l||j[d]!=j[e]||j[++d]!=j[e+1])){e+=2;d++;do;while(j[++e]==j[++d]&&j[++e]==j[++d]&&j[++e]==j[++d]&&j[++e]==j[++d]&&j[++e]==j[++d]&&j[++e]==j[++d]&&j[++e]==j[++d]&&j[++e]==j[++d]&&e<f);d=258-(f-e);e=f-258;if(d>b){y=a;b=d;if(d>=258)break;l=j[e+b-1];k=j[e+b]}}while((a=m[a&32767])>g&&--c!=0);return b},sa=function(){var a,c,e=65536-l-s;if(e==-1)e--;else if(s>=65274){for(a=0;a<32768;a++)j[a]=j[a+32768];y-=32768;s-=32768;
B-=32768;for(a=0;a<8192;a++)c=m[32768+a],m[32768+a]=c>=32768?c-32768:0;for(a=0;a<32768;a++)c=m[a],m[a]=c>=32768?c-32768:0;e+=32768}v||(a=xa(j,s+l,e),a<=0?v=!0:l+=a)},Ia=function(a,c,e){var b;if(!d){if(!v){x=t=0;var f,h;if(L[0].dl==0){D.dyn_tree=P;D.static_tree=G;D.extra_bits=ra;D.extra_base=257;D.elems=286;D.max_length=15;D.max_code=0;z.dyn_tree=S;z.static_tree=L;z.extra_bits=ba;z.extra_base=0;z.elems=30;z.max_length=15;z.max_code=0;N.dyn_tree=H;N.static_tree=null;N.extra_bits=Ha;N.extra_base=0;N.elems=
19;N.max_length=7;for(h=f=N.max_code=0;h<28;h++){oa[h]=f;for(b=0;b<1<<ra[h];b++)$[f++]=h}$[f-1]=h;for(h=f=0;h<16;h++){da[h]=f;for(b=0;b<1<<ba[h];b++)W[f++]=h}for(f>>=7;h<30;h++){da[h]=f<<7;for(b=0;b<1<<ba[h]-7;b++)W[256+f++]=h}for(b=0;b<=15;b++)M[b]=0;for(b=0;b<=143;)G[b++].dl=8,M[8]++;for(;b<=255;)G[b++].dl=9,M[9]++;for(;b<=279;)G[b++].dl=7,M[7]++;for(;b<=287;)G[b++].dl=8,M[8]++;za(G,287);for(b=0;b<30;b++)L[b].dl=5,L[b].fc=Aa(b,5);Ba()}for(b=0;b<8192;b++)m[32768+b]=0;F=ja[R].max_lazy;X=ja[R].good_length;
I=ja[R].max_chain;B=s=0;l=xa(j,0,65536);if(l<=0)v=!0,l=0;else{for(v=!1;l<262&&!v;)sa();for(b=r=0;b<2;b++)r=(r<<5^j[b]&255)&8191}g=null;p=k=0;R<=3?(J=2,w=0):(w=2,E=0);o=!1}d=!0;if(l==0)return o=!0,0}if((b=Ca(a,c,e))==e)return e;if(o)return b;if(R<=3)for(;l!=0&&g==null;){ma();C!=0&&s-C<=32506&&(w=ya(C),w>l&&(w=l));if(w>=3)if(h=ca(s-y,w-3),l-=w,w<=F){w--;do s++,ma();while(--w!=0);s++}else s+=w,w=0,r=j[s]&255,r=(r<<5^j[s+1]&255)&8191;else h=ca(0,j[s]&255),l--,s++;h&&(na(0),B=s);for(;l<262&&!v;)sa()}else for(;l!=
0&&g==null;){ma();J=w;A=y;w=2;C!=0&&J<F&&s-C<=32506&&(w=ya(C),w>l&&(w=l),w==3&&s-y>4096&&w--);if(J>=3&&w<=J){h=ca(s-1-A,J-3);l-=J-1;J-=2;do s++,ma();while(--J!=0);E=0;w=2;s++;h&&(na(0),B=s)}else E!=0?ca(0,j[s-1]&255)&&(na(0),B=s):E=1,s++,l--;for(;l<262&&!v;)sa()}l==0&&(E!=0&&ca(0,j[s-1]&255),na(1),o=!0);return b+Ca(a,b+c,e-b)},Ca=function(a,c,b){var d,m,f;for(d=0;g!=null&&d<b;){m=b-d;if(m>g.len)m=g.len;for(f=0;f<m;f++)a[c+d+f]=g.ptr[g.off+f];g.off+=m;g.len-=m;d+=m;if(g.len==0)m=g,g=g.next,m.next=
h,h=m}if(d==b)return d;if(p<k){m=b-d;m>k-p&&(m=k-p);for(f=0;f<m;f++)a[c+d+f]=e[p+f];p+=m;d+=m;k==p&&(k=p=0)}return d},Ba=function(){var a;for(a=0;a<286;a++)P[a].fc=0;for(a=0;a<30;a++)S[a].fc=0;for(a=0;a<19;a++)H[a].fc=0;P[256].fc=1;aa=U=fa=pa=Z=ha=0;ga=1},ta=function(a,c){for(var e=K[c],b=c<<1;b<=T;){b<T&&wa(a,K[b+1],K[b])&&b++;if(wa(a,e,K[b]))break;K[c]=K[b];c=b;b<<=1}K[c]=e},za=function(a,c){var e=Array(16),b=0,d;for(d=1;d<=15;d++)b=b+M[d-1]<<1,e[d]=b;for(b=0;b<=c;b++)if(d=a[b].dl,d!=0)a[b].fc=
Aa(e[d]++,d)},ua=function(a){var c=a.dyn_tree,b=a.static_tree,e=a.elems,d,m=-1,g=e;T=0;Y=573;for(d=0;d<e;d++)c[d].fc!=0?(K[++T]=m=d,Q[d]=0):c[d].dl=0;for(;T<2;)d=K[++T]=m<2?++m:0,c[d].fc=1,Q[d]=0,Z--,b!=null&&(ha-=b[d].dl);a.max_code=m;for(d=T>>1;d>=1;d--)ta(c,d);do d=K[1],K[1]=K[T--],ta(c,1),b=K[1],K[--Y]=d,K[--Y]=b,c[g].fc=c[d].fc+c[b].fc,Q[g]=Q[d]>Q[b]+1?Q[d]:Q[b]+1,c[d].dl=c[b].dl=g,K[1]=g++,ta(c,1);while(T>=2);K[--Y]=K[1];g=a.dyn_tree;d=a.extra_bits;var e=a.extra_base,b=a.max_code,f=a.max_length,
s=a.static_tree,j,l,h,k,o=0;for(l=0;l<=15;l++)M[l]=0;g[K[Y]].dl=0;for(a=Y+1;a<573;a++)if(j=K[a],l=g[g[j].dl].dl+1,l>f&&(l=f,o++),g[j].dl=l,!(j>b))M[l]++,h=0,j>=e&&(h=d[j-e]),k=g[j].fc,Z+=k*(l+h),s!=null&&(ha+=k*(s[j].dl+h));if(o!=0){do{for(l=f-1;M[l]==0;)l--;M[l]--;M[l+1]+=2;M[f]--;o-=2}while(o>0);for(l=f;l!=0;l--)for(j=M[l];j!=0;)if(d=K[--a],!(d>b)){if(g[d].dl!=l)Z+=(l-g[d].dl)*g[d].fc,g[d].fc=l;j--}}za(c,m)},Da=function(a,c){var d,b=-1,e,m=a[0].dl,g=0,f=7,l=4;m==0&&(f=138,l=3);a[c+1].dl=65535;for(d=
0;d<=c;d++)e=m,m=a[d+1].dl,++g<f&&e==m||(g<l?H[e].fc+=g:e!=0?(e!=b&&H[e].fc++,H[16].fc++):g<=10?H[17].fc++:H[18].fc++,g=0,b=e,m==0?(f=138,l=3):e==m?(f=6,l=3):(f=7,l=4))},Ea=function(a,c){var d,b=-1,e,m=a[0].dl,g=0,f=7,l=4;m==0&&(f=138,l=3);for(d=0;d<=c;d++)if(e=m,m=a[d+1].dl,!(++g<f&&e==m)){if(g<l){do V(e,H);while(--g!=0)}else e!=0?(e!=b&&(V(e,H),g--),V(16,H),O(g-3,2)):g<=10?(V(17,H),O(g-3,3)):(V(18,H),O(g-11,7));g=0;b=e;m==0?(f=138,l=3):e==m?(f=6,l=3):(f=7,l=4)}},na=function(a){var c,d,e,b;b=s-B;
ea[pa]=aa;ua(D);ua(z);Da(P,D.max_code);Da(S,z.max_code);ua(N);for(e=18;e>=3;e--)if(H[va[e]].dl!=0)break;Z+=3*(e+1)+14;c=Z+3+7>>3;d=ha+3+7>>3;d<=c&&(c=d);if(b+4<=c&&B>=0){O(0+a,3);Fa();la(b);la(~b);for(e=0;e<b;e++)ka(j[B+e])}else if(d==c)O(2+a,3),Ga(G,L);else{O(4+a,3);b=D.max_code+1;c=z.max_code+1;e+=1;O(b-257,5);O(c-1,5);O(e-4,4);for(d=0;d<e;d++)O(H[va[d]].dl,3);Ea(P,b-1);Ea(S,c-1);Ga(P,S)}Ba();a!=0&&Fa()},ca=function(a,c){q[U++]=c;a==0?P[c].fc++:(a--,P[$[c]+256+1].fc++,S[(a<256?W[a]:W[256+(a>>7)])&
255].fc++,u[fa++]=a,aa|=ga);ga<<=1;(U&7)==0&&(ea[pa++]=aa,aa=0,ga=1);if(R>2&&(U&4095)==0){var d=U*8,e=s-B,b;for(b=0;b<30;b++)d+=S[b].fc*(5+ba[b]);d>>=3;if(fa<parseInt(U/2,10)&&d<parseInt(e/2,10))return!0}return U==8191||fa==8192},Ga=function(a,c){var d,e=0,b=0,m=0,g=0,f,l;if(U!=0){do(e&7)==0&&(g=ea[m++]),d=q[e++]&255,(g&1)==0?V(d,a):(f=$[d],V(f+256+1,a),l=ra[f],l!=0&&(d-=oa[f],O(d,l)),d=u[b++],f=(d<256?W[d]:W[256+(d>>7)])&255,V(f,c),l=ba[f],l!=0&&(d-=da[f],O(d,l))),g>>=1;while(e<U)}V(256,a)},O=function(a,
c){x>16-c?(t|=a<<x,la(t),t=a>>16-x,x+=c-16):(t|=a<<x,x+=c)},Aa=function(a,c){var d=0;do d|=a&1,a>>=1,d<<=1;while(--c>0);return d>>1},Fa=function(){x>8?la(t):x>0&&ka(t);x=t=0};this.deflate=function(b,f){var l,s;ia=b;qa=0;typeof f=="undefined"&&(f=6);(l=f)?l<1?l=1:l>9&&(l=9):l=6;R=l;v=d=!1;if(e==null){h=g=c=null;e=Array(a);j=Array(65536);u=Array(8192);q=Array(32832);m=Array(65536);P=Array(573);for(l=0;l<573;l++)P[l]=new i;S=Array(61);for(l=0;l<61;l++)S[l]=new i;G=Array(288);for(l=0;l<288;l++)G[l]=new i;
L=Array(30);for(l=0;l<30;l++)L[l]=new i;H=Array(39);for(l=0;l<39;l++)H[l]=new i;D=new n;z=new n;N=new n;M=Array(16);K=Array(573);Q=Array(573);$=Array(256);W=Array(512);oa=Array(29);da=Array(30);ea=Array(1024)}for(var k=Array(1024),o=[];(l=Ia(k,0,k.length))>0;){var p=Array(l);for(s=0;s<l;s++)p[s]=String.fromCharCode(k[s]);o[o.length]=p.join("")}ia=null;return o.join("")}};
// Input 4
core.ByteArray=function(i){this.pos=0;this.data=i;this.readUInt32LE=function(){var i=this.data,f=this.pos+=4;return i[--f]<<24|i[--f]<<16|i[--f]<<8|i[--f]};this.readUInt16LE=function(){var i=this.data,f=this.pos+=2;return i[--f]<<8|i[--f]}};
// Input 5
core.ByteArrayWriter=function(i){var n=this,f=new runtime.ByteArray(0);this.appendByteArrayWriter=function(b){f=runtime.concatByteArrays(f,b.getByteArray())};this.appendByteArray=function(b){f=runtime.concatByteArrays(f,b)};this.appendArray=function(b){f=runtime.concatByteArrays(f,runtime.byteArrayFromArray(b))};this.appendUInt16LE=function(b){n.appendArray([b&255,b>>8&255])};this.appendUInt32LE=function(b){n.appendArray([b&255,b>>8&255,b>>16&255,b>>24&255])};this.appendString=function(b){f=runtime.concatByteArrays(f,
runtime.byteArrayFromString(b,i))};this.getLength=function(){return f.length};this.getByteArray=function(){return f}};
// Input 6
core.RawInflate=function(){var i,n,f=null,b,a,h,g,c,d,e,k,p,o,j,u,q,m,t=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],x=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],B=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,99,99],r=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],C=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],A=[16,17,18,
0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],E=function(){this.list=this.next=null},w=function(){this.n=this.b=this.e=0;this.t=null},J=function(a,c,d,e,b,m){this.BMAX=16;this.N_MAX=288;this.status=0;this.root=null;this.m=0;var l=Array(this.BMAX+1),g,f,s,j,h,k,o,v=Array(this.BMAX+1),i,p,y,t=new w,q=Array(this.BMAX);j=Array(this.N_MAX);var F,r=Array(this.BMAX+1),x,n,C;C=this.root=null;for(h=0;h<l.length;h++)l[h]=0;for(h=0;h<v.length;h++)v[h]=0;for(h=0;h<q.length;h++)q[h]=null;for(h=0;h<j.length;h++)j[h]=
0;for(h=0;h<r.length;h++)r[h]=0;g=c>256?a[256]:this.BMAX;i=a;p=0;h=c;do l[i[p]]++,p++;while(--h>0);if(l[0]==c)this.root=null,this.status=this.m=0;else{for(k=1;k<=this.BMAX;k++)if(l[k]!=0)break;o=k;m<k&&(m=k);for(h=this.BMAX;h!=0;h--)if(l[h]!=0)break;s=h;m>h&&(m=h);for(x=1<<k;k<h;k++,x<<=1)if((x-=l[k])<0){this.status=2;this.m=m;return}if((x-=l[h])<0)this.status=2,this.m=m;else{l[h]+=x;r[1]=k=0;i=l;p=1;for(y=2;--h>0;)r[y++]=k+=i[p++];i=a;h=p=0;do if((k=i[p++])!=0)j[r[k]++]=h;while(++h<c);c=r[s];r[0]=
h=0;i=j;p=0;j=-1;F=v[0]=0;y=null;for(n=0;o<=s;o++)for(a=l[o];a-- >0;){for(;o>F+v[1+j];){F+=v[1+j];j++;n=(n=s-F)>m?m:n;if((f=1<<(k=o-F))>a+1){f-=a+1;for(y=o;++k<n;){if((f<<=1)<=l[++y])break;f-=l[y]}}F+k>g&&F<g&&(k=g-F);n=1<<k;v[1+j]=k;y=Array(n);for(f=0;f<n;f++)y[f]=new w;C=C==null?this.root=new E:C.next=new E;C.next=null;C.list=y;q[j]=y;if(j>0)r[j]=h,t.b=v[j],t.e=16+k,t.t=y,k=(h&(1<<F)-1)>>F-v[j],q[j-1][k].e=t.e,q[j-1][k].b=t.b,q[j-1][k].n=t.n,q[j-1][k].t=t.t}t.b=o-F;p>=c?t.e=99:i[p]<d?(t.e=i[p]<
256?16:15,t.n=i[p++]):(t.e=b[i[p]-d],t.n=e[i[p++]-d]);f=1<<o-F;for(k=h>>F;k<n;k+=f)y[k].e=t.e,y[k].b=t.b,y[k].n=t.n,y[k].t=t.t;for(k=1<<o-1;(h&k)!=0;k>>=1)h^=k;for(h^=k;(h&(1<<F)-1)!=r[j];)F-=v[j],j--}this.m=v[1];this.status=x!=0&&s!=1?1:0}}},s=function(a){for(;g<a;)h|=(q.length==m?-1:q[m++])<<g,g+=8},y=function(a){return h&t[a]},v=function(a){h>>=a;g-=a},l=function(a,d,b){var m,l,g;if(b==0)return 0;for(g=0;;){s(j);l=p.list[y(j)];for(m=l.e;m>16;){if(m==99)return-1;v(l.b);m-=16;s(m);l=l.t[y(m)];m=
l.e}v(l.b);if(m==16)n&=32767,a[d+g++]=i[n++]=l.n;else{if(m==15)break;s(m);e=l.n+y(m);v(m);s(u);l=o.list[y(u)];for(m=l.e;m>16;){if(m==99)return-1;v(l.b);m-=16;s(m);l=l.t[y(m)];m=l.e}v(l.b);s(m);k=n-l.n-y(m);for(v(m);e>0&&g<b;)e--,k&=32767,n&=32767,a[d+g++]=i[n++]=i[k++]}if(g==b)return b}c=-1;return g},I,F=function(a,c,d){var b,e,m,g,f,h,k,i=Array(316);for(b=0;b<i.length;b++)i[b]=0;s(5);h=257+y(5);v(5);s(5);k=1+y(5);v(5);s(4);b=4+y(4);v(4);if(h>286||k>30)return-1;for(e=0;e<b;e++)s(3),i[A[e]]=y(3),v(3);
for(;e<19;e++)i[A[e]]=0;j=7;e=new J(i,19,19,null,null,j);if(e.status!=0)return-1;p=e.root;j=e.m;g=h+k;for(b=m=0;b<g;)if(s(j),f=p.list[y(j)],e=f.b,v(e),e=f.n,e<16)i[b++]=m=e;else if(e==16){s(2);e=3+y(2);v(2);if(b+e>g)return-1;for(;e-- >0;)i[b++]=m}else{e==17?(s(3),e=3+y(3),v(3)):(s(7),e=11+y(7),v(7));if(b+e>g)return-1;for(;e-- >0;)i[b++]=0;m=0}j=9;e=new J(i,h,257,x,B,j);if(j==0)e.status=1;if(e.status!=0)return-1;p=e.root;j=e.m;for(b=0;b<k;b++)i[b]=i[b+h];u=6;e=new J(i,k,0,r,C,u);o=e.root;u=e.m;return u==
0&&h>257?-1:e.status!=0?-1:l(a,c,d)};this.inflate=function(t,w){i==null&&(i=Array(65536));g=h=n=0;c=-1;d=!1;e=k=0;p=null;q=t;m=0;var E=new runtime.ByteArray(w);a:{var A,G;for(A=0;A<w;){if(d&&c==-1)break;if(e>0){if(c!=0)for(;e>0&&A<w;)e--,k&=32767,n&=32767,E[0+A++]=i[n++]=i[k++];else{for(;e>0&&A<w;)e--,n&=32767,s(8),E[0+A++]=i[n++]=y(8),v(8);e==0&&(c=-1)}if(A==w)break}if(c==-1){if(d)break;s(1);y(1)!=0&&(d=!0);v(1);s(2);c=y(2);v(2);p=null;e=0}switch(c){case 0:G=E;var L=0+A,H=w-A,D=void 0,D=g&7;v(D);
s(16);D=y(16);v(16);s(16);if(D!=(~h&65535))G=-1;else{v(16);e=D;for(D=0;e>0&&D<H;)e--,n&=32767,s(8),G[L+D++]=i[n++]=y(8),v(8);e==0&&(c=-1);G=D}break;case 1:if(p!=null)G=l(E,0+A,w-A);else b:{G=E;L=0+A;H=w-A;if(f==null){for(var z=void 0,D=Array(288),z=void 0,z=0;z<144;z++)D[z]=8;for(;z<256;z++)D[z]=9;for(;z<280;z++)D[z]=7;for(;z<288;z++)D[z]=8;a=7;z=new J(D,288,257,x,B,a);if(z.status!=0){alert("HufBuild error: "+z.status);G=-1;break b}f=z.root;a=z.m;for(z=0;z<30;z++)D[z]=5;I=5;z=new J(D,30,0,r,C,I);
if(z.status>1){f=null;alert("HufBuild error: "+z.status);G=-1;break b}b=z.root;I=z.m}p=f;o=b;j=a;u=I;G=l(G,L,H)}break;case 2:G=p!=null?l(E,0+A,w-A):F(E,0+A,w-A);break;default:G=-1}if(G==-1)break a;A+=G}}q=null;return E}};
// Input 7
core.Cursor=function(i,n){function f(a,b){for(var c=b;c&&c!==a;)c=c.parentNode;return c||b}function b(){var b,g,c;if(a.parentNode){g=0;for(b=a.parentNode.firstChild;b&&b!==a;)g+=1,b=b.nextSibling;if(a.previousSibling&&a.previousSibling.nodeType===3&&a.nextSibling&&a.nextSibling.nodeType===3)c=a.nextSibling,a.previousSibling.appendData(c.nodeValue);for(b=0;b<i.rangeCount;b+=1){var d=i.getRangeAt(b),e=g,k=void 0,p=void 0,k=a.parentNode,p=f(a,d.startContainer);f(a,d.endContainer);p===a?d.setStart(k,
e):p===k&&d.startOffset>e&&d.setStart(k,d.startOffset-1);d.endContainer===a?d.setEnd(k,e):d.endContainer===k&&d.endOffset>e&&d.setEnd(k,d.endOffset-1)}if(c){for(b=0;b<i.rangeCount;b+=1){var d=i.getRangeAt(b),e=a.previousSibling,k=c,p=g,o=e.length-k.length;d.startContainer===k?d.setStart(e,o+d.startOffset):d.startContainer===e.parentNode&&d.startOffset===p&&d.setStart(e,o);d.endContainer===k?d.setEnd(e,o+d.endOffset):d.endContainer===e.parentNode&&d.endOffset===p&&d.setEnd(e,o)}c.parentNode.removeChild(c)}a.parentNode.removeChild(a)}}
var a;a=n.createElementNS("urn:webodf:names:cursor","cursor");this.getNode=function(){return a};this.updateToSelection=function(){b();if(i.focusNode){var f=i.focusNode,g=i.focusOffset;if(f.nodeType===3){var c,d,e,k;k=f.parentNode;g===0?k.insertBefore(a,f):g===f.length?k.appendChild(a):(c=f.length,d=f.nextSibling,e=n.createTextNode(f.substringData(g,c)),f.deleteData(g,c),d?k.insertBefore(e,d):k.appendChild(e),k.insertBefore(a,e))}else if(f.nodeType!==9){for(c=f.firstChild;c&&g;)c=c.nextSibling,g-=
1;f.insertBefore(a,c)}}};this.remove=function(){b()}};
// Input 8
core.UnitTest=function(){};core.UnitTest.prototype.setUp=function(){};core.UnitTest.prototype.tearDown=function(){};core.UnitTest.prototype.description=function(){};core.UnitTest.prototype.tests=function(){};core.UnitTest.prototype.asyncTests=function(){};
core.UnitTestRunner=function(){function i(a){b+=1;runtime.log("fail",a)}function n(a,b){var f;try{if(a.length!==b.length)return!1;for(f=0;f<a.length;f+=1)if(a[f]!==b[f])return!1}catch(c){return!1}return!0}function f(a,b,f){(typeof b!=="string"||typeof f!=="string")&&runtime.log("WARN: shouldBe() expects string arguments");var c,d;try{d=eval(b)}catch(e){c=e}a=eval(f);c?i(b+" should be "+a+". Threw exception "+c):(c=d,c=a===0?c===a&&1/c===1/a:c===a?!0:typeof a==="number"&&isNaN(a)?typeof c==="number"&&
isNaN(c):Object.prototype.toString.call(a)===Object.prototype.toString.call([])?n(c,a):!1,c?runtime.log("pass",b+" is "+f):typeof d===typeof a?i(b+" should be "+a+". Was "+(d===0&&1/d<0?"-0":String(d))+"."):i(b+" should be "+a+" (of type "+typeof a+"). Was "+d+" (of type "+typeof d+")."))}var b=0;this.shouldBeNull=function(a,b){f(a,b,"null")};this.shouldBeNonNull=function(a,b){var f,c;try{c=eval(b)}catch(d){f=d}f?i(b+" should be non-null. Threw exception "+f):c!==null?runtime.log("pass",b+" is non-null."):
i(b+" should be non-null. Was "+c)};this.shouldBe=f;this.countFailedTests=function(){return b}};
core.UnitTester=function(){var i=0,n={};this.runTests=function(f,b){function a(f){if(f.length===0)n[h]=e,i+=c.countFailedTests(),b();else{p=f[0];var g=Runtime.getFunctionName(p);runtime.log("Running "+g);j=c.countFailedTests();d.setUp();p(function(){d.tearDown();e[g]=j===c.countFailedTests();a(f.slice(1))})}}var h=Runtime.getFunctionName(f),g,c=new core.UnitTestRunner,d=new f(c),e={},k,p,o,j;if(h.hasOwnProperty(n))runtime.log("Test "+h+" has already run.");else{runtime.log("Running "+h+": "+d.description());
o=d.tests();for(k=0;k<o.length;k+=1)p=o[k],g=Runtime.getFunctionName(p),runtime.log("Running "+g),j=c.countFailedTests(),d.setUp(),p(),d.tearDown(),e[g]=j===c.countFailedTests();a(d.asyncTests())}};this.countFailedTests=function(){return i};this.results=function(){return n}};
// Input 9
core.PointWalker=function(i){function n(a){for(var b=-1;a;)a=a.previousSibling,b+=1;return b}var f=i,b=null,a=i&&i.firstChild,h=0;this.setPoint=function(g,c){f=g;h=c;if(f.nodeType===3)b=a=null;else{for(a=f.firstChild;c;)c-=1,a=a.nextSibling;b=a?a.previousSibling:f.lastChild}};this.stepForward=function(){var g;if(f.nodeType===3&&(g=typeof f.nodeValue.length==="number"?f.nodeValue.length:f.nodeValue.length(),h<g))return h+=1,!0;if(a)return a.nodeType===1?(f=a,b=null,a=f.firstChild,h=0):a.nodeType===
3?(f=a,a=b=null,h=0):(b=a,a=a.nextSibling,h+=1),!0;return f!==i?(b=f,a=b.nextSibling,f=f.parentNode,h=n(b)+1,!0):!1};this.stepBackward=function(){if(f.nodeType===3&&h>0)return h-=1,!0;if(b)return b.nodeType===1?(f=b,b=f.lastChild,a=null,h=n(b)+1):b.nodeType===3?(f=b,a=b=null,h=typeof f.nodeValue.length==="number"?f.nodeValue.length:f.nodeValue.length()):(a=b,b=b.previousSibling,h-=1),!0;return f!==i?(a=f,b=a.previousSibling,f=f.parentNode,h=n(a),!0):!1};this.node=function(){return f};this.position=
function(){return h};this.precedingSibling=function(){return b};this.followingSibling=function(){return a}};
// Input 10
core.Async=function(){this.forEach=function(i,n,f){function b(a){g!==h&&(a?(g=h,f(a)):(g+=1,g===h&&f(null)))}var a,h=i.length,g=0;for(a=0;a<h;a+=1)n(i[a],b)}};
// Input 11
runtime.loadClass("core.RawInflate");runtime.loadClass("core.ByteArray");runtime.loadClass("core.ByteArrayWriter");
core.Zip=function(i,n){function f(a){var b=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,
853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,
4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,
225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,
2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,
2932959818,3654703836,1088359270,936918E3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],c=0,e,d=a.length,f=0,f=0;c^=-1;for(e=0;e<d;e+=1)f=(c^a[e])&255,f=b[f],c=c>>>8^f;return c^-1}function b(a){return new Date((a>>25&127)+1980,(a>>21&15)-1,a>>16&31,a>>11&15,a>>5&63,(a&31)<<1)}function a(a){var b=a.getFullYear();return b<1980?0:b-
1980<<25|a.getMonth()+1<<21|a.getDate()<<16|a.getHours()<<11|a.getMinutes()<<5|a.getSeconds()>>1}function h(a,c){var e,d,f,g,k,h,o,i=this;this.load=function(c){if(i.data!==void 0)c(null,i.data);else{var b=k+34+e+d+256;b+o>p&&(b=p-o);runtime.read(a,o,b,function(b,e){if(b)c(b,e);else a:{var d=e,f=new core.ByteArray(d),m=f.readUInt32LE(),s;if(m!==67324752)c("File entry signature is wrong."+m.toString()+" "+d.length.toString(),null);else{f.pos+=22;m=f.readUInt16LE();s=f.readUInt16LE();f.pos+=m+s;if(g){d=
d.slice(f.pos,f.pos+k);if(k!==d.length){c("The amount of compressed bytes read was "+d.length.toString()+" instead of "+k.toString()+" for "+i.filename+" in "+a+".",null);break a}d=j(d,h)}else d=d.slice(f.pos,f.pos+h);h!==d.length?c("The amount of bytes read was "+d.length.toString()+" instead of "+h.toString()+" for "+i.filename+" in "+a+".",null):(i.data=d,c(null,d))}}})}};this.set=function(a,c,b,e){i.filename=a;i.data=c;i.compressed=b;i.date=e};this.error=null;if(c)c.readUInt32LE()!==33639248?
this.error="Central directory entry has wrong signature at position "+(c.pos-4).toString()+' for file "'+a+'": '+c.data.length.toString():(c.pos+=6,g=c.readUInt16LE(),this.date=b(c.readUInt32LE()),c.readUInt32LE(),k=c.readUInt32LE(),h=c.readUInt32LE(),e=c.readUInt16LE(),d=c.readUInt16LE(),f=c.readUInt16LE(),c.pos+=8,o=c.readUInt32LE(),this.filename=runtime.byteArrayToString(c.data.slice(c.pos,c.pos+e),"utf8"),c.pos+=e+d+f)}function g(a,c){if(a.length!==22)c("Central directory length should be 22.",
u);else{var b=new core.ByteArray(a),e;e=b.readUInt32LE();e!==101010256?c("Central directory signature is wrong: "+e.toString(),u):b.readUInt16LE()!==0?c("Zip files with non-zero disk numbers are not supported.",u):b.readUInt16LE()!==0?c("Zip files with non-zero disk numbers are not supported.",u):(e=b.readUInt16LE(),o=b.readUInt16LE(),e!==o?c("Number of entries is inconsistent.",u):(e=b.readUInt32LE(),b=b.readUInt16LE(),b=p-22-e,runtime.read(i,b,p-b,function(a,b){a:{var e=new core.ByteArray(b),d,
f;k=[];for(d=0;d<o;d+=1){f=new h(i,e);if(f.error){c(f.error,u);break a}k[k.length]=f}c(null,u)}})))}}function c(b){var c=new core.ByteArrayWriter("utf8"),e=0;c.appendArray([80,75,3,4,20,0,0,0,0,0]);if(b.data)e=b.data.length;c.appendUInt32LE(a(b.date));c.appendUInt32LE(f(b.data));c.appendUInt32LE(e);c.appendUInt32LE(e);c.appendUInt16LE(b.filename.length);c.appendUInt16LE(0);c.appendString(b.filename);b.data&&c.appendByteArray(b.data);return c}function d(c,b){var e=new core.ByteArrayWriter("utf8"),
d=0;e.appendArray([80,75,1,2,20,0,20,0,0,0,0,0]);if(c.data)d=c.data.length;e.appendUInt32LE(a(c.date));e.appendUInt32LE(f(c.data));e.appendUInt32LE(d);e.appendUInt32LE(d);e.appendUInt16LE(c.filename.length);e.appendArray([0,0,0,0,0,0,0,0,0,0,0,0]);e.appendUInt32LE(b);e.appendString(c.filename);return e}function e(a,c){if(a===k.length)c(null);else{var b=k[a];b.data!==void 0?e(a+1,c):b.load(function(b){b?c(b):e(a+1,c)})}}var k,p,o,j=(new core.RawInflate).inflate,u=this;this.load=function(a,c){var b=
null,e,d;for(d=0;d<k.length;d+=1)if(e=k[d],e.filename===a){b=e;break}b?b.data?c(null,b.data):b.load(c):c(a+" not found.",null)};this.save=function(a,c,b,e){var d,f;for(d=0;d<k.length;d+=1)if(f=k[d],f.filename===a){f.set(a,c,b,e);return}f=new h(i);f.set(a,c,b,e);k.push(f)};this.write=function(a){e(0,function(b){if(b)a(b);else{var b=new core.ByteArrayWriter("utf8"),e,f,g,j=[0];for(e=0;e<k.length;e+=1)b.appendByteArrayWriter(c(k[e])),j.push(b.getLength());g=b.getLength();for(e=0;e<k.length;e+=1)f=k[e],
b.appendByteArrayWriter(d(f,j[e]));e=b.getLength()-g;b.appendArray([80,75,5,6,0,0,0,0]);b.appendUInt16LE(k.length);b.appendUInt16LE(k.length);b.appendUInt32LE(e);b.appendUInt32LE(g);b.appendArray([0,0]);runtime.writeFile(i,b.getByteArray(),a)}})};this.getEntries=function(){return k.slice()};p=-1;n===null?k=[]:runtime.getFileSize(i,function(a){p=a;p<0?n("File '"+i+"' cannot be read.",u):runtime.read(i,p-22,22,function(a,b){a||n===null?n(a,u):g(b,n)})})};
// Input 12
gui.Caret=function(i,n){n.ownerDocument.createElementNS("urn:webodf:names:cursor","cursor");this.updateToSelection=function(){i.rangeCount===1&&i.getRangeAt(0)}};
// Input 13
runtime.loadClass("core.Cursor");
gui.SelectionMover=function(i,n){function f(a,b){if(i.rangeCount!==0){var d=i.getRangeAt(0);if(d.startContainer&&d.startContainer.nodeType===1){n.setPoint(d.startContainer,d.startOffset);b();d=n.node();n.position();var e=[],f;for(f=0;f<i.rangeCount;f+=1)e[f]=i.getRangeAt(f);i.removeAllRanges();e.length===0&&(e[0]=d.ownerDocument.createRange());e[e.length-1].setStart(n.node(),n.position());for(f=0;f<e.length;f+=1)i.addRange(e[f])}}}function b(){h.updateToSelection();for(var a=h.getNode().getBoundingClientRect(),
b=a.left,d=a.top,a=!1,e=200;!a;){e-=1;h.remove();if(i.focusNode&&i.focusNode.nodeType===1){n.setPoint(i.focusNode,i.focusOffset);n.stepForward();var a=n.node(),f=n.position();i.collapse(a,f);h.updateToSelection()}a=h.getNode().getBoundingClientRect();a=a.top!==d&&a.left>b}}var a=n.node().ownerDocument,h=new core.Cursor(i,a);this.movePointForward=function(a){f(a,n.stepForward)};this.movePointBackward=function(a){f(a,n.stepBackward)};this.moveLineForward=function(a){i.modify?i.modify(a?"extend":"move",
"forward","line"):f(a,b)};this.moveLineBackward=function(a){i.modify?i.modify(a?"extend":"move","backward","line"):f(a,function(){})};return this};
// Input 14
runtime.loadClass("core.PointWalker");runtime.loadClass("core.Cursor");
gui.XMLEdit=function(i,n){function f(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent?a.attachEvent("on"+b,c):a["on"+b]=c}function b(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function a(){var a=i.ownerDocument.defaultView.getSelection();a&&!(a.rangeCount<=0)&&q&&(a=a.getRangeAt(0),q.setPoint(a.startContainer,a.startOffset))}function h(){var a=i.ownerDocument.defaultView.getSelection(),b,c;a.removeAllRanges();q&&q.node()&&(b=q.node(),c=b.ownerDocument.createRange(),
c.setStart(b,q.position()),c.collapse(!0),a.addRange(c))}function g(c){var e=c.charCode||c.keyCode;if(q=null,q&&e===37)a(),q.stepBackward(),h();else if(e>=16&&e<=20||e>=33&&e<=40)return;b(c)}function c(){}function d(a){i.ownerDocument.defaultView.getSelection().getRangeAt(0);b(a)}function e(a){for(var b=a.firstChild;b&&b!==a;)b.nodeType===1&&e(b),b=b.nextSibling||b.parentNode;var c,d,f,b=a.attributes;c="";for(f=b.length-1;f>=0;f-=1)d=b.item(f),c=c+" "+d.nodeName+'="'+d.nodeValue+'"';a.setAttribute("customns_name",
a.nodeName);a.setAttribute("customns_atts",c);b=a.firstChild;for(d=/^\s*$/;b&&b!==a;)c=b,b=b.nextSibling||b.parentNode,c.nodeType===3&&d.test(c.nodeValue)&&c.parentNode.removeChild(c)}function k(a,b){for(var c=a.firstChild,e,d,f;c&&c!==a;){if(c.nodeType===1){k(c,b);e=c.attributes;for(f=e.length-1;f>=0;f-=1)if(d=e.item(f),d.namespaceURI==="http://www.w3.org/2000/xmlns/"&&!b[d.nodeValue])b[d.nodeValue]=d.localName}c=c.nextSibling||c.parentNode}}function p(){var a=i.ownerDocument.createElement("style"),
b;b={};k(i,b);var c={},e,d,f=0;for(e in b)if(b.hasOwnProperty(e)&&e){d=b[e];if(!d||c.hasOwnProperty(d)||d==="xmlns"){do d="ns"+f,f+=1;while(c.hasOwnProperty(d));b[e]=d}c[d]=!0}b="@namespace customns url(customns);\n";a.type="text/css";b+=o;a.appendChild(i.ownerDocument.createTextNode(b));n=n.parentNode.replaceChild(a,n)}var o,j,u,q=null;if(!i.id)i.id="xml"+String(Math.random()).substring(2);j="#"+i.id+" ";o=j+"*,"+j+":visited, "+j+":link {display:block; margin: 0px; margin-left: 10px; font-size: medium; color: black; background: white; font-variant: normal; font-weight: normal; font-style: normal; font-family: sans-serif; text-decoration: none; white-space: pre-wrap; height: auto; width: auto}\n"+
j+":before {color: blue; content: '<' attr(customns_name) attr(customns_atts) '>';}\n"+j+":after {color: blue; content: '</' attr(customns_name) '>';}\n"+j+"{overflow: auto;}\n";(function(a){f(a,"click",d);f(a,"keydown",g);f(a,"keypress",c);f(a,"drop",b);f(a,"dragend",b);f(a,"beforepaste",b);f(a,"paste",b)})(i);this.updateCSS=p;this.setXML=function(a){a=a.documentElement||a;u=a=i.ownerDocument.importNode(a,!0);for(e(a);i.lastChild;)i.removeChild(i.lastChild);i.appendChild(a);p();q=new core.PointWalker(a)};
this.getXML=function(){return u}};
// Input 15
xmldom.LSSerializerFilter=function(){};
// Input 16
typeof Object.create!=="function"&&(Object.create=function(i){var n=function(){};n.prototype=i;return new n});
xmldom.LSSerializer=function(){function i(f,b){var a="",h=Object.create(f),g=n.filter?n.filter.acceptNode(b):1,c;if(g===1){c="";var d=b.attributes,e,k,p,o="",j;if(d){if(h[b.namespaceURI]!==b.prefix)h[b.namespaceURI]=b.prefix;c+="<"+b.nodeName;e=d.length;for(k=0;k<e;k+=1)if(p=d.item(k),p.namespaceURI!=="http://www.w3.org/2000/xmlns/"&&(j=n.filter?n.filter.acceptNode(p):1,j===1)){if(p.namespaceURI){j=p.prefix;var u=p.namespaceURI;h.hasOwnProperty(u)?j=h[u]+":":(h[u]!==j&&(h[u]=j),j+=":")}else j="";
o+=" "+(j+p.localName+'="'+p.nodeValue+'"')}for(k in h)h.hasOwnProperty(k)&&((j=h[k])?j!=="xmlns"&&(c+=" xmlns:"+h[k]+'="'+k+'"'):c+=' xmlns="'+k+'"');c+=o+">"}a+=c}if(g===1||g===3){for(c=b.firstChild;c;)a+=i(h,c),c=c.nextSibling;b.nodeValue&&(a+=b.nodeValue)}g===1&&(h="",b.nodeType===1&&(h+="</"+b.nodeName+">"),a+=h);return a}var n=this;this.filter=null;this.writeToString=function(f,b){if(!f)return"";var a;if(b){a=b;var h={},g;for(g in a)a.hasOwnProperty(g)&&(h[a[g]]=g);a=h}else a={};return i(a,
f)}};
// Input 17
xmldom.RelaxNGParser=function(){function i(a,b){this.message=function(){b&&(a+=b.nodeType===1?" Element ":" Node ",a+=b.nodeName,b.nodeValue&&(a+=" with value '"+b.nodeValue+"'"),a+=".");return a}}function n(a){if(a.e.length<=2)return a;var b={name:a.name,e:a.e.slice(0,2)};return n({name:a.name,e:[b].concat(a.e.slice(2))})}function f(a){var a=a.split(":",2),b="",d;a.length===1?a=["",a[0]]:b=a[0];for(d in c)c[d]===b&&(a[0]=d);return a}function b(a,c){var k;var e;for(var d=0,g,j,h=a.name;a.e&&d<a.e.length;)if(g=
a.e[d],g.name==="ref"){j=c[g.a.name];if(!j)throw g.a.name+" was not defined.";g=a.e.slice(d+1);a.e=a.e.slice(0,d);a.e=a.e.concat(j.e);a.e=a.e.concat(g)}else d+=1,b(g,c);g=a.e;if(h==="choice"&&(!g||!g[1]||g[1].name==="empty"))!g||!g[0]||g[0].name==="empty"?(delete a.e,a.name="empty"):(g[1]=g[0],g[0]={name:"empty"});if(h==="group"||h==="interleave")if(g[0].name==="empty")g[1].name==="empty"?(delete a.e,a.name="empty"):(h=a.name=g[1].name,a.names=g[1].names,e=a.e=g[1].e,g=e);else if(g[1].name==="empty")h=
a.name=g[0].name,a.names=g[0].names,k=a.e=g[0].e,g=k;if(h==="oneOrMore"&&g[0].name==="empty")delete a.e,a.name="empty";if(h==="attribute"){j=a.names?a.names.length:0;for(var i,m=a.localnames=Array(j),n=a.namespaces=Array(j),d=0;d<j;d+=1)i=f(a.names[d]),n[d]=i[0],m[d]=i[1]}if(h==="interleave")if(g[0].name==="interleave")g[1].name==="interleave"?a.e=g[0].e.concat(g[1].e):a.e=[g[1]].concat(g[0].e);else if(g[1].name==="interleave")a.e=[g[0]].concat(g[1].e)}function a(b,c){for(var d=0,f;b.e&&d<b.e.length;)f=
b.e[d],f.name==="elementref"?(f.id=f.id||0,b.e[d]=c[f.id]):f.name!=="element"&&a(f,c),d+=1}var h=this,g,c={"http://www.w3.org/XML/1998/namespace":"xml"},d;d=function(a,b){var g=[],h,j,i,q,m=a.localName,t=[];h=a.attributes;j=m;q=t;var x={},B,r;for(B=0;B<h.length;B+=1)if(r=h.item(B),r.namespaceURI){if(r.namespaceURI==="http://www.w3.org/2000/xmlns/")c[r.value]=r.localName}else r.localName==="name"&&(j==="element"||j==="attribute")&&q.push(r.value),x[r.localName]=r.value;h=x;j=a.firstChild;q=g;x=t;for(B=
"";j;)j.nodeType===1&&j.namespaceURI==="http://relaxng.org/ns/structure/1.0"?(r=d(j,b),r.name==="name"?x.push(c[r.a.ns]+":"+r.text):r.name==="choice"&&r.names&&r.names.length&&(x=x.concat(r.names),delete r.names),q.push(r)):j.nodeType===3&&(B+=j.nodeValue),j=j.nextSibling;q=B;m!=="value"&&m!=="param"&&(q=/^\s*([\s\S]*\S)?\s*$/.exec(q)[1]);if(m==="value"&&h.type===void 0)h.type="token",h.datatypeLibrary="";if((m==="attribute"||m==="element")&&h.name!==void 0)i=f(h.name),g=[{name:"name",text:i[1],a:{ns:i[0]}}].concat(g),
delete h.name;if(m==="name"||m==="nsName"||m==="value"){if(h.ns===void 0)h.ns=""}else delete h.ns;if(m==="name")i=f(q),h.ns=i[0],q=i[1];if(g.length>1&&(m==="define"||m==="oneOrMore"||m==="zeroOrMore"||m==="optional"||m==="list"||m==="mixed"))g=[{name:"group",e:n({name:"group",e:g}).e}];g.length>2&&m==="element"&&(g=[g[0]].concat({name:"group",e:n({name:"group",e:g.slice(1)}).e}));g.length===1&&m==="attribute"&&g.push({name:"text",text:q});if(g.length===1&&(m==="choice"||m==="group"||m==="interleave"))m=
g[0].name,t=g[0].names,h=g[0].a,q=g[0].text,g=g[0].e;else if(g.length>2&&(m==="choice"||m==="group"||m==="interleave"))g=n({name:m,e:g}).e;m==="mixed"&&(m="interleave",g=[g[0],{name:"text"}]);m==="optional"&&(m="choice",g=[g[0],{name:"empty"}]);m==="zeroOrMore"&&(m="choice",g=[{name:"oneOrMore",e:[g[0]]},{name:"empty"}]);j={name:m};if(g&&g.length>0)j.e=g;for(i in h)if(h.hasOwnProperty(i)){j.a=h;break}if(q!==void 0)j.text=q;if(t&&t.length>0)j.names=t;if(m==="element")j.id=b.length,b.push(j),j={name:"elementref",
id:j.id};return j};this.parseRelaxNGDOM=function(e,f){var p=[],o=d(e&&e.documentElement,p),j,n,q={};for(j=0;j<o.e.length;j+=1)n=o.e[j],n.name==="define"?q[n.a.name]=n:n.name==="start"&&(g=n);if(!g)return[new i("No Relax NG start element was found.")];b(g,q);for(j in q)q.hasOwnProperty(j)&&b(q[j],q);for(j=0;j<p.length;j+=1)b(p[j],q);if(f)h.rootPattern=f(g.e[0],p);a(g,p);for(j=0;j<p.length;j+=1)a(p[j],p);h.start=g;h.elements=p;h.nsmap=c;return null}};
// Input 18
runtime.loadClass("xmldom.RelaxNGParser");
xmldom.RelaxNG=function(){function i(a){return function(){var b;return function(){b===void 0&&(b=a());return b}}()}function n(a,b){return function(){var c={},d=0;return function(e){var f=e.hash||e.toString(),g;g=c[f];if(g!==void 0)return g;c[f]=g=b(e);g.hash=a+d.toString();d+=1;return g}}()}function f(a){return function(){var b={};return function(c){var d,e;e=b[c.localName];if(e===void 0)b[c.localName]=e={};else if(d=e[c.namespaceURI],d!==void 0)return d;return e[c.namespaceURI]=d=a(c)}}()}function b(a,
b,c){return function(){var d={},e=0;return function(f,g){var j=b&&b(f,g),h,i;if(j!==void 0)return j;j=f.hash||f.toString();h=g.hash||g.toString();i=d[j];if(i===void 0)d[j]=i={};else if(j=i[h],j!==void 0)return j;i[h]=j=c(f,g);j.hash=a+e.toString();e+=1;return j}}()}function a(b,c){c.p1.type==="choice"?a(b,c.p1):b[c.p1.hash]=c.p1;c.p2.type==="choice"?a(b,c.p2):b[c.p2.hash]=c.p2}function h(a,b){return{type:"element",nc:a,nullable:!1,textDeriv:function(){return r},startTagOpenDeriv:function(c){return a.contains(c)?
j(b,C):r},attDeriv:function(){return r},startTagCloseDeriv:function(){return this}}}function g(){return{type:"list",nullable:!1,hash:"list",textDeriv:function(){return C}}}function c(a,b,d,f){if(b===r)return r;if(f>=d.length)return b;f===0&&(f=0);for(var g=d.item(f);g.namespaceURI===e;){f+=1;if(f>=d.length)return b;g=d.item(f)}return g=c(a,b.attDeriv(a,d.item(f)),d,f+1)}function d(a,b,c){c.e[0].a?(a.push(c.e[0].text),b.push(c.e[0].a.ns)):d(a,b,c.e[0]);c.e[1].a?(a.push(c.e[1].text),b.push(c.e[1].a.ns)):
d(a,b,c.e[1])}var e="http://www.w3.org/2000/xmlns/",k,p,o,j,u,q,m,t,x,B,r={type:"notAllowed",nullable:!1,hash:"notAllowed",textDeriv:function(){return r},startTagOpenDeriv:function(){return r},attDeriv:function(){return r},startTagCloseDeriv:function(){return r},endTagDeriv:function(){return r}},C={type:"empty",nullable:!0,hash:"empty",textDeriv:function(){return r},startTagOpenDeriv:function(){return r},attDeriv:function(){return r},startTagCloseDeriv:function(){return C},endTagDeriv:function(){return r}},
A={type:"text",nullable:!0,hash:"text",textDeriv:function(){return A},startTagOpenDeriv:function(){return r},attDeriv:function(){return r},startTagCloseDeriv:function(){return A},endTagDeriv:function(){return r}},E,w,J;k=b("choice",function(a,b){if(a===r)return b;if(b===r)return a;if(a===b)return a},function(b,c){var d={},e;a(d,{p1:b,p2:c});c=b=void 0;for(e in d)d.hasOwnProperty(e)&&(b===void 0?b=d[e]:c=c===void 0?d[e]:k(c,d[e]));return function(a,b){return{type:"choice",p1:a,p2:b,nullable:a.nullable||
b.nullable,textDeriv:function(c,d){return k(a.textDeriv(c,d),b.textDeriv(c,d))},startTagOpenDeriv:f(function(c){return k(a.startTagOpenDeriv(c),b.startTagOpenDeriv(c))}),attDeriv:function(c,d){return k(a.attDeriv(c,d),b.attDeriv(c,d))},startTagCloseDeriv:i(function(){return k(a.startTagCloseDeriv(),b.startTagCloseDeriv())}),endTagDeriv:i(function(){return k(a.endTagDeriv(),b.endTagDeriv())})}}(b,c)});p=function(a,b,c){return function(){var d={},e=0;return function(f,g){var j=b&&b(f,g),h,i;if(j!==
void 0)return j;j=f.hash||f.toString();h=g.hash||g.toString();j<h&&(i=j,j=h,h=i,i=f,f=g,g=i);i=d[j];if(i===void 0)d[j]=i={};else if(j=i[h],j!==void 0)return j;i[h]=j=c(f,g);j.hash=a+e.toString();e+=1;return j}}()}("interleave",function(a,b){if(a===r||b===r)return r;if(a===C)return b;if(b===C)return a},function(a,b){return{type:"interleave",p1:a,p2:b,nullable:a.nullable&&b.nullable,textDeriv:function(c,d){return k(p(a.textDeriv(c,d),b),p(a,b.textDeriv(c,d)))},startTagOpenDeriv:f(function(c){return k(E(function(a){return p(a,
b)},a.startTagOpenDeriv(c)),E(function(b){return p(a,b)},b.startTagOpenDeriv(c)))}),attDeriv:function(c,d){return k(p(a.attDeriv(c,d),b),p(a,b.attDeriv(c,d)))},startTagCloseDeriv:i(function(){return p(a.startTagCloseDeriv(),b.startTagCloseDeriv())})}});o=b("group",function(a,b){if(a===r||b===r)return r;if(a===C)return b;if(b===C)return a},function(a,b){return{type:"group",p1:a,p2:b,nullable:a.nullable&&b.nullable,textDeriv:function(c,d){var e=o(a.textDeriv(c,d),b);return a.nullable?k(e,b.textDeriv(c,
d)):e},startTagOpenDeriv:function(c){var d=E(function(a){return o(a,b)},a.startTagOpenDeriv(c));return a.nullable?k(d,b.startTagOpenDeriv(c)):d},attDeriv:function(c,d){return k(o(a.attDeriv(c,d),b),o(a,b.attDeriv(c,d)))},startTagCloseDeriv:i(function(){return o(a.startTagCloseDeriv(),b.startTagCloseDeriv())})}});j=b("after",function(a,b){if(a===r||b===r)return r},function(a,b){return{type:"after",p1:a,p2:b,nullable:!1,textDeriv:function(c,d){return j(a.textDeriv(c,d),b)},startTagOpenDeriv:f(function(c){return E(function(a){return j(a,
b)},a.startTagOpenDeriv(c))}),attDeriv:function(c,d){return j(a.attDeriv(c,d),b)},startTagCloseDeriv:i(function(){return j(a.startTagCloseDeriv(),b)}),endTagDeriv:i(function(){return a.nullable?b:r})}});u=n("oneormore",function(a){return a===r?r:{type:"oneOrMore",p:a,nullable:a.nullable,textDeriv:function(b,c){return o(a.textDeriv(b,c),k(this,C))},startTagOpenDeriv:function(b){var c=this;return E(function(a){return o(a,k(c,C))},a.startTagOpenDeriv(b))},attDeriv:function(b,c){return o(a.attDeriv(b,
c),k(this,C))},startTagCloseDeriv:i(function(){return u(a.startTagCloseDeriv())})}});m=b("attribute",void 0,function(a,b){return{type:"attribute",nullable:!1,nc:a,p:b,attDeriv:function(c,d){return a.contains(d)&&(b.nullable&&/^\s+$/.test(d.nodeValue)||b.textDeriv(c,d.nodeValue).nullable)?C:r},startTagCloseDeriv:function(){return r}}});q=n("value",function(a){return{type:"value",nullable:!1,value:a,textDeriv:function(b,c){return c===a?C:r},attDeriv:function(){return r},startTagCloseDeriv:function(){return this}}});
x=n("data",function(a){return{type:"data",nullable:!1,dataType:a,textDeriv:function(){return C},attDeriv:function(){return r},startTagCloseDeriv:function(){return this}}});E=function y(a,b){if(b.type==="after")return j(b.p1,a(b.p2));else if(b.type==="choice")return k(y(a,b.p1),y(a,b.p2));return b};w=function(a,b,d){for(var e=d.currentNode,b=b.startTagOpenDeriv(e),b=c(a,b,e.attributes,0),f=b=b.startTagCloseDeriv(),e=d.currentNode,b=d.firstChild(),g=0,j=[];b;)b.nodeType===1?j.push(b):b.nodeType===3&&
!/^\s*$/.test(b.nodeValue)&&(j.push(b.nodeValue),g+=1),b=d.nextSibling();j.length===0&&(j=[""]);g=f;for(f=0;g!==r&&f<j.length;f+=1)b=j[f],typeof b==="string"?g=/^\s*$/.test(b)?k(g,g.textDeriv(a,b)):g.textDeriv(a,b):(d.currentNode=b,g=w(a,g,d));d.currentNode=e;return b=g.endTagDeriv()};t=function(a){var b,c,e;if(a.name==="name")return b=a.text,c=a.a.ns,{name:b,ns:c,hash:"{"+c+"}"+b,contains:function(a){return a.namespaceURI===c&&a.localName===b}};else if(a.name==="choice"){b=[];c=[];d(b,c,a);a="";
for(e=0;e<b.length;e+=1)a+="{"+c[e]+"}"+b[e]+",";return{hash:a,contains:function(a){var d;for(d=0;d<b.length;d+=1)if(b[d]===a.localName&&c[d]===a.namespaceURI)return!0;return!1}}}return{hash:"anyName",contains:function(){return!0}}};B=function v(a,b){var c,d;if(a.name==="elementref"){c=a.id||0;a=b[c];if(a.name!==void 0){var e=a;c=b[e.id]={hash:"element"+e.id.toString()};e=h(t(e.e[0]),B(e.e[1],b));for(d in e)e.hasOwnProperty(d)&&(c[d]=e[d]);d=c}else d=a;return d}switch(a.name){case "empty":return C;
case "notAllowed":return r;case "text":return A;case "choice":return k(v(a.e[0],b),v(a.e[1],b));case "interleave":c=v(a.e[0],b);for(d=1;d<a.e.length;d+=1)c=p(c,v(a.e[d],b));return c;case "group":return o(v(a.e[0],b),v(a.e[1],b));case "oneOrMore":return u(v(a.e[0],b));case "attribute":return m(t(a.e[0]),v(a.e[1],b));case "value":return q(a.text);case "data":return c=a.a&&a.a.type,c===void 0&&(c=""),x(c);case "list":return g()}throw"No support for "+a.name;};this.makePattern=function(a,b){var c={},
d;for(d in b)b.hasOwnProperty(d)&&(c[d]=b[d]);return d=B(a,c)};this.validate=function(a){a.currentNode=a.root;w(null,J,a).nullable||runtime.log("Error parsing.")};this.init=function(a){J=a}};
// Input 19
runtime.loadClass("xmldom.RelaxNGParser");
xmldom.RelaxNG2=function(){function i(a,b){this.message=function(){b&&(a+=b.nodeType===1?" Element ":" Node ",a+=b.nodeName,b.nodeValue&&(a+=" with value '"+b.nodeValue+"'"),a+=".");return a}}function n(b,d,e,f){return b.name==="empty"?null:a(b,d,e,f)}function f(a,b){if(a.e.length!==2)throw"Element with wrong # of elements: "+a.e.length;g+=1;for(var e=b.currentNode,f=e?e.nodeType:0,p=null;f>1;){if(f!==8&&(f!==3||!/^\s+$/.test(b.currentNode.nodeValue)))return g-=1,[new i("Not allowed node of type "+
f+".")];f=(e=b.nextSibling())?e.nodeType:0}if(!e)return g-=1,[new i("Missing element "+a.names)];if(a.names&&a.names.indexOf(h[e.namespaceURI]+":"+e.localName)===-1)return g-=1,[new i("Found "+e.nodeName+" instead of "+a.names+".",e)];if(b.firstChild()){for(p=n(a.e[1],b,e);b.nextSibling();)if(f=b.currentNode.nodeType,(!b.currentNode||!(b.currentNode.nodeType===3&&/^\s+$/.test(b.currentNode.nodeValue)))&&f!==8)return g-=1,[new i("Spurious content.",b.currentNode)];if(b.parentNode()!==e)return g-=1,
[new i("Implementation error.")]}else p=n(a.e[1],b,e);g-=1;b.nextSibling();return p}var b,a,h,g=0;a=function(b,d,e,g){var h=b.name,o=null;if(h==="text")a:{for(var j=(b=d.currentNode)?b.nodeType:0;b!==e&&j!==3;){if(j===1){o=[new i("Element not allowed here.",b)];break a}j=(b=d.nextSibling())?b.nodeType:0}d.nextSibling();o=null}else if(h==="data")o=null;else if(h==="value")g!==b.text&&(o=[new i("Wrong value, should be '"+b.text+"', not '"+g+"'",e)]);else if(h==="list")o=null;else if(h==="attribute")a:{if(b.e.length!==
2)throw"Attribute with wrong # of elements: "+b.e.length;h=b.localnames.length;for(o=0;o<h;o+=1){g=e.getAttributeNS(b.namespaces[o],b.localnames[o]);g===""&&!e.hasAttributeNS(b.namespaces[o],b.localnames[o])&&(g=void 0);if(j!==void 0&&g!==void 0){o=[new i("Attribute defined too often.",e)];break a}j=g}o=j===void 0?[new i("Attribute not found: "+b.names,e)]:n(b.e[1],d,e,j)}else if(h==="element")o=f(b,d,e);else if(h==="oneOrMore"){g=0;do j=d.currentNode,h=a(b.e[0],d,e),g+=1;while(!h&&j!==d.currentNode);
g>1?(d.currentNode=j,o=null):o=h}else if(h==="choice"){if(b.e.length!==2)throw"Choice with wrong # of options: "+b.e.length;j=d.currentNode;if(b.e[0].name==="empty"){if(h=a(b.e[1],d,e,g))d.currentNode=j;o=null}else{if(h=n(b.e[0],d,e,g))d.currentNode=j,h=a(b.e[1],d,e,g);o=h}}else if(h==="group"){if(b.e.length!==2)throw"Group with wrong # of members: "+b.e.length;o=a(b.e[0],d,e)||a(b.e[1],d,e)}else if(h==="interleave")a:{for(var j=b.e.length,g=Array(j),u=j,q,m,t,x;u>0;){q=0;m=d.currentNode;for(o=0;o<
j;o+=1)if(t=d.currentNode,g[o]!==!0&&g[o]!==t)x=b.e[o],(h=a(x,d,e))?(d.currentNode=t,g[o]===void 0&&(g[o]=!1)):t===d.currentNode||x.name==="oneOrMore"||x.name==="choice"&&(x.e[0].name==="oneOrMore"||x.e[1].name==="oneOrMore")?(q+=1,g[o]=t):(q+=1,g[o]=!0);if(m===d.currentNode&&q===u)break;if(q===0){for(o=0;o<j;o+=1)if(g[o]===!1){o=[new i("Interleave does not match.",e)];break a}break}for(o=u=0;o<j;o+=1)g[o]!==!0&&(u+=1)}o=null}else throw h+" not allowed in nonEmptyPattern.";return o};this.validate=
function(a,d){a.currentNode=a.root;var e=n(b.e[0],a,a.root);d(e)};this.init=function(a,d){b=a;h=d}};
// Input 20
xmldom.OperationalTransformInterface=function(){};xmldom.OperationalTransformInterface.prototype.retain=function(){};xmldom.OperationalTransformInterface.prototype.insertCharacters=function(){};xmldom.OperationalTransformInterface.prototype.insertElementStart=function(){};xmldom.OperationalTransformInterface.prototype.insertElementEnd=function(){};xmldom.OperationalTransformInterface.prototype.deleteCharacters=function(){};xmldom.OperationalTransformInterface.prototype.deleteElementStart=function(){};
xmldom.OperationalTransformInterface.prototype.deleteElementEnd=function(){};xmldom.OperationalTransformInterface.prototype.replaceAttributes=function(){};xmldom.OperationalTransformInterface.prototype.updateAttributes=function(){};
// Input 21
xmldom.OperationalTransformDOM=function(){this.retain=function(){};this.insertCharacters=function(){};this.insertElementStart=function(){};this.insertElementEnd=function(){};this.deleteCharacters=function(){};this.deleteElementStart=function(){};this.deleteElementEnd=function(){};this.replaceAttributes=function(){};this.updateAttributes=function(){};this.atEnd=function(){return!0}};
// Input 22
odf.StyleInfo=function(){function i(f,b){for(var a=n[f.localName],h=a&&a[f.namespaceURI],g=h?h.length:0,c,d,e,a=0;a<g;a+=1)if(c=f.getAttributeNS(h[a].ns,h[a].localname))d=h[a].keygroup,(e=b[d])||(e=b[d]={}),e[c]=1;for(a=f.firstChild;a;)a.nodeType===1&&(h=a,i(h,b)),a=a.nextSibling}var n;this.UsedKeysList=function(f){var b={};this.uses=function(a){var f=a.localName,g=a.getAttributeNS("urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","name")||a.getAttributeNS("urn:oasis:names:tc:opendocument:xmlns:style:1.0",
"name"),a=f==="style"?a.getAttributeNS("urn:oasis:names:tc:opendocument:xmlns:style:1.0","family"):a.namespaceURI==="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"?"data":f;return(a=b[a])?a[g]>0:!1};i(f,b)};this.canElementHaveStyle=function(f,b){var a=n[b.localName];return(a=a&&a[b.namespaceURI])&&a.length>0};n=function(f){var j;var b,a,h,g,c,d={},e;for(b in f)if(f.hasOwnProperty(b)){h=f[b];c=h.length;for(a=0;a<c;a+=1)g=h[a],e=d[g.en]=d[g.en]||{},j=e[g.ens]=e[g.ens]||[],e=j,e.push({ns:g.ans,
localname:g.a,keygroup:b})}return d}({text:[{ens:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",en:"tab-stop",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"leader-text-style"},{ens:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",en:"drop-cap",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"notes-configuration",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"citation-body-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",
en:"notes-configuration",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"citation-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"a",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"alphabetical-index",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"linenumbering-configuration",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",
a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"list-level-style-number",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"ruby-text",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"span",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"a",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",
a:"visited-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",en:"text-properties",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"text-line-through-text-style"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"alphabetical-index-source",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"main-entry-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"index-entry-bibliography",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},
{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"index-entry-chapter",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"index-entry-link-end",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"index-entry-link-start",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",
en:"index-entry-page-number",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"index-entry-span",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"index-entry-tab-stop",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"index-entry-text",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",
a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"index-title-template",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"list-level-style-bullet",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"outline-level-style",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"}],paragraph:[{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",
en:"caption",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"text-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"circle",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"text-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"connector",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"text-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"control",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",
a:"text-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"custom-shape",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"text-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"ellipse",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"text-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"frame",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"text-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",
en:"line",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"text-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"measure",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"text-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"path",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"text-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"polygon",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",
a:"text-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"polyline",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"text-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"rect",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"text-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"regular-polygon",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"text-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:office:1.0",
en:"annotation",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"text-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:form:1.0",en:"column",ans:"urn:oasis:names:tc:opendocument:xmlns:form:1.0",a:"text-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",en:"style",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"next-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"body",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"paragraph-style-name"},
{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"even-columns",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"paragraph-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"even-rows",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"paragraph-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"first-column",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"paragraph-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",
en:"first-row",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"paragraph-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"last-column",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"paragraph-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"last-row",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"paragraph-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"odd-columns",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",
a:"paragraph-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"odd-rows",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"paragraph-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"notes-configuration",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"default-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"alphabetical-index-entry-template",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",
en:"bibliography-entry-template",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"h",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"illustration-index-entry-template",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"index-source-style",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",
a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"object-index-entry-template",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"p",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"table-index-entry-template",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",
en:"table-of-content-entry-template",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"table-index-entry-template",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"user-index-entry-template",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",en:"page-layout-properties",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",
a:"register-truth-ref-style-name"}],chart:[{ens:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",en:"axis",ans:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",en:"chart",ans:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",en:"data-label",ans:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",
en:"data-point",ans:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",en:"equation",ans:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",en:"error-indicator",ans:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",en:"floor",ans:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",a:"style-name"},
{ens:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",en:"footer",ans:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",en:"grid",ans:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",en:"legend",ans:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",en:"mean-value",ans:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",
a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",en:"plot-area",ans:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",en:"regression-curve",ans:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",en:"series",ans:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",en:"stock-gain-marker",
ans:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",en:"stock-loss-marker",ans:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",en:"stock-range-line",ans:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",en:"subtitle",ans:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",a:"style-name"},
{ens:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",en:"title",ans:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",en:"wall",ans:"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",a:"style-name"}],section:[{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"alphabetical-index",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"bibliography",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",
a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"illustration-index",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"index-title",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"object-index",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"section",
ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"table-of-content",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"table-index",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"user-index",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"}],ruby:[{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",
en:"ruby",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"}],table:[{ens:"urn:oasis:names:tc:opendocument:xmlns:database:1.0",en:"query",ans:"urn:oasis:names:tc:opendocument:xmlns:database:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:database:1.0",en:"table-representation",ans:"urn:oasis:names:tc:opendocument:xmlns:database:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"background",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",
a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"table",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"style-name"}],"table-column":[{ens:"urn:oasis:names:tc:opendocument:xmlns:database:1.0",en:"column",ans:"urn:oasis:names:tc:opendocument:xmlns:database:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"table-column",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"style-name"}],"table-row":[{ens:"urn:oasis:names:tc:opendocument:xmlns:database:1.0",
en:"query",ans:"urn:oasis:names:tc:opendocument:xmlns:database:1.0",a:"default-row-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:database:1.0",en:"table-representation",ans:"urn:oasis:names:tc:opendocument:xmlns:database:1.0",a:"default-row-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"table-row",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"style-name"}],"table-cell":[{ens:"urn:oasis:names:tc:opendocument:xmlns:database:1.0",en:"column",ans:"urn:oasis:names:tc:opendocument:xmlns:database:1.0",
a:"default-cell-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"table-column",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"default-cell-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"table-row",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"default-cell-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"body",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",
en:"covered-table-cell",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"even-columns",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"covered-table-cell",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"even-columns",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",
a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"even-rows",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"first-column",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"first-row",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"last-column",
ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"last-row",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"odd-columns",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",en:"odd-rows",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",
en:"table-cell",ans:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",a:"style-name"}],graphic:[{ens:"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0",en:"cube",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0",en:"extrude",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0",en:"rotate",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"style-name"},
{ens:"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0",en:"scene",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0",en:"sphere",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"caption",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"circle",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",
a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"connector",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"control",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"custom-shape",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",
en:"ellipse",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"frame",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"g",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"line",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",
en:"measure",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"page-thumbnail",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"path",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"polygon",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"style-name"},
{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"polyline",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"rect",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"regular-polygon",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:office:1.0",en:"annotation",
ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"style-name"}],presentation:[{ens:"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0",en:"cube",ans:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0",en:"extrude",ans:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0",en:"rotate",ans:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",a:"style-name"},
{ens:"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0",en:"scene",ans:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0",en:"sphere",ans:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"caption",ans:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"circle",
ans:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"connector",ans:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"control",ans:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"custom-shape",ans:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",
a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"ellipse",ans:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"frame",ans:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"g",ans:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",
en:"line",ans:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"measure",ans:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"page-thumbnail",ans:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"path",ans:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",
a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"polygon",ans:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"polyline",ans:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"rect",ans:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",
en:"regular-polygon",ans:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:office:1.0",en:"annotation",ans:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",a:"style-name"}],"drawing-page":[{ens:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",en:"page",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",en:"notes",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",
a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",en:"handout-master",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",en:"master-page",ans:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",a:"style-name"}],"list-style":[{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"list",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",
en:"numbered-paragraph",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"list-item",ans:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",a:"style-override"},{ens:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",en:"style",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"list-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",en:"style",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},
{ens:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",en:"style",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"percentage-data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",en:"date-time-decl",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"creation-date",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",
en:"creation-time",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"database-display",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"date",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"editing-duration",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",
a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"expression",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"meta-field",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"modification-date",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",
en:"modification-time",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"print-date",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"print-time",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"table-formula",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",
a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"time",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"user-defined",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"user-field-get",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",
en:"user-field-input",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"variable-get",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"variable-input",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"variable-set",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",
a:"data-style-name"}],data:[{ens:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",en:"style",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",en:"style",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"percentage-data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",en:"date-time-decl",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",
en:"creation-date",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"creation-time",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"database-display",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"date",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",
a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"editing-duration",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"expression",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"meta-field",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",
en:"modification-date",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"modification-time",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"print-date",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"print-time",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",
a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"table-formula",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"time",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"user-defined",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",
en:"user-field-get",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"user-field-input",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"variable-get",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"variable-input",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",
a:"data-style-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:text:1.0",en:"variable-set",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"data-style-name"}],"page-layout":[{ens:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",en:"notes",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"page-layout-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",en:"handout-master",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"page-layout-name"},{ens:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",
en:"master-page",ans:"urn:oasis:names:tc:opendocument:xmlns:style:1.0",a:"page-layout-name"}]})};
// Input 23
odf.Style2CSS=function(){function i(a,b){var c={},d,e,f;if(!b)return c;for(d=b.firstChild;d;){d.namespaceURI===p&&d.localName==="style"?f=d.getAttributeNS(p,"family"):d.namespaceURI===o&&d.localName==="list-style"&&(f="list");if(e=f&&d.getAttributeNS&&d.getAttributeNS(p,"name"))c[f]||(c[f]={}),c[f][e]=d;d=d.nextSibling}return c}function n(a,b){if(!b||!a)return null;if(a[b])return a[b];var c,d;for(c in a)if(a.hasOwnProperty(c)&&(d=n(a[c].derivedStyles,b)))return d;return null}function f(a,b,c){var d=
b[a],e,g;if(d)if(e=d.getAttributeNS(p,"parent-style-name"),g=null,e&&(g=n(c,e),!g&&b[e]&&(f(e,b,c),g=b[e],b[e]=null)),g){if(!g.derivedStyles)g.derivedStyles={};g.derivedStyles[a]=d}else c[a]=d}function b(a,b){for(var c in a)a.hasOwnProperty(c)&&(f(c,a,b),a[c]=null)}function a(a,b){var c=u[a],d;if(c===null)return null;d="["+c+'|style-name="'+b+'"]';c==="presentation"&&(c="draw",d='[presentation|style-name="'+b+'"]');return c+"|"+q[a].join(d+","+c+"|")+d}function h(b,c,d){var e=[],f,g;e.push(a(b,c));
for(f in d.derivedStyles)if(d.derivedStyles.hasOwnProperty(f))for(g in c=h(b,f,d.derivedStyles[f]),c)c.hasOwnProperty(g)&&e.push(c[g]);return e}function g(a,b,c){if(!a)return null;for(a=a.firstChild;a;){if(a.namespaceURI===b&&a.localName===c)return b=a;a=a.nextSibling}return null}function c(a,b){var c="",d,e;for(d in b)b.hasOwnProperty(d)&&(d=b[d],(e=a.getAttributeNS(d[0],d[1]))&&(c+=d[2]+":"+e+";"));return c}function d(a,b,c,d){for(var b='text|list[text|style-name="'+b+'"]',c=c.getAttributeNS(o,
"level"),e="",c=c&&parseInt(c,10);c>1;)b+=" > text|list-item > text|list",c-=1;b+=" > list-item:before";try{a.insertRule(b+"{"+d+"}",a.cssRules.length)}catch(f){throw f;}}function e(a,b,f,j){if(b==="list")for(var i=j.firstChild,n,q;i;){if(i.namespaceURI===o)if(n=i,i.localName==="list-level-style-number"){q=n;var u=q.getAttributeNS(p,"num-format"),l=q.getAttributeNS(p,"num-suffix"),I="",I={1:"decimal",a:"lower-latin",A:"upper-latin",i:"lower-roman",I:"upper-roman"},F="",F=q.getAttributeNS(p,"num-prefix")||
"";F+=I.hasOwnProperty(u)?" counter(list, "+I[u]+")":u?"'"+u+"';":" ''";l&&(F+=" '"+l+"'");q=I="content: "+F+";";d(a,f,n,q)}else i.localName==="list-level-style-image"?(q="content: none;",d(a,f,n,q)):i.localName==="list-level-style-bullet"&&(q="content: '"+n.getAttributeNS(o,"bullet-char")+"';",d(a,f,n,q));i=i.nextSibling}else{f=h(b,f,j).join(",");n="";if(i=g(j,p,"text-properties")){q="";q+=c(i,m);u=i.getAttributeNS(p,"text-underline-style");u==="solid"&&(q+="text-decoration: underline;");if(u=i.getAttributeNS(p,
"font-name"))(u='"'+u+'"')&&(q+="font-family: "+u+";");n+=q}if(i=g(j,p,"paragraph-properties")){q=i;i="";i+=c(q,x);q=q.getElementsByTagNameNS(p,"background-image");if(q.length>0&&(u=q.item(0).getAttributeNS(k,"href")))i+="background-image: url('odfkit:"+u+"');",q=q.item(0),i+=c(q,t);n+=i}if(i=g(j,p,"graphic-properties"))q="",q+=c(i,B),n+=q;if(i=g(j,p,"table-cell-properties"))q="",q+=c(i,r),n+=q;if(n.length!==0)try{a.insertRule(f+"{"+n+"}",a.cssRules.length)}catch(R){throw R;}}for(var X in j.derivedStyles)j.derivedStyles.hasOwnProperty(X)&&
e(a,b,X,j.derivedStyles[X])}var k="http://www.w3.org/1999/xlink",p="urn:oasis:names:tc:opendocument:xmlns:style:1.0",o="urn:oasis:names:tc:opendocument:xmlns:text:1.0",j={draw:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",fo:"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0",office:"urn:oasis:names:tc:opendocument:xmlns:office:1.0",presentation:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",style:p,svg:"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0",table:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",
text:o,xlink:k},u={graphic:"draw",paragraph:"text",presentation:"presentation",ruby:"text",section:"text",table:"table","table-cell":"table","table-column":"table","table-row":"table",text:"text",list:"text"},q={graphic:"circle,connected,control,custom-shape,ellipse,frame,g,line,measure,page,page-thumbnail,path,polygon,polyline,rect,regular-polygon".split(","),paragraph:"alphabetical-index-entry-template,h,illustration-index-entry-template,index-source-style,object-index-entry-template,p,table-index-entry-template,table-of-content-entry-template,user-index-entry-template".split(","),
presentation:"caption,circle,connector,control,custom-shape,ellipse,frame,g,line,measure,page-thumbnail,path,polygon,polyline,rect,regular-polygon".split(","),ruby:["ruby","ruby-text"],section:"alphabetical-index,bibliography,illustration-index,index-title,object-index,section,table-of-content,table-index,user-index".split(","),table:["background","table"],"table-cell":"body,covered-table-cell,even-columns,even-rows,first-column,first-row,last-column,last-row,odd-columns,odd-rows,table-cell".split(","),
"table-column":["table-column"],"table-row":["table-row"],text:"a,index-entry-chapter,index-entry-link-end,index-entry-link-start,index-entry-page-number,index-entry-span,index-entry-tab-stop,index-entry-text,index-title-template,linenumbering-configuration,list-level-style-number,list-level-style-bullet,outline-level-style,span".split(","),list:["list-item"]},m=[["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","color","color"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0",
"background-color","background-color"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","font-weight","font-weight"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","font-style","font-style"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","font-size","font-size"]],t=[[p,"repeat","background-repeat"]],x=[["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","background-color","background-color"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0",
"text-align","text-align"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","padding-left","padding-left"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","padding-right","padding-right"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","padding-top","padding-top"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","padding-bottom","padding-bottom"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","border-left","border-left"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0",
"border-right","border-right"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","border-top","border-top"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","border-bottom","border-bottom"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","margin-left","margin-left"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","margin-right","margin-right"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","margin-top","margin-top"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0",
"margin-bottom","margin-bottom"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","border","border"]],B=[["urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","fill-color","background-color"],["urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","fill","background"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","min-height","min-height"],["urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","stroke","border"],["urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0",
"stroke-color","border-color"]],r=[["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","background-color","background-color"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","border-left","border-left"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","border-right","border-right"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","border-top","border-top"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","border-bottom","border-bottom"]];
this.namespaces=j;this.namespaceResolver=function(a){return j[a]};this.style2css=function(a,c,d){for(var f,g,h,m,k;a.cssRules.length;)a.deleteRule(a.cssRules.length-1);f=null;if(c)f=c.ownerDocument;if(d)f=d.ownerDocument;if(f){for(g in j)if(j.hasOwnProperty(g)){m="@namespace "+g+" url("+j[g]+")";try{a.insertRule(m,a.cssRules.length)}catch(l){}}c=i(f,c);f=i(f,d);for(k in u)if(u.hasOwnProperty(k))for(h in d={},b(c[k],d),b(f[k],d),d)d.hasOwnProperty(h)&&e(a,k,h,d[h])}}};
// Input 24
runtime.loadClass("core.Base64");runtime.loadClass("core.Zip");runtime.loadClass("xmldom.LSSerializer");runtime.loadClass("odf.StyleInfo");runtime.loadClass("odf.Style2CSS");
odf.OdfContainer=function(){function i(a,b,c){for(a=a?a.firstChild:null;a;){if(a.localName===c&&a.namespaceURI===b)return a;a=a.nextSibling}return null}function n(a){var b,c=k.length;for(b=0;b<c;b+=1)if(a.namespaceURI===e&&a.localName===k[b])return b;return-1}function f(a,b){var d=a.automaticStyles,e;b&&(e=new c.UsedKeysList(b));this.acceptNode=function(a){if(a.namespaceURI==="http://www.w3.org/1999/xhtml")return 3;else if(e&&a.parentNode===d&&a.nodeType===1)return e.uses(a)?1:2;return 1}}function b(a,
b){if(b){var c=n(b),d,e=a.firstChild;if(c!==-1){for(;e;){d=n(e);if(d!==-1&&d>c)break;e=e.nextSibling}a.insertBefore(b,e)}}}function a(a){this.OdfContainer=a}function h(a,b,c){var d=this,e;this.size=0;this.type=null;this.name=a;this.container=b;this.onchange=this.onreadystatechange=this.document=this.url=null;this.EMPTY=0;this.LOADING=1;this.DONE=2;this.state=this.EMPTY;this.load=function(){c.load(a,function(a,b){e=b;d.url=null;if(e){var c=0;for(d.url=e[1]===80&&e[2]===78&&e[3]===71?"data:image/png;base64,":
"data:;base64,";c<e.length;)d.url+=p.convertUTF8ArrayToBase64(e.slice(c,Math.min(c+45E3,e.length))),c+=45E3}if(d.onchange)d.onchange(d);if(d.onstatereadychange)d.onstatereadychange(d)})};this.abort=function(){}}function g(){this.length=0;this.item=function(){}}var c=new odf.StyleInfo,d=new odf.Style2CSS,e="urn:oasis:names:tc:opendocument:xmlns:office:1.0",k="meta,settings,scripts,font-face-decls,styles,automatic-styles,master-styles,body".split(","),p=new core.Base64;a.prototype=new function(){};
a.prototype.constructor=a;a.namespaceURI=e;a.localName="document";h.prototype.load=function(){};h.prototype.getUrl=function(){return this.data?"data:;base64,"+p.toBase64(this.data):null};odf.OdfContainer=function j(c,k){function m(a){for(var b=a.firstChild,c;b;)c=b.nextSibling,b.nodeType===1?m(b):b.nodeType===7&&a.removeChild(b),b=c}function n(a){var b=l.rootElement.ownerDocument,c;m(a.documentElement);try{c=b.importNode(a.documentElement,!0)}catch(d){}return c}function p(a){l.state=a;if(l.onchange)l.onchange(l);
if(l.onstatereadychange)l.onstatereadychange(l)}function B(a){var a=n(a),c=l.rootElement;!a||a.localName!=="document-styles"||a.namespaceURI!==e?p(j.INVALID):(c.fontFaceDecls=i(a,e,"font-face-decls"),b(c,c.fontFaceDecls),c.styles=i(a,e,"styles"),b(c,c.styles),c.automaticStyles=i(a,e,"automatic-styles"),b(c,c.automaticStyles),c.masterStyles=i(a,e,"master-styles"),b(c,c.masterStyles))}function r(a){var a=n(a),c,d,f;if(!a||a.localName!=="document-content"||a.namespaceURI!==e)p(j.INVALID);else{c=l.rootElement;
d=i(a,e,"font-face-decls");if(c.fontFaceDecls&&d)for(f=d.firstChild;f;)c.fontFaceDecls.appendChild(f),f=d.firstChild;else if(d)c.fontFaceDecls=d,b(c,d);d=i(a,e,"automatic-styles");if(c.automaticStyles&&d)for(f=d.firstChild;f;)c.automaticStyles.appendChild(f),f=d.firstChild;else if(d)c.automaticStyles=d,b(c,d);c.body=i(a,e,"body");b(c,c.body)}}function C(a){var a=n(a),c;if(a&&!(a.localName!=="document-meta"||a.namespaceURI!==e))c=l.rootElement,c.meta=i(a,e,"meta"),b(c,c.meta)}function A(a,b){I.load(a,
function(a,c){if(a)b(a,null);else{var d=runtime.byteArrayToString(c,"utf8"),d=(new DOMParser).parseFromString(d,"text/xml");b(null,d)}})}function E(){A("styles.xml",function(a,c){B(c);l.state!==j.INVALID&&A("content.xml",function(a,c){r(c);l.state!==j.INVALID&&A("meta.xml",function(a,c){C(c);l.state!==j.INVALID&&A("settings.xml",function(a,c){if(c){var d=n(c),f;if(d&&!(d.localName!=="document-settings"||d.namespaceURI!==e))f=l.rootElement,f.settings=i(d,e,"settings"),b(f,f.settings)}l.state!==j.INVALID&&
p(j.DONE)})})})})}function w(a,b){var c="",d;for(d in b)b.hasOwnProperty(d)&&(c+=" xmlns:"+d+'="'+b[d]+'"');return'<?xml version="1.0" encoding="UTF-8"?><office:'+a+" "+c+' office:version="1.2">'}function J(){var a=d.namespaces,b=new xmldom.LSSerializer,c=w("document-meta",a);b.filter=new f(l.rootElement);c+=b.writeToString(l.rootElement.meta,a);c+="</office:document-meta>";return c}function s(){var a=d.namespaces,b=new xmldom.LSSerializer,c=w("document-settings",a);b.filter=new f(l.rootElement);
c+=b.writeToString(l.rootElement.settings,a);c+="</office:document-settings>";return c}function y(){var a=d.namespaces,b=new xmldom.LSSerializer,c=w("document-styles",a);b.filter=new f(l.rootElement,l.rootElement.masterStyles);c+=b.writeToString(l.rootElement.fontFaceDecls,a);c+=b.writeToString(l.rootElement.styles,a);c+=b.writeToString(l.rootElement.automaticStyles,a);c+=b.writeToString(l.rootElement.masterStyles,a);c+="</office:document-styles>";return c}function v(){var a=d.namespaces,b=new xmldom.LSSerializer,
c=w("document-content",a);b.filter=new f(l.rootElement,l.rootElement.body);c+=b.writeToString(l.rootElement.automaticStyles,a);c+=b.writeToString(l.rootElement.body,a);c+="</office:document-content>";return c}var l=this,I=null;this.onstatereadychange=k;this.parts=this.rootElement=this.state=this.onchange=null;this.getPart=function(a){return new h(a,l,I)};this.save=function(a){var b;b=runtime.byteArrayFromString(s(),"utf8");I.save("settings.xml",b,!0,new Date);b=runtime.byteArrayFromString(J(),"utf8");
I.save("meta.xml",b,!0,new Date);b=runtime.byteArrayFromString(y(),"utf8");I.save("styles.xml",b,!0,new Date);b=runtime.byteArrayFromString(v(),"utf8");I.save("content.xml",b,!0,new Date);I.write(function(b){a(b)})};this.state=j.LOADING;this.rootElement=function(a){var b=document.createElementNS(a.namespaceURI,a.localName),c,a=new a;for(c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b}(a);this.parts=new g(this);I=new core.Zip(c,function(a,b){I=b;a?(I.error=a,p(j.INVALID)):E()})};odf.OdfContainer.EMPTY=
0;odf.OdfContainer.LOADING=1;odf.OdfContainer.DONE=2;odf.OdfContainer.INVALID=3;odf.OdfContainer.SAVING=4;odf.OdfContainer.MODIFIED=5;odf.OdfContainer.getContainer=function(a){return new odf.OdfContainer(a,null)};return odf.OdfContainer}();
// Input 25
odf.Formatting=function(){function i(f){function b(a,b){for(var c=a&&a.firstChild;c&&b;)c=c.nextSibling,b-=1;return c}var a=b(f.startContainer,f.startOffset);b(f.endContainer,f.endOffset);this.next=function(){return a===null?a:null}}var n=new odf.StyleInfo;this.setOdfContainer=function(){};this.isCompletelyBold=function(){return!1};this.getAlignment=function(f){this.getParagraphStyles(f)};this.getParagraphStyles=function(f){var b,a,h,g=[];for(b=0;b<f.length;b+=0){a=void 0;h=[];for(a=(new i(f[b])).next();a;)n.canElementHaveStyle("paragraph",
a)&&h.push(a);for(a=0;a<h.length;a+=1)g.indexOf(h[a])===-1&&g.push(h[a])}return g};this.getTextStyles=function(){return[]}};
// Input 26
runtime.loadClass("odf.OdfContainer");runtime.loadClass("odf.Formatting");
odf.OdfCanvas=function(){function i(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent?a.attachEvent("on"+b,c):a["on"+b]=c}function n(a){function b(a,c){for(;c;){if(c===a)return!0;c=c.parentNode}return!1}function c(){var f=[],g=runtime.getWindow().getSelection(),h,i;for(h=0;h<g.rangeCount;h+=1)i=g.getRangeAt(h),i!==null&&b(a,i.startContainer)&&b(a,i.endContainer)&&f.push(i);if(f.length===d.length){for(g=0;g<f.length;g+=1)if(h=f[g],i=d[g],h=h===i?!1:h===null||i===null?!0:h.startContainer!==
i.startContainer||h.startOffset!==i.startOffset||h.endContainer!==i.endContainer||h.endOffset!==i.endOffset,h)break;if(g===f.length)return}d=f;var g=Array(f.length),k,n=a.ownerDocument;for(h=0;h<f.length;h+=1)i=f[h],k=n.createRange(),k.setStart(i.startContainer,i.startOffset),k.setEnd(i.endContainer,i.endOffset),g[h]=k;d=g;g=e.length;for(f=0;f<g;f+=1)e[f](a,d)}var d=[],e=[];this.addListener=function(a,b){var c,d=e.length;for(c=0;c<d;c+=1)if(e[c]===b)return;e.push(b)};i(a,"mouseup",c);i(a,"keyup",
c);i(a,"keydown",c)}function f(a,b,c,d){function f(b){b='draw|image[styleid="'+a+'"] {'+("background-image: url("+b+");")+"}";d.insertRule(b,d.cssRules.length)}c.setAttribute("styleid",a);var c=c.getAttributeNS(e,"href"),g;try{b.getPartUrl?(c=b.getPartUrl(c),f(c)):(g=b.getPart(c),g.onchange=function(a){f(a.url)},g.load())}catch(h){runtime.log("slight problem: "+h)}}function b(b){var c=b.getElementsByTagName("style"),d=b.getElementsByTagName("head")[0],e="",f,c=c&&c.length>0?c[0].cloneNode(!1):b.createElement("style");
for(f in a)a.hasOwnProperty(f)&&f&&(e+="@namespace "+f+" url("+a[f]+");\n");c.appendChild(b.createTextNode(e));d.appendChild(c);return c}var a=(new odf.Style2CSS).namespaces,h=a.draw,g=a.fo,c=a.svg,d=a.text,e=a.xlink,k=runtime.getWindow(),p={},o;odf.OdfCanvas=function(a){function e(b){function i(){for(var e=a;e.firstChild;)e.removeChild(e.firstChild);a.style.display="inline-block";e=b.rootElement;a.ownerDocument.importNode(e,!0);x.setOdfContainer(b);var k=r;(new odf.Style2CSS).style2css(k.sheet,e.styles,
e.automaticStyles);var k=C.sheet,m=b,n=e.body,l,o,q;o=[];for(l=n.firstChild;l&&l!==n;)if(l.namespaceURI===h&&(o[o.length]=l),l.firstChild)l=l.firstChild;else{for(;l!==n&&!l.nextSibling;)l=l.parentNode;if(l.nextSibling)l=l.nextSibling}for(q=0;q<o.length;q+=1){l=o[q];var u="frame"+q,w=k;l.setAttribute("styleid",u);var t=void 0,A=l.getAttributeNS(d,"anchor-type"),B=l.getAttributeNS(c,"x"),L=l.getAttributeNS(c,"y"),H=l.getAttributeNS(c,"width"),D=l.getAttributeNS(c,"height"),z=l.getAttributeNS(g,"min-height"),
N=l.getAttributeNS(g,"min-width");if(A==="as-char")t="display: inline-block;";else if(A||B||L)t="position: absolute;";else if(H||D||z||N)t="display: block;";B&&(t+="left: "+B+";");L&&(t+="top: "+L+";");H&&(t+="width: "+H+";");D&&(t+="height: "+D+";");z&&(t+="min-height: "+z+";");N&&(t+="min-width: "+N+";");t&&(t="draw|"+l.localName+'[styleid="'+u+'"] {'+t+"}",w.insertRule(t,w.cssRules.length))}n=n.getElementsByTagNameNS(h,"image");for(q=0;q<n.length;q+=1)l=n.item(q),f("image"+q,m,l,k);k.insertRule("office|presentation draw|page:nth-child(1n) { display:block; }",
k.cssRules.length);for(k=a;k.firstChild;)k.removeChild(k.firstChild);a.appendChild(e);if(p.hasOwnProperty("statereadychange")){e=p.statereadychange;for(k=0;k<e.length;k+=1)e[k](void 0)}}if(t===b)t.state===odf.OdfContainer.DONE?i():t.onchange=i}function q(){if(o){for(var a=o.ownerDocument.createDocumentFragment();o.firstChild;)a.insertBefore(o.firstChild,null);o.parentNode.replaceChild(a,o)}}var m=a.ownerDocument,t,x=new odf.Formatting,B=new n(a),r=b(m),C=b(m),A=!1;this.odfContainer=function(){return t};
this.load=this.load=function(b){a.innerHTML="loading "+b;t=new odf.OdfContainer(b,function(a){t=a;e(a)});t.onstatereadychange=e};this.save=function(a){q();t.save(a)};this.setEditable=function(){A=!0};this.setReadable=function(){A=!1};this.addListener=function(a,b){if(a==="selectionchange")B.addListener(a,b);else{var c=p[a];c===void 0&&(c=p[a]=[]);c.push(b)}};this.getFormatting=function(){return x};i(a,"click",function(a){for(var a=a||k.event,b=a.target,c=k.getSelection(),e=c.getRangeAt(0),f=e&&e.startContainer,
g=e&&e.startOffset,h=e&&e.endContainer,i=e&&e.endOffset;b&&!((b.localName==="p"||b.localName==="h")&&b.namespaceURI===d);)b=b.parentNode;if(A&&b&&b.parentNode!==o)o?o.parentNode&&q():(o=b.ownerDocument.createElement("p"),o.setAttribute("contenteditable",!0),o.style.margin="0px",o.style.padding="0px",o.style.border="0px"),b.parentNode.replaceChild(o,b),o.appendChild(b),o.focus(),e&&(c.removeAllRanges(),e=b.ownerDocument.createRange(),e.setStart(f,g),e.setEnd(h,i),c.addRange(e)),a.preventDefault?(a.preventDefault(),
a.stopPropagation()):(a.returnValue=!1,a.cancelBubble=!0)})};return odf.OdfCanvas}();
