PageSourceSearch

https://www.toefl.cn/etc.clientlibs/ets/clientlibs/clientlib-dynam…/resources/2141-633f15527aa768ef266a.js

js toefl.cn collected 2026-09-25 04:32:52 UTC 9,233 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[2141],{8798:function(e,t,r){r.d(t,{A:function(){return I}});var n={};r.r(n),r.d(n,{exclude:function(){return N},extract:function(){return v},parse:function(){return k},parseUrl:function(){return w},pick:function(){return C},stringify:function(){return F},stringifyUrl:function(){return x}});const o="%[a-f0-9]{2}",c=new RegExp("("+o+")|([^%]+?)","gi"),i=new RegExp("("+o+")+","gi");function a(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(1===e.length)return e;t=t||1;const r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],a(r),a(n))}function s(e){try{return decodeURIComponent(e)}catch{let t=e.match(c)||[];for(let r=1;r<t.length;r++)t=(e=a(t,r).join("")).match(c)||[];return e}}function u(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return function(e){const t={"%FE%FF":"��","%FF%FE":"��"};let r=i.exec(e);for(;r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{const e=s(r[0]);e!==r[0]&&(t[r[0]]=e)}r=i.exec(e)}t["%C2"]="�";const n=Object.keys(t);for(const r of n)e=e.replace(new RegExp(r,"g"),t[r]);return e}(e)}}function l(e,t){const r={};if(Array.isArray(t))for(const n of t){const t=Object.getOwnPropertyDescriptor(e,n);t?.enumerable&&Object.defineProperty(r,n,t)}else for(const n of Reflect.ownKeys(e)){const o=Object.getOwnPropertyDescriptor(e,n);if(o.enumerable){t(n,e[n],e)&&Object.defineProperty(r,n,o)}}return r}function p(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];const r=e.indexOf(t);return-1===r?[]:[e.slice(0,r),e.slice(r+t.length)]}const f=e=>null==e,d=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),m=Symbol("encodeFragmentIdentifier");function y(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function g(e,t){return t.encode?t.strict?d(e):encodeURIComponent(e):e}function b(e,t){return t.decode?u(e):e}function j(e){return Array.isArray(e)?e.sort():"object"==typeof e?j(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function h(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function O(e,t,r){return"string"===r&&"string"==typeof e?e:"function"==typeof r&&"string"==typeof e?r(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()?"number"!==r||Number.isNaN(Number(e))||"string"!=typeof e||""===e.trim()?t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?Number(e):e:Number(e):"true"===e.toLowerCase()}function v(e){const t=(e=h(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function k(e,t){y((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t}).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==n[e]?n[e]=[...n[e],r]:n[e]=[r]:n[e]=r};case"colon-list-separator":return(e,r,n)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[...n[e],r]:n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const o="string"==typeof r&&r.includes(e.arrayFormatSeparator),c="string"==typeof r&&!o&&b(r,e).includes(e.arrayFormatSeparator);r=c?b(r,e):r;const i=o||c?r.split(e.arrayFormatSeparator).map((t=>b(t,e))):null===r?r:b(r,e);n[t]=i};case"bracket-separator":return(t,r,n)=>{const o=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!o)return void(n[t]=r?b(r,e):r);const c=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>b(t,e)));void 0!==n[t]?n[t]=[...n[t],...c]:n[t]=c};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[...[r[e]].flat(),t]:r[e]=t}}}(t),n=Object.create(null);if("string"!=typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const o of e.split("&")){if(""===o)continue;const e=t.decode?o.replaceAll("+"," "):o;let[c,i]=p(e,"=");void 0===c&&(c=e),i=void 0===i?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?i:b(i,t),r(b(c,t),i,n)}for(const[e,r]of Object.entries(n))if("object"==typeof r&&null!==r&&"string"!==t.types[e])for(const[n,o]of Object.entries(r)){const c=t.types[e]?t.types[e].replace("[]",""):void 0;r[n]=O(o,t,c)}else"object"==typeof r&&null!==r&&"string"===t.types[e]?n[e]=Object.values(r).join(t.arrayFormatSeparator):n[e]=O(r,t,t.types[e]);return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return e[t]=Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?j(r):r,e}
1),Object.create(null))}function F(e,t){if(!e)return"";y((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const r=r=>t.skipNull&&f(e[r])||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[g(t,e),"[",o,"]"].join("")]:[...r,[g(t,e),"[",g(o,e),"]=",g(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[g(t,e),"[]"].join("")]:[...r,[g(t,e),"[]=",g(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[g(t,e),":list="].join("")]:[...r,[g(t,e),":list=",g(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[g(r,e),t,g(o,e)].join("")]:[[n,g(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,g(t,e)]:[...r,[g(t,e),"=",g(n,e)].join("")]}}(t),o={};for(const[t,n]of Object.entries(e))r(t)||(o[t]=n);const c=Object.keys(o);return!1!==t.sort&&c.sort(t.sort),c.map((r=>{const o=e[r];return void 0===o?"":null===o?g(r,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?g(r,t)+"[]":o.reduce(n(r),[]).join("&"):g(r,t)+"="+g(o,t)})).filter((e=>e.length>0)).join("&")}function w(e,t){t={decode:!0,...t};let[r,n]=p(e,"#");return void 0===r&&(r=e),{url:r?.split("?")?.[0]??"",query:k(v(e),t),...t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:b(n,t)}:{}}}function x(e,t){t={encode:!0,strict:!0,[m]:!0,...t};const r=h(e.url).split("?")[0]||"";let n=F({...k(v(e.url),{sort:!1}),...e.query},t);n&&=`?${n}`;let o=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);if("string"==typeof e.fragmentIdentifier){const n=new URL(r);n.hash=e.fragmentIdentifier,o=t[m]?n.hash:`#${e.fragmentIdentifier}`}return`${r}${n}${o}`}function C(e,t,r){r={parseFragmentIdentifier:!0,[m]:!1,...r};const{url:n,query:o,fragmentIdentifier:c}=w(e,r);return x({url:n,query:l(o,t),fragmentIdentifier:c},r)}function N(e,t,r){return C(e,Array.isArray(t)?e=>!t.includes(e):(e,r)=>!t(e,r),r)}var I=n},7820:function(e,t,r){r.d(t,{Ri:function(){return p},TV:function(){return l},zs:function(){return f}});const n=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),o=e=>encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent),c=decodeURIComponent,i=e=>('"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent));function a(e,t,r){const n=/(?:^|; )([^=]*)=([^;]*)/g,o={};let c;for(;null!=(c=n.exec(document.cookie));)try{const n=r(c[1]);if(o[n]=t(c[2],n),e===n)break}catch(e){}return null!=e?o[e]:o}const s=Object.freeze({decodeName:c,decodeValue:i,encodeName:n,encodeValue:o}),u=Object.freeze({path:"/"});function l(e,t,r=u,{encodeValue:c=o,encodeName:i=n}={}){return document.cookie=`${i(e)}=${c(t,e)}${function(e){return"number"==typeof(e=Object.assign({},e)).expires&&(e.expires=new Date(Date.now()+864e5*e.expires)),null!=e.expires&&(e.expires=e.expires.toUTCString()),Object.entries(e).filter((([e,t])=>null!=t&&!1!==t)).map((([e,t])=>!0===t?`; ${e}`:`; ${e}=${t.split(";")[0]}`)).join("")}(r)}`}function p(e,{decodeValue:t=i,decodeName:r=c}={}){return a(e,t,r)}function f(e,t=u){l(e,"",Object.assign({},t,{expires:-1}))}(function e(t,r){const n={set:function(e,t,r){return l(e,t,Object.assign({},this.attributes,r),{encodeValue:this.converter.write})},get:function(e){return 0===arguments.length?function({decodeValue:e=i,decodeName:t=c}={}){return a(void 0,e,t)}(this.converter.read):null!=e?p(e,this.converter.read):void 0},remove:function(e,t){f(e,Object.assign({},this.attributes,t))},withAttributes:function(t){return e(this.converter,Object.assign({},this.attributes,t))},withConverter:function(t){return e(Object.assign({},this.converter,t),this.attributes)}},o={attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}};return Object.create(n,o)})({read:s.decodeValue,write:s.encodeValue},u)}}]);

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.