PageSourceSearch

https://www.universalviewer.dev/umd/740.b177d43b56a8ea226ed2.js

js universalviewer.dev collected 2026-10-07 14:02:38 UTC 194,302 bytes, 2 lines download raw bytes

1/*! For license information please see 740.b177d43b56a8ea226ed2.js.LICENSE.txt */
2(self.webpackChunkUV=self.webpackChunkUV||[]).push([[740
vendor: 38,575 bytes, line 2
2],{2325(e){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONTINUE=100,t.SWITCHING_PROTOCOLS=101,t.PROCESSING=102,t.OK=200,t.CREATED=201,t.ACCEPTED=202,t.NON_AUTHORITATIVE_INFORMATION=203,t.NO_CONTENT=204,t.RESET_CONTENT=205,t.PARTIAL_CONTENT=206,t.MULTI_STATUS=207,t.MULTIPLE_CHOICES=300,t.MOVED_PERMANENTLY=301,t.MOVED_TEMPORARILY=302,t.SEE_OTHER=303,t.NOT_MODIFIED=304,t.USE_PROXY=305,t.TEMPORARY_REDIRECT=307,t.BAD_REQUEST=400,t.UNAUTHORIZED=401,t.PAYMENT_REQUIRED=402,t.FORBIDDEN=403,t.NOT_FOUND=404,t.METHOD_NOT_ALLOWED=405,t.NOT_ACCEPTABLE=406,t.PROXY_AUTHENTICATION_REQUIRED=407,t.REQUEST_TIME_OUT=408,t.CONFLICT=409,t.GONE=410,t.LENGTH_REQUIRED=411,t.PRECONDITION_FAILED=412,t.REQUEST_ENTITY_TOO_LARGE=413,t.REQUEST_URI_TOO_LARGE=414,t.UNSUPPORTED_MEDIA_TYPE=415,t.REQUESTED_RANGE_NOT_SATISFIABLE=416,t.EXPECTATION_FAILED=417,t.IM_A_TEAPOT=418,t.UNPROCESSABLE_ENTITY=422,t.LOCKED=423,t.FAILED_DEPENDENCY=424,t.UNORDERED_COLLECTION=425,t.UPGRADE_REQUIRED=426,t.PRECONDITION_REQUIRED=428,t.TOO_MANY_REQUESTS=429,t.REQUEST_HEADER_FIELDS_TOO_LARGE=431,t.INTERNAL_SERVER_ERROR=500,t.NOT_IMPLEMENTED=501,t.BAD_GATEWAY=502,t.SERVICE_UNAVAILABLE=503,t.GATEWAY_TIME_OUT=504,t.HTTP_VERSION_NOT_SUPPORTED=505,t.VARIANT_ALSO_NEGOTIATES=506,t.INSUFFICIENT_STORAGE=507,t.BANDWIDTH_LIMIT_EXCEEDED=509,t.NOT_EXTENDED=510,t.NETWORK_AUTHENTICATION_REQUIRED=511}])},1539(e,t,n){"use strict";n.d(t,{JT:()=>a,Yw:()=>v,BG:()=>r,k9:()=>_,eY:()=>y});var r,i=function(e){this.isVisible=!0;var t=e.target.match(/.*[^n]xyz=(-?\d+(?:\.\d+)?),(-?\d+(?:\.\d+)?),(-?\d+(?:\.\d+)?)/),n=e.target.match(/.*nxyz=(-?\d+(?:\.\d+)?),(-?\d+(?:\.\d+)?),(-?\d+(?:\.\d+)?)/);this.bodyValue=e.bodyValue,this.x=Number(t[1]),this.y=Number(t[2]),this.z=Number(t[3]),this.nx=Number(n[1]),this.ny=Number(n[2]),this.nz=Number(n[3])},o=function(e){var t;this.isVisible=!0,e.on?(t=e.on.match(/.*xywh=(\d*),(\d*),(\d*),(\d*)/),this.chars=e.resource.chars):(t=e.target.match(/.*xywh=(\d*),(\d*),(\d*),(\d*)/),this.chars=e.bodyValue),this.x=Number(t[1]),this.y=Number(t[2]),this.width=Number(t[3]),this.height=Number(t[4])},a=function(){function e(e){this.rects=[],this.points3D=[],this.canvasId=e}return e.prototype.addRect=function(e){var t=new o(e);t.canvasId=this.canvasId,t.canvasIndex=this.canvasIndex,t.index=this.rects.length,this.rects.push(t),this.rects.sort((function(e,t){return e.index-t.index}))},e.prototype.addPoint3D=function(e){var t=new i(e);t.canvasId=this.canvasId,t.canvasIndex=this.canvasIndex,t.index=this.points3D.length,this.points3D.push(t),this.points3D.sort((function(e,t){return e.index-t.index}))},e}(),s=n(6346),l=function(){function e(){this.isEnabled=!1,this.ranges=[],this.canvases=[]}return e.prototype.allCanvasesSelected=function(){return this.canvases.length>0&&this.getAllSelectedCanvases().length===this.canvases.length},e.prototype.allRangesSelected=function(){return this.ranges.length>0&&this.getAllSelectedRanges().length===this.ranges.length},e.prototype.allSelected=function(){return this.allRangesSelected()&&this.allCanvasesSelected()},e.prototype.getAll=function(){return this.canvases.concat(this.ranges)},e.prototype.getAllSelectedCanvases=function(){return this.canvases.filter((function(e){return e.multiSelected}))},e.prototype.getAllSelectedRanges=function(){return this.ranges.filter((function(e){return e.multiSelected}))},e.prototype.getCanvasById=function(e){return this.canvases.filter((function(t){return s.Utils.normaliseUrl(t.id)===s.Utils.normaliseUrl(e)}))[0]},e.prototype.getCanvasesByIds=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(this.getCanvasById(r))}return t},e.prototype.getRangeCanvases=function(e){var t=e.getCanvasIds();return this.getCanvasesByIds(t)},e.prototype.selectAll=function(e){this.selectRanges(this.ranges,e),this.selectCanvases(this.canvases,e)},e.prototype.selectCanvas=function(e,t){this.canvases.filter((function(t){return t.id===e.id}))[0].multiSelected=t},e.prototype.selectAllCanvases=function(e){this.selectCanvases(this.canvases,e)},e.prototype.selectCanvases=function(e,t){for(var n=0;n<e.length;n++)e[n].multiSelected=t},e.prototype.selectRange=function(e,t){var n=this.ranges.filter((function(t){return t.id===e.id}))[0];n.multiSelected=t;var r=this.getRangeCanvases(n);this.selectCanvases(r,t)},e.prototype.selectAllRanges=function(e){this.selectRanges(this.ranges,e)},e.prototype.selectRanges=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];r.multiSelected=t;var i=this.getCanvasesByIds(r.getCanvasIds());this.selectCanvases(i,t)}},e.prototype.setEnabled=function(e){this.isEnabled=e;for(var t=this.getAll(),n=0;n<t.length;n++){var r=t[n];r.multiSelectEnabled=this.isEnabled,e||(r.multiSelected=!1)}},e}(),c=function(){function e(e,t){this.items=[],this.resource=e,this.label=t}return e.prototype.addItem=function(e){this.items.push(e)},e.prototype.addMetadata=function(e,t){void 0===t&&(t=!1);for(var n=0;n<e.length;n++){var r=e[n];r.isRootLevel=t,this.addItem(r)}},e}();!function(e){e.DATE="date",e.NONE="none"}(r||(r={}));var u=n(3957),p=function(){function e(){}return e.manifestNotLoaded="Manifest has not loaded yet",e}(),f=function(){return f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},f.apply(this,arguments)},d=function(){function e(e){if(this.options=e,this.iiifResource=this.options.iiifResource,this.manifestUri=this.options.manifestUri,this.manifest=this.options.manifest,this.collectionIndex=this.options.collectionIndex||0,this.manifestIndex=this.options.manifestIndex||0,this.sequenceIndex=this.options.sequenceIndex||0,this.canvasIndex=this.options.canvasIndex||0,this.choiceIndex=this.options.choiceIndex||0,this.options.canvasId){var t=this.getCanvasIndexById(this.options.canvasId);null!==t&&(this.canvasIndex=t)}}return e.prototype.getAutoCompleteService=function(){var e=this.getSearchService(),t=null;return e&&((t=e.getService(u.bB.SEARCH_0_AUTO_COMPLETE))||(t=e.getService(u.bB.SEARCH_1_AUTO_COMPLETE)),t||(t=e.getService(u.bB.SEARCH_2_AUTO_COMPLETE))),t},e.prototype.getAttribution=function(){if(!this.manifest)throw new Error(p.manifestNotLoaded);var e=this.manifest.getAttribution();return e?e.getValue(this.options.locale):null},e.prototype.getCanvases=function(){return this.getCurrentSequence().getCanvases()},e.prototype.getCanvasById=function(e){return this.getCurrentSequence().getCanvasById(e)},e.prototype.getCanvasesById=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],i=this.getCanvasById(r);i&&t.push(i)}return t},e.prototype.getCanvasByIndex=function(e){return this.getCurrentSequence().getCanvasByIndex(e)},e.prototype.getCanvasIndexById=function(e){return this.getCurrentSequence().getCanvasIndexById(e)},e.prototype.getCanvasIndexByLabel=function(e){var t=this.getManifestType()===s.ManifestType.MANUSCRIPT;return this.getCurrentSequence().getCanvasIndexByLabel(e,t)},e.prototype.getCanvasRange=function(e,t){var n=this.getCanvasRanges(e);if(t){for(var r=0;r<n.length;r++){var i=n[r];if(i.path===t)return i}return null}return n[0]},e.prototype.getCanvasRanges=function(e){if(!this.manifest)throw new Error(p.manifestNotLoaded);return e.ranges||(e.ranges=this.manifest.getAllRanges().filter((function(t){return t.getCanvasIds().some((function(t){return s.Utils.normaliseUrl(t)===s.Utils.normaliseUrl(e.id)}))}))),e.ranges},e.prototype.getCollectionIndex=function(e){if(!e.parentCollection||e.parentCollection.parentCollection)return e.parentCollection?e.parentCollection.index:void 0},e.prototype.getCurrentCanvas=function(){return this.getCurrentSequence().getCanvasByIndex(this.canvasIndex)},e.prototype.getCurrentSequence=function(){return this.getSequenceByIndex(this.sequenceIndex)},e.prototype.getDescription=function(){if(!this.manifest)throw new Error(p.manifestNotLoaded);var e=this.manifest.getDescription();return e?e.getValue(this.options.locale):null},e.prototype.getSummary=function(){if(!this.manifest)throw new Error(p.manifestNotLoaded);var e=this.manifest.getSummary();return e?e.getValue(this.options.locale):null},e.prototype.getLabel=function(){if(!this.manifest)throw new Error(p.manifestNotLoaded);var e=this.manifest.getLabel();return e?e.getValue(this.options.locale):null},e.prototype.getLastCanvasLabel=function(e){return this.getCurrentSequence().getLastCanvasLabel(e)},e.prototype.getFirstPageIndex=function(){return 0},e.prototype.getLastPageIndex=function(){return this.getTotalCanvases()-1},e.prototype.getLicense=function(){if(!this.manifest)throw new Error(p.manifestNotLoaded);return this.manifest.getLicense()},e.prototype.getRights=function(){if(!this.manifest)throw new Error(p.manifestNotLoaded);return this.manifest.getRights()},e.prototype.getLogo=function(){if(!this.manifest)throw new Error(p.manifestNotLoaded);return this.manifest.getLogo()},e.prototype.getManifestType=function(){if(!this.manifest)throw new Error(p.manifestNotLoaded);var e=this.manifest.getManifestType();return e===s.ManifestType.EMPTY&&(e=s.ManifestType.MONOGRAPH),e},e.prototype.getMetadata=function(e){if(!this.manifest)throw new Error(p.manifestNotLoaded);var t=[],n=this.manifest.getMetadata(),r=new c(this.manifest),i=this.options.locale;n&&n.length&&r.addMetadata(n,!0);var o=String(this.manifest.getSummary().getValue(i)||"").trim();if(o.length>0){for(var a=!1,l="",u=0;u<n.length;u++){var f=n[u];if((l=String(f.getValue(i)||"").trim()).length>0&&o===l){a=!0;break}}if(!a){var d="en"!==(i||"").split("-")[0]?"description":"Summary";(v=new s.LabelValuePair(i)).label=new s.PropertyValue([new s.LocalizedValue(d,i)]),v.value=this.manifest.getSummary(),v.isRootLevel=!0,r.addItem(v)}}this.manifest.getAttribution().length&&((v=new s.LabelValuePair(i)).label=new s.PropertyValue([new s.LocalizedValue("attribution",i)]),v.value=this.manifest.getAttribution(),v.isRootLevel=!0,r.addItem(v));var h=this.manifest.getRequiredStatement();h&&(f=this.parseStatement(h),(v=new s.LabelValuePair(i)).parse(f),v.isRootLevel=!0,r.addItem(v));var g=this.manifest.getLicense();g&&(f={label:"license",value:e&&e.licenseFormatter?e.licenseFormatter.format(g):g},(v=new s.LabelValuePair(i)).parse(f),v.isRootLevel=!0,r.addItem(v));var v,_=this.manifest.getRights();(_&&(f={label:"rights",value:e&&e.licenseFormatter?e.licenseFormatter.format(_):_},(v=new s.LabelValuePair(i)).parse(f),v.isRootLevel=!0,r.addItem(v)),this.manifest.getLogo())&&(f={label:"logo",value:'<img alt="logo" src="'+this.manifest.getLogo()+'"/>'},(v=new s.LabelValuePair(i)).parse(f),v.isRootLevel=!0,r.addItem(v));return t.push(r),e?this._parseMetadataOptions(e,t):t},e.prototype.getAllRequiredStatements=function(){var e=[],t=this.getCurrentRange();if(t){var n=t.getRequiredStatement?t.getRequiredStatement():null;n&&e.push(f(f({},this.parseStatement(n)),{source:"Range"}))}var r=this.getCurrentCanvas();if(r){var i=r.getRequiredStatement?r.getRequiredStatement():null;i&&e.push(f(f({},this.parseStatement(i)),{source:"Canvas"}))}if(this.manifest){var o=this.manifest.getRequiredStatement();o&&o&&e.push(f(f({},this.parseStatement(o)),{source:"Manifest"}))}return e},e.prototype.getMostSpecificRequiredStatement=function(){var e=this.getAllRequiredStatements(),t=e.find((function(e){return"Range"===e.source}));if(t)return t;var n=e.find((function(e){return"Canvas"===e.source}));return n||(e.find((function(e){return"Manifest"===e.source}))||null)},e.prototype.getRequiredStatement=function(){if(!this.manifest)throw new Error(p.manifestNotLoaded);var e=this.manifest.getRequiredStatement();return e?this.parseStatement(e):null},e.prototype.parseStatement=function(e){return{label:e.label?e.getLabel():"",value:e.value&&e.value.length?e.getValue():""}},e.prototype._parseMetadataOptions=function(e,t){var n=this.getCurrentSequence(),r=n.getMetadata();if(r&&r.length){var i=new c(n);i.addMetadata(r),t.push(i)}if(e.range){var o=this._getRangeMetadata([],e.range);o=o.reverse(),t=t.concat(o)}if(e.canvases&&e.canvases.length)for(var a=0;a<e.canvases.length;a++){var s=e.canvases[a],l=s.getMetadata();if(l&&l.length){var u=new c(s);u.addMetadata(s.getMetadata()),t.push(u)}for(var p=s.getImages(),f=0;f<p.length;f++){var d=p[f],h=d.getMetadata();if(h&&h.length){var g=new c(d);g.addMetadata(h),t.push(g)}}}return t},e.prototype._getRangeMetadata=function(e,t){var n=t.getMetadata();if(n&&n.length){var r=new c(t);r.addMetadata(n),e.push(r)}else if(t.parentRange)return this._getRangeMetadata(e,t.parentRange);return e},e.prototype.getMultiSelectState=function(){return this._multiSelectState||(this._multiSelectState=new l,this._multiSelectState.ranges=this.getRanges().slice(0),this._multiSelectState.canvases=this.getCurrentSequence().getCanvases().slice(0)),this._multiSelectState},e.prototype.getCurrentRange=function(){return this.rangeId?this.getRangeById(this.rangeId):null},e.prototype.getPosterCanvas=function(){if(!this.manifest)throw new Error(p.manifestNotLoaded);return this.manifest.getPosterCanvas()},e.prototype.getAccompanyingCanvas=function(){if(!this.manifest)throw new Error(p.manifestNotLoaded);return this.manifest.getAccompanyingCanvas()},e.prototype.getPosterImage=function(){var e=this.getPosterCanvas();if(e){var t=e.getContent();if(t&&t.length)return t[0].getBody()[0].id}return null},e.prototype.getAccompanyingCanvasImage=function(){var e=this.getAccompanyingCanvas();if(e){var t=e.getContent();if(t&&t.length)return t[0].getBody()[0].id}return null},e.prototype.getPreviousRange=function(e){var t;if(t=e||this.getCurrentRange()){var n=this.getFlattenedTree();if(n)for(var r=0;r<n.length;r++){var i=n[r];if(i&&i.data.id===t.id){for(;r>0;)return n[--r].data;break}}}return null},e.prototype.getNextRange=function(e){var t;if(t=e||this.getCurrentRange()){var n=this.getFlattenedTree();if(n)for(var r=0;r<n.length;r++){var i=n[r];if(i&&i.data.id===t.id){for(;r<n.length-1;){var o=n[++r];if(o.data.canvases&&o.data.canvases.length)return o.data}break}}}return null},e.prototype.getFlattenedTree=function(e){var t;return(t=e||this.getTree())?this._flattenTree(t,"nodes"):null},e.prototype._flattenTree=function(e,t){var n=this,r=[e];return e[t]&&e[t].length>0?r.concat(e[t].map((function(e){return n._flattenTree(e,t)})).reduce((function(e,t){return e.concat(t)}),[])):r},e.prototype.getRanges=function(){return this.manifest.getAllRanges()},e.prototype.getRangeByPath=function(e){if(!this.manifest)throw new Error(p.manifestNotLoaded);return this.manifest.getRangeByPath(e)},e.prototype.getRangeById=function(e){if(!this.manifest)throw new Error(p.manifestNotLoaded);return this.manifest.getRangeById(e)},e.prototype.getRangeCanvases=function(e){var t=e.getCanvasIds();return this.getCanvasesById(t)},e.prototype.getRelated=function(){if(!this.manifest)throw new Error(p.manifestNotLoaded);return this.manifest.getRelated()},e.prototype.getSearchService=function(){if(!this.manifest)throw new Error(p.manifestNotLoaded);var e=this.manifest.getService(u.bB.SEARCH_0);return e||(e=this.manifest.getService(u.bB.SEARCH_1)),e||(e=this.manifest.getService(u.bB.SEARCH_2)),e},e.prototype.getSeeAlso=function(){if(!this.manifest)throw new Error(p.manifestNotLoaded);return this.manifest.getSeeAlso()},e.prototype.getSequenceByIndex=function(e){if(!this.manifest)throw new Error(p.manifestNotLoaded);return this.manifest.getSequenceByIndex(e)},e.prototype.getShareServiceUrl=function(){if(!this.manifest)throw new Error(p.manifestNotLoaded);var e=null,t=this.manifest.getService(u.bB.SHARE_EXTENSIONS);return t&&(t.length&&(t=t[0]),e=t.__jsonld.shareUrl),e},e.prototype._getSortedTreeNodesByDate=function(e,t){var n=this.getFlattenedTree(t);if(n){var r=n.filter((function(e){return e.data.type===s.TreeNodeType.MANIFEST}));this.createDecadeNodes(e,n),this.sortDecadeNodes(e),this.createYearNodes(e,n),this.sortYearNodes(e),this.createMonthNodes(e,r),this.sortMonthNodes(e),this.createDateNodes(e,r),this.pruneDecadeNodes(e)}},e.prototype.getStartCanvasIndex=function(){return this.getCurrentSequence().getStartCanvasIndex()},e.prototype.getThumbs=function(e,t){return this.getCurrentSequence().getThumbs(e,t)},e.prototype.getTopRanges=function(){if(!this.manifest)throw new Error(p.manifestNotLoaded);return this.manifest.getTopRanges()},e.prototype.getTotalCanvases=function(){return this.getCurrentSequence().getTotalCanvases()},e.prototype.getTrackingLabel=function(){if(!this.manifest)throw new Error(p.manifestNotLoaded);return this.manifest.getTrackingLabel()},e.prototype._getTopRanges=function(){return this.iiifResource.getTopRanges()},e.prototype.getTree=function(e,t){if(void 0===e&&(e=0),void 0===t&&(t=r.NONE),!this.iiifResource)return null;var n;if(this.iiifResource.isCollection())n=this.iiifResource.getDefaultTree();else{var i=this._getTopRanges(),o=new s.TreeNode;if(o.label="root",o.data=this.iiifResource,!i.length)return o;n=i[e].getTree(o)}var a=new s.TreeNode;return t.toString()===r.DATE.toString()&&this.treeHasNavDates(n)?(this._getSortedTreeNodesByDate(a,n),a):n},e.prototype.treeHasNavDates=function(e){var t=this.getFlattenedTree(e);return!!t&&t.some((function(e){return!isNaN(e.navDate)}))},e.prototype.getViewingDirection=function(){if(!this.manifest)throw new Error(p.manifestNotLoaded);var e=this.getCurrentSequence().getViewingDirection();return e||(e=this.manifest.getViewingDirection()),e},e.prototype.getViewingHint=function(){if(!this.manifest)throw new Error(p.manifestNotLoaded);var e=this.getCurrentSequence().getViewingHint();return e||(e=this.manifest.getViewingHint()),e},e.prototype.getBehavior=function(){var e,t;if(!this.manifest)throw new Error(p.manifestNotLoaded);var n=null!==(t=null===(e=this.getCurrentRange())||void 0===e?void 0:e.getBehavior())&&void 0!==t?t:null;return n||(n=this.manifest.getBehavior()),n},e.prototype.getChoices=function(){return this.getCurrentCanvas().getChoices()},e.prototype.getActiveChoice=function(){var e,t=this.getChoices();return t.length&&null!==(e=t[this.choiceIndex])&&void 0!==e?e:null},e.prototype.hasParentCollection=function(){if(!this.manifest)throw new Error(p.manifestNotLoaded);return!!this.manifest.parentCollection},e.prototype.hasRelatedPage=function(){var e=this.getRelated();return!!e&&(e.length&&(e=e[0]),"text/html"===e.format)},e.prototype.hasResources=function(){return this.getCurrentCanvas().getResources().length>0},e.prototype.isBottomToTop=function(){var e=this.getViewingDirection();return!!e&&e===u.T5.BOTTOM_TO_TOP},e.prototype.hasAnnotations=function(){for(var e=this.getCanvases(),t=0;t<e.length;t++){var n=e[t],r=n.getAnnotations();if(r&&r.length>0)return!0;var i=n.getProperty("seeAlso");if(i)for(var o=Array.isArray(i)?i:[i],a=0;a<o.length;a++)if(o[a].profile.includes("alto"))return!0}return!1},e.prototype.isCanvasIndexOutOfRange=function(e){return this.getCurrentSequence().isCanvasIndexOutOfRange(e)},e.prototype.isContinuous=function(){var e=this.getViewingHint();if(e)return e===u.LX.CONTINUOUS;var t=this.getBehavior();return!!t&&t===u.nS.CONTINUOUS},e.prototype.isFirstCanvas=function(e){return void 0!==e?this.getCurrentSequence().isFirstCanvas(e):this.getCurrentSequence().isFirstCanvas(this.canvasIndex)},e.prototype.isHorizontallyAligned=function(){return this.isLeftToRight()||this.isRightToLeft()},e.prototype.isLastCanvas=function(e){return void 0!==e?this.getCurrentSequence().isLastCanvas(e):this.getCurrentSequence().isLastCanvas(this.canvasIndex)},e.prototype.isLeftToRight=function(){var e=this.getViewingDirection();return!!e&&e===u.T5.LEFT_TO_RIGHT},e.prototype.isMultiCanvas=function(){return this.getCurrentSequence().isMultiCanvas()},e.prototype.isMultiSequence=function(){if(!this.manifest)throw new Error(p.manifestNotLoaded);return this.manifest.isMultiSequence()},e.prototype.isPaged=function(){if(!this.manifest)throw new Error(p.manifestNotLoaded);var e=this.getViewingHint();return e?e===u.LX.PAGED:this.manifest.isPagingEnabled()},e.prototype.isPagingAvailable=function(){return this.isPagingEnabled()&&this.getTotalCanvases()>2},e.prototype.isPagingEnabled=function(){if(!this.manifest)throw new Error(p.manifestNotLoaded);return this.manifest.isPagingEnabled()||this.getCurrentSequence().isPagingEnabled()},e.prototype.isRightToLeft=function(){var e=this.getViewingDirection();return!!e&&e===u.T5.RIGHT_TO_LEFT},e.prototype.isTopToBottom=function(){var e=this.getViewingDirection();return!!e&&e===u.T5.TOP_TO_BOTTOM},e.prototype.isTotalCanvasesEven=function(){return this.getCurrentSequence().isTotalCanvasesEven()},e.prototype.isUIEnabled=function(e){if(!this.manifest)throw new Error(p.manifestNotLoaded);var t=this.manifest.getService(u.bB.UI_EXTENSIONS);if(t){var n=t.getProperty("disableUI");if(n&&(-1!==n.indexOf(e)||-1!==n.indexOf(e.toLowerCase())))return!1}return!0},e.prototype.isVerticallyAligned=function(){return this.isTopToBottom()||this.isBottomToTop()},e.prototype.hasChoices=function(){return this.getChoices().length>0},e.prototype.createDateNodes=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=this.getNodeYear(r),o=this.getNodeMonth(r),a=new s.TreeNode;a.id=r.id,a.label=this.getNodeDisplayDate(r),a.data=r.data,a.data.type=s.TreeNodeType.MANIFEST,a.data.year=i,a.data.month=o;var l=this.getDecadeNode(e,i);if(l){var c=this.getYearNode(l,i);if(c){var u=this.getMonthNode(c,o);u&&u.addNode(a)}}}},e.prototype.createDecadeNodes=function(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(r.navDate){var i=this.getNodeYear(r),o=Number(i.toString().substr(0,3)+"9");if(!this.getDecadeNode(e,i)){var a=new s.TreeNode;a.label=i+" - "+o,a.navDate=r.navDate,a.data.startYear=i,a.data.endYear=o,e.addNode(a)}}}},e.prototype.createMonthNodes=function(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(r.navDate){var i=this.getNodeYear(r),o=this.getNodeMonth(r),a=this.getDecadeNode(e,i),l=null;if(a&&(l=this.getYearNode(a,i)),a&&l&&!this.getMonthNode(l,o)){var c=new s.TreeNode;c.label=this.getNodeDisplayMonth(r),c.navDate=r.navDate,c.data.year=i,c.data.month=o,l.addNode(c)}}}},e.prototype.createYearNodes=function(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(r.navDate){var i=this.getNodeYear(r),o=this.getDecadeNode(e,i);if(o&&!this.getYearNode(o,i)){var a=new s.TreeNode;a.label=i.toString(),a.navDate=r.navDate,a.data.year=i,o.addNode(a)}}}},e.prototype.getDecadeNode=function(e,t){for(var n=0;n<e.nodes.length;n++){var r=e.nodes[n];if(t>=r.data.startYear&&t<=r.data.endYear)return r}return null},e.prototype.getMonthNode=function(e,t){for(var n=0;n<e.nodes.length;n++){var r=e.nodes[n];if(t===this.getNodeMonth(r))return r}return null},e.prototype.getNodeDisplayDate=function(e){return e.navDate.toDateString()},e.prototype.getNodeDisplayMonth=function(e){return["January","February","March","April","May","June","July","August","September","October","November","December"][e.navDate.getMonth()]},e.prototype.getNodeMonth=function(e){return e.navDate.getMonth()},e.prototype.getNodeYear=function(e){return e.navDate.getFullYear()},e.prototype.getYearNode=function(e,t){for(var n=0;n<e.nodes.length;n++){var r=e.nodes[n];if(t===this.getNodeYear(r))return r}return null},e.prototype.pruneDecadeNodes=function(e){for(var t=[],n=0;n<e.nodes.length;n++){var r=e.nodes[n];r.nodes.length||t.push(r)}for(var i=0;i<t.length;i++){var o=t[i],a=e.nodes.indexOf(o);a>-1&&e.nodes.splice(a,1)}},e.prototype.sortDecadeNodes=function(e){e.nodes=e.nodes.sort((function(e,t){return e.data.startYear-t.data.startYear}))},e.prototype.sortMonthNodes=function(e){for(var t=this,n=0;n<e.nodes.length;n++)for(var r=e.nodes[n],i=0;i<r.nodes.length;i++){var o=r.nodes[i];o.nodes=o.nodes.sort((function(e,n){return t.getNodeMonth(e)-t.getNodeMonth(n)}))}},e.prototype.sortYearNodes=function(e){for(var t=this,n=0;n<e.nodes.length;n++){var r=e.nodes[n];r.nodes=r.nodes.sort((function(e,n){return t.getNodeYear(e)-t.getNodeYear(n)}))}},e}(),h=function(){function e(e){this._options=e,this._options.locale=this._options.locale||"en-GB"}return e.prototype.bootstrap=function(e,t){var n=this;return new Promise((function(r,i){e&&t&&(r=e,i=t),s.Utils.loadManifest(n._options.manifestUri).then((function(e){n._loaded(n,e,r,i)})).catch((function(e){i(e)}))}))},e.prototype.bootstrapJson=function(e,t,n){var r=this;return new Promise((function(i,o){t&&n&&(i=t,o=n),r._loaded(r,e,i,o)}))},e.prototype._loaded=function(e,t,n,r){var i=s.Utils.parseManifest(t,{locale:e._options.locale});if(i){e._options.iiifResource||(e._options.iiifResource=i);var o=e._options.collectionIndex,a=e._options.manifestIndex;if(i.getIIIFResourceType()===u.es.COLLECTION){var l=i.getManifests(),c=i.getCollections();l.length||void 0!==o||(o=0),void 0!==o&&c&&c.length?i.getCollectionByIndex(o).then((function(t){t||r("Collection index not found"),0===t.getTotalManifests()&&0===a&&t.getTotalCollections()>0?(e._options.collectionIndex=0,e._options.manifestUri=t.id,e.bootstrap(n,r)):void 0!==a&&t.getManifestByIndex(a).then((function(t){e._options.manifest=t;var r=new d(e._options);n(r)}))})):i.getManifestByIndex(e._options.manifestIndex).then((function(t){e._options.manifest=t;var r=new d(e._options);n(r)}))}else{e._options.manifest=i;var p=new d(e._options);n(p)}}else console.error("Unable to load IIIF resource")},e}(),g=n(2325),v=function(){function e(e,t){this.authHoldingPage=null,this.clickThroughService=null,this.externalService=null,this.isProbed=!1,this.isResponseHandled=!1,this.kioskService=null,this.loginService=null,this.logoutService=null,this.probeService=null,this.restrictedService=null,this.tokenService=null,e.externalResource=this,this.dataUri=this._getDataUri(e),this.index=e.index,this.authAPIVersion=t.authApiVersion,this._parseAuthServices(e),this._parseCanvasDimensions(e)}return e.prototype._getImageServiceDescriptor=function(e){for(var t=null,n=0;n<e.length;n++){var r=e[n],i=r.id;i.endsWith("/")||(i+="/"),r.getProfile()&&(s.Utils.isImageProfile(r.getProfile())||s.Utils.isImageServiceType(r.getIIIFResourceType()))&&(t=i+"info.json")}return t},e.prototype._getDataUri=function(e){var t=e.getContent(),n=e.getImages(),r=null;if(t&&t.length){var i=t[0].getBody();return i.length?(o=i[0].getServices()).length&&(r=this._getImageServiceDescriptor(o))?r:i[0].id:null}if(n&&n.length){var o,a=n[0].getResource();return(o=a.getServices()).length&&(r=this._getImageServiceDescriptor(o))?r:a.id}var s=e.getService(u.bB.IXIF);return s?s.getInfoUri():e.id},e.prototype._parseAuthServices=function(e){if(.9===this.authAPIVersion)this.clickThroughService=s.Utils.getService(e,u.bB.AUTH_0_CLICK_THROUGH),this.loginService=s.Utils.getService(e,u.bB.AUTH_0_LOGIN),this.restrictedService=s.Utils.getService(e,u.bB.AUTH_0_RESTRICTED),this.clickThroughService?(this.logoutService=this.clickThroughService.getService(u.bB.AUTH_0_LOGOUT),this.tokenService=this.clickThroughService.getService(u.bB.AUTH_0_TOKEN)):this.loginService?(this.logoutService=this.loginService.getService(u.bB.AUTH_0_LOGOUT),this.tokenService=this.loginService.getService(u.bB.AUTH_0_TOKEN)):this.restrictedService&&(this.logoutService=this.restrictedService.getService(u.bB.AUTH_0_LOGOUT),this.tokenService=this.restrictedService.getService(u.bB.AUTH_0_TOKEN));else{if(void 0!==e.isCanvas&&e.isCanvas()){var t=e.getContent();if(t&&t.length){var n=t[0].getBody();n&&n.length&&(e=n[0])}}this.clickThroughService=s.Utils.getService(e,u.bB.AUTH_1_CLICK_THROUGH),this.loginService=s.Utils.getService(e,u.bB.AUTH_1_LOGIN),this.externalService=s.Utils.getService(e,u.bB.AUTH_1_EXTERNAL),this.kioskService=s.Utils.getService(e,u.bB.AUTH_1_KIOSK),this.clickThroughService?(this.logoutService=this.clickThroughService.getService(u.bB.AUTH_1_LOGOUT),this.tokenService=this.clickThroughService.getService(u.bB.AUTH_1_TOKEN),this.probeService=this.clickThroughService.getService(u.bB.AUTH_1_PROBE)):this.loginService?(this.logoutService=this.loginService.getService(u.bB.AUTH_1_LOGOUT),this.tokenService=this.loginService.getService(u.bB.AUTH_1_TOKEN),this.probeService=s.Utils.getService(e,u.bB.AUTH_1_PROBE),this.probeService||(this.probeService=this.loginService.getService(u.bB.AUTH_1_PROBE))):this.externalService?(this.logoutService=this.externalService.getService(u.bB.AUTH_1_LOGOUT),this.tokenService=this.externalService.getService(u.bB.AUTH_1_TOKEN),this.probeService=s.Utils.getService(e,u.bB.AUTH_1_PROBE),this.probeService||(this.probeService=this.externalService.getService(u.bB.AUTH_1_PROBE))):this.kioskService&&(this.logoutService=this.kioskService.getService(u.bB.AUTH_1_LOGOUT),this.tokenService=this.kioskService.getService(u.bB.AUTH_1_TOKEN),this.probeService=s.Utils.getService(e,u.bB.AUTH_1_PROBE),this.probeService||(this.probeService=this.kioskService.getService(u.bB.AUTH_1_PROBE)))}},e.prototype._parseCanvasDimensions=function(e){var t=e.getImages();if(t&&t.length){var n=t[0].getResource();this.width=n.getWidth(),this.height=n.getHeight()}else if((t=e.getContent()).length){var r=t[0].getBody();r.length&&(this.width=r[0].getWidth(),this.height=r[0].getHeight())}},e.prototype._parseDescriptorDimensions=function(e){void 0!==e.width&&(this.width=e.width),void 0!==e.height&&(this.height=e.height)},e.prototype.isAccessControlled=function(){return!!(this.clickThroughService||this.loginService||this.externalService||this.kioskService||this.probeService)},e.prototype.hasServiceDescriptor=function(){return!!this.dataUri&&this.dataUri.endsWith("info.json")},e.prototype.getData=function(e){var t=this;return t.data={},new Promise((function(n,r){if(t.dataUri)if(t.probeService){t.isProbed=!0;var i=new XMLHttpRequest;i.open("GET",t.probeService.id,!0),i.withCredentials=!1,e&&i.setRequestHeader("Authorization","Bearer "+e.accessToken),i.onload=function(){var e=JSON.parse(i.responseText),r=unescape(e.contentLocation);t.status=i.status,r!==t.dataUri&&(t.status=g.MOVED_TEMPORARILY),t.data=e,n(t)},i.onerror=function(){t.status=i.status,n(t)},i.send()}else{var o="GET";if(!t.hasServiceDescriptor()){if(!t.isAccessControlled())return t.status=g.OK,void n(t);o="HEAD"}var a=new XMLHttpRequest;a.open(o,t.dataUri,!0),a.withCredentials=!1,e&&a.setRequestHeader("Authorization","Bearer "+e.accessToken),a.onload=function(){if(a.responseText){var e=JSON.parse(a.responseText),r=a.status,i=unescape(e["@id"]||e.id);t.data=e,t._parseAuthServices(t.data),t._parseDescriptorDimensions(t.data),i.endsWith("/info.json")&&(i=i.substr(0,i.lastIndexOf("/")));var o=t.dataUri;o&&o.endsWith("/info.json")&&(o=o.substr(0,o.lastIndexOf("/"))),r===g.OK&&i!==o&&(t.loginService||t.kioskService)?t.status=g.MOVED_TEMPORARILY:t.status=r,n(t)}else t.status=a.status||g.OK,n(t)},a.onerror=function(){t.status=a.status,a.responseText&&t._parseAuthServices(JSON.parse(a.responseText)),n(t)},a.send()}else r("There is no dataUri to fetch")}))},e}(),_=function(){function e(e){this.labels=e}return e.prototype.format=function(e){return-1!=e.indexOf("<a")?e:'<a href="'+e+'">'+(this.labels[e]?this.labels[e]:e)+"</a>"},e}(),y=function(e){return new h(e).bootstrap()}},3957(e,t){"use strict";var n,r,i,o,a,s,l,c,u,p;t.LX=t.T5=t.bB=t.O6=t.zu=t.es=t.S3=t.nS=void 0,function(e){e.BOOKMARKING="oa:bookmarking",e.CLASSIFYING="oa:classifying",e.COMMENTING="oa:commenting",e.DESCRIBING="oa:describing",e.EDITING="oa:editing",e.HIGHLIGHTING="oa:highlighting",e.IDENTIFYING="oa:identifying",e.LINKING="oa:linking",e.MODERATING="oa:moderating",e.PAINTING="sc:painting",e.QUESTIONING="oa:questioning",e.REPLYING="oa:replying",e.TAGGING="oa:tagging",e.TRANSCRIBING="oad:transcribing"}(n||(n={})),function(e){e.AUTO_ADVANCE="auto-advance",e.CONTINUOUS="continuous",e.FACING_PAGES="facing-pages",e.HIDDEN="hidden",e.INDIVIDUALS="individuals",e.MULTI_PART="multi-part",e.NO_NAV="no-nav",e.NON_PAGED="non-paged",e.PAGED="paged",e.REPEAT="repeat",e.SEQUENCE="sequence",e.THUMBNAIL_NAV="thumbnail-nav",e.TOGETHER="together",e.UNORDERED="unordered"}(r||(t.nS=r={})),function(e){e.CANVAS="canvas",e.CHOICE="choice",e.OA_CHOICE="oa:choice",e.CONTENT_AS_TEXT="contentastext",e.DATASET="dataset",e.DOCUMENT="document",e.IMAGE="image",e.MODEL="model",e.MOVING_IMAGE="movingimage",e.PDF="pdf",e.PHYSICAL_OBJECT="physicalobject",e.SOUND="sound",e.TEXT="text",e.TEXTUALBODY="textualbody",e.VIDEO="video"}(i||(t.S3=i={})),function(e){e.ANNOTATION="annotation",e.ANNOTATION_COLLECTION="annotationcollection",e.ANNOTATION_PAGE="annotationpage",e.CANVAS="canvas",e.COLLECTION="collection",e.MANIFEST="manifest",e.RANGE="range",e.SEQUENCE="sequence"}(o||(t.es=o={})),function(e){e.APNG="image/apng",e.AUDIO_MP4="audio/mp4",e.AUDIO_OGG="audio/ogg",e.AVIF="audio/avif",e.CORTO="application/corto",e.DICOM="application/dicom",e.DRACO="application/draco",e.EPUB="application/epub+zip",e.GIF="image/gif",e.GIRDER="image/vnd.kitware.girder",e.GLB="model/gltf-binary",e.GLTF="model/gltf+json",e.IIIF_PRESENTATION_2='application/ld+json;profile="http://iiif.io/api/presentation/2/context.json"',e.IIIF_PRESENTATION_3='application/ld+json;profile="http://iiif.io/api/presentation/3/context.json"',e.JPG="image/jpeg",e.M3U8="application/vnd.apple.mpegurl",e.MP3="audio/mp3",e.MPEG="audio/mpeg",e.MPEG_DASH="application/dash+xml",e.OBJ="model/obj",e.OPF="application/oebps-package+xml",e.PDF="application/pdf",e.PLY="application/ply",e.PNG="image/png",e.SVG="image/svg+xml",e.THREEJS="application/vnd.threejs+json",e.USDZ="model/vnd.usd+zip",e.VIDEO_MP4="video/mp4",e.VIDEO_OGG="video/ogg",e.WAV="audio/wav",e.WEBM="video/webm",e.WEBP="image/webp"}(a||(t.zu=a={})),function(e){e.DOC="application/msword",e.DOCX="application/vnd.openxmlformats-officedocument.wordprocessingml.document",e.ODT="application/vnd.oasis.opendocument.text",e.PDF="application/pdf"}(s||(t.O6=s={})),function(e){e.IMAGE_0_COMPLIANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/compliance.html#level0",e.IMAGE_0_COMPLIANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/compliance.html#level1",e.IMAGE_0_COMPLIANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/compliance.html#level2",e.IMAGE_0_CONFORMANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/conformance.html#level0",e.IMAGE_0_CONFORMANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/conformance.html#level1",e.IMAGE_0_CONFORMANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/conformance.html#level2",e.IMAGE_1_COMPLIANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0",e.IMAGE_1_COMPLIANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1",e.IMAGE_1_COMPLIANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2",e.IMAGE_1_CONFORMANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0",e.IMAGE_1_CONFORMANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1",e.IMAGE_1_CONFORMANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2",e.IMAGE_1_LEVEL_0="http://iiif.io/api/image/1/level0.json",e.IMAGE_1_PROFILE_LEVEL_0="http://iiif.io/api/image/1/profiles/level0.json",e.IMAGE_1_LEVEL_1="http://iiif.io/api/image/1/level1.json",e.IMAGE_1_PROFILE_LEVEL_1="http://iiif.io/api/image/1/profiles/level1.json",e.IMAGE_1_LEVEL_2="http://iiif.io/api/image/1/level2.json",e.IMAGE_1_PROFILE_LEVEL_2="http://iiif.io/api/image/1/profiles/level2.json",e.IMAGE_2_LEVEL_0="http://iiif.io/api/image/2/level0.json",e.IMAGE_2_PROFILE_LEVEL_0="http://iiif.io/api/image/2/profiles/level0.json",e.IMAGE_2_LEVEL_1="http://iiif.io/api/image/2/level1.json",e.IMAGE_2_PROFILE_LEVEL_1="http://iiif.io/api/image/2/profiles/level1.json",e.IMAGE_2_LEVEL_2="http://iiif.io/api/image/2/level2.json",e.IMAGE_2_PROFILE_LEVEL_2="http://iiif.io/api/image/2/profiles/level2.json",e.AUTH_0_CLICK_THROUGH="http://iiif.io/api/auth/0/login/clickthrough",e.AUTH_0_LOGIN="http://iiif.io/api/auth/0/login",e.AUTH_0_LOGOUT="http://iiif.io/api/auth/0/logout",e.AUTH_0_RESTRICTED="http://iiif.io/api/auth/0/login/restricted",e.AUTH_0_TOKEN="http://iiif.io/api/auth/0/token",e.AUTH_1_CLICK_THROUGH="http://iiif.io/api/auth/1/clickthrough",e.AUTH_1_EXTERNAL="http://iiif.io/api/auth/1/external",e.AUTH_1_KIOSK="http://iiif.io/api/auth/1/kiosk",e.AUTH_1_LOGIN="http://iiif.io/api/auth/1/login",e.AUTH_1_LOGOUT="http://iiif.io/api/auth/1/logout",e.AUTH_1_PROBE="http://iiif.io/api/auth/1/probe",e.AUTH_1_TOKEN="http://iiif.io/api/auth/1/token",e.SEARCH_0="http://iiif.io/api/search/0/search",e.SEARCH_0_AUTO_COMPLETE="http://iiif.io/api/search/0/autocomplete",e.SEARCH_1="http://iiif.io/api/search/1/search",e.SEARCH_1_AUTO_COMPLETE="http://iiif.io/api/search/1/autocomplete",e.SEARCH_2="http://iiif.io/api/search/2/search",e.SEARCH_2_AUTO_COMPLETE="http://iiif.io/api/search/2/autocomplete",e.TRACKING_EXTENSIONS="http://universalviewer.io/tracking-extensions-profile",e.UI_EXTENSIONS="http://universalviewer.io/ui-extensions-profile",e.PRINT_EXTENSIONS="http://universalviewer.io/print-extensions-profile",e.SHARE_EXTENSIONS="http://universalviewer.io/share-extensions-profile",e.DOWNLOAD_EXTENSIONS="http://universalviewer.io/download-extensions-profile",e.OTHER_MANIFESTATIONS="http://iiif.io/api/otherManifestations.json",e.IXIF="http://wellcomelibrary.org/ld/ixif/0/alpha.json"}(l||(t.bB=l={})),function(e){e.IMAGE_SERVICE_2="ImageService2",e.IMAGE_SERVICE_3="ImageService3",e.SEARCH_SERVICE_2="SearchService2",e.AUTO_COMPLETE_SERVICE_2="AutoCompleteService2"}(c||(c={})),function(e){e.BOTTOM_TO_TOP="bottom-to-top",e.LEFT_TO_RIGHT="left-to-right",e.RIGHT_TO_LEFT="right-to-left",e.TOP_TO_BOTTOM="top-to-bottom"}(u||(t.T5=u={})),function(e){e.CONTINUOUS="continuous",e.INDIVIDUALS="individuals",e.NON_PAGED="non-paged",e.PAGED="paged",e.TOP="top"}(p||(t.LX=p={}))},6314(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=
2"",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&a[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},4417(e){"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},1601(e){"use strict";e.exports=function(e){return e[1]}},1354(e){"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),o="/*# ".concat(i," */");return[t].concat([o]).join("\n")}return[t].join("\n")}},2127(e,t,n){var r,i,o,a=n(4692);r=function(e,t){"use strict";if(!(t=t||e.jQuery)||!t.fn)throw"JsViews requires jQuery";var n,r,i,o,a,s,l,c,u,p,f,d,h,g,v,_,y,m,E,b,I,T,A="v1.2.0",C="_ocp",O=function(e){return"function"==typeof e},S=Array.isArray,x=/[ \t]*(\r\n|\n|\r)/g,L=/\\(['"\\])/g,w=/['"\\]/g,N=/(?:\x08|^)(onerror:)?(?:(~?)(([\w$.]+):)?([^\x08]+))\x08(,)?([^\x08]+)/gi,R=/^if\s/,P=/<(\w+)[>\s]/,M=/[\x00`><\"'&=]/,j=/^on[A-Z]|^convert(Back)?$/,U=/^\#\d+_`[\s\S]*\/\d+_`$/,V=/[\x00`><"'&=]/g,D=/[&<>]/g,k=/&(amp|gt|lt);/g,G=/\[['"]?|['"]?\]/g,F=0,B={"&":"&amp;","<":"&lt;",">":"&gt;","\0":"&#0;","'":"&#39;",'"':"&#34;","`":"&#96;","=":"&#61;"},H={amp:"&",gt:">",lt:"<"},q="html",Y="string",K="object",W="data-jsv-tmpl",X="jsvTmpl",Q="For #index in nested block use #getIndex().",$={},z={},J=e.jsrender,Z=J&&t&&!t.render,ee={template:{compile:function e(n,r,i,a){function s(r){var o,s;if(typeof r===Y||r.nodeType>0&&(l=r)){if(!l&&(/^\.?\/[^\\:*?"<>]*$/.test(r)?(s=c[n=n||r])?r=s:l=document.getElementById(r):"#"===r.charAt(0)&&(l=document.getElementById(r.slice(1))),!l&&t.fn&&!d.rTmpl.test(r)))try{l=t(r,document)[0]}catch(e){}l&&("SCRIPT"!==l.tagName&&Oe(r+": Use script block, not "+l.tagName),a?r=l.innerHTML:((o=l.getAttribute(W))&&(o!==X?(r=c[o],delete c[o]):t.fn&&(r=t.data(l)[X])),o&&r||(n=n||(t.fn?X:r),r=e(n,l.innerHTML,i,a)),r.tmplName=n=n||o,n!==X&&(c[n]=r),l.setAttribute(W,n),t.fn&&t.data(l,X,r))),l=void 0}else r.fn||(r=void 0);return r}var l,p,f=r=r||"";if(d._html=u.html,0===a&&(a=void 0,f=s(f)),(a=a||(r.markup?r.bnds?se({},r):r:{})).tmplName=a.tmplName||n||"unnamed",i&&(a._parentTmpl=i),!f&&r.markup&&(f=s(r.markup))&&f.fn&&(f=f.markup),void 0!==f)return f.render||r.render?f.tmpls&&(p=f):(r=me(f,a),xe(f.replace(w,"\\$&"),r)),p||(p=se((function(){return p.render.apply(p,arguments)}),r),function(e){var t,n,r;for(t in ee)e[n=t+"s"]&&(r=e[n],e[n]={},o[n](r,e))}(p)),p}},tag:{compile:function(e,t,n){var r,i,o,a=new d._tg;function s(){var t=this;t._={unlinked:!0},t.inline=!0,t.tagName=e}if(O(t)?t={depends:t.depends,render:t}:typeof t===Y&&(t={template:t}),i=t.baseTag)for(o in t.flow=!!t.flow,(i=typeof i===Y?n&&n.tags[i]||f[i]:i)||Oe('baseTag: "'+t.baseTag+'" not found'),a=se(a,i),t)a[o]=ne(i[o],t[o]);else a=se(a,t);return void 0!==(r=a.template)&&(a.template=typeof r===Y?c[r]||c(r):r),(s.prototype=a).constructor=a._ctr=s,n&&(a._parentTmpl
vendor: 9,894 bytes, line 2
2=n),a}},viewModel:{compile:function(e,n){var r,i,o,a=this,s=n.getters,c=n.extend,u=n.id,p=t.extend({_is:e||"unnamed",unmap:b,merge:E},c),f="",d="",h=s?s.length:0,g=t.observable,v={};function _(e){i.apply(this,e)}function y(){return new _(arguments)}function m(e,t){for(var n,r,i,o,l,c=0;c<h;c++)n=void 0,typeof(i=s[c])!==Y&&(i=(n=i).getter,l=n.parentRef),void 0===(o=e[i])&&n&&void 0!==(r=n.defaultVal)&&(o=_e(r,e)),t(o,n&&a[n.type],i,l)}function E(e,t,n){e=typeof e===Y?JSON.parse(e):e;var r,i,o,a,s,c,p,f,d,h,_=0,E=this;if(S(E)){for(p={},d=[],i=e.length,o=E.length;_<i;_++){for(f=e[_],c=!1,r=0;r<o&&!c;r++)p[r]||(s=E[r],u&&(p[r]=c=typeof u===Y?f[u]&&(v[u]?s[u]():s[u])===f[u]:u(s,f)));c?(s.merge(f),d.push(s)):(d.push(h=y.map(f)),n&&ye(h,n,t))}g?g(E).refresh(d,!0):E.splice.apply(E,[0,E.length].concat(d))}else for(a in m(e,(function(e,t,n,r){t?E[n]().merge(e,E,r):E[n]()!==e&&(typeof e===Y&&("{"===e[0]&&"}"===e[e.length-1]||"["===e[0]&&"]"===e[e.length-1])&&(e=JSON.parse(e)),E[n](e))})),e)a===l||v[a]||(E[a]=e[a])}function b(){var e,t,n,r,i=0,o=this;function c(e){for(var t=[],n=0,r=e.length;n<r;n++)t.push(e[n].unmap());return t}if(S(o))return c(o);for(e={};i<h;i++)n=void 0,typeof(t=s[i])!==Y&&(t=(n=t).getter),r=o[t](),e[t]=n&&r&&a[n.type]?S(r)?c(r):r.unmap():r;for(t in o)!o.hasOwnProperty(t)||"_"===t.charAt(0)&&v[t.slice(1)]||t===l||O(o[t])||(e[t]=o[t]);return e}for(_.prototype=p,r=0;r<h;r++)!function(e){e=e.getter||e,v[e]=r+1;var t="_"+e;f+=(f?",":"")+e,d+="this."+t+" = "+e+";\n",p[e]=p[e]||function(n){if(!arguments.length)return this[t];g?g(this).setProperty(e,n):this[t]=n},g&&(p[e].set=p[e].set||function(e){this[t]=e})}(s[r]);return d=new Function(f,d),i=function(){d.apply(this,arguments),(o=arguments[h+1])&&ye(this,arguments[h],o)},i.prototype=p,p.constructor=i,y.map=function(t){var n,r,i,o,a=0,c=t=typeof t===Y?JSON.parse(t):t,u=[];if(S(t)){for(n=(t=t||[]).length;a<n;a++)u.push(this.map(t[a]));return u._is=e,u.unmap=b,u.merge=E,u}if(t){for(m(t,(function(e,t){t?e=t.map(e):typeof e===Y&&("{"===e[0]&&"}"===e[e.length-1]||"["===e[0]&&"]"===e[e.length-1])&&(e=JSON.parse(e)),u.push(e)})),c=this.apply(this,u),a=h;a--;)if(i=u[a],(o=s[a].parentRef)&&i&&i.unmap)if(S(i))for(n=i.length;n--;)ye(i[n],o,c);else ye(i,o,c);for(r in t)r===l||v[r]||(c[r]=t[r])}return c},y.getters=s,y.extend=c,y.id=u,y}},helper:{},converter:{}};function te(e,t){return function(){var n,r=this,i=r.base;return r.base=e,n=t.apply(r,arguments),r.base=i,n}}function ne(e,t){return O(t)&&((t=te(e?e._d?e:te(oe,e):oe,t))._d=(e&&e._d||0)+1),t}function re(e,t){var n,r=t.props;for(n in r)!j.test(n)||e[n]&&e[n].fix||(e[n]="convert"!==n?ne(e.constructor.prototype[n],r[n]):r[n])}function ie(e){return e}function oe(){return""}function ae(e){this.name=(t.link?"JsViews":"JsRender")+" Error",this.message=e||this.name}function se(e,t){if(e){for(var n in t)"__proto__"!==n&&(e[n]=t[n]);return e}}function le(e,t,n){return e?Array.isArray(e)?le.apply(o,e):(b=n?n[0]:b,/^(\W|_){5}$/.test(e+t+b)||Oe("Invalid delimiters"),_=e[0],y=e[1],m=t[0],E=t[1],h.delimiters=[_+y,m+E,b],e="\\"+_+"(\\"+b+")?\\"+y,t="\\"+m+"\\"+E,r="(?:(\\w+(?=[\\/\\s\\"+m+"]))|(\\w+)?(:)|(>)|(\\*))\\s*((?:[^\\"+m+"]|\\"+m+"(?!\\"+E+"))*?)",d.rTag="(?:"+r+")",r=new RegExp("(?:"+e+r+"(\\/)?|\\"+_+"(\\"+b+")?\\"+y+"(?:(?:\\/(\\w+))\\s*|!--[\\s\\S]*?--))"+t,"g"),d.rTmpl=new RegExp("^\\s|\\s$|<.*>|([^\\\\]|^)[{}]|"+e+".*"+t),v):h.delimiters}function ce(){var e=this.get("item");return e?e.index:void 0}function ue(){return this.index}function pe(e,t,n,r){var i,o,a,s=0;if(1===n&&(r=1,n=void 0),t)for(a=(o=t.split(".")).length;e&&s<a;s++)i=e,e=o[s]?e[o[s]]:e,O(e)&&(e=e.call(i));return n&&(n.lt=n.lt||s<a),void 0===e?r?oe:"":r?function(){return e.apply(i,arguments)}:e}function fe(n,r,i){var o,a,s,l,c,u,f,h=this,g=!T&&arguments.length>1,v=h.ctx;if(n){if(h._||(c=h.index,h=h.tag),u=h,v&&v.hasOwnProperty(n)||(v=p).hasOwnProperty(n)){if(s=v[n],"tag"===n||"tagCtx"===n||"root"===n||"parentTags"===n)return s}else v=void 0;if((!T&&h.tagCtx||h.linked)&&(s&&s._cxp||(h=h.tagCtx||O(s)?h:!(h=h.scope||h).isTop&&h.ctx.tag||h,void 0!==s&&h.tagCtx&&(h=h.tagCtx.view.scope),v=h._ocps,(s=v&&v.hasOwnProperty(n)&&v[n]||s)&&s._cxp||!i&&!g||((v||(h._ocps=h._ocps||{}))[n]=s=[{_ocp:s,_vw:u,_key:n}],s._cxp={path:C,ind:0,updateValue:function(e,n){return t.observable(s[0]).setProperty(C,e),this}})),l=s&&s._cxp)){if(arguments.length>2)return(a=s[1]?d._ceo(s[1].deps):[C]).unshift(s[0]),a._cxp=l,a;if(c=l.tagElse,f=s[1]?l.tag&&l.tag.cvtArgs?l.tag.cvtArgs(c,1)[l.ind]:s[1](s[0].data,s[0],d):s[0]._ocp,g)return d._ucp(n,r,h,l),h;s=f}return s&&O(s)&&(o=function(){return s.apply(this&&this!==e?this:u,arguments)},se(o,s)),o||s}}function de(e,t){var n,r,i,o,a,s,l,c=this;if(c.tagName){if(!(c=((s=c).tagCtxs||[c])[e||0]))return}else s=c.tag;if(a=s.bindFrom,o=c.args,(l=s.convert)&&typeof l===Y&&(l="true"===l?void 0:c.view.getRsc("converters",l)||Oe("Unknown converter: '"+l+"'")),l&&!t&&(o=o.slice()),a){for(i=[],n=a.length;n--;)r=a[n],i.unshift(he(c,r));t&&(o=i)}if(l){if(void 0===(l=l.apply(s,i||o)))return o;if(n=(a=a||[0]).length,S(l)&&(!1===l.arg0||1!==n&&l.length===n&&!l.arg0)||(l=[l],a=[0],n=1),t)o=l;else for(;n--;)+(r=a[n])===r&&(o[r]=l[n])}return o}function he(e,t){return(e=e[+t===t?"args":"props"])&&e[t]}function ge(e){return this.cvtArgs(e,1)}function ve(e,t,n,r,i,o,a,s){var l,c,u,p=this,f="array"===t;p.content=s,p.views=f?[]:{},p.data=r,p.tmpl=i,u=p._={key:0,useKey:f?0:1,id:""+F++,onRender:a,bnds:{}},p.linked=!!a,p.type=t||"top",t&&(p.cache={_ct:h._cchCt}),n&&"top"!==n.type||((p.ctx=e||{}).root=p.data),(p.parent=n)?(p.root=n.root||p,l=n.views,c=n._,p.isTop=c.scp,p.scope=(!e.tag||e.tag===n.ctx.tag)&&!p.isTop&&n.scope||p,c.useKey?(l[u.key="_"+c.useKey++]=p,p.index=Q,p.getIndex=ce):l.length===(u.key=p.index=o)?l.push(p):l.splice(o,0,p),p.ctx=e||n.ctx):t&&(p.root=p)}function _e(e,t){return O(e)?e.call(t):e}function ye(e,t,n){Object.defineProperty(e,t,{value:n,configurable:!0})}function me(e,t){var n,r=g._wm||{},i={tmpls:[],links:{},bnds:[],_is:"template",render:Te};return t&&(i=se(i,t)),i.markup=e,i.htmlTag||(n=P.exec(e),i.htmlTag=n?n[1].toLowerCase():""),(n=r[i.htmlTag])&&n!==r.div&&(i.markup=i.markup.trim()),i}function Ee(e,t){var n=e+"s";o[n]=function r(i,a,s){var l,c,u,p=d.onStore[e];if(i&&typeof i===K&&!i.nodeType&&!i.markup&&!i.getTgt&&!("viewModel"===e&&i.getters||i.extend)){for(c in i)r(c,i[c],a);return a||o}return i&&typeof i!==Y&&(s=a,a=i,i=void 0),u=s?"viewModel"===e?s:s[n]=s[n]||{}:r,l=t.compile,void 0===a&&(a=l?i:u[i],i=void 0),null===a?i&&delete u[i]:(l&&((a=l.call(u,i,a,s,0)||{})._is=e),i&&(u[i]=a)),p&&p(i,a,s,l),a}}function be(e){v[e]=v[e]||function(t){return arguments.length?(h[e]=t,v):h[e]}}function Ie(e){function t(t,n){this.tgt=e.getTgt(t,n),n.map=this}return O(e)&&(e={getTgt:e}),e.baseMap&&(e=se(se({},e.baseMap),e)),e.map=function(e,n){return new t(e,n)},e}function Te(e,t,n,r,o,a){var s,l,c,u,p,f,h,v=r,_="";if(!0===t?(n=t,t=void 0):typeof t!==K&&(t=void 0),(c=this.tag)?(u=(v=v||this.view)._getTmpl(c.template||this.tmpl),arguments.length||(e=c.contentCtx&&O(c.contentCtx)?e=c.contentCtx(e):v)):u=this,u){if(!r&&e&&"view"===e._is&&(v=e),v&&e===v&&(e=v.data),p=!v,T=T||p,p&&((t=t||{}).root=e),!T||g.useViews||u.useViews||v&&v!==i)_=Ae(u,e,t,n,v,o,a,c);else{if(v?(f=v.data,h=v.index,v.index=Q):(f=(v=i).data,v.data=e,v.ctx=t),S(e)&&!n)for(s=0,l=e.length;s<l;s++)v.index=s,v.data=e[s],_+=u.fn(e[s],v,d);else v.data=e,_+=u.fn(e,v,d);v.data=f,v.index=h}p&&(T=void 0)}return _}function Ae(e,t,n,r,i,o,a,s){var l,c,u,p,f,h,g,v,_,y,m,E,b,I="";if(s&&(_=s.tagName,E=s.tagCtx,n=n?Pe(n,s.ctx):s.ctx,e===i.content?g=e!==i.ctx._wrp?i.ctx._wrp:void 0:e!==E.content?e===s.template?(g=E.tmpl,n._wrp=E.content):g=E.content||i.content:g=i.content,!1===E.props.link&&((n=n||{}).link=!1)),i&&(a=a||i._.onRender,(b=n&&!1===n.link)&&i._.nl&&(a=void 0),n=Pe(n,i.ctx),E=!s&&i.tag?i.tag.tagCtxs[i.tagElse]:E),(y=E&&E.props.itemVar)&&("~"!==y[0]&&Se("Use itemVar='~myItem'"),y=y.slice(1)),!0===o&&(h=!0,o=0),a&&s&&s._.noVws&&(a=void 0),v=a,!0===a&&(v=void 0,a=i._.onRender),m=n=e.helpers?Pe(e.helpers,n):n,S(t)&&!r)for((u=h?i:void 0!==o&&i||new ve(n,"array",i,t,e,o,a,g))._.nl=b,i&&i._.useKey&&(u._.bnd=!s||s._.bnd&&s,u.tag=s),l=0,c=t.length;l<c;l++)p=new ve(m,"item",u,t[l],e,(o||0)+l,a,u.content),y&&((p.ctx=se({},m))[y]=d._cp(t[l],"#data",p)),f=e.fn(t[l],p,d),I+=u._.onRender?u._.onRender(f,p):f;else u=h?i:new ve(m,_||"data",i,t,e,o,a,g),y&&((u.ctx=se({},m))[y]=d._cp(t,"#data",u)),u.tag=s,u._.nl=b,I+=e.fn(t,u,d);return s&&(u.tagElse=E.index,E.contentView=u),v?v(I,u):I}function Ce(e,t,n){var r=void 0!==n?O(n)?n.call(t.data,e,t):n||"":"{Error: "+(e.message||e)+"}";return h.onError&&void 0!==(n=h.onError.call(t.data,e,n&&r,t))&&(r=n),t&&!t._lc?u.html(r):r}function Oe(e){throw new d.Err(e)}function Se(e){Oe("Syntax error\n"+e)}function xe(e,t,n,i,o){function a(t){(t-=y)&&I.push(e.substr(y,t).replace(x,"\\n"))}function s(t,n){t&&(t+="}}",Se((n?"{{"+n+"}} block has {{/"+t+" without {{"+t:"Unmatched or missing {{/"+t)+", in template:\n"+e))}var l,c,u,p,f,d=h.allowCode||t&&t.allowCode||!0===v.allowCode,g=[],y=0,b=[],I=g,T=[,,g];if(d&&t._is&&(t.allowCode=d),n&&(void 0!==i&&(e=e.slice(0,-i.length-2)+m),e=_+e+E),s(b[0]&&b[0][2].pop()[0]),e.replace(r,(function(r,l,c,f,h,g,v,_,m,E,A,C){(v&&l||m&&!c||_&&":"===_.slice(-1)||E)&&Se(r),g&&(h=":",f=q);var O,S,w,P=(l||n)&&[[]],M="",U="",V="",D="",k="",G="",F="",B="",H=!(m=m||n&&!o)&&!h;c=c||(_=_||"#data",h),a(C),y=C+r.length,v?d&&I.push(["*","\n"+_.replace(/^:/,"ret+= ").replace(L,"$1")+";\n"]):c?("else"===c&&(R.test(_)&&Se('For "{{else if expr}}" use "{{else expr}}"'),P=T[9]&&[[]],T[10]=e.substring(T[10],C),S=T[11]||T[0]||Se("Mismatched: "+r),T=b.pop(),I=T[2],H=!0),_&&Ne(_.replace(x," "),P,t,n).replace(N,(function(e,t,n,r,i,o,a,s){return"this:"===r&&(o="undefined"),s&&(w=w||"@"===s[0]),r="'"+i+"':",a?(U+=n+o+",",D+="'"+s+"',"):n?(V+=r+"j._cp("+o+',"'+s+'",view
2),',G+=r+"'"+s+"',"):t?F+=o:("trigger"===i&&(B+=o),"lateRender"===i&&(O="false"!==s),M+=r+o+",",k+=r+"'"+s+"',",p=p||j.test(i)),""})).slice(0,-1),P&&P[0]&&P.pop(),u=[c,f||!!i||p||"",H&&[],we(D||(":"===c?"'#data',":""),k,G),we(U||(":"===c?"data,":""),M,V),F,B,O,w,P||0],I.push(u),H&&(b.push(T),(T=u)[10]=y,T[11]=S)):A&&(s(A!==T[0]&&A!==T[11]&&A,T[0]),T[10]=e.substring(T[10],C),T=b.pop()),s(!T&&A),I=T[2]})),a(e.length),(y=g[g.length-1])&&s(typeof y!==Y&&+y[10]===y[10]&&y[0]),n){for(c=Re(g,e,n),f=[],l=g.length;l--;)f.unshift(g[l][9]);Le(c,f)}else c=Re(g,t);return c}function Le(e,t){var n,r,i=0,o=t.length;for(e.deps=[],e.paths=[];i<o;i++)for(n in e.paths.push(r=t[i]),r)"_jsvto"!==n&&r.hasOwnProperty(n)&&r[n].length&&!r[n].skp&&(e.deps=e.deps.concat(r[n]))}function we(e,t,n){return[e.slice(0,-1),t.slice(0,-1),n.slice(0,-1)]}function Ne(e,t,n,r){var i,o,a,s,l,c=t&&t[0],u={bd:c},p={0:u},f=0,h=0,v=0,_={},y=0,m={},E={},b={},I={0:0},T={0:""},A=0;return"@"===e[0]&&(e=e.replace(G,".")),a=(e+(n?" ":"")).replace(d.rPrm,(function(n,a,C,O,S,x,L,N,R,P,M,j,U,V,D,k,G,F,B,H,q){O&&!N&&(S=O+S),x=x||"",U=U||"",C=C||a||U,S=S||R,P&&(P=!/\)|]/.test(q[H-1]))&&(S=S.slice(1).split(".").join("^")),M=M||F||"";var Y,K,W,X,Q,z,J,Z=H;if(!l&&!s){if(L&&Se(e),G&&c){if(Y=b[v-1],void 0!==q&&q.length-1>
vendor: 3,562 bytes, line 2
2Z-(Y||0)){if(Y=q.slice(Y,Z+n.length).trim(),K=o||p[v-1].bd,(W=K[K.length-1])&&W.prm){for(;W.sb&&W.sb.prm;)W=W.sb;!(X=W.sb={path:W.sb,bnd:W.bnd}).path&&W.path&&(W.bnd=!0)}else K.push(X={path:K.pop()});W&&W.sb===X&&(T[v]=T[v-1].slice(W._cpPthSt)+T[v],T[v-1]=T[v-1].slice(0,W._cpPthSt)),X._cpPthSt=I[v-1],X._cpKey=Y,T[v]+=q.slice(A,H),A=H,X._cpfn=$[Y]=$[Y]||new Function("data,view,j","//"+Y+"\nvar v;\nreturn ((v="+T[v]+("]"===k?")]":k)+")!=null?v:null);"),T[v-1]+=E[h]&&g.cache?'view.getCache("'+Y.replace(w,"\\$&")+'"':T[v],X.prm=u.bd,X.bnd=X.bnd||X.path&&X.path.indexOf("^")>=0}T[v]=""}"["===M&&(M="[j._sq("),"["===C&&(C="[j._sq(")}return J=l?(l=!V)?n:U+'"':s?(s=!D)?n:U+'"':(C?(m[++h]=!0,_[h]=0,c&&(b[v++]=Z++,u=p[v]={bd:[]},T[v]="",I[v]=1),C):"")+(B?h?"":(f=q.slice(f,Z),(i?(i=o=!1,"\b"):"\b,")+f+(f=Z+n.length,c&&t.push(u.bd=[]),"\b")):N?(v&&Se(e),c&&t.pop(),i="_"+S,f=Z+n.length,c&&((c=u.bd=t[i]=[]).skp=!O),S+":"):S?S.split("^").join(".").replace(d.rPath,(function(e,n,a,s,l,p,f,d){if(Q="."===a,a&&(S=S.slice(n.length),/^\.?constructor$/.test(d||S)&&Se(e),Q||(e=(P?(r?"":"(ltOb.lt=ltOb.lt||")+"(ob=":"")+(s?'view.ctxPrm("'+s+'")':l?"view":"data")+(P?")===undefined"+(r?"":")")+'?"":view._getOb(ob,"':"")+(d?(p?"."+p:s||l?"":"."+a)+(f||""):(d=s?"":l?p||"":a,"")),e=n+("view.data"===(e+=d?"."+d:"").slice(0,9)?e.slice(5):e)+(P?(r?'"':'",ltOb')+(M?",1)":")"):"")),c)){if(K="_linkTo"===i?o=t._jsvto=t._jsvto||[]:u.bd,W=Q&&K[K.length-1]){if(W._cpfn){for(;W.sb;)W=W.sb;W.prm&&(W.bnd&&(S="^"+S.slice(1)),W.sb=S,W.bnd=W.bnd||"^"===S[0])}}else K.push(S);M&&!Q&&(b[v]=Z,I[v]=T[v].length)}return e}))+(M||x):x||(k?"]"===k?")]":")":j?(E[h]||Se(e),","):a?"":(l=V,s=D,'"'))),l||s||k&&(E[h]=!1,h--),c&&(l||s||(k&&(m[h+1]&&(u=p[--v],m[h+1]=!1),y=_[h+1]),M&&(_[h+1]=T[v].length+(C?1:0),(S||k)&&(u=p[++v]={bd:[]},m[h+1]=!0))),T[v]=(T[v]||"")+q.slice(A,H),A=H+n.length,l||s||((z=C&&m[h+1])&&(T[v-1]+=C,I[v-1]++),"("===M&&Q&&!X&&(T[v]=T[v-1].slice(y)+T[v],T[v-1]=T[v-1].slice(0,y))),T[v]+=z?J.slice(1):J),l||s||!M||(h++,S&&"("===M&&(E[h]=!0)),l||s||!F||(c&&(T[v]+=M),J+=M),J})),c&&(a=T[0]),!h&&a||Se(e)}function Re(e,t,n){var r,i,o,a,s,l,c,u,p,d,v,_,y,m,E,b,I,T,A,C,O,S,w,N,R,P,M,j,U,V,D,k,G,F,B=0,H=g.useViews||t.useViews||t.tags||t.templates||t.helpers||t.converters,K="",W={},X=e.length;for(typeof t===Y?(I=n?'data-link="'+t.replace(x," ").slice(1,-1)+'"':t,t=0):(I=t.tmplName||"unnamed",t.allowCode&&(W.allowCode=!0),t.debug&&(W.debug=!0),d=t.bnds,b=t.tmpls),r=0;r<X;r++)if(typeof(i=e[r])===Y)K+='+"'+i+'"';else if("*"===(o=i[0]))K+=";\n"+i[1]+"\nret=ret";else{if(a=i[1],C=!n&&i[2],G=i[3],F=_=i[4],s="\n\tparams:{args:["+G[0]+"],\n\tprops:{"+G[1]+"}"+(G[2]?",\n\tctx:{"+G[2]+"}":"")+"},\n\targs:["+F[0]+"],\n\tprops:{"+F[1]+"}"+(F[2]?",\n\tctx:{"+F[2]+"}":""),U=i[6],V=i[7],i[8]?(D="\nvar ob,ltOb={},ctxs=",k=";\nctxs.lt=ltOb.lt;\nreturn ctxs;"):(D="\nreturn ",k=""),O=i[10]&&i[10].replace(L,"$1"),(N="else"===o)?v&&v.push(i[9]):(M=i[5]||!1!==h.debugMode&&"undefined",d&&(v=i[9])&&(v=[v],B=d.push(1))),H=H||_[1]||_[2]||v||/view.(?!index)/.test(_[0]),(R=":"===o)?a&&(o=a===q?">":a+o):(C&&((T=me(O,W)).tmplName=I+"/"+o,T.useViews=T.useViews||H,Re(C,T),H=T.useViews,b.push(T)),N||(A=o,H=H||o&&(!f[o]||!f[o].flow),w=K,K=""),S=(S=e[r+1])&&"else"===S[0]),j=M?";\ntry{\nret+=":"\n+",y="",m="",R&&(v||U||a&&a!==q||V)){if((P=new Function("data,view,j","// "+I+" "+ ++B+" "+o+D+"{"+s+"};"+k))._er=M,P._tag=o,P._bd=!!v,P._lr=V,n)return P;Le(P,v),p=!0,y=(E='c("'+a+'",view,')+B+",",m=")"}if(K+=R?(n?(M?"try{\n":"")+"return ":j)+(p?(p=void 0,H=u=!0,E+(P?(d[B-1]=P,B):"{"+s+"}")+")"):">
2"===o?(c=!0,"h("+_[0]+")"):"((v="+_[0]+")!=null?v:"+(n?"null)":'"")')):(l=!0,"\n{view:view,content:false,tmpl:"+(C?b.length:"false")+","+s+"},"),A&&!S){if(K="["+K.slice(0,-1)+"]",E='t("'+A+'",view,this,',n||v){if((K=new Function("data,view,j"," // "+I+" "+B+" "+A+D+K+k))._er=M,K._tag=A,v&&Le(d[B-1]=K,v),K._lr=V,n)return K;y=E+B+",undefined,",m=")"}K=w+j+E+(v&&B||K)+")",v=0,A=0}M&&!S&&(H=!0,K+=";\n}catch(e){ret"+(n?"urn ":"+=")+y+"j._err(e,view,"+M+")"+m+";}"+(n?"":"\nret=ret"))}K="// "+I+(W.debug?"\ndebugger;":"")+"\nvar v"+(l?",t=j._tag":"")+(u?",c=j._cnvt":"")+(c?",h=j._html":"")+(n?(i[8]?", ob":"")+";\n":',ret=""')+K+(n?"\n":";\nreturn ret;");try{K=new Function("data,view,j",K)}catch(e){Se("Compiled template code:\n\n"+K+'\n: "'+(e.message||e)+'"')}return t&&(t.fn=K,t.useViews=!!H),K}function Pe(e,t){return e&&e!==t?t?se(se({},t),e):e:t&&se({},t)}function Me(e,n){var r,i,o,a=n.tag,l=n.props,c=n.params.props,u=l.filter,p=l.sort,f=!0===p,d=parseInt(l.step),h=l.reverse?-1:1;if(!S(e))return e;if(f||p&&typeof p===Y?((r=e.map((function(e,t){return{i:t,v:typeof(e=f?e:pe(e,p))===Y?e.toLowerCase():e}}))).sort((function(e,t){return e.v>t.v?h:e.v<t.v?-h:0})),e=r.map((function(t){return e[t.i]}))):(p||h<0)&&!a.dataMap&&(e=e.slice()),O(p)&&(e=e.sort((function(){return p.apply(n,arguments)}))),h<0&&(!p||O(p))&&(e=e.reverse()),e.filter&&u&&(e=e.filter(u,n),n.tag.onFilter&&n.tag.onFilter(n)),c.sorted&&(r=p||h<0?e:e.slice(),a.sorted?t.observable(a.sorted).refresh(r):n.map.sorted=r),i=l.start,o=l.end,(c.start&&void 0===i||c.end&&void 0===o)&&(i=o=0),isNaN(i)&&isNaN(o)||(i=+i||0,o=void 0===o||o>e.length?e.length:+o,e=e.slice(i,o)),d>1){for(i=0,o=e.length,r=[];i<o;i+=d)r.push(e[i]);e=r}return c.paged&&a.paged&&s(a.paged).refresh(e),e}function je(e){return B[e]||(B[e]="&#"+e.charCodeAt(0)+";")}function Ue(e,t){return H[t]||""}function Ve(e){return null!=e?M.test(e)&&(""+e).replace(V,je)||e:""}if(o={jsviews:A,sub:{rPath:/^(!*?)(?:null|true|false|\d[\d.]*|([\w$]+|\.|~([\w$]+)|#(view|([\w$]+))?)([\w$.^]*?)(?:[.[^]([\w$]+)\]?)?)$/g,rPrm:/(\()(?=\s*\()|(?:([([])\s*)?(?:(\^?)(~?[\w$.^]+)?\s*((\+\+|--)|\+|-|~(?![\w$])|&&|\|\||===|!==|==|!=|<=|>=|[<>%*:?\/]|(=))\s*|(!*?(@)?[#~]?[\w$.^]+)([([])?)|(,\s*)|(?:(\()\s*)?\\?(?:(')|("))|(?:\s*(([)\]])(?=[.^]|\s*$|[^([])|[)\]])([([]?))|(\s+)/g,View:ve,Err:ae,tmplFn:xe,parse:Ne,extend:se,extendCtx:Pe,syntaxErr:Se,onStore:{template:function(e,t){null===t?delete z[e]:e&&(z[e]=t)}},addSetting:be,settings:{allowCode:!1},advSet:oe,_thp:re,_gm:ne,_tg:function(){},_cnvt:function(e,t,n,r){var i,o,a,s,l,c="number"==typeof n&&t.tmpl.bnds[n-1];if(void 0===r&&c&&c._lr&&(r=""),void 0!==r?n=r={props:{},args:[r]}:c&&(n=c(t.data,t,d)),c=c._bd&&c,e||c){if(i=(o=t._lc)&&o.tag,n.view=t,!i){if(i=se(new d._tg,{_:{bnd:c,unlinked:!0,lt:n.lt},inline:!o,tagName:":",convert:e,onArrayChange:!0,flow:!0,tagCtx:n,tagCtxs:[n],_is:"tag"}),(s=n.args.length)>1)for(l=i.bindTo=[];s--;)l.unshift(s);o&&(o.tag=i,i.linkCtx=o),n.ctx=Pe(n.ctx,(o?o.view:t).ctx),re(i,n)}i._er=r&&a,i.ctx=n.ctx||i.ctx||{},n.ctx=void 0,a=i.cvtArgs()[0],i._er=r&&a}else a=n.args[0];return null!=(a=c&&t._.onRender?t._.onRender(a,t,i):a)?a:""},_tag:function(e,t,n,r,o,a){function s(e){var t=l[e];if(void 0!==t)for(t=S(t)?t:[t],v=t.length;v--;)j=t[v],isNaN(parseInt(j))||(t[v]=parseInt(j));return t||[0]}var l,c,p,f,h,g,v,_,y,m,E,b,I,T,A,C,O,x,L,w,N,R,P,M,j,V,D,k,G,F=0,B="",H=(t=t||i)._lc||!1,Y=t.ctx,K=n||t.tmpl,W="number"==typeof r&&t.tmpl.bnds[r-1];for("tag"===e._is?(e=(l=e).tagName,r=l.tagCtxs,l.template):(c=t.getRsc("tags",e)||Oe("Unknown tag: {{"+e+"}} ")).template,void 0===a&&W&&(W._lr=c.lateRender&&!1!==W._lr||W._lr)&&(a=""),void 0!==a?(B+=a,r=a=[{props:{},args:[],params:{props:{}}}]):W&&(r=W(t.data,t,d)),g=r.length;F<g;F++)C=(m=r[F]).tmpl,(!H||!H.tag||F&&!H.tag.inline||l._er||C&&+C===C)&&(C&&K.tmpls&&(m.tmpl=m.content=K.tmpls[C-1]),m.index=F,m.ctxPrm=fe,m.render=Te,m.cvtArgs=de,m.bndArgs=ge,m.view=t,m.ctx=Pe(Pe(m.ctx,c&&c.ctx),Y)),(n=m.props.tmpl)&&(m.tmpl=t._getTmpl(n),m.content=m.content||m.tmpl),l?H&&H.fn._lr&&(O=!!l.init):(O=!!(l=new c._ctr).init,l.parent=h=Y&&Y.tag,l.tagCtxs=r,H&&(l.inline=!1,H.tag=l),l.linkCtx=H,(l._.bnd=W||H.fn)?(l._.ths=m.params.props.this,l._.lt=r.lt,l._.arrVws={}):l.dataBoundOnly&&Oe(e+" must be data-bound:\n{^{"+e+"}}")),P=l.dataMap,m.tag=l,P&&r&&(m.map=r[F].map),l.flow||(E=m.ctx=m.ctx||{},p=l.parents=E.parentTags=Y&&Pe(E.parentTags,Y.parentTags)||{},h&&(p[h.tagName]=h),p[l.tagName]=E.tag=l,E.tagCtx=m);if(!(l._er=a)){for(re(l,r[0]),l.rendering={rndr:l.rendering},F=0;F<g;F++){if(R=(m=l.tagCtx=r[F]).props,l.ctx=m.ctx,!F){if(O&&(l.init(m,H,l.ctx),O=void 0),m.args.length||!1===m.argDefault||!1===l.argDefault||(m.args=w=[m.view.data],m.params.args=["#data"]),I=s("bindTo"),void 0!==l.bindTo&&(l.bindTo=I),void 0!==l.bindFrom?l.bindFrom=s("bindFrom"):l.bindTo&&(l.bindFrom=l.bindTo=I),T=l.bindFrom||I,D=I.length,V=T.length,l._.bnd&&(k=l.linkedElement)&&(l.linkedElement=k=S(k)?k:[k],D!==k.length&&Oe("linkedElement not same length as bindTo")),(k=l.linkedCtxParam)&&(l.linkedCtxParam=k=S(k)?k:[k],V!==k.length&&Oe("linkedCtxParam not same length as bindFrom/bindTo")),T)for(l._.fromIndex={},l._.toIndex={},_=V;_--;)for(j=T[_],v=D;v--;)j===I[v]&&(l._.fromIndex[v]=_,l._.toIndex[_]=v);H&&(H.attr=l.attr=H.attr||l.attr||H._dfAt),f=l.attr,l._.noVws=f&&f!==q}if(w=l.cvtArgs(F),l.linkedCtxParam)for(N=l.cvtArgs(F,1),v=V,G=l.constructor.prototype.ctx;v--;)(b=l.linkedCtxParam[v])&&(j=T[v],A=N[v],m.ctx[b]=d._cp(G&&void 0===A?G[b]:A,void 0!==A&&he(m.params,j),m.view,l._.bnd&&{tag:l,cvt:l.convert,ind:v,tagElse:F}));(x=R.dataMap||P)&&(w.length||R.dataMap)&&((L=m.map)&&L.src===w[0]&&!o||(L&&L.src&&L.unmap(),x.map(w[0],m,L,!l._.bnd),L=m.map),w=[L.tgt]),y=void 0,l.render&&(y=l.render.apply(l,w),t.linked&&y&&!U.test(y)&&((n={links:[]}).render=n.fn=function(){return y},y=Ae(n,t.data,void 0,!0,t,void 0,void 0,l))),w.length||(w=[t]),void 0===y&&(M=w[0],l.contentCtx&&(M=!0===l.contentCtx?t:l.contentCtx(M)),y=m.render(M,!0)||(o?void 0:"")),B=B?B+(y||""):void 0!==y?""+y:void 0}l.rendering=l.rendering.rndr}return l.tagCtx=r[0],l.ctx=l.tagCtx.ctx,l._.noVws&&l.inline&&(B="text"===f?u.html(B):""),W&&t._.onRender?t._.onRender(B,t,l):B},_er:Oe,_err:Ce,_cp:ie,_sq:function(e){return"constructor"===e&&Se(""),e}},settings:{delimiters:le,advanced:function(e){return e?(se(g,e),d.advSet(),v):g}},map:Ie}
vendor: 14,010 bytes, line 2
2,(ae.prototype=new Error).constructor=ae,ce.depends=function(){return[this.get("item"),"index"]},ue.depends="index",ve.prototype={get:function(e,t){t||!0===e||(t=e,e=void 0);var n,r,i,o,a=this,s="root"===t;if(e){if(!(o=t&&a.type===t&&a))if(n=a.views,a._.useKey){for(r in n)if(o=t?n[r].get(e,t):n[r])break}else for(r=0,i=n.length;!o&&r<i;r++)o=t?n[r].get(e,t):n[r]}else if(s)o=a.root;else if(t)for(;a&&!o;)o=a.type===t?a:void 0,a=a.parent;else o=a.parent;return o||void 0},getIndex:ue,ctxPrm:fe,getRsc:function(e,t){var n,r,i=this;if(typeof t===Y){for(;void 0===n&&i;)n=(r=i.tmpl&&i.tmpl[e])&&r[t],i=i.parent;return n||o[e][t]}},_getTmpl:function(e){return e&&(e.fn?e:this.getRsc("templates",e)||c(e))},_getOb:pe,getCache:function(e){return h._cchCt>this.cache._ct&&(this.cache={_ct:h._cchCt}),void 0!==this.cache[e]?this.cache[e]:this.cache[e]=$[e](this.data,this,d)},_is:"view"},d=o.sub,v=o.settings,!t.link){for(n in ee)Ee(n,ee[n]);if(u=o.converters,p=o.helpers,f=o.tags,d._tg.prototype={baseApply:function(e){return this.base.apply(this,e)},cvtArgs:de,bndArgs:ge,ctxPrm:fe},i=d.topView=new ve,!t)throw"jsviews.js requires jQuery";if(t.fn.render=function(e,n,r){var i=this.jquery&&(this[0]||Oe("Unknown template")),o=i.getAttribute(W);return Te.call(o&&t.data(i)[X]||c(i),e,n,r)},l=t.expando,t.observable){if(A!==(A=t.views.jsviews))throw"jquery.observable.js requires jsrender.js "+A;se(d,t.views.sub),o.map=t.views.map}for(I in(h=d.settings).allowCode=!1,t.render=z,t.views=o,t.templates=c=o.templates,h)be(I);(v.debugMode=function(e){return void 0===e?h.debugMode:(h._clFns&&h._clFns(),h.debugMode=e,h.onError=typeof e===Y?function(){return e}:O(e)?e:void 0,v)})(!1),g=h.advanced={cache:!0,useViews:!1,_jsv:!1},f({if:{render:function(e){var t=this,n=t.tagCtx;return t.rendering.done||!e&&(n.args.length||!n.index)?"":(t.rendering.done=!0,void(t.selected=n.index))},contentCtx:!0,flow:!0},for:{sortDataMap:Ie(Me),init:function(e,t){this.setDataMap(this.tagCtxs)},render:function(e){var t,n,r,i,o,a=this,s=a.tagCtx,l=!1===s.argDefault,c=s.props,u=l||s.args.length,p="",f=0;if(!a.rendering.done){if(t=u?e:s.view.data,l)for(l=c.reverse?"unshift":"push",i=+c.end,o=+c.step||1,t=[],r=+c.start||0;(i-r)*o>0;r+=o)t[l](r);void 0!==t&&(n=S(t),p+=s.render(t,!u||c.noIteration),f+=n?t.length:1),(a.rendering.done=f)&&(a.selected=s.index)}return p},setDataMap:function(e){for(var t,n,r,i=e.length;i--;)n=(t=e[i]).props,r=t.params.props,t.argDefault=void 0===n.end||t.args.length>0,n.dataMap=!1!==t.argDefault&&S(t.args[0])&&(r.sort||r.start||r.end||r.step||r.filter||r.reverse||n.sort||n.start||n.end||n.step||n.filter||n.reverse)&&this.sortDataMap},flow:!0},props:{baseTag:"for",dataMap:Ie((function(e,t){var n,r,i=t.map,o=i&&i.propsArr;if(!o){if(o=[],typeof e===K||O(e))for(n in e)r=e[n],n===l||!e.hasOwnProperty(n)||t.props.noFunctions&&O(r)||o.push({key:n,prop:r});i&&(i.propsArr=i.options&&o)}return Me(o,t)})),init:oe,flow:!0},include:{flow:!0},"*":{render:ie,flow:!0},":*":{render:ie,flow:!0},dbg:p.dbg=u.dbg=function(e){try{throw console.log("JsRender dbg breakpoint: "+e),"dbg breakpoint"}catch(e){}return this.base?this.baseApply(arguments):e}}),u({html:Ve,attr:Ve,encode:function(e){return typeof e===Y?e.replace(D,je):e},unencode:function(e){return typeof e===Y?e.replace(k,Ue):e},url:function(e){return null!=e?encodeURI(""+e):null===e?e:""}})}if(h=d.settings,v.delimiters("{{","}}","^"),Z&&J.views.sub._jq(t),o=t.views,d=o.sub,l=t.expando,!t.observe){var De=t.event.special,ke=[].slice,Ge=[].splice,Fe=[].concat,Be=parseInt,He=/\S+/g,qe=/^[^.[]*$/,Ye=d.propChng=d.propChng||"propertyChange",Ke=d.arrChng=d.arrChng||"arrayChange",We={},Xe=Ye+".observe",Qe=1,$e=1,ze=1,Je=t.data,Ze={},et=[],tt=function(e){return e?e._cId=e._cId||".obs"+$e++:""},nt=function(e,t){return this._data=t,this._ns=e,this},rt=function(e,t){return this._data=t,this._ns=e,this},it=function(e,t,n){var r,i,o,a,s=o=t,l=(e=e?S(e)?e:[e]:[])&&e.length,c=[];for(r=0;r<l;r++)i=e[r],O(i)?(a=t.tagName?t.linkCtx.data:t,c=c.concat(it(i.call(t,a,n),a,n))):typeof i===Y?(s!==o&&c.push(o=s),c.push(i)):(t=s=i=void 0===i?null:i,s!==o&&c.push(o=s));return c.length&&(c.unshift({_ar:1}),c.push({_ar:-1})),c},ot=function(e,t){function n(e){return typeof e===K&&(f[0]||!p&&S(e))}if(!e.data||!e.data.off){var r,i,o,a=t.oldValue,s=t.value,l=e.data,c=l.observeAll,u=l.cb,p=l._arOk?0:1,f=l.paths,d=l.ns;e.type===Ke?(u.array||u).call(l,e,t):l.prop!==t.path&&"*"!==l.prop||(c?(r=c._path+"."+t.path,i=c.filter,o=[e.target].concat(c.parents()),n(a)&&at(void 0,d,[a],f,u,!0,i,[o],r),n(s)&&at(void 0,d,[s],f,u,void 0,i,[o],r)):(n(a)&&at(p,d,[a],f,u,!0),n(s)&&at(p,d,[s],f,u)),l.cb(e,t))}},at=function(){var e=Fe.apply([],arguments);return a.apply(e.shift(),e)},st=function(e,t,n){ct(this._ns,this._data,e,t,[],"root",n)},lt=function(e,t){st.call(this,e,t,!0)},ct=function(e,n,r,i,o,c,u,p){function f(e,t){for(g=e.length,_=c+"[]";g--;)d(e,g,t,1)}function d(t,n,o,a){var c,u;n!==l&&(c=s._fltr(_,t[n],y,i))&&(u=y.slice(),a&&m&&u[0]!==m&&u.unshift(m),ct(e,c,r,i||(a?void 0:0),u,_,o,p))}function h(e,t){switch(c=e.data.observeAll._path,m=e.target,t.change){case"insert":f(t.items);break;case"remove":f(t.items,!0);break;case"set":_=c+"."+t.path,d(t,"oldValue",!0),d(t,"value")}m=void 0,r.apply(this,arguments)}h._wrp=1;var g,v,_,y,m,E,b=!p||p.un||!u;if(n&&typeof n===K){if(y=[n].concat(o),v=S(n)?"":"*",p&&b&&t.hasData(n)&&p[E=Je(n).obId])return void p[E]++;if(p||(p={un:u}),r){if(v||0!==i)if(h._cId=tt(r),b)a(e,n,v,h,u,i,y,c),E=Je(n).obId,p[E]=(p[E]||0)+1;else{if(--p[Je(n).obId])return;a(e,n,v,h,u,i,y,c)}}else p&&(p[Je(n).obId]=1),a(e,n,v,void 0,u,i,y,c);if(v)for(g in n)_=c+"."+g,d(n,g,u);else f(n,u)}},ut=function(e){return qe.test(e)},pt=function(){return[].push.call(arguments,!0),a.apply(void 0,arguments)},ft=function(e){var t,n=this.slice();for(this.length=0,this._go=0;t=n.shift();)t.skip||t[0]._trigger(t[1],t[2],!0);this.paths={}};a=function(){var e,n=1==this?0:1,r=ke.call(arguments),i=r[0];return typeof i===Y&&(e=i,r.shift()),function r(){var i,o,c,u,p,f,h,g,v,_,y,m,E,b,I,T,A,C,x,L;function w(e,t){var n;for(h in t)n=t[h],S(n)?R(e,n,c,c):N(e,n,void 0,M,"")}function N(r,i,o,a,s,l,u){var p,f,d,g=function(e){return S(e)?[e]:e}(i),v=m,y=E;if(a=e?a+"."+e:a,!c&&(u||l))for(x=(x=t._data(i).events)&&x[l?Ke:Ye],L=x&&x.length;L--;)if((h=x[L]&&x[L].data)&&(u&&h.ns!==e||!u&&h.ns===e&&h.cb&&h.cb._cId===r._cId&&h.cb._inId===r._inId&&(!r._wrp||h.cb._wrp)))return;c||u?t(g).off(a,ot):((f=l?{}:{fullPath:o,paths:s?[s]:[],prop:C,_arOk:n}).ns=e,f.cb=r,E&&(f.observeAll={_path:y,path:function(){return p=v.length,y.replace(/[[.]/g,(function(e){return p--,"["===e?"["+t.inArray(v[p-1],v[p]):"."}))},parents:function(){return v},filter:b}),t(g).on(a,null,f,ot),_&&(d=(d=Je(i)).obId||(d.obId=Qe++),_[d]=_[d]||(_.len++,i)))}function R(e,t,r,i,o){if(n){var a,l=E;a=t,o&&(a=t[o],E=E?E+"."+o:E),(i||S(a))&&(b&&a&&(a=s._fltr(E,a,m,b)),a&&N(e,a,void 0,Ke+".observe"+tt(e),void 0,!0,r)),E=l}}function P(i){function s(i,u,p,f){function g(e){return e.ob=f(e),e.cb=function(t,i){var o=e.ob,a=e.sb,s=f(e);s!==o&&(typeof o===K&&(R(p,o,!0),(a||n&&S(o))&&r([o],a,p,f,!0)),e.ob=s,typeof s===K&&(R(p,s),(a||n&&S(s))&&r([s],a,p,f))),p(t,i)}}function _(r,i){function o(e,t){var n;if("insert"===t.change||(c="remove"===t.change)){for(n=t.items.length;n--;)_(t.items[n],i.slice());c=!1}}p&&(o._cId=tt(p),o._inId=".arIn"+ze++);var u,d,g,v,y,m,T,A=r;if(r&&r._cxp)return s(r[0],[r[1]],p,f);for(;void 0!==(C=i.shift())&&"__proto__"!==C;){if(A&&typeof A===K&&typeof C===Y){if(""===C)continue;if("()"===C.slice(-2)&&(C=C.slice(0,-2),T=!0),i.length<I+1&&!A.nodeType){if(!c&&(x=t._data(A).events)){for(x=x&&x[Ye],L=x&&x.length,d=0;L--;)!(h=x[L].data)||h.ns!==e||h.cb._cId!==p._cId||h.cb._inId!==p._inId||!h._arOk!=!n||h.prop!==C&&"*"!==h.prop&&"**"!==h.prop||((y=i.join("."))&&h.paths.push(y),d++);if(d){m=A[C],A=O(m)?m.call(A):A[C];continue}}if("*"===C||"**"===C){if(!c&&x&&x.length&&N(p,A,b,M,"",!1,!0),"*"===C)for(y in N(p,A,b,M,""),A)y!==l&&R(p,A,c,void 0,y);else t.observable(e,A)[(c?"un":"")+"observeAll"](p);break}"[]"==C?S(A)&&(c?N(p,A,b,Ke+tt(p),void 0,c,c):a(e,A,o,c)):C&&N(p,A,b,M+".p_"+C,i.join("^"))}if(E&&(E+="."+C),"[]"===C){for(S(A)&&(v=A,u=A.length);u--;)_(A=v[u],i.slice());return}C=A[C],i[0]||R(p,C,c)}if(O(C)&&((g=(m=C).depends)&&(A._vw&&A._ocp&&((A=A._vw)._tgId&&(A=A.tagCtx.view),A=A.data),P(Fe.apply([],[[A],it(g,A,p)]))),T)){if(!i[0]){R(p,m.call(A),c);break}if(!(C=m.call(A)))break}A=C}}var m,b,I=0,T=u.length;for(!i||f||!(A="view"===i._is)&&"tag"!==i._is||(f=d._gccb(A?i:i.tagCtx.contentView),p&&!c&&function(){var e=i,t=p;(p=function(n,r){t.call(e,n,r)})._cId=t._cId,p._inId=t._inId}(),i=A?i.data:i),u[0]||(S(i)?R(p,i,c,!0):c&&N(p,i,void 0,M,"")),m=0;m<T;m++)if(""!==(b=u[m]))if(b&&b._ar)n+=b._ar;else if(typeof b===Y)if((o=b.split("^"))[1]&&(I=o[0].split(".").length,b=o.join("."),I=b.split(".").length-I),f&&(v=f(b,I))){if(v.length){var w=v[0],j=v[1];if(w&&w._cxp&&(j=w[1],"view"===(w=w[0])._is)){s(w,[j],p);continue}typeof j===Y?_(w,j.split(".")):s(v.shift(),v,p,f)}}else _(i,b.split("."));else!O(b)&&b&&b._cpfn&&((y=c?b.cb||(b.cb=p):g(b))._cId=p._cId,y._inId=y._inId||".obIn"+ze++,(b.bnd||b.prm&&b.prm.length||!b.sb)&&r([i],b.path,b.prm.length?[b.root||i]:[],b.prm,y,f,c),b.sb&&(b.sb.prm&&(b.sb.root=i),s(b.ob,[b.sb],p,f)))}for(var p,f=[],_=i.length;_--;)typeof(p=i[_])===Y||p&&(p._ar||p._cpfn)?f.unshift(p):(s(p,f,u,g),f=[])}var M=Xe,j=1!=this?Fe.apply([],arguments):ke.call(arguments),U=j.pop()||!1,V=j.length;if(typeof U===Y&&(E=U,m=j.pop(),b=j.pop(),U=!!j.pop(),V-=3),U===!!U&&(c=U,U=j[V-1],U=!V||typeof U===Y||U&&!O(U)?void 0:(V--,j.pop()),c&&!V&&O(j[0])&&(U=j.shift())),u=U,V&&O(j[V-1])&&(g=u,U=u=j.pop(),V--),!c||!u||u._cId){for(M+=u?(f=u._inId||"",c?u._cId+f:(p=tt(u))+f):"",p&&!c&&(_=We[p]=We[p]||{len:0}),T=(I=e&&e.match(He)||[""]).length;T--;){if(e=I[T],c&&arguments.length<3)if(u)w(u,We[u._cId]);else if(!j[0])for(i in We)w(u,We[i]);P(j)}return p&&!_.len&&delete We[p],{cbId:p,bnd:_}}}.apply(1,r)},et.wait=function(){var e=this;e._go=1,setTimeout((function(){e.trigger(!0),e._go=0,e.paths={}}))},s=function(e,t,n){typeof e!==Y&&(n=t,t=e,e=""),n=void 0===n?g.asyncObserve:n;var r=S(t)?new rt(e,t):new nt(e,t);return n&&(!0===n&&(r.async=!0,n=et),n.trigger||(S(n)?(n.trigger=ft,n.paths={}):n=void 0),r._batch=n),r},t.observable=s,s._fltr=function(e,t,n,r){if(!r||!O(r)||typeof t!==K&&!O(t)||r(e,t,n))return typeof(t=O(t)?t.set&&t.call(n[0]):t)===K&&t},s.Object=nt,s.Array=rt,t.observe=s.observe=a,t.unobserve=s.unobserve=pt,s._apply=at,nt.prototype={_data:null,observeAll:st,unobserveAll:lt,data:function(){return this._data},setProperty:function(e,t,n,r){var i,o,a,s,c=typeof(e=e||"")!==Y,u=this,p=u._data,f=u._batch;if(p)if(c)if(n=t,S(e))for(i=e.length;i--;)o=e[i],u.setProperty(o.name,o.value,void 0===n||n);else{for(i in f||(u._batch=s=[],s.trigger=ft,s.paths={}),e)u.setProperty(i,e[i],n);s&&(u._batch.trigger(),u._batch=void 0)}else if(e!==l){for(a=e.split(/[.^]/);p&&a.length>1;)p="__proto__"!==(i=a.shift())?p[i]:void 0;p&&u._setProperty(p,a[0],t,n,r)}return u},removeProperty:function(e){return this.setProperty(e,Ze),this},_setProperty:function(e,t,n,r,i){var o,a,s,l,c,u=t?e[t]:e;if(O(u)&&!O(n)){if(i&&!u.set)return;u.set&&(c=e._vw||e,o=!0===(a=u).set?a:a.set,u=a.call(c))}(u!==n||r&&u!=n)&&(!(u instanceof Date&&n instanceof Date)||u>n||u<n)&&(o?(o.call(c,n),n=a.call(c)):(s=n===Ze)?void 0!==u?(delete e[t],n=void 0):t=void 0:t&&(e[t]=n),t&&(l={change:"set",path:t,value:n,oldValue:u,remove:s},e._ocp&&(l.ctxPrm=e._key),this._trigger(e,l)))},_trigger:function(e,n,r){h._cchCt++;var i,o,a,s=this;t.hasData(e)&&(!r&&(o=s._batch)?(s.async&&!o._go&&o.wait(),o.push([s,e,n]),i=Je(e).obId+n.path,(a=o.paths[i])&&(o[a-1].skip=1),o.paths[i]=o.length):(t(e).triggerHandler(Ye+(this._ns?"."+/^\S+/.exec(this._ns)[0]:""),n),n.oldValue=null))}},rt.prototype={_data:null,observeAll:st,unobserveAll:lt,data:function(){return this._data},insert:function(e,t){var n=this._data;return 1===arguments.length&&(t=e,e=n.length),(e=Be(e))>-1&&(t=S(t)?t:[t]).length&&this._insert(e,t),this},_insert:function(e,t){var n=this._data,r=n.length;e>r&&(e=r),Ge.apply(n,[e,0].concat(t)),this._trigger({change:"insert",index:e,items:t},r)},remove:function(e,t){var n,r=this._data;return void 0===e&&(e=r.length-1),e=Be(e),(t=t?Be(t):0===t?0:1)>0&&e>-1&&(t=(n=r.slice(e,e+t)).length)&&this._remove(e,t,n),this},_remove:function(e,t,n){var r=this._data,i=r.length;r.splice(e,t),this._trigger({change:"remove",index:e,items:n},i)},move:function(e,t,n){return n=n?Be(n):0===n?0:1,e=Be(e),t=Be(t),n>0&&e>-1&&t>-1&&e!==t&&this._move(e,t,n),this},_move:function(e,t,n){var r,i=this._data,o=i.length,a=e+n-o;a>0&&(n-=a),n&&(r=i.splice(e,n),t>i.length&&(t=i.length),Ge.apply(i,[t,0].concat(r)),t!==e&&this._trigger({change:"move",oldIndex:e,index:t,items:r},o))},refresh:function(e){function t(){i&&(s.insert(r-i,l),f+=i,n+=i,i=0,l=[])}var n,r,i,o,a,s=this,l=[],c=s._data,u=c.slice(),p=c.length,f=p,d=e.length;for(s._srt=!0,r=i=0;r<d;r++)if((o=e[r])===c[r-i])t();else{for(n=r-i;n<f&&o!==c[n];n++);if(n<f){for(t(),a=0;a++<d-n&&e[r+a]===c[n+a];);s.move(n,r,a),r+=a-1}else i++,l.push(o)}return t(),f>r&&s.remove(r,f-r),s._srt=void 0,(p||d)&&s._trigger({change:"refresh",oldItems:u},p),s},_trigger:function(e,n,r){h._cchCt++;var i,o,a,s=this;t.hasData(o=s._data)&&(!r&&(a=s._batch)?(e._dly=!0,a.push([s,e,n]),s.async&&!a._go&&a.wait()):(i=o.length,o=t([o]),s._srt?e.refresh=!0:i!==n&&o.triggerHandler(Ye,{change:"set",path:"length",value:i,oldValue:n}),o.triggerHandler(Ke+(s._ns?"."+/^\S+/.exec(s._ns)[0]:""),e)))}},De[Ye]=De[Ke]={remove:function(e){var n,r,i,o,a,s=e.data;if(s&&(s.off=!0,s=s.cb)&&(n=We[s._cId])){for(o=(i=t._data(this).events[e.type]).length;o--&&!r;)r=(a=i[o].data)&&a.cb&&a.cb._cId===s._cId;r||(--n.len?delete n[Je(this).obId]:delete We[s._cId])}}},o.map=function(e){function n(t,n,r,i){var o,a,l=this;l.src&&l.unmap(),n&&(n.map=l),(typeof t===K||O(t))&&(l.src=t,i?l.tgt=e.getTgt(t,n):(r&&(l.tgt=r.tgt||S(r)&&r),l.tgt=l.tgt||[],l.options=n||l.options,(a=l.update(
2))?l=a:(e.obsSrc&&s(l.src).observeAll(l.obs=function(t,n){o||n.refresh||(o=!0,e.obsSrc(l,t,n),o=void 0)},l.srcFlt),e.obsTgt&&s(l.tgt).observeAll(l.obt=function(t,n){o||l.tgt._updt||(o=!0,e.obsTgt(l,t,n),o=void 0)},l.tgtFlt))))}return O(e)&&(e={getTgt:e}),e.baseMap&&(e=t.extend({},e.baseMap,e)),e.map=function(e,t,r,i){return new n(e,t,r,i)},(n.prototype={srcFlt:e.srcFlt||ut,tgtFlt:e.tgtFlt||ut,update:function(t){var n,r,i=this,o=i.tgt;if(!o._updt&&(o._updt=!0,n=i.options&&i.options.map,s(o).refresh(e.getTgt(i.src,i.options=t||i.options)),o._updt=!1,(r=i.options&&i.options.map)&&n!==r))return r},observe:function(e,n){var r=this,i=r.options;r.obmp&&pt(r.obmp),r.obmp=function(){var e=n.fn(n.data,n.view,d)[i.index];t.extend(i.props,e.props),i.args=e.args,r.update()},s._apply(1,n.data,it(e,n.tag,r.obmp),r.obmp,n._ctxCb)},unmap:function(){var e=this;e.src&&e.obs&&s(e.src).unobserveAll(e.obs,e.srcFlt),e.tgt&&e.obt&&s(e.tgt).unobserveAll(e.obt,e.tgtFlt),e.obmp&&pt(e.obmp),e.src=void 0},map:n,_def:e}).constructor=n,e},d.advSet=function(){d=this,g=h.advanced,e._jsv=g._jsv?{cbBindings:We}:void 0},d._dp=it,d._gck=tt,d._obs=a,h._cchCt=0,g=h.advanced=g||{useViews:!1,_jsv:!1}}if(v=o.settings,h=d.settings,g=h.advanced,u=o.converters,t.templates=c=o.templates,f=o.tags,P=/<(?!script)(\w+)[>\s]/,Y="string",t.link)return t;h.trigger=!0;var dt,ht,gt,vt,_t,yt,mt,Et,bt,It=void 0!==document.textContent?"textContent":"innerText",Tt="data-jsv",At="change.jsv",Ct="onBeforeChange",Ot="onAfterChange",St="onAfterCreate",xt="checked",Lt="checkbox",wt="radio",Nt="input[type=",Rt=Nt+Lt+"]",Pt="none",Mt="value",jt="SCRIPT",Ut="true",Vt="plaintext-only",Dt='"><\/script>',kt='<script type="jsv',Gt=Tt+"-df",Ft="script,["+Tt+"]",Bt={value:"val",input:"val",html:q,text:"text"},Ht={from:Mt,to:Mt},qt=0,Yt=t.cleanData,Kt=v.delimiters,Wt={},Xt=document.createDocumentFragment(),Qt=document.querySelector,$t={ol:1,ul:1,table:1,tbody:1,thead:1,tfoot:1,tr:1,colgroup:1,dl:1,select:1,optgroup:1,svg:1,svg_ns:1},zt={tr:"table"},Jt={br:1,img:1,input:1,hr:1,area:1,base:1,col:1,link:1,meta:1,command:1,embed:1,keygen:1,param:1,source:1,track:1,wbr:1},Zt={},en={},tn=1,nn=/^#(view\.?)?/,rn=/((\/>)|<\/(\w+)>|)(\s*)([#/]\d+(?:_|(\^)))`(\s*)(<\w+(?=[\s\/>]))?|\s*(?:(<\w+(?=[\s\/>]))|<\/(\w+)>(\s*)|(\/>)\s*|(>)|$)/g,on=/(#)()(\d+)(_)/g,an=/(#)()(\d+)([_^])/g,sn=/(?:(#)|(\/))(\d+)(_)/g,ln=/(?:(#)|(\/))(\d+)(\^)/g,cn=/(#)()(\d+)(\^)/g,un=/(?:(#)|(\/))(\d+)([_^])([-+@\d]+)?/g,pn=/^[^.]*$/,fn=e.getComputedStyle,dn=t.inArray;if(Nt+=wt+"]",!(s=t.observable))throw requiresStr+"jquery.observable.js";function hn(e,t,n,r,i){var o,a,l,c,u,p,f,d,h,g,v,_,y,m,E,b,I,T,A,x,L,w;if(r&&r._tgId&&(r=(x=r)._tgId,x.bindTo||(Gn(en[r],x),x.bindTo=[0])),(p=en[r])&&(y=p.to)){if(y=y[t||0],h=(o=p.linkCtx).elem,u=o.view,!(x=o.tag)&&y._cxp&&(x=y._cxp.path!==C&&y._cxp.tag,f=e[0],(e=[])[y._cxp.ind]=f),x&&(x._.chg=1,(l=x.convertBack)&&(a=O(l)?l:u.getRsc("converters",l))),"SELECT"===h.nodeName)h.multiple&&null===e[0]&&(e=[[]]),h._jsvSel=e;else if(h._jsvSel){if((x=h._jsvLkEl)&&x.tagCtx.params.props.linkTo)for(T=(_=x.linkedElem).length,L=[];T--;)(v=_[T]).checked&&L.unshift(v.value);else L=h._jsvSel.slice(),(w=dn(h.value,L))>-1&&!h.checked?L.splice(w,1):w<0&&h.checked&&L.push(h.value);e=[L]}for(d=e,T=y.length,a&&(void 0===(e=a.apply(x,e))&&(y=[]),S(e)&&(!1===e.arg0||1!==T&&e.length===T&&!e.arg0)||(e=[e]));T--;)if((m=y[T])&&(c=(m=typeof m===Y?[o.data,m]:m)[0],E=m.tag,!(void 0===(f=(c&&c._ocp&&!c._vw?d:e)[T])||x&&x.onBeforeUpdateVal&&!1===x.onBeforeUpdateVal(i,{change:"change",data:c,path:m[1],index:T,tagElse:t,value:f}))))if(E)void 0!==(A=E._.toIndex[m.ind])&&E.updateValue(f,A,m.tagElse,void 0,void 0,i),E.setValue(f,m.ind,m.tagElse);else if(void 0!==f&&c){if((E=i&&(g=i.target)._jsvInd===T&&g._jsvLkEl)&&void 0!==(A=E._.fromIndex[T])&&E.setValue(d[T],A,g._jsvElse),c._cpfn)for(I=o._ctxCb,b=c,c=o.data,b._cpCtx&&(c=b.data,I=b._cpCtx);b&&b.sb;)c=I(b),b=b.sb;s(c,n).setProperty(m[1],f,void 0,m.isCpfn)}}if(x)return x._.chg=void 0,x}function gn(e){var n,r,i=e.target,o=bn(i),a=Bt[o],s=/&(\d+)\+?/g;
vendor: 9,383 bytes, line 2
2if(!i._jsvTr||e.delegateTarget!==dt&&"number"!==i.type||"input"===e.type){for(r=O(o)?o(i):a?t(i)[a]():t(i).attr(o),i._jsvChg=1;n=s.exec(i._jsvBnd);)Qn(r,i._jsvInd,i._jsvElse,void 0,n[1],e);i._jsvChg=void 0}}function vn(e,t){var n,r,i,o,a,s,l,c,u,p=this,f=p.fn,h=p.tag,g=p.data,v=p.elem,_=p.convert,y=v.parentNode,m=p.view,E=m._lc,b=t&&Kn(m,Ct,h);if(y&&(!b||!1!==b.call(h||p,e,t))&&(!t||"*"===e.data.prop||e.data.prop===t.path)){if(m._lc=p,t||p._toLk){if(p._toLk=0,f._er)try{r=f(g,m,d)}catch(e){a=f._er,r=[{props:{},args:[s=Ce(e,m,new Function("data,view","return "+a+";")(g,m))],tag:h}]}else r=f(g,m,d);if(n=h&&h.attr||p.attr||(p._dfAt=bn(v,!0,void 0!==_)),p._dfAt===Mt&&(h&&h.parentElem||p.elem).type===Lt&&(n=xt),h){if(o=a||h._er,r=r[0]?r:[r],i=!o&&(!1===h.onUpdate||t&&O(h.onUpdate)&&!1===h.onUpdate(e,t,r)),Bn(h,r,o),h._.chg&&(n===q||n===Mt)||i||n===Pt)return Un(h,e,t),h._.chg||An(p,g,v),m._lc=E,t&&(b=Kn(m,Ot,h))&&b.call(h||p,e,t),void(h.tagCtx.props.dataMap&&h.tagCtx.props.dataMap.map(h.tagCtx.args[0],h.tagCtx,h.tagCtx.map,T||!h._.bnd));for(h.onUnbind&&h.onUnbind(h.tagCtx,p,h.ctx,e,t),h.linkedElems=h.linkedElem=h.mainElem=h.displayElem=void 0,u=h.tagCtxs.length;u--;)(c=h.tagCtxs[u]).linkedElems=c.mainElem=c.displayElem=void 0;r=":"===h.tagName?d._cnvt(h.convert,m,r[0]):d._tag(h,m,m.tmpl,r,!0,s)}else f._tag&&(r=(_=""===_?Ut:_)?d._cnvt(_,m,r[0]||r):d._tag(f._tag,m,m.tmpl,r,!0,s),zn(h=p.tag),n=p.attr||n);(l=h&&(!h.inline||p.fn._lr)&&h.template)&&An(p,g,v),yn(r,p,n,h),p._noUpd=0,h&&(h._er=a,Un(h,e,t))}l||An(p,g,v),h&&h._.ths&&h.updateValue(h,h.bindTo?h.bindTo.length:1),t&&(b=Kn(m,Ot,h))&&b.call(h||p,e,t),m._lc=E}}function _n(e,t){e._df=t,e[(t?"set":"remove")+"Attribute"](Gt,"")}function yn(n,r,i,o){var a,s,l,c,u,p,f,d,h,g,v,_,y,m,E=!(i===Pt||void 0===n||r._noUpd||(i===Mt||i===q)&&!o&&r.elem._jsvChg),b=r.data,I=o&&o.parentElem||r.elem,T=I.parentNode,A=t(I),C=r.view,O=r._val,x=o;if(o&&(o._.unlinked=!0,o.parentElem=o.parentElem||r.expr||o._elCnt?I:T,s=o._prv,l=o._nxt),E)return"visible"===i&&(i="css-display"),/^css-/.test(i)?("visible"===r.attr&&(y=(I.currentStyle||fn.call(e,I,"")).display,n?(n=I._jsvd||y)!==Pt||(n=Zt[_=I.nodeName])||(v=document.createElement(_),document.body.appendChild(v),n=Zt[_]=(v.currentStyle||fn.call(e,v,"")).display,document.body.removeChild(v)):(I._jsvd=y,n=Pt)),(x=x||O!==n)&&t.style(I,i.slice(4),n)):"link"!==i&&(/^data-/.test(i)?t.data(I,i.slice(5),n):/^prop-/.test(i)?(p=!0,i=i.slice(5)):i===xt?(p=!0,I.name&&null==n&&I._jsvLkEl&&"checkboxgroup"===I._jsvLkEl.tagName&&(n=[]),I.name&&S(n)?(I._jsvSel=n,n=dn(I.value,n)>-1):n=n&&"false"!==n):i===wt?(p=!0,i=xt,n=I.value===n):"selected"===i||"disabled"===i||"multiple"===i||"readonly"===i||"required"===i?n=n&&"false"!==n?i:null:i===Mt&&"SELECT"===I.nodeName&&(I._jsvSel=S(n)?n:""+n),(a=Bt[i])?i===q?o&&o.inline?(u=o.nodes(!0),o._elCnt&&(s&&s!==l?Wn(s,l,I,o._tgId,"^",!0):(f=s?s.getAttribute(Tt):I._df,d=o._tgId+"^",h=f.indexOf("#"+d)+1,g=f.indexOf("/"+d),h&&g>0&&g>(h+=d.length)&&(Xn(f.slice(h,g)),f=f.slice(0,h)+f.slice(g),s?s.setAttribute(Tt,f):I._df&&_n(I,f))),s=s?s.previousSibling:l?l.previousSibling:I.lastChild),t(u).remove(),c=C.link(C.data,I,s,l,n,o&&{tag:o._tgId})):(E=E&&O!==n)&&(A.empty(),c=C.link(b,I,s,l,n,o&&{tag:o._tgId})):I._jsvSel?A[a](n):((x=x||O!==n)&&("text"===i&&I.children&&!I.children[0]?I[It]=null===n?"":n:A[a](n)),void 0===(m=T._jsvSel)||i!==Mt&&void 0!==A.attr(Mt)||(I.selected=dn(""+n,S(m)?m:[m])>-1)):(x=x||O!==n)&&A[p?"prop":"attr"](i,void 0!==n||p?n:null)),r._val=n,Cn(c),x;r._val=n}function mn(e,t){var n=this,r=Kn(n,Ct,n.tag),i=Kn(n,Ot,n.tag);if(!r||!1!==r.call(n,e,t)){if(t){var o=t.change,a=t.index,s=t.items;switch(n._.srt=t.refresh,o){case"insert":n.addViews(a,s,t._dly);break;case"remove":n.removeViews(a,s.length,void 0,t._dly);break;case"move":n.moveViews(t.oldIndex,a,s.length);break;case"refresh":n._.srt=void 0,n.fixIndex(0)}}i&&i.call(n,e,t)}}function En(e){var n,r,i=e.type,o=e.data,a=e._.bnd;!e._.useKey&&a&&((r=e._.bndArr)&&(t([r[1]]).off(Ke,r[0]),e._.bndArr=void 0),a!==!!a?i?a._.arrVws[e._.id]=e:delete a._.arrVws[e._.id]:i&&o&&(n=function(t){t.data&&t.data.off||mn.apply(e,arguments)},t([o]).on(Ke,n),e._.bndArr=[n,o]))}function bn(e,t,n){var r=e.nodeName.toLowerCase(),i=g._fe[r]||(e.contentEditable===Ut||e.contentEditable===Vt)&&{to:q,from:q};return i?t?"input"===r&&e.type===wt?wt:i.to:i.from:t?n?"text":q:""}function In(e,n,r,i,o,a,s){var l,c,u,p,f,d=e.parentElem,h=e._prv,g=e._nxt,v=e._elCnt;if(h&&h.parentNode!==d&&Oe("Missing parentNode"),s)for(f in p=e.nodes(),v&&h&&h!==g&&Wn(h,g,d,e._.id,"_",!0),e.removeViews(void 0,void 0,!0),c=g,v&&(h=h?h.previousSibling:g?g.previousSibling:d.lastChild),t(p).remove(),e._.bnds)qn(f);else{if(n){if(!(u=i[n-1]))return!1;h=u._nxt}v?h=(c=h)?c.previousSibling:d.lastChild:c=h.nextSibling}l=r.render(o,a,e._.useKey&&s,e,s||n,!0),Cn(e.link(o,d,h,c,l,u))}function Tn(e,t,n){var r,i;return n?(i="^`",zn(n),(r=n._tgId)||(en[r=tn++]=n,n._tgId=""+r)):(i="_`",mt[r=t._.id]=t),"#"+r+i+(null!=e?e:"")+"/"+r+i}function An(e,t,n){var r,i,o,a,l,c,u,p,f,h,g,v,_=e.tag,y=!_,m=e.convertBack,E=e._hdl;if(t="object"==typeof t&&t,_&&((f=_.convert)&&(f=f===Ut?_.tagCtx.props.convert:f,f=(f=(f=e.view.getRsc("converters",f)||f)&&f.depends)&&d._dp(f,t,E)),(h=_.tagCtx.props.depends||_.depends)&&(h=d._dp(h,_,E),f=f?f.concat(h):h),v=_.linkedElems),f=f||[],!e._depends||""+e._depends!=""+f){if(l=e.fn.deps.slice(),e._depends&&(g=e._depends.bdId,s._apply(1,[t],l,e._depends,E,e._ctxCb,!0)),_){for(i=_.boundProps.length;i--;)for(u=_.boundProps[i],o=_._.bnd.paths.length;o--;)(p=_._.bnd.paths[o]["_"+u])&&p.length&&p.skp&&(l=l.concat(p));y=void 0===_.onArrayChange||!0===_.onArrayChange}for(i=l.length;i--;)(c=l[i])._cpfn&&(l[i]=se({},c));if(r=s._apply(y?0:1,[t],l,f,E,e._ctxCb),g||(g=e._bndId||""+tn++,e._bndId=void 0,n._jsvBnd=(n._jsvBnd||"")+"&"+g,e.view._.bnds[g]=g),r.elem=n,r.linkCtx=e,r._tgId=g,f.bdId=g,e._depends=f,en[g]=r,(v||void 0!==m||_&&_.bindTo)&&Gn(r,_,m),v)for(i=v.length;i--;)for(o=(a=v[i])&&a.length;o--;)a[o]._jsvLkEl?a[o]._jsvBnd||(a[o]._jsvBnd="&"+g+"+"):(a[o]._jsvLkEl=_,kn(_,a[o]),a[o]._jsvBnd="&"+g+"+");else void 0!==m&&kn(_,n);_&&!_.inline&&(_.flow||n.setAttribute(Tt,(n.getAttribute(Tt)||"")+"#"+g+"^/"+g+"^"),_._tgId=""+g)}}function Cn(e){var t;if(e)for(;t=e.pop();)t._hdl()}function On(e,t,n,r,i,o,a){return Sn(this,e,t,n,r,i,o,a)}function Sn(e,n,r,o,a,s,l,c){if(!0===o?(a=o,o=void 0):o="object"!=typeof o?void 0:se({},o),e&&n){n=n.jquery?n:t(n),dt||(dt=document.body,bt="oninput"in dt,t(dt).on(At,gn).on("blur.jsv","[contenteditable]",gn));for(var u,p,f,d,h,g,v,_,y,m,E=Tn,b=o&&"replace"===o.target,I=n.length;I--;){if(v=n[I],m=s||gt(v),typeof e===Y)Ln(y=[],e,v,m,void 0,"expr",r,o);else{if(void 0!==e.markup)b&&(g=v.parentNode),m._.scp=!0,f=e.render(r,o,a,m,void 0,E,!0),m._.scp=void 0,g?(l=v.previousSibling,c=v.nextSibling,t.cleanData([v],!0),g.removeChild(v),v=g):(l=c=void 0,t(v).empty());else{if(!0!==e||m!==i)break;_={lnk:"top"}}if(v._df&&!c){for(u=0,p=(d=Pn(v._df,!0,on)).length;u<p;u++)h=d[u],(h=mt[h.id])&&void 0!==h.data&&h.parent.removeViews(h._.key,void 0,!0);_n(v)}y=m.link(r,v,l,c,f,_,o)}Cn(y)}}return n}function xn(e,n,r,i,o,a,s,l){function c(e,t){var r,i,o,a,s,l,c,u=[];if(e){for("@"===e._tkns.charAt(0)&&(t=E.previousSibling,E.parentNode.removeChild(E),E=void 0),y=e.length;y--;){if(o=(I=e[y]).ch,r=I.path)for(_=r.length-1;i=r.charAt(_--);)"+"===i?"-"===r.charAt(_)?(_--,t=t.previousElementSibling):t=t.parentNode:t=t.lastElementChild;"^"===o?(d=en[s=I.id])&&(c=t&&(!E||E.parentNode!==t),E&&!c||(d.parentElem=t),I.elCnt&&c&&_n(t,(I.open?"#":"/")+s+o+(t._df||"")),u.push([c?null:E,I])):(b=mt[s=I.id])&&(b.parentElem||(b.parentElem=t||E&&E.parentNode||n,b._.onRender=Tn,b._.onArrayChange=mn,En(b)),a=b.parentElem,I.open?(b._elCnt=I.elCnt,t&&!E?_n(t,"#"+s+o+(t._df||"")):(b._prv||_n(a,Nn(a._df,"#"+s+o)),b._prv=E)):(!t||E&&E.parentNode===t?E&&(b._nxt||_n(a,Nn(a._df,"/"+s+o)),b._nxt=E):(_n(t,"/"+s+o+(t._df||"")),b._nxt=void 0),(l=Kn(b,St)||le)&&l.call(b.ctx.tag,b)))}for(y=u.length;y--;)ie.push(u[y])}return!e||e.elCnt}function u(e){var t,n,r;if(e)for(y=e.length,_=0;_<y;_++)if(I=e[_],!(d=en[I.id])._is&&d.linkCtx&&(n=d=d.linkCtx.tag,r=d.tagName===N,!d.flow||r)){if(!w){for(t=1;n=n.parent;)t++;j=j||t}!w&&t!==j||N&&!r||L.push(d)}}var p,f,d,h,v,_,y,m,E,b,I,T,A,C,O,S,x,L,w,N,R,M,j,U,V,D,k,G,F,B,H,q,K,W,X,Q,$,z,J,Z,ee,te=this,ne=te._.id+"_",re="",ie=[],oe=[],ae=[],se=[],le=Kn(te,St),ce=c;if(a&&(a.tmpl?O="/"+a._.id+"_":(Z=a.lnk,a.tag&&(ne=a.tag+"^",a=!0),(ee=a.get)&&(ce=u,L=ee.tags,w=ee.deep,N=ee.name)),a=!0===a),n=n?typeof n===Y?t(n)[0]:n.jquery?n[0]:n:te.parentElem||document.body,M=!g.noValidate,G=n.tagName.toLowerCase(),K=!!$t[G],r=r&&jn(r,K),i=i&&jn(i,K)||null,null!=o){if(B=H=document.createElement("div"),$=Q="",X="http://www.w3.org/2000/svg"===n.namespaceURI?"svg_ns":(k=P.exec(o))&&k[1]||"",K){for(x=i;x&&!(S=Pn(x));)x=x.nextSibling;(q=S?S._tkns:n._df)&&(C=O||"",!a&&O||(C+="#"+ne),(_=q.indexOf(C))+1&&(_+=C.length,$=Q=q.slice(0,_),q=q.slice(_),S?x.setAttribute(Tt,q):_n(n,q)))}if(F=void 0,o=(""+o).replace(rn,(function(e,t,n,r,i,a,s,l,c,u,f,h,g,v){var _,y,m="";return v?(p=0,e):(d=(c||u||"").toLowerCase(),r=r||f,n=n||g,F&&!n&&(!e||r||d||a&&!p)&&(F=void 0,G=oe.shift()),(r=r||n)&&(r=r.toLowerCase(),p=0,F=void 0,M&&(n||g?Jt[G]||/;svg;|;math;/.test(";"+oe.join(";")+";")||(_="'<"+G+".../"):Jt[r]?_="'</"+r:oe.length&&r===G||(_="Mismatch: '</"+r),_&&Se(_+">
2' in:\n"+o)),W=K,G=oe.shift(),K=$t[G],f=f?"</"+f+">":"",W&&(re+=Q,Q="",K?re+="-":(m=f+kt+"@"+re+Dt+(h||""),re=ae.shift()))),K&&!p?(a?Q+=a:t=f||g||"",d&&(t+=d,Q&&(t+=" "+Tt+'="'+Q+'"',Q=""))):t=a?t+m+i+(p?"":kt+a+Dt)+l+d:m||e,M&&s&&(p&&Se("{^{ within elem markup ("+p+' ). Use data-link="..."'),"#"===a.charAt(0)?oe.unshift(a.slice(1)):a.slice(1)!==(y=oe.shift())&&Se("Closing tag for {^{...}} under different elem: <"+y+">")),d&&(p=d,oe.unshift(G),G=d.slice(1),M&&oe[0]&&oe[0]===zt[G]&&Oe("Parent of <tr> must be <tbody>"),F=Jt[G],(K=$t[G])&&!W&&(ae.unshift(re),re=""),W=K,re&&K&&(re+="+")),t)})),M&&oe.length&&Se("Mismatched '<"+G+"...>' in:\n"+o),l)return;for(Xt.appendChild(H),U=(X=yt[X]||yt.div)[0],B.innerHTML=X[1]+o+X[2];U--;)B=B.lastChild;for(Xt.removeChild(H),V=document.createDocumentFragment();D=B.firstChild;)V.appendChild(D);n.insertBefore(V,i)}return function(){var a,l,p="",g={},_=_t+(ee?",["+Gt+"]":"");for(m=Qt?n.querySelectorAll(_):t(_,n).get(),v=m.length,r&&r.innerHTML&&(A=Qt?r.querySelectorAll(_):t(_,r).get(),r=A.length?A[A.length-1]:r),j=0,h=0;h<v;h++)if(E=m[h],r&&!z)z=E===r;else{if(i&&E===i){ee&&(p+=Rn(E));break}if(E.parentNode)if(ee){if(p+=Rn(E),E._df){for(a=h+1;a<v&&E.contains(m[a]);)a++;g[a-1]=E._df}g[h]&&(p+=g[h]||"")}else Z&&(I=Pn(E,void 0,sn))&&(I=I[0])&&(J=J?I.id!==J&&J:I.open&&I.id),!J&&ce(Pn(E))&&E.getAttribute(vt)&&ie.push([E])}if(ee&&((l=(p+=n._df||"").indexOf("#"+ee.id)+1)&&(p=p.slice(l+ee.id.length)),(l=p.indexOf("/"+ee.id))+1&&(p=p.slice(0,l)),u(Pn(p,void 0,cn))),void 0===o&&n.getAttribute(vt)&&ie.push([n]),Mn(r,K),Mn(i,K),!ee)for(K&&re+Q&&(E=i,re&&(i?c(Pn(re+"+",!0),i):c(Pn(re,!0),n)),c(Pn(Q,!0),n),i&&(p=i.getAttribute(Tt),(v=p.indexOf($)+1)&&(p=p.slice(v+$.length-1)),i.setAttribute(Tt,Q+p))),v=ie.length,h=0;h<v;h++)E=ie[h],T=E[1],E=E[0],T?(d=en[T.id])&&((f=d.linkCtx)&&((d=f.tag).linkCtx=f),T.open?(E&&(d.parentElem=E.parentNode,d._prv=E),d._elCnt=T.elCnt,b=d.tagCtx.view,Ln(se,void 0,d._prv,b,T.id)):(d._nxt=E,d._.unlinked&&!
vendor: 23,701 bytes, line 2
2d._toLk&&(R=d.tagCtx,b=R.view,Un(d)))):Ln(se,E.getAttribute(vt),E,gt(E),void 0,Z,e,s)}(),se}function Ln(e,t,n,r,i,o,a,s){var l,c,u,p,f,h,g,v,b,I,T,A=[];if(i)g=(v=(v=en[i]).linkCtx?v.linkCtx.tag:v).linkCtx||{type:"inline",data:r.data,elem:v._elCnt?v.parentElem:n,view:r,ctx:r.ctx,attr:q,fn:v._.bnd,tag:v,_bndId:i},v.linkCtx=g,wn(g,e),v._toLk=g._bndId;else if(t&&n){for(a=o?a:r.data,l=r.tmpl,t=function(e,t){return(e=e.trim()).slice(-1)!==m?e=y+":"+e+(t?":":"")+m:e}(t,bn(n)),T=ht.lastIndex=0;c=ht.exec(t);)A.push(c),T=ht.lastIndex;for(T<t.length&&Se(t);c=A.shift();){for(b=ht.lastIndex,u=c[1],f=c[3];A[0]&&"else"===A[0][4];)f+=E+_+A.shift()[3],I=!0;I&&(f+=E+_+y+"/"+c[4]+m),g={type:o||"link",data:a,elem:n,view:r,ctx:s,attr:u,_toLk:1,_noUpd:c[2]},p=void 0,c[6]&&(p=c[10]||void 0,g.convert=c[5]||"",void 0!==p&&(u&&Se(f+"- Remove target: "+u),g.convertBack=p=p.slice(1))),g.expr=u+f,(h=Wt[f])||(Wt[f]=h=d.tmplFn(f.replace(w,"\\$&"),l,!0,p,I)),g.fn=h,wn(g,e),ht.lastIndex=b}}}function wn(e,n){function r(t,n){n&&n.refresh||vn.call(e,t,n)}var i,o=e.type;if("top"!==o&&"expr"!==o||(e.view=new d.View(d.extendCtx(e.ctx,e.view.ctx),"link",e.view,e.data,e.expr,void 0,Tn)),e._ctxCb=d._gccb(i=e.view),e._hdl=r,"SELECT"===e.elem.nodeName&&(e.elem._jsvLkEl||"link"===o&&!e.attr&&void 0!==e.convert)){var a,s=e.elem,l=t(s);l.on("jsv-domchange",(function(){arguments[3].refresh||(s._jsvLkEl?l.val(s._jsvLkEl.cvtArgs(s._jsvElse,1)[s._jsvInd]):e.tag?l.val(e.tag.cvtArgs(0,1)):(a=e.fn(i.data,i,d),l.val(e.convert||e.convertBack?d._cnvt(e.convert,i,a):a)))}))}e.fn._lr?(e._toLk=1,n.push(e)):r(!0)}function Nn(e,t){var n;return e?(n=e.indexOf(t))+1?e.slice(0,n)+e.slice(n+t.length):e:""}function Rn(e){return e&&(typeof e===Y?e:e.tagName===jt?e.type.slice(3):1===e.nodeType&&e.getAttribute(Tt)||"")}function Pn(e,t,n){var r,i,o=[];if(i=t?e:Rn(e))return r=o.elCnt=e.tagName!==jt,r="@"===i.charAt(0)||r,o._tkns=i,i.replace(n||un,(function(e,t,n,i,a,s){o.push({elCnt:r,id:i,ch:a,open:t,close:n,path:s,token:e})})),o}function Mn(e,t){e&&("jsv"===e.type?e.parentNode.removeChild(e):t&&""===e.getAttribute(vt)&&e.removeAttribute(vt))}function jn(e,t){for(var n=e;t&&n&&1!==n.nodeType;)n=n.previousSibling;return n&&(1!==n.nodeType?((n=document.createElement(jt)).type="jsv",e.parentNode.insertBefore(n,e)):Rn(n)||n.getAttribute(vt)||n.setAttribute(vt,"")),n}function Un(e,n,r){function i(){(o=I.linkedElems||e.linkedElems||e.linkedElem&&[e.linkedElem])&&(e.linkedElems=I.linkedElems=o,e.linkedElem=o[0]=e.linkedElem||o[0]),(s=I.mainElem||e.mainElem)&&(I.mainElem=e.mainElem=s),(s=I.displayElem||e.displayElem)&&(I.displayElem=e.displayElem=s)}var o,a,s,l,c,u,p,f,d,h,g,v,_,y,m,E,b,I=e.tagCtx,T=e.tagCtxs,A=T&&T.length,C=e.linkCtx,O=e.bindTo||{};if(e._.unlinked){if(u=t(C.elem),e.linkedElement||e.mainElement||e.displayElement){if(a=e.linkedElement)for(e.linkedElem=void 0,l=a.length;l--;)if(a[l])for(p=!e.inline&&u.filter(a[l]),c=A;c--;)h=T[c],o=h.linkedElems=h.linkedElems||new Array(l),(s=p[0]?p:h.contents(!0,a[l]))[0]&&s[0].type!==wt&&(o[l]=s.eq(0));if(a=e.mainElement)for(p=!e.inline&&u.filter(a),c=A;c--;)h=T[c],(s=p[0]?p:h.contents(!0,a).eq(0))[0]&&(h.mainElem=s);if(a=e.displayElement)for(p=!e.inline&&u.filter(a),c=A;c--;)h=T[c],(s=p[0]?p:h.contents(!0,a).eq(0))[0]&&(h.displayElem=s);i()}e.onBind&&(e.onBind(I,C,e.ctx,n,r),i())}for(c=A;c--;){if(g=(h=T[c]).props,e._.unlinked&&h.map&&e.mapProps){for(m=e.mapProps.length,E=g.mapDepends||e.mapDepends||[],E=S(E)?E:[E];m--;){var x=e.mapProps[m];(b=e._.bnd.paths[c]["_"+x])&&b.length&&b.skp&&(E=E.concat(b))}E.length&&h.map.observe(E,C)}(s=h.mainElem||!e.mainElement&&h.linkedElems&&h.linkedElems[0])&&(s[0]&&g.id&&!s[0].id&&(s[0].id=g.id),e.setSize&&((v=!O.height&&g.height||e.height)&&s.height(v),(v=!O.width&&g.width||e.width)&&s.width(v))),(v=(s=h.displayElem||s)&&(!O.class&&g.class||e.className))&&v!==(_=s[0]._jsvCl)&&(s.hasClass(_)&&s.removeClass(_),s.addClass(v),s[0]._jsvCl=v)}if(e.onAfterLink&&(e.onAfterLink(I,C,e.ctx,n,r),i()),!e.flow&&!e._.chg)for(e._tgId&&e._.unlinked&&(e.linkedElems||e.bindTo)&&Gn(en[e._tgId],e),c=T.length;c--;){for(l=(g=e.cvtArgs(c,1)).length;l--;)e.setValue(g[l],l,c,n,r);if(e._.unlinked)for(I=T[c],o=I.linkedElems||!c&&e.linkedElem&&[e.linkedElem],y=(e.bindTo||[0]).length;y--;)if((s=o&&o[y])&&(l=s.length))for(;l--;)(d=(f=s[l])._jsvLkEl)&&d===e||(f._jsvLkEl=e,f._jsvInd=y,f._jsvElse=c,kn(e,f),e._tgId&&(f._jsvBnd="&"+e._tgId+"+"))}e._.unlinked=void 0,e._.lt&&e.refresh()}function Vn(e){var t=e.which;t>15&&t<21||t>32&&t<41||t>111&&t<131||27===t||144===t||setTimeout((function(){gn(e)}))}function Dn(e,t,n){!0===t&&bt?e[n]("input.jsv",gn):(t=typeof t===Y?t:"keydown.jsv",e[n](t,t.indexOf("keydown")>=0?Vn:gn))}function kn(e,n){var r,i,o=n._jsvTr||!1;e&&void 0===(i=e.tagCtx.props.trigger)&&(i=e.trigger),void 0===i&&(i=h.trigger),o!==(i=i&&("INPUT"===n.tagName&&n.type!==Lt&&n.type!==wt||"textarea"===n.type||n.contentEditable===Ut||n.contentEditable===Vt)&&i||!1)&&(Dn(r=t(n),o,"off"),Dn(r,n._jsvTr=i,"on"))}function Gn(e,t,n){var r,i,o,a,s,l,c,u,p,f,d,h,g,v,_,y=1,m=[],E=e.linkCtx,b=E.data,I=E.fn.paths;if(e&&!e.to){for(t&&(t.convertBack||(t.convertBack=n),l=t.bindTo,y=t.tagCtxs?t.tagCtxs.length:1);y--;){if(g=[],h=I[y])for(l=h._jsvto?["jsvto"]:l||[0],!y&&t&&t._.ths&&(l=l.concat("this")),u=l.length;u--;){if(i="",d=E._ctxCb,r=(c=h[+(c=l[u])===c?c:"_"+c])&&c.length){if((o=c[r-1])._cpfn){for(a=o;o.sb&&o.sb._cpfn;)i=o=o.sb;i=o.sb||i&&i.path,_=o._cpfn&&!o.sb,o=i?i.slice(1):a.path}s=i?[a,o]:Fn(o,b,d)}else f=t.linkedCtxParam,s=[],(v=t._.fromIndex)&&f&&f[v[u]]&&(s=[t.tagCtxs[y].ctx[f[v[u]]][0],C]);(p=s._cxp)&&p.tag&&o.indexOf(".")<0&&(s=p),s.isCpfn=_,g.unshift(s)}m.unshift(g)}e.to=m}}function Fn(e,t,n){for(var r,i,o,a,s,l,c,u;e&&e!==C&&(o=n(r=e.split("^").join(".")))&&(a=o.length);){if(s=o[0]._cxp)if(c=c||s,l=o[0][0],C in l?(u=l,l=l._vw):u=l.data,c.path=e=o[0][1],o=[c.data=u,e],n=d._gccb(l),e._cpfn){for((i=e).data=o[0],i._cpCtx=n;e.sb&&e.sb._cpfn;)r=e=e.sb;o=[i,e=(r=e.sb||r&&r.path)?r.slice(1):i.path]}else s.tag&&s.path===C&&(o=s);else o=a>1?[o[a-2],o[a-1]]:[o[a-1]];t=o[0],e=o[1]}return(o=o||[t,r])._cxp=c,o}function Bn(e,t,n){var r,i,o=e.tagCtx.view,a=e.tagCtxs||[e.tagCtx],l=a.length,c=!t;if(c){if((t=e._.bnd.call(o.tmpl,(e.linkCtx||o).data,o,d)).lt)return;e._.lt=void 0,t=S(t)?t:[t]}if(n)a=e.tagCtxs=t,e.tagCtx=a[0],zn(e);else for(;l--;)r=a[l],i=t[l],se(r.ctx,i.ctx),r.args=i.args,c&&(r.tmpl=i.tmpl),s(r.props).setProperty(i.props);return d._thp(e,a[0]),a}function Hn(e){for(var t,n,r,i=[],o=e.length,a=o;a--;)i.push(e[a]);for(a=o;a--;)if((n=i[a]).parentNode){if(r=n._jsvBnd)for(r=r.slice(1).split("&"),n._jsvBnd="",t=r.length;t--;)qn(r[t],n._jsvLkEl,n);Xn(Rn(n)+(n._df||""),n)}}function qn(e,n,r){var i,o,a,s,l,c,u,p,f,d,h,g,v,_,y=en[e];if(n)r._jsvLkEl=void 0;else if(y&&(!r||r===y.elem)){for(i in delete en[e],y.bnd)(s=y.bnd[i])&&(l=y.cbId,S(s)?t([s]).off(Ke+l).off(Ye+l):t(s).off(Ye+l),delete y.bnd[i]);if(o=y.linkCtx){if(a=o.tag){if(c=a.tagCtxs)for(u=c.length;u--;)(p=(g=c[u]).map)&&p.unmap(),(v=g.linkedElems)&&(_=(_||[]).concat(v));a.onUnbind&&a.onUnbind(a.tagCtx,o,a.ctx),a.onDispose&&a.onDispose(),a._elCnt||(a._prv&&a._prv.parentNode.removeChild(a._prv),a._nxt&&a._nxt.parentNode.removeChild(a._nxt))}for(u=(v=_||[t(o.elem)]).length;u--;)(d=(f=v[u])&&f[0]&&f[0]._jsvTr)&&(Dn(f,d,"off"),f[0]._jsvTr=void 0);"link"===(h=o.view).type?h.parent.removeViews(h._.key,void 0,!0):delete h._.bnds[e]}delete We[y.cbId]}}function Yn(e){e?((e=e.jquery?e:t(e)).each((function(){for(var e;(e=gt(this,!0))&&e.parent;)e.parent.removeViews(e._.key,void 0,!0);Hn(this.getElementsByTagName("*"))})),Hn(e)):(dt&&(t(dt).off(At,gn).off("blur.jsv","[contenteditable]",gn),dt=void 0),i.removeViews(),Hn(document.body.getElementsByTagName("*")))}function Kn(e,t,n){return n&&n[t]||e.ctx[t]&&e.ctxPrm(t)||o.helpers[t]}function Wn(e,t,n,r,i,o){var a,s,l,c,u,p,f,d=0,h=e===t;if(e){for(a=0,s=(l=Pn(e)||[]).length;a<s;a++){if((p=(c=l[a]).id)===r&&c.ch===i){if(!o)break;s=0}h||(u="_"===c.ch?mt[p]:en[p].linkCtx.tag)&&(c.open?u._prv=t:c.close&&(u._nxt=t)),d+=p.length+2}d&&e.setAttribute(Tt,e.getAttribute(Tt).slice(d)),(s=(f=t?t.getAttribute(Tt):n._df).indexOf("/"+r+i)+1)&&(f=l._tkns.slice(0,d)+f.slice(s+(o?-1:r.length+1))),f&&(t?t.setAttribute(Tt,f):_n(n,f))}else _n(n,Nn(n._df,"#"+r+i)),o||t||_n(n,Nn(n._df,"/"+r+i))}function Xn(e,t){var n,r,i,o;if(o=Pn(e,!0,an))for(n=0,r=o.length;n<r;n++)"_"===(i=o[n]).ch?!(i=mt[i.id])||!i.type||t&&i._prv!==t&&i.parentElem!==t||i.parent.removeViews(i._.key,void 0,!0):qn(i.id,void 0,t)}function Qn(e,t,n,r,i,o){var a=this,s=[];return a&&a._tgId&&(i=a),arguments.length<4&&(+t!==t?(r=t,n=t=0):+n!==n&&(r=n,n=0)),s[t||0]=e,hn(s,n,r,i,o),a}function $n(){for(var e=this.tag.bindTo.length,t=arguments[e],n=arguments[e+1];e--;)this.tag.setValue(arguments[e],e,this.index,t,n)}function zn(e){var n,r,o,a,l,c,u,p;if(e.contents=function(e,n,r){e!==!!e&&(n=e,e=void 0);var i,o=t(this.nodes());return o[0]&&(i=(n=e?n||"*":n)?o.filter(n):o,o=e?i.add(o.find(n)):i),r?o.filter(r):o},e.nodes=function(e,t,n){var r,i=this.contentView||this,o=i._elCnt,a=!t&&o,s=[];if(!i.args)for(t=t||i._prv,n=n||i._nxt,r=a?t===i._nxt?i.parentElem.lastSibling:t:!1===i.inline?t||i.linkCtx.elem.firstChild:t&&t.nextSibling;r&&(!n||r!==n);)(e||o||r.tagName!==jt)&&s.push(r),r=r.nextSibling;return s},e.childTags=function(e,t){e!==!!e&&(t=e,e=void 0);var n=this.contentView||this,r=n.link?n:n.tagCtx.view,i=n._prv,o=n._elCnt,a=[];return n.args||r.link(void 0,n.parentElem,o?i&&i.previousSibling:i,n._nxt,void 0,{get:{tags:a,deep:e,name:t,id:n.link?n._.id+"_":n._tgId+"^"}}),a},"tag"===e._is){for(r=(u=e).tagCtxs.length;r--;)(o=u.tagCtxs[r]).setValues=$n,o.contents=e.contents,o.childTags=e.childTags,o.nodes=e.nodes;if(a=u.boundProps=u.boundProps||[],l=u.bindFrom)for(n=l.length;n--;)typeof(c=l[n])===Y&&(l[c]=1,dn(c,a)<0&&a.push(c));u.setValue=d._gm(u.constructor.prototype.setValue||function(e){return e},(function(e,r,i,o,a){r=r||0,i=i||0;var s,l,c,p,f,d,h=u.tagCtxs[i];if(!h._bdArgs||!a&&void 0===e||h._bdArgs[r]!==e||a&&"set"===a.change&&(o.target===e||a.value===e)?(h._bdArgs=h._bdArgs||[],h._bdArgs[r]=e,void 0!==(d=u.base.call(u,e,r,i,o,a))&&(h._bdVals=h._bdVals||[],h._bdVals[r]=d,e=d)):h._bdVals&&(e=h._bdVals[r]),void 0!==e&&(c=u.linkedCtxParam)&&c[r]&&h.ctxPrm(c[r],e),void 0!==(p=u._.toIndex[r])&&(f=h.linkedElems||u.linkedElem&&[u.linkedElem])&&(s=f[p])&&(n=s.length))for(;n--;)l=s[n],void 0===e||l._jsvChg||u.linkCtx._val===e||(void 0!==l.value?l.type===Lt?l[xt]=Array.isArray(e)?t.inArray(l.value,e)>-1:e&&"false"!==e:l.type===wt?l[xt]=l.value===e:t(l).val(e):l[l.contentEditable===Ut||l.contentEditable===Vt?"innerHTML":It]=e),h.props.name&&(l.name=l.name||h.props.name);return u})),u.updateValue=Qn,u.updateValues=function(){var e,t,n=this.bindTo?this.bindTo.length:1,r=arguments.length-n;return r&&(e=arguments[n],r>1?t=r>1?arguments[n+1]:void 0:+e!==e&&(t=e,e=0)),hn(arguments,e,t,this)},u.setValues=function(){return $n.apply(u.tagCtx,arguments),u},u.refresh=function(){var e,t,n=u.linkCtx,r=u.tagCtx.view;if(t=Bn(u))return u.onUnbind&&(u.onUnbind(u.tagCtx,n,u.ctx),u._.unlinked=!0),e=u.inline?q:n.attr||bn(u.parentElem,!0),t=":"===u.tagName?d._cnvt(u.convert,r,u.tagCtx):d._tag(u,r,r.tmpl,t,!0),An(n,n.data,n.elem),yn(t,n,e,u),Un(u),u},u.domChange=function(e,n,r,a){var s,l,c,p,f=u,d="jsv-domchange",h=/&(\d+)\+?/g,g=f.parentElem,v=t._data(g).events;for(v&&v[d]&&t(g).triggerHandler(d,arguments);g!==dt;){for(;f&&(!f.parentElem||f.parentElem===g);)for(f.onDomChange&&f.onDomChange(o,n,r,a),f=(c=f.tagCtx.view||i).tag;!f&&c.parent&&!c.isTop;)f=(c=c.parent).tag;for(p=g,g=f&&f.parentElem||dt;p&&p!==g;){for(;s=h.exec(p._jsvBnd);)(l=en[s[1]])&&(l=l.linkCtx.tag)&&l.onDomChange&&l.onDomChange(o,n,r,a);p=p.parentElement}}}}else(p=e).addViews=function(e,t,n){var r,i=this,o=t.length,a=i.views;!i._.useKey&&o&&(r=a.length+o,!n&&r!==i.data.length||!1===In(i,e,i.tmpl,a,t,i.ctx)||i._.srt||i.fixIndex(e+o))},p.removeViews=function(e,n,r,i){function o(e){var n,i,o,a,s,l,c=p[e];if(c&&c.link){for(i in n=c._.id,r||(l=c.nodes()),c.removeViews(void 0,void 0,!0),c.type=void 0,a=c._prv,s=c._nxt,o=c.parentElem,r||(c._elCnt&&Wn(a,s,o,n,"_"),t(l).remove()),!c._elCnt&&a&&(a.parentNode.removeChild(a),s.parentNode.removeChild(s)),En(c),c._.bnds)qn(i);delete mt[n]}}var a,s,l,c=this,u=!c._.useKey,p=c.views;if(u&&(l=p.length),void 0===e)if(u){for(a=l;a--;)o(a);c.views=[]}else{for(s in p)o(s);c.views={}}else if(void 0===n&&(u?n=1:(o(e),delete p[e])),u&&n&&(i||l-n===c.data.length)){for(a=e+n;a-- >e;)o(a);p.splice(e,n),c._.srt||c.fixIndex(e)}},p.moveViews=function(e,n,r){function i(e,t){return RegExp("^(.*)("+(t?"\\/":"#")+e._.id+"_.*)$").exec(t||e._prv.getAttribute(Tt))}function o(e,t){var n,r=e._prv;r.setAttribute(Tt,t),t.replace(ln,(function(e,t,i,o){(n=en[o].linkCtx.tag).inline&&(n[t?"_prv":"_nxt"]=r)})),t.replace(sn,(function(e,t,n,i){mt[i][t?"_prv":"_nxt"]=r}))}var a,s,l,c=this,u=c._nxt,p=c.views,f=n<e,d=f?n:e,h=f?e:n,g=n,v=[],_=p.splice(e,r);for(n>p.length&&(n=p.length),p.splice.apply(p,[n,0].concat(_)),l=n+(r=_.length),h+=r;g<l;g++)a=(s=p[g]).nodes(!0),v=c._elCnt?v.concat(a):v.concat(s._prv,a,s._nxt);if(v=t(v),l<p.length?v.insertBefore(p[l]._prv):u?v.insertBefore(u):v.appendTo(c.parentElem),c._elCnt){var y,m=f?d+r:h-r,E=(p[d-1],p[d]),b=p[m],I=p[h],T=i(E),A=i(b);o(E,A[1]+T[2]),I?(y=i(I),o(I,T[1]+y[2])):(p[h-1]._nxt=u,u?(y=i(c,u.getAttribute(Tt)),u.setAttribute(Tt,T[1]+y[2])):(y=i(c,c.parentElem._df),_n(c.parentElem,T[1]+y[2]))),o(b,y[1]+A[2])}c.fixIndex(d)},p.refresh=function(){var e=this,t=e.parent;return t&&(In(e,e.index,e.tmpl,t.views,e.data,void 0,!0),En(e)),e},p.fixIndex=function(e){for(var t=this.views,n=t.length;e<n--;)t[n].index!==n&&s(t[n]).setProperty("index",n)},p.link=xn}function Jn(e,t,n,r){for(var i=e.length;i--&&e[i].key!==t;);-1===i?t&&!r&&e.push({key:t,prop:n}):r&&e.splice(i,1)}return a=s.observe,h._clFns=function(){Wt={}},zn(d.View.prototype),d.onStore.template=function(e,n,r){null===n?(delete t.link[e],delete t.render[e]):(n.link=On,e&&!r&&"jsvTmpl"!==e&&(t.render[e]=n,t.link[e]=function(){return On.apply(n,arguments)}))},d.viewInfos=Pn,(v.delimiters=function(){var e=Kt.apply(0,arguments);return Kt!==le&&(e=le.apply(0,arguments)),ht=new RegExp("(?:^|\\s*)([\\w-]*)(\\"+b+")?(\\"+y+d.rTag+"(:\\w*)?\\"+m+")","g"),e})(),d.addSetting("trigger"),u.merge=function(e){var t=this.linkCtx.attr;t=""==t||"text"===t?"innerText":"class"===t?"className":t;var n,r=this.linkCtx.elem[t],i=this.tagCtx.props.toggle;return i&&(n="(\\s(?="+(n=i.replace(/[\\^$.|?*+()[{]/g,"\\$&"))+"$)|(\\s)|^)("+n+"(\\s|$))",e=(r=r.replace(new RegExp(n),"$2"))+(e?(r&&" ")+i:"")),e},f({on:{attr:Pt,bindTo:[],init:function(e){for(var t,n=this,r=0,i=e.args,o=i.length;r<o&&!O(i[r]);r++);n._hi=o>r&&r+1,n.inline&&(d.rTmpl.exec(t=(e.tmpl.markup||"").trim())||(n.template="<button>"+(t||e.params.args[r]||"noop")+"</button>"),n.attr=q)},onBind:function(){this.template&&(this.mainElem=this.contents("button"))},onAfterLink:function(e,n){var r,i,o,a=this,s=a._hi,l=e.args,c=l.length,u=e.props,p=u.data,f=e.view,h=u.context;s&&(r=l[s-1],i=l.slice(s),l=l.slice(0,s-1),a._sel=l[1],o=a.activeElem=a.activeElem||t(a.inline?(a._sel=l[1]||"*",a.parentElem):n.elem),h||(h=(h=/^(.*)[.^][\w$]+$/.exec(e.params.args.slice(-i.length-1)[0]))&&d.tmplFn(y+":"+h[1]+m,f.tmpl,!0)(n.data,f,d)),a._evs&&a.onUnbind(e,n,a.ctx),o.on(a._evs=l[0]||"click",a._sel,null==p?null:p,a._hlr=function(e){var t,o=!a.inline;if(!o)for(t=a.contents("*"),c=t.length;!o&&c--;)t[c].contains(e.target)&&(o=!0);if(o)return r.apply(h||n.data,[].concat(i,e,{change:e.type,view:f,linkCtx:n},i.slice.call(arguments,1)))}))},onUpdate:!1,onArrayChange:!1,onUnbind:function(){var e=this,t=qt;e.activeElem&&(qt=0,e.activeElem.off(e._evs,e._sel,e._hlr),qt=t)},contentCtx:!0,setSize:!0,dataBoundOnly:!0},radiogroup:{boundProps:["disabled"],init:function(e){this.name=e.props.name||(Math.random()+"jsv").slice(9)},onBind:function(e,n){var r,i,o=this,a=e.args[1],s=e.params.args[0],l=e.params.props,c=l&&l.disabled;for(o.inline?r=o.contents(!0,Nt,a):(r=t(Nt,n.elem),a&&(r=r.filter(a))),i=r.length;i--;)r[i].name=r[i].name||o.name;for(i in l)s+=" "+i+"="+l[i];r.link(s,n.data,void 0,void 0,n.view),o.linkedElem=r,o.onDomChange=function(){var i,l,u=o.cvtArgs()[0];for(o.linkedElem=r=o.contents(!0,Nt,a),l=r.length;l--;)(i=r[l])._jsvLkEl||(i.name=i.name||o.name,i._jsvLkEl=o,i._jsvBnd="&"+o._tgId+"+",i.checked=u===i.value,c&&(i.disabled=!!e.props.disabled),t.link(s,i,n.data,void 0,void 0,n.view))}},onAfterLink:function(e,t,n,r,i){var o=e.params.props;o&&o.disabled&&this.linkedElem.prop("disabled",!!e.props.disabled)},flow:!0,onUpdate:!1,contentCtx:!0,dataBoundOnly:!0},checkboxgroup:{boundProps:["disabled"],init:function(e){this.name=e.props.name||(Math.random()+"jsv").slice(9)},onBind:function(e,n){var r,i,o=this,a=e.args[1],s=e.params.args[0],l=e.params.props,c=l&&l.disabled;for(o.inline?r=o.contents(!0,Rt,a):(o.lateRender=!0,r=t(Rt,n.elem),a&&(r=r.filter(a))),i=r.length;i--;)r[i].name=r[i].name||o.name,r[i]._jsvLkEl=o;for(i in l)s+=" "+i+"="+l[i];r.link(s,n.data,void 0,void 0,n.view),o.linkedElem=r,o.onDomChange=function(){var r,i=o.contents(!0,Rt,a),l=i.length;for(o.linkedElem=i;l--;)r=i[l],c&&(r.disabled=!!e.props.disabled),r._jsvSel||(r.name=r.name||o.name,r._jsvLkEl=o,t.link(s,r,n.data,void 0,void 0,n.view))}},onAfterLink:function(e,t,n,r,i){var o=e.params.props;o&&o.disabled&&this.contents(!0,Rt,e.args[1]).prop("disabled",!!e.props.disabled)},flow:!0,onUpdate:!1,contentCtx:!0,dataBoundOnly:!0}}),se(f.for,{sortDataMap:o.map({getTgt:f.for.sortDataMap.getTgt,obsSrc:function(e,t,n){e.update()},obsTgt:function(e,t,n){var r,i=n.items,o=e.src;if("remove"===n.change)for(r=i.length;r--;)s(o).remove(dn(i[r],o));else"insert"===n.change&&s(o).insert(i)}}),mapProps:["filter","sort","reverse","start","end","step"],bindTo:["paged","sorted"],bindFrom:[0],onArrayChange:function(e,t,n,r){var i,o,a=e.target.length,s=this;if(!s.rendering)if(s._.noVws||s.tagCtxs[1]&&("insert"===t.change&&a===t.items.length||"remove"===t.change&&!a))o=n.map&&n.map.propsArr,s.refresh(),o&&(n.map.propsArr=o);else for(i in s._.arrVws)(i=s._.arrVws[i]).data===e.target&&mn.apply(i,arguments);s.domChange(n,r,t,e),e.done=!0},onUpdate:function(e,t,n){this.setDataMap(n)},onBind:function(e,t,n,r,i){for(var o,s=this,l=0,c=s._ars=s._ars||{},u=s.tagCtxs,p=u.length,f=s.selected||0;l<=f;l++)e=u[l],o=e.map?e.map.tgt:e.args.length?e.args[0]:e.view.data,c[l]&&(a(c[l],!0),delete c[l]),!c[l]&&S(o)&&function(){var n=e;a(o,c[l]=function(e,r){s.onArrayChange(e,r,n,t)})}();for(l=f+1;l<p;l++)c[l]&&(a(c[l],!0),delete c[l]);i&&s.domChange(e,t,i,r)},onAfterLink:function(){for(var e,n,r,i,o=this,a=0,s=o.tagCtxs,l=(s.length,o.selected||0);a<=l;a++)n=(i=s[a]).map,e=i.map?n.tgt:i.args.length?i.args[0]:i.view.data,S(e)&&(r=i.params.props)&&(r.paged&&!o.paged&&(t.observable(o).setProperty("paged",e.slice()),o.updateValue(o.paged,0,a,!0)),r.sorted&&!o.sorted&&(t.observable(o).setProperty("sorted",n&&n.sorted||e.slice()),o.updateValue(o.sorted,1,a,!0)))},onDispose:function(){var e;for(e in this._ars)a(this._ars[e],!0)}}),se(f.if,{onUpdate:function(e,t,n){for(var r,i,o=0;r=this.tagCtxs[o];o++)if(i=r.props.tmpl!==n[o].props.tmpl||r.args.length&&!(r=r.args[0])!=!n[o].args[0],!this.convert&&r||i)return i;return!1},onAfterLink:function(e,t,n,r,i){i&&this.domChange(e,t,i,r)}}),f("props",{baseTag:"for",dataMap:o.map({getTgt:f.props.dataMap.getTgt,obsSrc:function(e,t,n){var r,i,o=e.options.props;if(Jn(e.propsArr,n.path,n.value,n.remove),void 0!==o.sort||void 0!==o.start||void 0!==o.end||void 0!==o.step||o.filter||o.reverse)e.update();else if("set"===n.change){for(i=(r=e.tgt).length;i--&&r[i].key!==n.path;);-1===i?n.path&&!n.remove&&s(r).insert({key:n.path,prop:n.value}):n.remove?s(r).remove(i):s(r[i]).setProperty("prop",n.value)}},obsTgt:function(e,t,n){var r,i,o,a,l=e.src,c=n.change;if("set"===c)"prop"===n.path?s(l).setProperty(t.target.key,n.value):(s(l).removeProperty(n.oldValue),s(l).setProperty(n.value,t.target.prop));else if("insert"===c||(a="remove"===c))for(i=(r=n.items).length;i--;)(o=r[i].key)&&(Jn(e.propsArr,o,r[i].prop,a),a?(s(l).removeProperty(o),delete l[o]):s(l).setProperty(o,r[i].prop))},tgtFlt:function(e){return pn.test(e)}}),flow:!0}),se(t,{view:gt=function(e,n,r){function o(e,t){if(e)for(s=Pn(e,t,on),c=0,u=s.length;c<u&&(!(a=mt[s[c].id])||!(a=a&&r?a.get(!0,r):a));c++);}n!==!!n&&(r=n,n=void 0);var a,s,l,c,u,p,f,d=0,h=document.body;if(e&&e!==h&&i._.useKey>1&&(e=typeof e===Y?t(e)[0]:e.jquery?e[0]:e)){if(n){if(o(e._df,!0),!a&&e.tagName)for(p=(f=Qt?e.querySelectorAll(Ft):t(Ft,e).get()).length,l=0;!a&&l<p;l++)o(f[l]);return a}for(;e;){if(s=Pn(e,void 0,sn))for(p=s.length;p--;)if((a=s[p]).open){if(d<1)return(a=mt[a.id])&&r?a.get(r):a||i;d--}else d++;e=e.previousSibling||e.parentNode}}return i},link:Sn,unlink:Yn,cleanData:function(e){e.length&&qt&&Hn(e),Yt.apply(t,arguments)}}),se(t.fn,{link:function(e,t,n,r,i,o,a){return Sn(e,this,t,n,r,i,o,a)},unlink:function(){return Yn(this)},view:function(e,t){return gt(this[0],e,t)}}),t.each([q,"replaceWith","empty","remove"],(function(e,n){var r=t.fn[n];t.fn[n]=function(){var e;qt++;try{e=r.apply(this,arguments)}finally{qt--}return e}})),se(i=d.topView,{tmpl:{links:{}}}),mt={0:i},d._glt=function(e){for(var t,n=/#(\d*)\^\/\1\^/g,r=[],i=Rn(e);t=n.exec(i);)(t=en[t[1]])&&r.push(t.linkCtx.tag);return r},d._gccb=function(e){return function(t,n){var r,i,o,a,s,l,c,u,p,f,h;if(e&&t){if(t._cpfn)try{return g.cache?e.getCache(t._cpKey):t._cpfn.call(e.tmpl,e.data,e,d)}catch(e){return}if("~"===t.charAt(0)){if("~tag"===t.slice(0,4)&&(i=e.ctx,"."===t.charAt(4)?(r=t.slice(5),i=i.tag):"~tagCtx."===t.slice(0,8)&&(r=t.slice(8),i=i.tagCtx),r))return i?[i,r]:[];if(t=t.slice(1).split("."),a=e.ctxPrm(s=t.shift(),void 0,!0))if(u=a._cxp){if(t.length&&(l="."+t.join("."),(s=a[c=a.length-1])._cpfn?(s.sb=l,s.bnd=!!n):(a[c]=(s+l).replace("#data.",""),"#view"===s.slice(0,5)&&(a[c]=a[c].slice(6),a.splice(c,0,e)))),o=[a],(i=u.tag)&&i.convert)for(c=(h=i.bindTo||[0]).length;c--;)void 0!==n&&c!==u.ind&&(f=h[c],(p=[a[0],i.tagCtx.params[+f===f?"args":"props"]])._cxp=u,o.push(p))}else(t.length||O(a))&&(o=[a,t.join(".")]);return o||[]}if("#"===t.charAt(0))return"#data"===t?[]:[e,t.replace(nn,"")]}}},d._cp=function(e,n,r,i){if(r.linked){if(i&&(i.cvt||void 0===i.tag._.toIndex[i.ind]))e=[{_ocp:e}],i.updateValue=function(n){return t.observable(e._cxp.data).setProperty(C,n),this};else if(n){var o=y+":"+n+m,a=Wt[o];a||(Wt[o]=a=d.tmplFn(o.replace(w,"\\$&"),r.tmpl,!0)),e=a.deps[0]?[r,a]:[{_ocp:i?e:a()}]}else e=[{_ocp:e}];e._cxp=i||{updateValue:function(t){return s(e._cxp.data).setProperty(e._cxp.path,t),this}}}return e},d._ucp=function(e,t,n,r){var i=r.tag,o=i?dn(e,i.linkedCtxParam):0;return r.path||Fn("~"+e,n.data,d._gccb(n)),(r.updateValue||i.updateValue)(t,o,r.tagElse,void 0,i)},d._ceo=function e(t){for(var n,r=[],i=t.length;i--;)(n=t[i])._cpfn&&((n=se({},n)).prm=e(n.prm)),r.unshift(n);return r},Et=d.advSet,d.advSet=function(){Et.call(d),e._jsv=g._jsv?se(e._jsv||{},{views:mt,bindings:en}):void 0,vt=g.linkAttr,_t=Ft+",["+vt+"]",(yt=g._wm).optgroup=yt.option,yt.tbody=yt.tfoot=yt.colgroup=yt.caption=yt.thead,yt.th=yt.td},v.advanced({linkAttr:"data-link",useViews:!1,noValidate:!1,_wm:{option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],svg_ns:[1,"<svg>","</svg>"],div:t.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},_fe:{input:{from:function(e){return e.type===Lt?e[xt]:e.value},to:Mt},textarea:Ht,select:H
vendor: 77,605 bytes, line 2
2t,optgroup:{to:"label"}}}),t},i=window,o=a,e.exports=o?r(i,o):function(e){return r(i,e)}},6346(e){var t;Object("undefined"!=typeof self?self:this),t=()=>(()=>{var e={7019(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONTINUE=100,t.SWITCHING_PROTOCOLS=101,t.PROCESSING=102,t.OK=200,t.CREATED=201,t.ACCEPTED=202,t.NON_AUTHORITATIVE_INFORMATION=203,t.NO_CONTENT=204,t.RESET_CONTENT=205,t.PARTIAL_CONTENT=206,t.MULTI_STATUS=207,t.MULTIPLE_CHOICES=300,t.MOVED_PERMANENTLY=301,t.MOVED_TEMPORARILY=302,t.SEE_OTHER=303,t.NOT_MODIFIED=304,t.USE_PROXY=305,t.TEMPORARY_REDIRECT=307,t.BAD_REQUEST=400,t.UNAUTHORIZED=401,t.PAYMENT_REQUIRED=402,t.FORBIDDEN=403,t.NOT_FOUND=404,t.METHOD_NOT_ALLOWED=405,t.NOT_ACCEPTABLE=406,t.PROXY_AUTHENTICATION_REQUIRED=407,t.REQUEST_TIME_OUT=408,t.CONFLICT=409,t.GONE=410,t.LENGTH_REQUIRED=411,t.PRECONDITION_FAILED=412,t.REQUEST_ENTITY_TOO_LARGE=413,t.REQUEST_URI_TOO_LARGE=414,t.UNSUPPORTED_MEDIA_TYPE=415,t.REQUESTED_RANGE_NOT_SATISFIABLE=416,t.EXPECTATION_FAILED=417,t.IM_A_TEAPOT=418,t.UNPROCESSABLE_ENTITY=422,t.LOCKED=423,t.FAILED_DEPENDENCY=424,t.UNORDERED_COLLECTION=425,t.UPGRADE_REQUIRED=426,t.PRECONDITION_REQUIRED=428,t.TOO_MANY_REQUESTS=429,t.REQUEST_HEADER_FIELDS_TOO_LARGE=431,t.INTERNAL_SERVER_ERROR=500,t.NOT_IMPLEMENTED=501,t.BAD_GATEWAY=502,t.SERVICE_UNAVAILABLE=503,t.GATEWAY_TIME_OUT=504,t.HTTP_VERSION_NOT_SUPPORTED=505,t.VARIANT_ALSO_NEGOTIATES=506,t.INSUFFICIENT_STORAGE=507,t.BANDWIDTH_LIMIT_EXCEEDED=509,t.NOT_EXTENDED=510,t.NETWORK_AUTHENTICATION_REQUIRED=511},3957(e,t){"use strict";var n,r,i,o,a,s,l,c,u,p;Object.defineProperty(t,"__esModule",{value:!0}),t.ViewingHint=t.ViewingDirection=t.ServiceType=t.ServiceProfile=t.RenderingFormat=t.MediaType=t.IIIFResourceType=t.ExternalResourceType=t.Behavior=t.AnnotationMotivation=void 0,function(e){e.BOOKMARKING="oa:bookmarking",e.CLASSIFYING="oa:classifying",e.COMMENTING="oa:commenting",e.DESCRIBING="oa:describing",e.EDITING="oa:editing",e.HIGHLIGHTING="oa:highlighting",e.IDENTIFYING="oa:identifying",e.LINKING="oa:linking",e.MODERATING="oa:moderating",e.PAINTING="sc:painting",e.QUESTIONING="oa:questioning",e.REPLYING="oa:replying",e.TAGGING="oa:tagging",e.TRANSCRIBING="oad:transcribing"}(n||(t.AnnotationMotivation=n={})),function(e){e.AUTO_ADVANCE="auto-advance",e.CONTINUOUS="continuous",e.FACING_PAGES="facing-pages",e.HIDDEN="hidden",e.INDIVIDUALS="individuals",e.MULTI_PART="multi-part",e.NO_NAV="no-nav",e.NON_PAGED="non-paged",e.PAGED="paged",e.REPEAT="repeat",e.SEQUENCE="sequence",e.THUMBNAIL_NAV="thumbnail-nav",e.TOGETHER="together",e.UNORDERED="unordered"}(r||(t.Behavior=r={})),function(e){e.CANVAS="canvas",e.CHOICE="choice",e.OA_CHOICE="oa:choice",e.CONTENT_AS_TEXT="contentastext",e.DATASET="dataset",e.DOCUMENT="document",e.IMAGE="image",e.MODEL="model",e.MOVING_IMAGE="movingimage",e.PDF="pdf",e.PHYSICAL_OBJECT="physicalobject",e.SOUND="sound",e.TEXT="text",e.TEXTUALBODY="textualbody",e.VIDEO="video"}(i||(t.ExternalResourceType=i={})),function(e){e.ANNOTATION="annotation",e.CANVAS="canvas",e.COLLECTION="collection",e.MANIFEST="manifest",e.RANGE="range",e.SEQUENCE="sequence"}(o||(t.IIIFResourceType=o={})),function(e){e.AUDIO_MP4="audio/mp4",e.CORTO="application/corto",e.DICOM="application/dicom",e.DRACO="application/draco",e.EPUB="application/epub+zip",e.GIRDER="image/vnd.kitware.girder",e.GLB="model/gltf-binary",e.GLTF="model/gltf+json",e.IIIF_PRESENTATION_2='application/ld+json;profile="http://iiif.io/api/presentation/2/context.json"',e.IIIF_PRESENTATION_3='application/ld+json;profile="http://iiif.io/api/presentation/3/context.json"',e.JPG="image/jpeg",e.M3U8="application/vnd.apple.mpegurl",e.MP3="audio/mp3",e.MPEG="audio/mpeg",e.MPEG_DASH="application/dash+xml",e.OBJ="model/obj",e.OPF="application/oebps-package+xml",e.PDF="application/pdf",e.PLY="application/ply",e.THREEJS="application/vnd.threejs+json",e.USDZ="model/vnd.usd+zip",e.VIDEO_MP4="video/mp4",e.WAV="audio/wav",e.WEBM="video/webm"}(a||(t.MediaType=a={})),function(e){e.DOC="application/msword",e.DOCX="application/vnd.openxmlformats-officedocument.wordprocessingml.document",e.ODT="application/vnd.oasis.opendocument.text",e.PDF="application/pdf"}(s||(t.RenderingFormat=s={})),function(e){e.IMAGE_0_COMPLIANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/compliance.html#level0",e.IMAGE_0_COMPLIANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/compliance.html#level1",e.IMAGE_0_COMPLIANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/compliance.html#level2",e.IMAGE_0_CONFORMANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/conformance.html#level0",e.IMAGE_0_CONFORMANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/conformance.html#level1",e.IMAGE_0_CONFORMANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/conformance.html#level2",e.IMAGE_1_COMPLIANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0",e.IMAGE_1_COMPLIANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1",e.IMAGE_1_COMPLIANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2",e.IMAGE_1_CONFORMANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0",e.IMAGE_1_CONFORMANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1",e.IMAGE_1_CONFORMANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2",e.IMAGE_1_LEVEL_0="http://iiif.io/api/image/1/level0.json",e.IMAGE_1_PROFILE_LEVEL_0="http://iiif.io/api/image/1/profiles/level0.json",e.IMAGE_1_LEVEL_1="http://iiif.io/api/image/1/level1.json",e.IMAGE_1_PROFILE_LEVEL_1="http://iiif.io/api/image/1/profiles/level1.json",e.IMAGE_1_LEVEL_2="http://iiif.io/api/image/1/level2.json",e.IMAGE_1_PROFILE_LEVEL_2="http://iiif.io/api/image/1/profiles/level2.json",e.IMAGE_2_LEVEL_0="http://iiif.io/api/image/2/level0.json",e.IMAGE_2_PROFILE_LEVEL_0="http://iiif.io/api/image/2/profiles/level0.json",e.IMAGE_2_LEVEL_1="http://iiif.io/api/image/2/level1.json",e.IMAGE_2_PROFILE_LEVEL_1="http://iiif.io/api/image/2/profiles/level1.json",e.IMAGE_2_LEVEL_2="http://iiif.io/api/image/2/level2.json",e.IMAGE_2_PROFILE_LEVEL_2="http://iiif.io/api/image/2/profiles/level2.json",e.AUTH_0_CLICK_THROUGH="http://iiif.io/api/auth/0/login/clickthrough",e.AUTH_0_LOGIN="http://iiif.io/api/auth/0/login",e.AUTH_0_LOGOUT="http://iiif.io/api/auth/0/logout",e.AUTH_0_RESTRICTED="http://iiif.io/api/auth/0/login/restricted",e.AUTH_0_TOKEN="http://iiif.io/api/auth/0/token",e.AUTH_1_CLICK_THROUGH="http://iiif.io/api/auth/1/clickthrough",e.AUTH_1_EXTERNAL="http://iiif.io/api/auth/1/external",e.AUTH_1_KIOSK="http://iiif.io/api/auth/1/kiosk",e.AUTH_1_LOGIN="http://iiif.io/api/auth/1/login",e.AUTH_1_LOGOUT="http://iiif.io/api/auth/1/logout",e.AUTH_1_PROBE="http://iiif.io/api/auth/1/probe",e.AUTH_1_TOKEN="http://iiif.io/api/auth/1/token",e.SEARCH_0="http://iiif.io/api/search/0/search",e.SEARCH_0_AUTO_COMPLETE="http://iiif.io/api/search/0/autocomplete",e.SEARCH_1="http://iiif.io/api/search/1/search",e.SEARCH_1_AUTO_COMPLETE="http://iiif.io/api/search/1/autocomplete",e.TRACKING_EXTENSIONS="http://universalviewer.io/tracking-extensions-profile",e.UI_EXTENSIONS="http://universalviewer.io/ui-extensions-profile",e.PRINT_EXTENSIONS="http://universalviewer.io/print-extensions-profile",e.SHARE_EXTENSIONS="http://universalviewer.io/share-extensions-profile",e.DOWNLOAD_EXTENSIONS="http://universalviewer.io/download-extensions-profile",e.OTHER_MANIFESTATIONS="http://iiif.io/api/otherManifestations.json",e.IXIF="http://wellcomelibrary.org/ld/ixif/0/alpha.json"}(l||(t.ServiceProfile=l={})),function(e){e.IMAGE_SERVICE_2="ImageService2",e.IMAGE_SERVICE_3="ImageService3"}(c||(t.ServiceType=c={})),function(e){e.BOTTOM_TO_TOP="bottom-to-top",e.LEFT_TO_RIGHT="left-to-right",e.RIGHT_TO_LEFT="right-to-left",e.TOP_TO_BOTTOM="top-to-bottom"}(u||(t.ViewingDirection=u={})),function(e){e.CONTINUOUS="continuous",e.INDIVIDUALS="individuals",e.NON_PAGED="non-paged",e.PAGED="paged",e.TOP="top"}(p||(t.ViewingHint=p={}))},916(e,t,n){e.exports=self.fetch||(self.fetch=n(6782).default||n(6782))},1873(e,t,n){var r=n(9325).Symbol;e.exports=r},4528(e){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},3120(e,t,n){var r=n(4528),i=n(5891);e.exports=function e(t,n,o,a,s){var l=-1,c=t.length;for(o||(o=i),s||(s=[]);++l<c;){var u=t[l];n>0&&o(u)?n>1?e(u,n-1,o,a,s):r(s,u):a||(s[s.length]=u)}return s}},2552(e,t,n){var r=n(1873),i=n(659),o=n(9350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},7534(e,t,n){var r=n(2552),i=n(346);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},4840(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},659(e,t,n){var r=n(1873),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},5891(e,t,n){var r=n(1873),i=n(2428),o=n(6449),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},9350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9325(e,t,n){var r=n(4840),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},5970(e,t,n){var r=n(3120);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},3176(e,t,n){var r=n(3120),i=1/0;e.exports=function(e){return null!=e&&e.length?r(e,i):[]}},2428(e,t,n){var r=n(7534),i=n(346),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},6449(e){var t=Array.isArray;e.exports=t},346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},3039(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Annotation=void 0;var o=n(4799),a=function(e){function t(t,n){return e.call(this,t,n)||this}return i(t,e),t.prototype.getBody=function(){var e=[],t=this.getProperty("body");if(t)if(Array.isArray(t))for(var n=0;n<t.length;n++)if((a=t[n]).items)for(var r=0;r<a.items.length;r++){var i=a.items[r];e.push(new o.AnnotationBody(i,this.options))}else e.push(new o.AnnotationBody(a,this.options));else if(t.items)for(n=0;n<t.items.length;n++){var a=t.items[n];e.push(new o.AnnotationBody(a,this.options))}else e.push(new o.AnnotationBody(t,this.options));return e},t.prototype.getMotivation=function(){return this.getProperty("motivation")||null},t.prototype.getOn=function(){return this.getProperty("on")},t.prototype.getTarget=function(){return this.getProperty("target")},t.prototype.getResource=function(){return new o.Resource(this.getProperty("resource"),this.options)},t}(o.ManifestResource);t.Annotation=a},2339(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationBody=void 0;var o=n(4799),a=function(e){function t(t,n){return e.call(this,t,n)||this}return i(t,e),t.prototype.getFormat=function(){var e=this.getProperty("format");return e?o.Utils.getMediaType(e):null},t.prototype.getType=function(){return this.getProperty("type")?o.Utils.normaliseType(this.getProperty("type")):null},t.prototype.getValue=function(){return this.getProperty("value")},t.prototype.getLanguage=function(){return this.getProperty("language")},t.prototype.getWidth=function(){return this.getProperty("width")},t.prototype.getHeight=function(){return this.getProperty("height")},t}(o.ManifestResource);t.AnnotationBody=a},3435(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationList=void 0;var o=n(4799),a=function(e){function t(t,n,r){var i=e.call(this,n)||this;return i.label=t,i.options=r,i}return i(t,e),t.prototype.getIIIFResourceType=function(){return o.Utils.normaliseType(this.getProperty("type"))},t.prototype.getLabel=function(){return this.label},t.prototype.getResources=function(){var e=this;return this.getProperty("resources").map((function(t){return new o.Annotation(t,e.options)}))},t.prototype.load=function(){var e=this;return new Promise((function(t,n){if(e.isLoaded)t(e);else{var r=e.__jsonld.id;r||(r=e.__jsonld["@id"]),o.Utils.loadManifest(r).then((function(n){e.__jsonld=n,e.context=e.getProperty("context"),e.id=e.getProperty("id"),e.isLoaded=!0,t(e)})).catch(n)}}))},t}(o.JSONLDResource);t.AnnotationList=a},3556(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationPage=void 0;var o=n(4799),a=function(e){function t(t,n){return e.call(this,t,n)||this}return i(t,e),t.prototype.getItems=function(){return this.getProperty("items")},t.prototype.getAnnotations=function(){var e=[],t=this.getProperty("items");if(!t||!Array.isArray(t))return e;for(var n=0;n<t.length;n++){var r=new o.Annotation(t[n],this.options);e.push(r)}return e},t}(o.ManifestResource);t.AnnotationPage=a},8098(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Canvas=void 0;var a=n(3957),s=n(4799),l=o(n(5970)),c=o(n(3176)),u=function(e){function t(t,n){return e.call(this,t,n)||this}return i(t,e),t.prototype.getCanonicalImageUri=function(e){var t=null,n="default",r=e,i=r+",";if(this.externalResource&&this.externalResource.data&&this.externalResource.data["@id"])t=this.externalResource.data["@id"],r||(r=this.externalResource.data.width),this.externalResource.data["@context"]&&(this.externalResource.data["@context"].indexOf("/1.0/context.json")>-1||this.externalResource.data["@context"].indexOf("/1.1/context.json")>-1||this.externalResource.data["@context"].indexOf("/1/context.json")>-1)&&(n="native");else{var o=void 0;if((o=this.getImages())&&o.length){var a=o[0].getResource(),l=a.getServices();if(r||(r=a.getWidth()),c=l?l.find((function(e){return s.Utils.isImageProfile(e.getProfile())||s.Utils.isImageServiceType(e.getIIIFResourceType())})):null)t=c.id,n=s.Utils.getImageQuality(c.getProfile());else if(r===a.getWidth())return a.id}if((o=this.getContent())&&o.length){var c,u=o[0].getBody()[0];if(l=u.getServices(),r||(r=u.getWidth()),c=l?l.find((function(e){return s.Utils.isImageServiceType(e.getIIIFResourceType())})):null)t=c.id,n=s.Utils.getImageQuality(c.getProfile());else if(r===u.getWidth())return u.id}if(!t){var p=this.getProperty("thumbnail");if(p){if("string"==typeof p)return p;if(p["@id"])return p["@id"];if(p.length)return p[0].id}}}return t&&t.endsWith("/")&&(t=t.substr(0,t.length-1)),[t,"full",i,0,n+".jpg"].join("/")},t.prototype.getMaxDimensions=function(){var e,t=null;return this.externalResource&&this.externalResource.data&&this.externalResource.data.profile&&(e=this.externalResource.data.profile,Array.isArray(e)&&(e=e.filter((function(e){var t;return null!==(t=e.maxWidth)&&void 0!==t?t:e.maxwidth}))[0])&&(t=new s.Size(e.maxWidth,e.maxHeight?e.maxHeight:e.maxWidth))),this.externalResource&&this.externalResource.data&&this.externalResource.data.maxWidth&&(t=new s.Size(this.externalResource.data.maxWidth,this.externalResource.data.maxHeight?this.externalResource.data.maxHeight:this.externalResource.data.maxWidth)),t},t.prototype.getContent=function(){var e=[],t=this.__jsonld.items||this.__jsonld.content;if(!t)return e;var n=null;if(t.length&&(n=new s.AnnotationPage(t[0],this.options)),!n)return e;for(var r=n.getAnnotations(),i=0;i<r.length;i++){var o=r[i];e.push(o)}return e},t.prototype.getAnnotations=function(){var e=[],t=this.__jsonld.annotations;if(!t||!Array.isArray(t))return e;for(var n=0;n<t.length;n++){var r=new s.AnnotationPage(t[n],this.options);e.push(r)}return e},t.prototype.getDuration=function(){return this.getProperty("duration")},t.prototype.getImages=function(){var e=[];if(!this.__jsonld.images)return e;for(var t=0;t<this.__jsonld.images.length;t++){var n=this.__jsonld.images[t],r=new s.Annotation(n,this.options);e.push(r)}return e},t.prototype.getIndex=function(){return this.getProperty("index")},t.prototype.getOtherContent=function(){var e=this,t=(Array.isArray(this.getProperty("otherContent"))?this.getProperty("otherContent"):[this.getProperty("otherContent")]).filter((function(e){return e&&"string"==typeof(t=e["@type"])&&t.toLowerCase()==t.toLowerCase();var t})).map((function(t,n){return new s.AnnotationList(t.label||"Annotation list ".concat(n),t,e.options)})).map((function(e){return e.load()}));return Promise.all(t)},t.prototype.getWidth=function(){return this.getProperty("width")},t.prototype.getHeight=function(){return this.getProperty("height")},t.prototype.getViewingHint=function(){var e=this.getProperty("viewingHint");return Array.isArray(e)&&(e=e[0]),e||null},Object.defineProperty(t.prototype,"imageResources",{get:function(){var e=this,n=(0,c.default)([this.getImages().map((function(e){return e.getResource()})),this.getContent().map((function(e){return e.getBody()}))]);return(0,l.default)(n.map((function(n){switch(n.getProperty("type").toLowerCase()){case a.ExternalResourceType.CHOICE:case a.ExternalResourceType.OA_CHOICE:return new t({images:(0,l.default)([n.getProperty("default"),n.getProperty("item")]).map((function(e){return{resource:e}}))},e.options).getImages().map((function(e){return e.getResource()}));default:return n}})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resourceAnnotations",{get:function(){return(0,c.default)([this.getImages(),this.getContent()])},enumerable:!1,configurable:!0}),t.prototype.resourceAnnotation=function(e){return this.resourceAnnotations.find((function(t){return t.getResource().id===e||(0,l.default)(new Array(t.getBody())).some((function(t){return t.id===e}))}))},t.prototype.onFragment=function(e){var t=this.resourceAnnotation(e);if(t){var n=t.getProperty("on"),r=t.getProperty("target");if(n&&r){var i=(n||r).match(/xywh=(.*)$/);if(i)return i[1].split(",").map((function(e){return parseInt(e,10)}))}}},Object.defineProperty(t.prototype,"iiifImageResources",{get:function(){return this.imageResources.filter((function(e){return e&&e.getServices()[0]&&e.getServices()[0].id}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageServiceIds",{get:function(){return this.iiifImageResources.map((function(e){return e.getServices()[0].id}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"aspectRatio",{get:function(){return this.getWidth()/this.getHeight()},enumerable:!1,configurable:!0}),t.prototype.getChoices=function(){for(var e,t=this,n=0,r=this.getContent();n<r.length;n++){var i=r[n].getProperty("body");if(i&&(null===(e=i.type)||void 0===e?void 0:e.toLowerCase())===a.ExternalResourceType.CHOICE&&i.items&&i.items.length)return i.items.map((function(e){return new s.AnnotationBody(e,t.options)}))}return[]},t}(s.Resource);t.Canvas=u},8214(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Collection=void 0;var o=n(3957),a=n(4799),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.items=[],r._collections=null,r._manifests=null,t.__collection=r,r}return i(t,e),t.prototype.getCollections=function(){return this._collections?this._collections:this._collections=this.items.filter((function(e){return e.isCollection()}))},t.prototype.getManifests=function(){return this._manifests?this._manifests:this._manifests=this.items.filter((function(e){return e.isManifest()}))},t.prototype.getCollectionByIndex=function(e){for(var t,n=this.getCollections(),r=0;r<n.length;r++){var i=n[r];i.index===e&&(t=i)}if(t)return t.options.index=e,t.load();throw new Error("Collection index not found")},t.prototype.getManifestByIndex=function(e){for(var t,n=this.getManifests(),r=0;r<n.length;r++){var i=n[r];i.index===e&&(t=i)}if(t)return t.options.index=e,t.load();throw new Error("Manifest index not found")},t.prototype.getTotalCollections=function(){return this.getCollections().length},t.prototype.getTotalManifests=function(){return this.getManifests().length},t.prototype.getTotalItems=function(){return this.items.length},t.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")?this.getProperty("viewingDirection"):o.ViewingDirection.LEFT_TO_RIGHT},t.prototype.getBehavior=function(){var e=this.getProperty("behavior");return Array.isArray(e)&&(e=e[0]),e||null},t.prototype.getViewingHint=function(){var e=this.getProperty("viewingHint");return Array.isArray(e)&&(e=e[0]),e||null},t.prototype.getDefaultTree=function(){return e.prototype.getDefaultTree.call(this),this.defaultTree.data.type=a.Utils.normaliseType(a.TreeNodeType.COLLECTION),this._parseManifests(this),this._parseCollections(this),a.Utils.generateTreeNodeIds(this.defaultTree),this.defaultTree},t.prototype._parseManifests=function(e){if(e.getManifests()&&e.getManifests().length)for(var t=0;t<e.getManifests().length;t++){var n=e.getManifests()[t],r=n.getDefaultTree();r.label=n.parentLabel||n.getLabel().getValue(this.options.locale)||"manifest "+(t+1),r.navDate=n.getNavDate(),r.data.id=n.id,r.data.type=a.Utils.normaliseType(a.TreeNodeType.MANIFEST),e.defaultTree.addNode(r)}},t.prototype._parseCollections=function(e){if(e.getCollections()&&e.getCollections().length)for(var t=0;t<e.getCollections().length;t++){var n=e.getCollections()[t],r=n.getDefaultTree();r.label=n.parentLabel||n.getLabel().getValue(this.options.locale)||"collection "+(t+1),r.navDate=n.getNavDate(),r.data.id=n.id,r.data.type=a.Utils.normaliseType(a.TreeNodeType.COLLECTION),e.defaultTree.addNode(r)}},t}(a.IIIFResource);t.Collection=s},1858(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Duration=void 0;var n=function(){function e(e,t){this.start=e,this.end=t}return e.prototype.getLength=function(){return this.end-this.start},e}();t.Duration=n},2712(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3167(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},672(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7376(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2184(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},107(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.IIIFResource=void 0;var o=n(4799),a=n(3957),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;r.index=-1,r.isLoaded=!1;var i={defaultLabel:"-",locale:"en-GB",resource:r,pessimisticAccessControl:!1};return r.options=Object.assign(i,n),r}return i(t,e),t.prototype.getAttribution=function(){var e=this.getProperty("attribution");return e?o.PropertyValue.parse(e,this.options.locale):new o.PropertyValue([],this.options.locale)},t.prototype.getDescription=function(){var e=this.getProperty("description");return void 0===e&&(e=this.getProperty("summary")),e?o.PropertyValue.parse(e,this.options.locale):new o.PropertyValue([],this.options.locale)},t.prototype.getSummary=function(){var e=this.getProperty("summary");return void 0===e&&(e=this.getProperty("description")),e?o.PropertyValue.parse(e,this.options.locale):new o.PropertyValue([],this.options.locale)},t.prototype.getHomepage=function(){var e=this.getProperty("homepage");return e?"string"==typeof e?e:(Array.isArray(e)&&e.length&&(e=e[0]),e["@id"]||e.id):null},t.prototype.getIIIFResourceType=function(){return o.Utils.normaliseType(this.getProperty("type"))},t.prototype.getLogo=function(){var e=this.getProperty("logo");if(!e){var t=this.getProperty("provider");if(!t)return null;var n=t.find((function(e){return void 0!==e.logo}));e=n&&void 0!==n.logo?n.logo:null}return e?"string"==typeof e?e:(Array.isArray(e)&&e.length&&(e=e[0]),e["@id"]||(null==e?void 0:e.id)):null},t.prototype.getLicense=function(){return o.Utils.getLocalisedValue(this.getProperty("license"),this.options.locale)},t.prototype.getRights=function(){var e=this.getProperty("rights");return e?"string"==typeof e?e:(Array.isArray(e)&&e.length&&(e=e[0]),e["@id"]||e.id):null},t.prototype.getNavDate=function(){return new Date(this.getProperty("navDate"))},t.prototype.getRelated=function(){return this.getProperty("related")},t.prototype.getSeeAlso=function(){return this.getProperty("seeAlso")},t.prototype.getTrackingLabel=function(){var e=this.getService(a.ServiceProfile.TRACKING_EXTENSIONS);return e?e.getProperty("trackingLabel"):""},t.prototype.getDefaultTree=function(){return this.defaultTree=new o.TreeNode("root"),this.defaultTree.data=this,this.defaultTree},t.prototype.getRequiredStatement=function(){var e=null,t=this.getProperty("requiredStatement");if(t)(e=new o.LabelValuePair(this.options.locale)).parse(t);else{var n=this.getAttribution();n&&n.length&&((e=new o.LabelValuePair(this.options.locale)).value=n)}return e},t.prototype.isCollection=function(){return this.getIIIFResourceType()===a.IIIFResourceType.COLLECTION},t.prototype.isManifest=function(){return this.getIIIFResourceType()===a.IIIFResourceType.MANIFEST},t.prototype.load=function(){var e=this;return new Promise((function(t){if(e.isLoaded)t(e);else{var n=e.options;n.navDate=e.getNavDate();var r=e.__jsonld.id;r||(r=e.__jsonld["@id"]),o.Utils.loadManifest(r).then((function(r){e.parentLabel=e.getLabel().getValue(n.locale);var i=o.Deserialiser.parse(r,n);(e=Object.assign(e,i)).index=n.index,t(e)}))}}))},t}(o.ManifestResource);t.IIIFResource=s},6739(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7436(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONLDResource=void 0;var n=function(){function e(e){this.__jsonld=e,this.context=this.getProperty("context"),this.id=this.getProperty("id")}return e.prototype.getProperty=function(e){var t=null;return this.__jsonld&&((t=this.__jsonld[e])||(t=this.__jsonld["@"+e])),t},e}();t.JSONLDResource=n},2817(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LabelValuePair=void 0;var r=n(4799),i=function(){function e(e){this.label=null,this.value=null,this.defaultLocale=e}return e.prototype.parse=function(e){this.resource=e,this.label=r.PropertyValue.parse(this.resource.label,this.defaultLocale),this.value=r.PropertyValue.parse(this.resource.value,this.defaultLocale)},e.prototype.getLabel=function(e){return null===this.label?null:(Array.isArray(e)&&!e.length&&(e=void 0),this.label.getValue(e||this.defaultLocale))},e.prototype.getLabels=function(e){return null===this.label?[]:(Array.isArray(e)&&!e.length&&(e=void 0),this.label.getValues(e||this.defaultLocale))},e.prototype.setLabel=function(e){null===this.label&&(this.label=new r.PropertyValue([])),this.label.setValue(e,this.defaultLocale)},e.prototype.getValue=function(e,t){return void 0===t&&(t="<br/>"),null===this.value?null:(Array.isArray(e)&&!e.length&&(e=void 0),this.value.getValue(e||this.defaultLocale,t))},e.prototype.getValues=function(e){return null===this.value?[]:(Array.isArray(e)&&!e.length&&(e=void 0),this.value.getValues(e||this.defaultLocale))},e.prototype.setValue=function(e){null===this.value&&(this.value=new r.PropertyValue([])),this.value.setValue(e,this.defaultLocale)},e}();t.LabelValuePair=i},72(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},212(e,t){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageMap=void 0;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.getValue=function(e,t){return e.getValue(t,"<br/>")},t.getValues=function(e,t){return e.getValues(t)},t}(Array);t.LanguageMap=i},4531(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Manifest=void 0;var o=n(3957),a=n(4799),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;if(r.index=0,r._allRanges=null,r.items=[],r._topRanges=[],r.__jsonld.structures&&r.__jsonld.structures.length)for(var i=r._getTopRanges(),o=0;o<i.length;o++){var a=i[o];r._parseRanges(a,String(o))}return r}return i(t,e),t.prototype.getPosterCanvas=function(){var e=this.getProperty("posterCanvas");return e&&(e=new a.Canvas(e,this.options)),e},t.prototype.getAccompanyingCanvas=function(){var e=this.getProperty("accompanyingCanvas");return e&&(e=new a.Canvas(e,this.options)),e},t.prototype.getBehavior=function(){var e=this.getProperty("behavior");return Array.isArray(e)&&(e=e[0]),e||null},t.prototype.getDefaultTree=function(){if(e.prototype.getDefaultTree.call(this),this.defaultTree.data.type=a.Utils.normaliseType(a.TreeNodeType.MANIFEST),!this.isLoaded)return this.defaultTree;var t=this.getTopRanges();return t.length&&t[0].getTree(this.defaultTree),a.Utils.generateTreeNodeIds(this.defaultTree),this.defaultTree},t.prototype._getTopRanges=function(){var e=[];if(this.__jsonld.structures&&this.__jsonld.structures.length){for(var t=0;t<this.__jsonld.structures.length;t++){var n=this.__jsonld.structures[t];n.viewingHint===o.ViewingHint.TOP&&e.push(n)}if(!e.length){var r={};r.ranges=this.__jsonld.structures,e.push(r)}}return e},t.prototype.getTopRanges=function(){return this._topRanges},t.prototype._getRangeById=function(e){if(this.__jsonld.structures&&this.__jsonld.structures.length)for(var t=0;t<this.__jsonld.structures.length;t++){var n=this.__jsonld.structures[t];if(n["@id"]===e||n.id===e)return n}return null},t.prototype._parseRanges=function(e,t,n){var r=null;if("string"==typeof e&&(r=e,e=this._getRangeById(r)),e){var i=new a.Range(e,this.options);i.parentRange=n,i.path=t,n?n.items.push(i):this._topRanges.push(i);var o=e.items||e.members;if(o)for(var s=0;s<o.length;s++){var l=o[s];if(l["@type"]&&"sc:range"===l["@type"].toLowerCase()||l.type&&"range"===l.type.toLowerCase())this._parseRanges(l,t+"/"+s,i);else if(l["@type"]&&"sc:canvas"===l["@type"].toLowerCase()||l.type&&"canvas"===l.type.toLowerCase()){i.canvases||(i.canvases=[]);var c=l.id||l["@id"];i.canvases.push(c)}}else if(e.ranges)for(s=0;s<e.ranges.length;s++)this._parseRanges(e.ranges[s],t+"/"+s,i)}else console.warn("Range:",r,"does not exist")},t.prototype.getAllRanges=function(){if(null!=this._allRanges)return this._allRanges;this._allRanges=[];for(var e=this.getTopRanges(),t=function(t){var r=e[t];r.id&&n._allRanges.push(r);var i=function(e,t){e.add(t);var n=t.getRanges();return n.length?n.reduce(i,e):e},o=Array.from(r.getRanges().reduce(i,new Set));n._allRanges=n._allRanges.concat(o)},n=this,r=0;r<e.length;r++)t(r);return this._allRanges},t.prototype.getRangeById=function(e){for(var t=this.getAllRanges(),n=0;n<t.length;n++){var r=t[n];if(r.id===e)return r}return null},t.prototype.getRangeByPath=function(e){for(var t=this.getAllRanges(),n=0;n<t.length;n++){var r=t[n];if(r.path===e)return r}return null},t.prototype.getSequences=function(){if(this.items.length)return this.items;var e=this.__jsonld.mediaSequences||this.__jsonld.sequences;if(e)for(var t=0;t<e.length;t++){var n=e[t],r=new a.Sequence(n,this.options);this.items.push(r)}else this.__jsonld.items&&(r=new a.Sequence(this.__jsonld.items,this.options),this.items.push(r));return this.items},t.prototype.getSequenceByIndex=function(e){return this.getSequences()[e]},t.prototype.getTotalSequences=function(){return this.getSequences().length},t.prototype.getManifestType=function(){var e=this.getService(o.ServiceProfile.UI_EXTENSIONS);return e?e.getProperty("manifestType"):a.ManifestType.EMPTY},t.prototype.isMultiSequence=function(){return this.getTotalSequences()>1},t.prototype.isPagingEnabled=function(){var e=this.getViewingHint();if(e)return e===o.ViewingHint.PAGED;var t=this.getBehavior();return!!t&&t===o.Behavior.PAGED},t.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")},t.prototype.getViewingHint=function(){var e=this.getProperty("viewingHint");return Array.isArray(e)&&(e=e[0]),e||null},t}(a.IIIFResource);t.Manifest=s},2315(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ManifestResource=void 0;var o=n(4799),a=n(3957),s=function(e){function t(t,n){var r=e.call(this,t)||this;return r.options=n,r}return i(t,e),t.prototype.getIIIFResourceType=function(){return o.Utils.normaliseType(this.getProperty("type"))},t.prototype.getLabel=function(){var e=this.getProperty("label");return e?o.PropertyValue.parse(e,this.options.locale):new o.PropertyValue([],this.options.locale)},t.prototype.getDefaultLabel=function(){return this.getLabel().getValue(this.options.locale)},t.prototype.getMetadata=function(){var e=this.getProperty("metadata"),t=[];if(!e)return t;for(var n=0;n<e.length;n++){var r=e[n],i=new o.LabelValuePair(this.options.locale);i.parse(r),t.push(i)}return t},t.prototype.getRendering=function(e){for(var t=this.getRenderings(),n=0;n<t.length;n++){var r=t[n];if(r.getFormat()===e)return r}return null},t.prototype.getRenderings=function(){var e,t=[];if(!(e=this.__jsonld?this.__jsonld.rendering:this.rendering))return t;Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var r=e[n];t.push(new o.Rendering(r,this.options))}return t},t.prototype.getRequiredStatement=function(){var e=null,t=this.getProperty("requiredStatement");return t&&(e=new o.LabelValuePair(this.options.locale)).parse(t),e},t.prototype.getService=function(e){return o.Utils.getService(this,e)},t.prototype.getServices=function(){return o.Utils.getServices(this)},t.prototype.getThumbnail=function(){var e=this.getProperty("thumbnail");return Array.isArray(e)&&(e=e[0]),e?new o.Thumbnail(e,this.options):null},t.prototype.isAnnotation=function(){return this.getIIIFResourceType()===a.IIIFResourceType.ANNOTATION},t.prototype.isCanvas=function(){return this.getIIIFResourceType()===a.IIIFResourceType.CANVAS},t.prototype.isCollection=function(){return this.getIIIFResourceType()===a.IIIFResourceType.COLLECTION},t.prototype.isManifest=function(){return this.getIIIFResourceType()===a.IIIFResourceType.MANIFEST},t.prototype.isRange=function(){return this.getIIIFResourceType()===a.IIIFResourceType.RANGE},t.prototype.isSequence=function(){return this.getIIIFResourceType()===a.IIIFResourceType.SEQUENCE},t}(o.JSONLDResource);t.ManifestResource=s},3043(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ManifestType=void 0,function(e){e.EMPTY="",e.MANUSCRIPT="manuscript",e.MONOGRAPH="monograph"}(n||(t.ManifestType=n={}))},2006(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyValue=t.LocalizedValue=void 0;var o=n(41),a=function(){function e(e,t,n){void 0===n&&(n="none"),Array.isArray(e)&&1===e.length?this._value=e[0]:this._value=e,"none"!==t&&"@none"!==t||(t=void 0),this._locale=t,this._defaultLocale=n}return e.parseV2Value=function(t,n){return"string"==typeof t?new e(t,void 0,n):t["@value"]?new e(t["@value"],t["@language"],n):null},Object.defineProperty(e.prototype,"value",{get:function(){return Array.isArray(this._value)?this._value.join("<br/>"):this._value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"locale",{get:function(){return void 0===this._locale?this._defaultLocale:this._locale},enumerable:!1,configurable:!0}),e.prototype.addValue=function(e){Array.isArray(this._value)||(this._value=[this._value]),Array.isArray(e)?this._value=this._value.concat(e):this._value.push(e)},e}();t.LocalizedValue=a;var s=function(e){function t(n,r){void 0===n&&(n=[]);var i=e.apply(this,n)||this;return i.__proto__=t.prototype,i._defaultLocale=r,i}return i(t,e),t.parse=function(e,n){if(!e)return new t([],n);if(Array.isArray(e)){var r=(i=e.map((function(e){return a.parseV2Value(e,n)})).filter((function(e){return null!==e}))).reduce((function(e,t){var n=t._locale;return n||(n="none"),e[n]?e[n].addValue(t._value):e[n]=t,e}),{});return new t(Object.values(r),n)}return"string"==typeof e?new t([new a(e,void 0,n)],n):e["@language"]||e["@value"]?new t(null!==(i=a.parseV2Value(e))?[i]:[],n):new t(Object.keys(e).map((function(t){var r=e[t];if(!Array.isArray(r))throw new Error("A IIIF v3 localized property value must have an array as the value for a given language.");return new a(r,t,n)})),n);var i},t.prototype.getSuitableLocale=function(e){for(var t=Array.from(this.values()).map((function(e){return e._locale})).filter((function(e){return void 0!==e})),n=function(e){var n=t.find((function(t){return t===e}));if(n)return{value:n}},r=0,i=e;r<i.length;r++){var a=n(i[r]);if("object"==typeof a)return a.value}for(var s=function(e){var n=t.find((function(t){return o.Utils.getInexactLocale(t)===o.Utils.getInexactLocale(e)}));if(n)return{value:n}},l=0,c=e;l<c.length;l++){var u=s(c[l]);if("object"==typeof u)return u.value}},t.prototype.setValue=function(e,t){var n=void 0;if(t){var r=this.getSuitableLocale([t]);r&&(n=this.find((function(e){return e._locale===r})))}else n=this.find((function(e){return void 0===e._locale}));n?n._value=e:this.push(new a(e,t,this._defaultLocale))},t.prototype.getValue=function(e,t){var n=this.getValues(e);return 0===n.length?null:t?n.join(t):n[0]},t.prototype.getValues=function(e){if(!this.length)return[];var t;if(t=e?Array.isArray(e)?e:[e]:[],1===this.length&&void 0===this[0]._locale){var n=this[0]._value;return Array.isArray(n)?n:[n]}var r=this.getSuitableLocale(t);if(r)return n=this.find((function(e){return e._locale===r}))._value,Array.isArray(n)?n:[n];var i=!this.find((function(e){return void 0===e._locale}));if(i)return n=this[0]._value,Array.isArray(n)?n:[n];var o=this.find((function(e){return void 0===e._locale}));return o?Array.isArray(o._value)?o._value:[o._value]:[]},t}(Array);t.PropertyValue=s},3845(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Range=void 0;var o=n(4799),a=n(3957),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r._ranges=null,r.canvases=null,r.items=[],r}return i(t,e),t.prototype.getCanvasIds=function(){return this.__jsonld.canvases?this.__jsonld.canvases:this.canvases?this.canvases:[]},t.prototype.getDuration=function(){if(this.canvases&&this.canvases.length){for(var e=[],t=[],n=0,r=this.canvases;n<r.length;n++)if(h=r[n]){var i=h.match(/(.*)#t=([0-9.]+),?([0-9.]+)?/)||[void 0,h],a=i[1],s=i[2],l=i[3];a&&(e.push(parseFloat(s)),t.push(parseFloat(l)))}if(e.length&&t.length)return new o.Duration(Math.min.apply(Math,e),Math.max.apply(Math,t))}else{e=[],t=[];for(var c=0,u=v=this.getRanges();c<u.length;c++)(_=u[c].getDuration())&&(e.push(_.start),t.push(_.end));if(e.length&&t.length)return new o.Duration(Math.min.apply(Math,e),Math.max.apply(Math,t))}var p,f;if(this.canvases&&this.canvases.length)for(var d=0;d<this.canvases.length;d++){var h=this.canvases[d],g=o.Utils.getTemporalComponent(h);g&&g.length>1&&(0===d&&(p=Number(g[0])),d===this.canvases.length-1&&(f=Number(g[1])))}else{var v=this.getRanges();for(d=0;d<v.length;d++){var _;(_=v[d].getDuration())&&(0===d&&(p=_.start),d===v.length-1&&(f=_.end))}}if(void 0!==p&&void 0!==f)return new o.Duration(p,f)},t.prototype.getRanges=function(){return this._ranges?this._ranges:this._ranges=this.items.filter((function(e){return e.isRange()}))},t.prototype.getBehavior=function(){var e=this.getProperty("behavior");return Array.isArray(e)&&(e=e[0]),e||null},t.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")},t.prototype.getViewingHint=function(){var e=this.getProperty("viewingHint");return Array.isArray(e)&&(e=e[0]),e||null},t.prototype.getTree=function(e){e.data=this,this.treeNode=e;var t=this.getRanges();if(t&&t.length)for(var n=0;n<t.length;n++){var r=t[n],i=new o.TreeNode;e.addNode(i),this._parseTreeNode(i,r)}return o.Utils.generateTreeNodeIds(e),e},t.prototype.spansTime=function(e){var t=this.getDuration();return!!(t&&e>=t.start&&e<=t.end)},t.prototype._parseTreeNode=function(e,t){e.label=t.getLabel().getValue(this.options.locale),e.data=t,e.data.type=o.Utils.normaliseType(o.TreeNodeType.RANGE),t.treeNode=e;var n=t.getRanges();if(n&&n.length)for(var r=0;r<n.length;r++){var i=n[r];if(i.getBehavior()!==a.Behavior.NO_NAV){var s=new o.TreeNode;e.addNode(s),this._parseTreeNode(s,i)}}},t}(o.ManifestResource);t.Range=s},6940(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Rendering=void 0;var o=function(e){function t(t,n){return e.call(this,t,n)||this}return i(t,e),t.prototype.getFormat=function(){return this.getProperty("format")},t}(n(4799).ManifestResource);t.Rendering=o},258(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Resource=void 0;var o=n(4799),a=function(e){function t(t,n){return e.call(this,t,n)||this}return i(t,e),t.prototype.getFormat=function(){var e=this.getProperty("format");return e?e.toLowerCase():null},t.prototype.getResources=function(){var e=[];if(!this.__jsonld.resources)return e;for(var t=0;t<this.__jsonld.resources.length;t++){var n=this.__jsonld.resources[t],r=new o.Annotation(n,this.options);e.push(r)}return e},t.prototype.getType=function(){var e=this.getProperty("type");return e?o.Utils.normaliseType(e):null},t.prototype.getWidth=function(){return this.getProperty("width")},t.prototype.getHeight=function(){return this.getProperty("height")},t.prototype.getMaxWidth=function(){return this.getProperty("maxWidth")},t.prototype.getMaxHeight=function(){return this.getProperty("maxHeight")?null:this.getMaxWidth()},t}(o.ManifestResource);t.Resource=a},4591(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Sequence=void 0;var o=n(3957),a=n(4799),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.items=[],r._thumbnails=null,r}return i(t,e),t.prototype.getCanvases=function(){if(this.items.length)return this.items;var e=this.__jsonld.canvases||this.__jsonld.elements;if(e)for(var t=0;t<e.length;t++){var n=e[t];(r=new a.Canvas(n,this.options)).index=t,this.items.push(r)}else if(this.__jsonld)for(t=0;t<this.__jsonld.length;t++){var r;n=this.__jsonld[t],(r=new a.Canvas(n,this.options)).index=t,this.items.push(r)}return this.items},t.prototype.getCanvasById=function(e){for(var t=0;t<this.getTotalCanvases();t++){var n=this.getCanvasByIndex(t),r=a.Utils.normaliseUrl(n.id);if(a.Utils.normaliseUrl(e)===r)return n}return null},t.prototype.getCanvasByIndex=function(e){return this.getCanvases()[e]},t.prototype.getCanvasIndexById=function(e){for(var t=0;t<this.getTotalCanvases();t++)if(this.getCanvasByIndex(t).id===e)return t;return null},t.prototype.getCanvasIndexByLabel=function(e,t){e=e.trim(),isNaN(e)||(e=parseInt(e,10).toString(),t&&(e+="r"));for(var n,r,i,o=/(\d*)\D+(\d*)/,a=0;a<this.getTotalCanvases();a++){var s=this.getCanvasByIndex(a);if(s.getLabel().getValue(this.options.locale)===e)return a;if((n=o.exec(e))&&(r=n[1],(i=n[2])&&new RegExp("^"+r+"\\D+"+i+"$").test(s.getLabel().toString())))return a}return-1},t.prototype.getLastCanvasLabel=function(e){for(var t=this.getTotalCanvases()-1;t>=0;t--){var n=this.getCanvasByIndex(t).getLabel().getValue(this.options.locale);if(e){if(/^[a-zA-Z0-9]*$/.test(n))return n}else if(n)return n}return this.options.defaultLabel},t.prototype.getLastPageIndex=function(){return this.getTotalCanvases()-1},t.prototype.getNextPageIndex=function(e,t){var n;if(t){var r=this.getPagedIndices(e),i=this.getViewingDirection();n=i&&i===o.ViewingDirection.RIGHT_TO_LEFT?r[0]+1:r[r.length-1]+1}else n=e+1;return n>this.getLastPageIndex()?-1:n},t.prototype.getPagedIndices=function(e,t){var n=[];if(t){n=this.isFirstCanvas(e)||this.isLastCanvas(e)?[e]:e%2?[e,e+1]:[e-1,e];var r=this.getViewingDirection();r&&r===o.ViewingDirection.RIGHT_TO_LEFT&&(n=n.reverse())}else n.push(e);return n},t.prototype.getPrevPageIndex=function(e,t){var n;if(t){var r=this.getPagedIndices(e),i=this.getViewingDirection();n=i&&i===o.ViewingDirection.RIGHT_TO_LEFT?r[r.length-1]-1:r[0]-1}else n=e-1;return n},t.prototype.getStartCanvasIndex=function(){var e=this.getStartCanvas();if(e)for(var t=0;t<this.getTotalCanvases();t++)if(this.getCanvasByIndex(t).id===e)return t;return 0},t.prototype.getThumbs=function(e,t){for(var n=[],r=this.getTotalCanvases(),i=0;i<r;i++){var o=this.getCanvasByIndex(i),s=new a.Thumb(e,o);n.push(s)}return n},t.prototype.getThumbnails=function(){if(null!=this._thumbnails)return this._thumbnails;this._thumbnails=[];for(var e=this.getCanvases(),t=0;t<e.length;t++){var n=e[t].getThumbnail();n&&this._thumbnails.push(n)}return this._thumbnails},t.prototype.getStartCanvas=function(){return this.getProperty("startCanvas")},t.prototype.getTotalCanvases=function(){return this.getCanvases().length},t.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")?this.getProperty("viewingDirection"):this.options.resource.getViewingDirection?this.options.resource.getViewingDirection():null},t.prototype.getViewingHint=function(){var e=this.getProperty("viewingHint");return Array.isArray(e)&&(e=e[0]),e||null},t.prototype.isCanvasIndexOutOfRange=function(e){return e>this.getTotalCanvases()-1},t.prototype.isFirstCanvas=function(e){return 0===e},t.prototype.isLastCanvas=function(e){return e===this.getTotalCanvases()-1},t.prototype.isMultiCanvas=function(){return this.getTotalCanvases()>1},t.prototype.isPagingEnabled=function(){var e=this.getViewingHint();return!!e&&e===o.ViewingHint.PAGED},t.prototype.isTotalCanvasesEven=function(){return this.getTotalCanvases()%2==0},t}(a.ManifestResource);t.Sequence=s},4029(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Deserialiser=void 0;var r=n(4799),i=function(){function e(){}return e.parse=function(e,t){return"string"==typeof e&&(e=JSON.parse(e)),this.parseJson(e,t)},e.parseJson=function(e,t){var n;if(t&&t.navDate&&!isNaN(t.navDate.getTime())&&(e.navDate=t.navDate.toString()),e["@type"])switch(e["@type"]){case"sc:Collection":n=this.parseCollection(e,t);break;case"sc:Manifest":n=this.parseManifest(e,t);break;default:return null}else switch(e.type){case"Collection":n=this.parseCollection(e,t);break;case"Manifest":n=this.parseManifest(e,t);break;default:return null}return n.isLoaded=!0,n},e.parseCollection=function(e,t){var n=new r.Collection(e,t);return t?(n.index=t.index||0,t.resource&&(n.parentCollection=t.resource.parentCollection)):n.index=0,this.parseCollections(n,t),this.parseManifests(n,t),this.parseItems(n,t),n},e.parseCollections=function(e,t){var n;if(e.__jsonld.collections?n=e.__jsonld.collections:e.__jsonld.items&&(n=e.__jsonld.items.filter((function(e){return"collection"===e.type.toLowerCase()}))),n)for(var r=0;r<n.length;r++){t&&(t.index=r);var i=this.parseCollection(n[r],t);i.index=r,i.parentCollection=e,e.items.push(i)}},e.parseManifest=function(e,t){return new r.Manifest(e,t)},e.parseManifests=function(e,t){var n;if(e.__jsonld.manifests?n=e.__jsonld.manifests:e.__jsonld.items&&(n=e.__jsonld.items.filter((function(e){return"manifest"===e.type.toLowerCase()}))),n)for(var r=0;r<n.length;r++){var i=this.parseManifest(n[r],t);i.index=r,i.parentCollection=e,e.items.push(i)}},e.parseItem=function(e,t){if(e["@type"]){if("sc:manifest"===e["@type"].toLowerCase())return this.parseManifest(e,t);if("sc:collection"===e["@type"].toLowerCase())return this.parseCollection(e,t)}else if(e.type){if("manifest"===e.type.toLowerCase())return this.parseManifest(e,t);if("collection"===e.type.toLowerCase())return this.parseCollection(e,t)}return null},e.parseItems=function(e,t){var n=e.__jsonld.members||e.__jsonld.items;if(n)for(var r=function(r){t&&(t.index=r);var o=i.parseItem(n[r],t);return o?e.items.filter((function(e){return e.id===o.id}))[0]?"continue":(o.index=r,o.parentCollection=e,void e.items.push(o)):{value:void 0}},i=this,o=0;o<n.length;o++){var a=r(o);if("object"==typeof a)return a.value}},e}();t.Deserialiser=i},9579(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Service=void 0;var o=n(4799),a=function(e){function t(t,n){return e.call(this,t,n)||this}return i(t,e),t.prototype.getProfile=function(){var e=this.getProperty("profile");return e||(e=this.getProperty("dcterms:conformsTo")),Array.isArray(e)?e[0]:e},t.prototype.getConfirmLabel=function(){return o.Utils.getLocalisedValue(this.getProperty("confirmLabel"),this.options.locale)},t.prototype.getDescription=function(){return o.Utils.getLocalisedValue(this.getProperty("description"),this.options.locale)},t.prototype.getFailureDescription=function(){return o.Utils.getLocalisedValue(this.getProperty("failureDescription"),this.options.locale)},t.prototype.getFailureHeader=function(){return o.Utils.getLocalisedValue(this.getProperty("failureHeader"),this.options.locale)},t.prototype.getHeader=function(){return o.Utils.getLocalisedValue(this.getProperty("header"),this.options.locale)},t.prototype.getServiceLabel=function(){return o.Utils.getLocalisedValue(this.getProperty("label"),this.options.locale)},t.prototype.getInfoUri=function(){var e=this.id;return e.endsWith("/")||(e+="/"),e+"info.json"},t}(o.ManifestResource);t.Service=a},2639(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Size=void 0,t.Size=function(e,t){this.width=e,this.height=t}},5633(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.StatusCode=void 0,function(e){e[e.AUTHORIZATION_FAILED=1]="AUTHORIZATION_FAILED",e[e.FORBIDDEN=2]="FORBIDDEN",e[e.INTERNAL_SERVER_ERROR=3]="INTERNAL_SERVER_ERROR",e[e.RESTRICTED=4]="RESTRICTED"}(n||(t.StatusCode=n={}))},9692(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Thumb=void 0,t.Thumb=function(e,t){this.data=t,this.index=t.index,this.width=e;var n=t.getHeight()/t.getWidth();this.height=n?Math.floor(this.width*n):e,this.uri=t.getCanonicalImageUri(e),this.label=t.getLabel().getValue(),this.viewingHint=t.getViewingHint()}},4204(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Thumbnail=void 0;var o=function(e){function t(t,n){return e.call(this,t,n)||this}return i(t,e),t}(n(4799).Resource);t.Thumbnail=o},8570(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TreeNode=void 0;var r=n(4799),i=function(){function e(e,t){this.label=e,this.data=t||{},this.nodes=[]}return e.prototype.addNode=function(e){this.nodes.push(e),e.parentNode=this},e.prototype.isCollection=function(){return this.data.type===r.Utils.normaliseType(r.TreeNodeType.COLLECTION)},e.prototype.isManifest=function(){return this.data.type===r.Utils.normaliseType(r.TreeNodeType.MANIFEST)},e.prototype.isRange=function(){return this.data.type===r.Utils.normaliseType(r.TreeNodeType.RANGE)},e}();t.TreeNode=i},6386(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TreeNodeType=void 0,function(e){e.COLLECTION="collection",e.MANIFEST="manifest",e.RANGE="range"}(n||(t.TreeNodeType=n={}))},41(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Utils=void 0;var o=n(4799),a=n(3957),s=n(7019);n(916);var l=function(){function e(){}return e.getMediaType=function(e){return(e=(e=e.toLowerCase()).split(";")[0]).trim()},e.getImageQuality=function(e){return e===a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_1||e===a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_2||e===a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_1||e===a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_2||e===a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_1||e===a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_2||e===a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_1||e===a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_2||e===a.ServiceProfile.IMAGE_1_LEVEL_1||e===a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_1||e===a.ServiceProfile.IMAGE_1_LEVEL_2||e===a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_2?"native":"default"},e.getInexactLocale=function(e){return-1!==e.indexOf("-")?e.substr(0,e.indexOf("-")):e},e.getLocalisedValue=function(e,t){if(!Array.isArray(e))return e;for(var n=0;n<e.length;n++){var r=e[n];if(t===r["@language"])return r["@value"]}var i=t.substr(0,t.indexOf("-"));for(n=0;n<e.length;n++){var o=e[n];if(o["@language"]===i)return o["@value"]}return null},e.generateTreeNodeIds=function(t,n){var r;void 0===n&&(n=0),r=t.parentNode?t.parentNode.id+"-"+n:"0",t.id=r;for(var i=0;i<t.nodes.length;i++){var o=t.nodes[i];e.generateTreeNodeIds(o,i)}},e.normaliseType=function(e){return-1!==(e=(e||"").toLowerCase()).indexOf(":")?e.split(":")[1]:e},e.normaliseUrl=function(e){return-1!==(e=e.substr(e.indexOf("://"))).indexOf("#")&&(e=e.split("#")[0]),e},e.normalisedUrlsMatch=function(t,n){return e.normaliseUrl(t)===e.normaliseUrl(n)},e.isImageProfile=function(t){return!!(e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_2))},e.isImageServiceType=function(e){return null!==e&&e.toLowerCase()===a.ServiceType.IMAGE_SERVICE_2.toLowerCase()||e===a.ServiceType.IMAGE_SERVICE_3.toLowerCase()},e.isLevel0ImageProfile=function(t){return!!(e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_0))},e.isLevel1ImageProfile=function(t){return!!(e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_1))},e.isLevel2ImageProfile=function(t){return!!(e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_2))},e.parseManifest=function(e,t){return o.Deserialiser.parse(e,t)},e.checkStatus=function(e){if(e.ok)return e;var t=new Error(e.statusText);return t.response=e,Promise.reject(t)},e.loadManifest=function(t){return new Promise((function(n,r){fetch(t).then(e.checkStatus).then((function(e){return e.json()})).then((function(e){n(e)})).catch((function(e){r()}))}))},e.loadExternalResourcesAuth1=function(t,n,r,i,o,a,s,l){return new Promise((function(c,u){var p=t.map((function(t){return e.loadExternalResourceAuth1(t,n,r,i,o,a,s,l)}));Promise.all(p).then((function(){c(t)})).catch((function(e){u(e)}))}))},e.loadExternalResourceAuth1=function(t,n,o,a,l,c,u,p){return r(this,void 0,void 0,(function(){var r;return i(this,(function(i){switch(i.label){case 0:return[4,a(t)];case 1:return(r=i.sent())?[4,t.getData(r)]:[3,6];case 2:return i.sent(),t.status!==s.OK?[3,3]:[2,t];case 3:return[4,e.doAuthChain(t,n,o,l,c,u,p)];case 4:i.sent(),i.label=5;case 5:if(t.status===s.OK||t.status===s.MOVED_TEMPORARILY)return[2,t];throw e.createAuthorizationFailedError();case 6:return[4,t.getData()];case 7:return i.sent(),t.status!==s.MOVED_TEMPORARILY&&t.status!==s.UNAUTHORIZED?[3,9]:[4,e.doAuthChain(t,n,o,l,c,u,p)];case 8:i.sent(),i.label=9;case 9:if(t.status===s.OK||t.status===s.MOVED_TEMPORARILY)return[2,t];throw e.createAuthorizationFailedError()}}))}))},e.doAuthChain=function(t,n,o,a,l,c,u){return r(this,void 0,void 0,(function(){var r,p,f,d,h,g,v,_;return i(this,(function(i){switch(i.label){case 0:return t.isAccessControlled()?((r=t.externalService)&&(r.options=t.options),(p=t.kioskService)&&(p.options=t.options),(f=t.clickThroughService)&&(f.options=t.options),(d=t.loginService)&&(d.options=t.options),t.isResponseHandled||t.status!==s.MOVED_TEMPORARILY?[3,2]:[4,c(t)]):[2,t];case 1:case 3:case 6:case 10:case 14:return i.sent(),[2,t];case 2:return h=null,g=null,(h=r)?(g=h,[4,e.attemptResourceWithToken(t,o,h)]):[3,4];case 4:return(h=p)?(g=h,(v=n(h))?[4,a(v)]:[3,7]):[3,7];case 5:case 9:case 13:return i.sent(),[4,e.attemptResourceWithToken(t,o,h)];case 7:return(h=f)?(g=h,[4,l(t,h)]):[3,11];case 8:return(_=i.sent())?[4,a(_)]:[3,11];case 11:return(h=d)?(g=h,[4,l(t,h)]):[3,15];case 12:return(_=i.sent())?[4,a(_)]:[3,15];case 15:return g&&u(t,g),[2]}}))}))},e.attemptResourceWithToken=function(e,t,n){return r(this,void 0,void 0,(function(){var r,o;return i(this,(function(i){switch(i.label){case 0:return(r=n.getService(a.ServiceProfile.AUTH_1_TOKEN))?[4,t(e,r)]:[3,3];case 1:return(o=i.sent())&&o.accessToken?[4,e.getData(o)]:[3,3];case 2:return i.sent(),[2,e];case 3:return[2]}}))}))},e.loadExternalResourcesAuth09=function(t,n,r,i,o,a,s,l,c,u){return new Promise((function(p,f){var d=t.map((function(t){return e.loadExternalResourceAuth09(t,n,r,i,o,a,s,l,c,u)}));Promise.all(d).then((function(){p(t)})).catch((function(e){f(e)}))}))},e.loadExternalResourceAuth09=function(t,n,r,i,o,a,l,c,u,p){return new Promise((function(f,d){p&&p.pessimisticAccessControl?t.getData().then((function(){t.isAccessControlled()?t.clickThroughService?(f(r(t)),f(i(t))):o(t).then((function(){a(t,!0).then((function(n){t.getData(n).then((function(){f(u(t))})).catch((function(t){d(e.createInternalServerError(t))}))})).catch((function(t){d(e.createInternalServerError(t))}))})).catch((function(t){d(e.createInternalServerError(t))})):f(t)})).catch((function(t){d(e.createInternalServerError(t))})):c(t,n).then((function(p){p?t.getData(p).then((function(){t.status===s.OK?f(u(t)):e.authorize(t,n,r,i,o,a,l,c).then((function(){f(u(t))})).catch((function(t){d(e.createAuthorizationFailedError())}))})).catch((function(t){d(e.createAuthorizationFailedError())})):e.authorize(t,n,r,i,o,a,l,c).then((function(){f(u(t))})).catch((function(t){d(e.createAuthorizationFailedError())}))})).catch((function(t){d(e.createAuthorizationFailedError())}))}))},e.createError=function(e,t){var n=new Error;return n.message=t,n.name=String(e),n},e.createAuthorizationFailedError=function(){return e.createError(o.StatusCode.AUTHORIZATION_FAILED,"Authorization failed")},e.createRestrictedError=function(){return e.createError(o.StatusCode.RESTRICTED,"Restricted")},e.createInternalServerError=function(t){return e.createError(o.StatusCode.INTERNAL_SERVER_ERROR,t)},e.authorize=function(t,n,r,i,o,a,l,c){return new Promise((function(u,p){t.getData().then((function(){t.isAccessControlled()?c(t,n).then((function(c){c?t.getData(c).then((function(){t.status===s.OK?u(t):e.showAuthInteraction(t,n,r,i,o,a,l,u,p)})).catch((function(t){p(e.createInternalServerError(t))})):a(t,!1).then((function(c){c?l(t,c,n).then((function(){t.getData(c).then((function(){t.status===s.OK?u(t):e.showAuthInteraction(t,n,r,i,o,a,l,u,p)})).catch((function(t){p(e.createInternalServerError(t))}))})).catch((function(t){p(e.createInternalServerError(t))})):e.showAuthInteraction(t,n,r,i,o,a,l,u,p)}))})).catch((function(t){p(e.createInternalServerError(t))})):u(t)}))}))},e.showAuthInteraction=function(t,n,r,i,o,a,l,c,u){t.status!==s.MOVED_TEMPORARILY||t.isResponseHandled?t.clickThroughService&&!t.isResponseHandled?r(t).then((function(){a(t,!0).then((function(r){l(t,r,n).then((function(){t.getData(r).then((function(){c(t)})).catch((function(t){u(e.createInternalServerError(t))}))})).catch((function(t){u(e.createInternalServerError(t))}))})).catch((function(t){u(e.createInternalServerError(t))}))})):o(t).then((function(){a(t,!0).then((function(r){l(t,r,n).then((function(){t.getData(r).then((function(){c(t)})).catch((function(t){u(e.createInternalServerError(t))}))})).catch((function(t){u(e.createInternalServerError(t))}))})).catch((function(t){u(e.createInternalServerError(t))}))})):c(t)},e.getService=function(e,t){for(var n=this.getServices(e),r=0;r<n.length;r++){var i=n[r];if(i.getProfile()===t)return i}return null},e.getResourceById=function(t,n){return e.traverseAndFind(t.__jsonld,"@id",n)},e.traverseAndFind=function(t,n,r){if(t.hasOwnProperty(n)&&t[n]===r)return t;for(var i=0;i<Object.keys(t).length;i++)if("object"==typeof t[Object.keys(t)[i]]){var o=e.traverseAndFind(t[Object.keys(t)[i]],n,r);if(null!=o)return o}},e.getServices=function(t,n){var r=void 0===n?{}:n,i=r.onlyService,a=void 0!==i&&i,s=r.onlyServices,l=void 0!==s&&s,c=r.skipParentResources,u=[];(void 0===c||!c)&&t&&t.options&&t.options.resource&&t.options.resource!==t&&u.push.apply(u,e.getServices(t.options.resource,{onlyServices:!0}));var p=l?[]:(t.__jsonld||t).service||[];if(Array.isArray(p)||(p=[p]),a||p.push.apply(p,(t.__jsonld||t).services||[]),0===p.length)return u;for(var f=0;f<p.length;f++){var d=p[f];if("string"==typeof d){var h=this.getResourceById(t.options.resource,d);h&&u.push(new o.Service(h.__jsonld||h,t.options))}else u.push(new o.Service(d,t.options))}return u},e.getTemporalComponent=function(e){var t=/t=([^&]+)/g.exec(e),n=null;return t&&t[1]&&(n=t[1].split(",")),n},e}();t.Utils=l},8156(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseManifest=t.loadManifest=void 0,i(n(4799),t);var o=n(41);t.loadManifest=function(e){return o.Utils.loadManifest(e)},t.parseManifest=function(e,t){return o.Utils.parseManifest(e,t)}},4799(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(7436),t),i(n(2315),t),i(n(258),t),i(n(107),t),i(n(3039),t),i(n(2339),t),i(n(3435),t),i(n(3556),t),i(n(8098),t),i(n(8214),t),i(n(1858),t),i(n(2712),t),i(n(3167),t),i(n(672),t),i(n(7376),t),i(n(2184),t),i(n(6739),t),i(n(2817),t),i(n(72),t),i(n(212),t),i(n(2006),t),i(n(4531),t),i(n(3043),t),i(n(3845),t),i(n(6940),t),i(n(4591),t),i(n(4029),t),i(n(9579),t),i(n(2639),t),i(n(5633),t),i(n(9692),t),i(n(4204),t),i(n(8570),t),i(n(6386),t),i(n(41),t)},6782(e,t,n){"use strict";function r(e,t){return t=t||{},new Promise((function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},l=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:l,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var c in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){o.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),n(l())},i.onerror=r,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(c,t.headers[c]);i.send(t.body||null)}))}n.r(t),n.d(t,{default:()=>r})}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}return n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(8156)})(),e.exports=t()},5072(e){"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var o={},a=[],s=0;s<e.length;s++){var l=e[s],c=r.base?l[0]+r.base:l[0],u=o[c]||0,p="".concat(c," ").concat(u);o[c]=u+1;var f=n(p),d={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==f)t[f].references++,t[f].updater(d);else{var h=i(d,r);r.byIndex=s,t.splice(s,0,{identifier:p,updater:h,references:1})}a.push(p)}return a}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var o=r(e=e||[],i=i||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=n(o[a]);t[s].references--}for(var l=r(e,i),c=0;c<o.length;c++){var u=n(o[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}o=l}}},7659(e){"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056(e,t,n){"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.